
/* ============================================================
   LINE Seed JP — CDN経由では直接読めないため、
   Google Fontsの Noto Sans JP をベースにしつつ
   LINE Seed の特徴（丸み・やや細め・読みやすさ）を
   font-feature-settingsで再現し、LINE Seedが
   ローカルにある場合はそちらを優先
   ============================================================ */
@font-face {
  font-family: 'LINESeedJP';
  src: local('LINE Seed JP'),
       local('LINESeedJP_A_OTF_Rg'),
       local('LINE Seed JP OTF');
  font-weight: 400;
}
@font-face {
  font-family: 'LINESeedJP';
  src: local('LINE Seed JP Bold'),
       local('LINESeedJP_A_OTF_Bd');
  font-weight: 700;
}
@font-face {
  font-family: 'LINESeedJP';
  src: local('LINE Seed JP Thin'),
       local('LINESeedJP_A_OTF_Th');
  font-weight: 300;
}

:root {
  --black:   #0a0a0a;
  --deep:    #111820;    /* 日本財団風のダークネイビー */
  --ocean:   #1a6b7c;
  --ocean-b: #0e4f5c;
  --ocean-l: #e0f2f7;
  --sand:    #c9b69a;
  --sand-l:  #f7f2eb;
  --white:   #ffffff;
  --gray:    #f4f4f2;
  --text:    #1a1a1a;
  --text-m:  #4a4a4a;
  --text-l:  #888;
  --border:  #e0e0e0;
  --font: 'LINE Seed JP', 'LINESeedJP_A_OTF_Rg', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic Medium', 'Yu Gothic', 'Meiryo', sans-serif;
  --max-w:   1160px;
  --ease:    cubic-bezier(.25,.46,.45,.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .02em;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   HEADER — 日本財団風: 極薄・透明→スクロールで白
   ============================================================ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px;
  display: flex; align-items: center;
  padding: 0 40px;
  transition: background .4s var(--ease), box-shadow .4s;
}
#header.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
}
.header-logo {
  font-size: 20px; font-weight: 700; letter-spacing: .12em;
  color: var(--white); transition: color .4s;
}
#header.scrolled .header-logo { color: var(--ocean); }
.header-logo span {
  font-size: 10px; font-weight: 300; letter-spacing: .08em;
  margin-left: 10px; opacity: .7; vertical-align: middle;
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.header-nav { display: flex; gap: 28px; }
.header-nav a {
  font-size: 13px; font-weight: 400; letter-spacing: .06em;
  color: rgba(255,255,255,.85); transition: color .3s;
}
#header.scrolled .header-nav a { color: var(--text-m); }
.header-nav a:hover { color: var(--white); }
#header.scrolled .header-nav a:hover { color: var(--ocean); }
.header-cta {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  padding: 8px 20px; border: 1.5px solid rgba(255,255,255,.6);
  color: var(--white); border-radius: 40px; transition: all .3s;
}
.header-cta:hover { background: var(--white); color: var(--ocean); border-color: var(--white); }
#header.scrolled .header-cta { border-color: var(--ocean); color: var(--ocean); }
#header.scrolled .header-cta:hover { background: var(--ocean); color: var(--white); }
.ham-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; padding: 4px; }
.ham-btn span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: background .4s; }
#header.scrolled .ham-btn span { background: var(--text); }

/* ============================================================
   HERO — フルスクリーン KV 動画/画像
   ============================================================ */
#hero {
  position: relative;
  width: 100%; height: 100vh; min-height: 640px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 28%;
  z-index: 0;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}
/* グラデオーバーレイ — 下から黒で文字可読性確保 */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,12,16,.82) 0%,
    rgba(10,12,16,.45) 38%,
    rgba(10,12,16,.12) 65%,
    transparent 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px) 80px;
}
.hero-label {
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 20px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp .8s var(--ease) .6s forwards;
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 74px); font-weight: 700;
  color: var(--white); line-height: 1.22; letter-spacing: .04em;
  margin-bottom: 24px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .9s var(--ease) .8s forwards;
}
.hero-title em { font-style: normal; color: var(--sand); }
.hero-subtitle {
  font-size: clamp(13px, 1.4vw, 16px); color: rgba(255,255,255,.72);
  font-weight: 300; letter-spacing: .06em; line-height: 1.9;
  max-width: 520px; margin-bottom: 40px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp .8s var(--ease) 1s forwards;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp .8s var(--ease) 1.1s forwards;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; background: var(--white); color: var(--ocean);
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
  border-radius: 2px; transition: background .25s, color .25s, transform .2s;
}
.btn-hero-primary:hover { background: var(--sand); color: var(--white); transform: translateY(-2px); }
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border: 1px solid rgba(255,255,255,.5);
  color: var(--white); font-size: 14px; font-weight: 400; letter-spacing: .06em;
  border-radius: 2px; transition: border-color .25s, background .25s, transform .2s;
}
.btn-hero-secondary:hover { border-color: var(--white); background: rgba(255,255,255,.08); transform: translateY(-2px); }
/* スクロール矢印 */
.hero-scroll {
  position: absolute; bottom: 32px; right: 60px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll span {
  font-size: 10px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.5); writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 48px; background: rgba(255,255,255,.3);
  overflow: hidden; position: relative;
}
.scroll-line::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 50%; background: var(--sand);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 0%{top:-50%} 100%{top:150%} }


/* Target visual images */
.target-visual { position: relative; overflow: hidden; }
.target-visual img.tv-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: .75; transition: transform .8s cubic-bezier(.25,.46,.45,.94), opacity .4s;
}
.target-row:hover .target-visual img.tv-photo { transform: scale(1.05); opacity: .85; }
/* Service card images */
.card-photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  transition: transform .7s cubic-bezier(.25,.46,.45,.94);
  display: block;
}
.card:hover .card-photo { transform: scale(1.06); }
.card-photo-wrap { overflow: hidden; aspect-ratio: 3/4; position: relative; }
.card-photo-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,12,18,.72) 0%, rgba(8,12,18,.2) 55%, transparent 100%);
}

/* ============================================================
   PHILOSOPHY — 斜めカット帯（日本財団風クリップパス）
   ============================================================ */
#philosophy {
  background: var(--deep);
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
  padding: 120px 0 130px;
  margin: -2px 0;
}
.philosophy-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px,5vw,60px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.philosophy-label {
  font-size: 10px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 20px;
}
.philosophy-title {
  font-size: clamp(26px, 3vw, 40px); font-weight: 700; color: var(--white);
  line-height: 1.5; margin-bottom: 0;
}
.philosophy-title em { font-style: normal; color: var(--sand); }
.philosophy-text {
  font-size: 15px; color: rgba(255,255,255,.65); line-height: 2;
  font-weight: 300;
}
.philosophy-line {
  width: 40px; height: 2px; background: var(--sand); margin: 28px 0;
}
.philosophy-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--sand); border-bottom: 1px solid rgba(201,182,154,.3);
  padding-bottom: 4px; transition: gap .25s, border-color .25s;
}
.philosophy-link:hover { gap: 16px; border-color: var(--sand); }
.arr { font-size: 16px; transition: transform .25s; }
.philosophy-link:hover .arr { transform: translateX(4px); }

/* ============================================================
   SERVICES — 3カラムカード（日本財団の活動カード風）
   ============================================================ */
#services { padding: 100px 0; background: var(--white); }
.section-header {
  max-width: var(--max-w); margin: 0 auto 56px; padding: 0 clamp(20px,5vw,60px);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.section-en {
  font-size: 10px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ocean); display: block; margin-bottom: 12px;
}
.section-title { font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; line-height: 1.35; }
.section-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--ocean); letter-spacing: .06em;
  border-bottom: 1px solid var(--ocean); padding-bottom: 2px;
  transition: gap .25s;
}
.section-more:hover { gap: 14px; }
.cards-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px,5vw,60px);
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2px;
}
/* 日本財団風カード: 画像が大きく、下にテキスト */
.card {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--black);
}
.card-thumb {
  aspect-ratio: 3/4; position: relative; overflow: hidden;
}
.card-thumb-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.card:hover .card-thumb-img { transform: scale(1.06); }
/* 写真の代わり: 絵文字＋グラデーション背景 */
.card-thumb-emoji {
  width: 100%; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
  font-size: 72px; position: relative; overflow: hidden;
  transition: transform .7s var(--ease);
}
.card:hover .card-thumb-emoji { transform: scale(1.04); }
/* グラデ背景 */
.card-thumb-emoji::before {
  content: ''; position: absolute; inset: 0;
}
.card.c1 .card-thumb-emoji::before { background: linear-gradient(145deg, #0e4f5c, #1a6b7c, #2a9db2); }
.card.c2 .card-thumb-emoji::before { background: linear-gradient(145deg, #1c3556, #2a5080, #3d70a8); }
.card.c3 .card-thumb-emoji::before { background: linear-gradient(145deg, #3a1c5c, #5a3080, #7a4da8); }
.card-thumb-emoji span { position: relative; z-index: 1; }
/* ダーク オーバーレイ */
.card-thumb-emoji::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, rgba(10,12,16,.7), transparent);
}
/* テキストゾーン */
.card-body {
  padding: 28px 28px 32px; background: var(--deep); position: relative;
}
.card-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 12px; display: block;
}
.card-title {
  font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.55;
  margin-bottom: 12px;
}
.card-desc {
  font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.85; font-weight: 300;
  margin-bottom: 20px;
}
.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--sand);
  transition: gap .2s;
}
.card:hover .card-link { gap: 14px; }
/* ホバー: 下線演出 */
.card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--sand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover::after { transform: scaleX(1); }


/* サービスカード写真スタイル */
.card-thumb-photo {
  width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative;
}
.card-thumb-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
  display: block;
}
.card:hover .card-thumb-photo img { transform: scale(1.06); }
/* カードホバー下線の z-index 調整 */
.card::after { z-index: 2; }

/* ============================================================
   IMPACT NUMBERS — 砂浜ベージュ帯
   ============================================================ */
#impact {
  background: var(--sand-l);
  padding: 90px 0;
  border-top: 1px solid rgba(201,182,154,.4);
  border-bottom: 1px solid rgba(201,182,154,.4);
}
.impact-inner {
  max-width: 100%; margin: 0 auto; padding: 0 clamp(16px, 5vw, 60px); min-width: 0;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
}
.impact-item {
  padding: 0 40px; border-right: 1px solid rgba(201,182,154,.5);
  text-align: center;
}
.impact-item:first-child { padding-left: 0; }
.impact-item:last-child { border-right: none; padding-right: 0; }
.impact-num {
  font-size: clamp(40px, 5vw, 64px); font-weight: 700; color: var(--ocean);
  line-height: 1; margin-bottom: 8px; letter-spacing: -.02em;
}
.impact-num sup { font-size: .45em; font-weight: 400; vertical-align: super; }
.impact-label { font-size: 13px; color: var(--text-m); letter-spacing: .06em; line-height: 1.5; }
.impact-sub { font-size: 11px; color: var(--text-l); margin-top: 4px; }

/* ============================================================
   TARGETS — 左画像 + 右テキスト (交互レイアウト)
   ============================================================ */
#targets { padding: 100px 0; background: var(--white); }
.target-row {
  max-width: var(--max-w); margin: 0 auto 2px; padding: 0 clamp(20px,5vw,60px);
  display: grid; grid-template-columns: 1fr 1fr; min-height: 380px;
}
.target-row.reverse { direction: rtl; }
.target-row.reverse > * { direction: ltr; }
.target-visual {
  position: relative; overflow: hidden; min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.target-visual-bg {
  position: absolute; inset: 0;
}
.tv1 { background: linear-gradient(145deg, #0e4a58 0%, #1a7a8c 40%, #2aaabf 100%); }
.tv2 { background: linear-gradient(145deg, #162a40 0%, #1e4a6e 40%, #2a6aa0 100%); }
.tv3 { background: linear-gradient(145deg, #24140c 0%, #6b3010 40%, #a05020 100%); }
.tv4 { background: linear-gradient(145deg, #14241c 0%, #1a5c30 40%, #2a8c50 100%); }
.target-visual-emoji {
  position: relative; z-index: 2; font-size: 80px; opacity: .85;
  animation: floatEmoji 6s ease-in-out infinite;
}
@keyframes floatEmoji { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.target-content {
  padding: 60px; display: flex; flex-direction: column; justify-content: center;
  background: var(--gray);
}
.target-row.reverse .target-content { background: var(--white); }
.target-num {
  font-size: 64px; font-weight: 700; color: rgba(0,0,0,.06);
  line-height: 1; margin-bottom: -8px; letter-spacing: -.04em;
}
.target-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ocean); margin-bottom: 14px; display: block;
}
.target-name { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; margin-bottom: 16px; line-height: 1.4; }
.target-desc { font-size: 14px; color: var(--text-m); line-height: 1.9; margin-bottom: 24px; }
.target-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.target-ex {
  font-size: 12px; color: var(--ocean); background: var(--ocean-l);
  padding: 4px 12px; border-radius: 2px; letter-spacing: .04em;
}

/* ============================================================
   CTA BANNER — 全幅フルブラック（日本財団の寄付バナー風）
   ============================================================ */
#cta-full {
  position: relative; overflow: hidden;
  background: var(--deep);
  padding: 100px 0;
}
/* 斜めストライプ装飾 */
#cta-full::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(26,107,124,.12) 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
/* 砂浜色の斜め帯 */
#cta-full::after {
  content: ''; position: absolute; top: 0; right: -60px;
  width: 6px; height: 100%;
  background: var(--sand);
  transform: skewX(-12deg);
}
.cta-full-inner {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px,5vw,60px);
  display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center;
}
.cta-full-en {
  font-size: 10px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 16px; display: block;
}
.cta-full-title {
  font-size: clamp(24px, 3vw, 42px); font-weight: 700; color: var(--white);
  line-height: 1.4; margin-bottom: 16px;
}
.cta-full-text { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.9; font-weight: 300; }
.cta-full-btns { display: flex; flex-direction: column; gap: 14px; min-width: 240px; }
.btn-cta-main {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 36px; background: var(--sand); color: var(--white);
  font-size: 14px; font-weight: 700; letter-spacing: .08em; border-radius: 2px;
  transition: background .25s, transform .2s;
}
.btn-cta-main:hover { background: #b0a085; transform: translateY(-2px); }
.btn-cta-sub {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 36px; border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: .06em;
  border-radius: 2px; transition: border-color .25s, color .25s, transform .2s;
}
.btn-cta-sub:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }

/* ============================================================
   FLOW — タイムライン風（縦線 + ステップ）
   ============================================================ */
#flow { padding: 100px 0; background: var(--white); }
.flow-inner { max-width: 760px; margin: 0 auto; padding: 0 clamp(20px,5vw,60px); }
.flow-steps { position: relative; margin-top: 60px; }
/* 縦線 */
.flow-steps::before {
  content: ''; position: absolute; left: 23px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--ocean), var(--sand));
}
.flow-step {
  display: flex; gap: 36px; padding: 0 0 48px; position: relative;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-circle {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--white); border: 2px solid var(--ocean);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--ocean); position: relative; z-index: 1;
  transition: background .3s, color .3s;
}
.flow-step:hover .flow-circle { background: var(--ocean); color: var(--white); }
.flow-body { padding-top: 8px; }
.flow-step-en {
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 6px; display: block;
}
.flow-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.flow-desc { font-size: 13px; color: var(--text-m); line-height: 1.85; }

/* ============================================================
   CONTACT — 2ペイン
   ============================================================ */
#contact { padding: 100px 0; background: var(--gray); }
.contact-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px,5vw,60px);
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px;
}

/* office-dl */
.contact-info-label { font-size:13px; color:var(--text-l); letter-spacing:.04em; }
.office-dl { margin-top: 8px; }
.office-dl dt {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--text-l);
  text-transform: uppercase; margin-top: 10px;
}
.office-dl dd {
  font-size: 13px; color: var(--text-m); line-height: 1.75; margin: 2px 0 0;
}
.office-dl dd a { color: var(--ocean); }

.contact-tel {
  font-size: clamp(28px, 3vw, 38px); font-weight: 700; color: var(--ocean);
  letter-spacing: -.01em; line-height: 1; margin: 20px 0 8px;
}
.contact-hours { font-size: 12px; color: var(--text-l); letter-spacing: .04em; }
.contact-addr { font-size: 13px; color: var(--text-m); line-height: 1.9; margin-top: 20px; }
.contact-form-box { background: var(--white); padding: 40px; }
.cf-title { font-size: 18px; font-weight: 700; margin-bottom: 28px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-full { grid-column: 1/-1; }
.cf-group { display: flex; flex-direction: column; gap: 5px; }
.cf-label { font-size: 12px; font-weight: 700; color: var(--text); }
.cf-label .req { color: #c00; font-size: 10px; margin-left: 4px; }
.cf-input, .cf-select, .cf-textarea {
  padding: 10px 14px; border: 1px solid var(--border);
  font-size: 14px; font-family: var(--font); color: var(--text);
  background: var(--gray); outline: none; border-radius: 2px;
  transition: border-color .2s, background .2s;
}
.cf-input:focus, .cf-select:focus, .cf-textarea:focus {
  border-color: var(--ocean); background: var(--white);
}
.cf-textarea { min-height: 120px; resize: vertical; }
.cf-check-group { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-check-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; cursor: pointer;
}
.cf-check-label input { accent-color: var(--ocean); }
.cf-submit {
  display: flex; justify-content: flex-end; margin-top: 24px;
}
.btn-submit {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 36px; background: var(--ocean); color: var(--white);
  font-size: 14px; font-weight: 700; letter-spacing: .06em; border: none;
  border-radius: 2px; cursor: pointer; transition: background .25s, transform .2s;
  font-family: var(--font);
}

/* フォームメッセージ */
.form-msg {
  margin-top: 14px; padding: 12px 16px;
  font-size: 13px; line-height: 1.7; border-radius: 2px;
}
.form-msg--ok    { background: #e6f4ea; color: #1e6b30; border: 1px solid #a8d5b5; }
.form-msg--error { background: #fde8e8; color: #b00020; border: 1px solid #f5a8a8; }

.btn-submit:hover { background: var(--ocean-b); transform: translateY(-1px); }


/* 営業所ブロック */
.contact-offices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px;
}
.contact-office { }
.office-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--ocean); text-transform: uppercase;
  margin-bottom: 6px; padding-bottom: 6px;
  border-bottom: 1px solid var(--ocean-l);
}
.contact-company {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
@media (max-width: 480px) {
  .target-row { padding: 0; }
  .contact-offices { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--deep); color: rgba(255,255,255,.6);
  padding: 64px 0 32px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px,5vw,60px);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 40px;
}
.footer-brand-name { font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: .12em; }
.footer-brand-tagline { font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: .08em; margin-top: 4px; }
.footer-nav-group { }
.footer-nav-label { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,.5);
  padding: 4px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 2px;
  transition: color .2s, border-color .2s;
}
.footer-links a:hover { color: var(--white); border-color: rgba(255,255,255,.35); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,.25); }
.footer-policy a { font-size: 11px; color: rgba(255,255,255,.25); margin-left: 16px; transition: color .2s; }
.footer-policy a:hover { color: rgba(255,255,255,.6); }

/* ============================================================
   SP Menu Drawer
   ============================================================ */
.sp-drawer {
  display: none; position: fixed; inset: 0; background: var(--deep); z-index: 300;
  flex-direction: column; padding: 80px 40px 40px; overflow-y: auto;
}
.sp-drawer.open { display: flex; }
.sp-drawer-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--white);
}
.sp-drawer nav { display: flex; flex-direction: column; }
.sp-drawer nav a {
  font-size: 18px; font-weight: 700; color: var(--white);
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  letter-spacing: .06em; display: flex; justify-content: space-between; align-items: center;
}
.sp-drawer nav a::after { content: '→'; color: var(--sand); }
.sp-drawer .sp-cta { margin-top: 32px; padding: 16px 24px; background: var(--ocean); color: var(--white); font-weight: 700; font-size: 15px; text-align: center; letter-spacing: .06em; }

/* ============================================================
   Scroll animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   RESPONSIVE — 完全最適化版
   ============================================================ */
html, body { overflow-x: hidden; max-width: 100%; }
* { box-sizing: border-box; }
#hero { width: 100%; max-width: 100vw; }

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2,1fr); padding: 0 clamp(20px,4vw,40px); }
  .philosophy-inner { gap: 50px; padding: 0 clamp(20px,4vw,40px); }
  .section-header { padding: 0 clamp(20px,4vw,40px); }
  .impact-inner { grid-template-columns: repeat(2,1fr); padding: 0 clamp(20px,4vw,40px); }
  .impact-item { padding: 30px 20px; border-bottom: 1px solid rgba(201,182,154,.5); }
  .impact-item:nth-child(2n) { border-right: none; }
  .impact-item:nth-child(3), .impact-item:nth-child(4) { border-bottom: none; }
  .target-row { padding: 0 clamp(20px,4vw,40px); }
  .target-content { padding: 48px clamp(20px,4vw,40px); }
  .flow-inner, .cta-full-inner, .contact-inner, .footer-inner { padding: 0 clamp(20px,4vw,40px); }
}

@media (max-width: 768px) {
  .header-nav, .header-cta { display: none; }
  .ham-btn { display: flex; }
  #header { padding: 0 20px; }
  #hero { align-items: flex-end; min-height: 100svh; }
  .hero-content { padding: 0 20px 64px !important; width: 100%; max-width: 100%; }
  .hero-title { font-size: clamp(26px,7.5vw,40px) !important; line-height: 1.35; }
  .hero-subtitle { font-size: 13px !important; max-width: 100%; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; padding: 14px 20px; }
  .hero-scroll { display: none; }
  #philosophy { clip-path: polygon(0 0,100% 2%,100% 100%,0 98%); padding: 72px 0; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px !important; }
  #services { padding: 72px 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 20px !important; margin-bottom: 32px; }
  .cards-grid { grid-template-columns: 1fr; padding: 0 20px !important; gap: 16px; }
  .card-thumb-photo { aspect-ratio: 16/9; }
  .card-thumb-emoji { aspect-ratio: 16/9; }
  .card-body { padding: 20px; }
  #impact { padding: 60px 0; }
  .impact-inner { grid-template-columns: repeat(2,1fr); padding: 0 20px !important; }
  .impact-item { padding: 24px 12px; }
  #targets { padding: 72px 0; }
  .target-row { grid-template-columns: 1fr !important; direction: ltr !important; padding: 0 !important; margin-bottom: 20px; }
  .target-row > * { direction: ltr !important; }
  .target-visual { min-height: 240px; }
  .target-content { padding: 32px 20px !important; background: var(--gray) !important; }
  .target-num { font-size: 44px !important; }
  #cta-full { padding: 72px 0; }
  #cta-full::after { display: none; }
  .cta-full-inner { grid-template-columns: 1fr !important; padding: 0 20px !important; gap: 32px; }
  .cta-full-btns { flex-direction: column; gap: 12px; min-width: 0; }
  .btn-cta-main, .btn-cta-sub { width: 100%; }
  #flow { padding: 72px 0; }
  .flow-inner { padding: 0 20px !important; }
  .flow-step { gap: 20px; }
  #contact { padding: 72px 0; }
  #contact > div:first-child { padding: 0 20px !important; }
  .contact-inner { grid-template-columns: 1fr !important; padding: 0 20px !important; gap: 40px; }
  .contact-offices { grid-template-columns: 1fr; gap: 16px; }
  .contact-form-box { padding: 24px 20px; }
  .cf-grid { grid-template-columns: 1fr !important; }
  #footer { padding: 48px 0 24px; }
  .footer-inner { padding: 0 20px !important; }
  .footer-top { flex-direction: column; gap: 28px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(24px,7vw,32px) !important; }
  .impact-inner { grid-template-columns: 1fr !important; }
  .impact-item { border-right: none !important; border-bottom: 1px solid rgba(201,182,154,.5) !important; padding: 20px !important; }
  .impact-item:last-child { border-bottom: none !important; }
  .card-thumb-photo, .card-thumb-emoji { aspect-ratio: 4/3; }
  .flow-circle { width: 40px; height: 40px; font-size: 13px; }
  .flow-steps::before { left: 19px; }
  .contact-form-box { padding: 20px 16px; }
  .btn-submit { width: 100%; justify-content: center; }
}
