/* =========================================================
   トップページ専用スタイル
   ========================================================= */

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  margin-top: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding: 26px 0;
  background: linear-gradient(135deg, #f5f8f1 0%, #e8efe0 45%, #cfdac0 100%);
  overflow: hidden;
}
.hero::after {
  /* オリーブの葉のような有機的な装飾 */
  content:""; position:absolute; right:-6%; top:-8%; width: 58%; height: 120%;
  background: radial-gradient(closest-side, rgba(143,160,127,.20), transparent 70%);
  border-radius: 50%;
  filter: blur(6px);
}
.hero-inner { position: relative; z-index: 2; flex: 1; align-content: center; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; width:100%; }

.hero-copy .tagline {
  display:inline-block; font-family: var(--serif);
  letter-spacing:.3em; font-size: 15.5px; color: var(--olive-600);
  border-left: 3px solid var(--gold); padding-left: 14px; margin-bottom: 26px;
}
.hero-copy h1 {
  font-size: clamp(31px, 4.6vw, 53px);
  line-height: 1.45; letter-spacing: .04em; color: var(--olive-900);
}
.hero-copy h1 .accent { color: var(--olive-600); }
.hero-copy h1 .mark { background: linear-gradient(transparent 62%, rgba(185,164,122,.30) 62%); }
.hero-copy p.desc { margin: 28px 0 36px; color: var(--ink-soft); font-size: 20px; max-width: 30em; line-height:1.9; }
.hero-actions { display:flex; gap:16px; flex-wrap: wrap; }

.hero-points { display:flex; gap: 26px; margin-top: 36px; }
.hero-points li { display:flex; white-space:nowrap; align-items:center; gap:9px; font-size: 17px; color: var(--olive-700); font-weight: 600; }
.hero-points svg { flex:none; }

/* ヒーロー画像（イラスト風の柔らかいビジュアル） */
.hero-visual { position: relative; }
.hero-visual .photo {
  border-radius: 130px 130px 22px 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: #dbe4cf; display:flex; align-items:center; justify-content:center;
}
.hero-visual .photo svg { width:100%; height:100%; }
.hero-badge {
  position:absolute; left: -26px; bottom: 40px;
  background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 18px 22px; display:flex; align-items:center; gap:14px;
  border:1px solid var(--line);
}
.hero-badge .n { font-family: var(--serif); font-size: 32.5px; color: var(--olive-600); font-weight: 700; line-height: 1; }
.hero-badge .t { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- 共感メッセージ ---------- */
.empathy { text-align:center; }
.empathy h2 { font-size: clamp(25px, 3.2vw, 33px); line-height: 1.7; }
.empathy h2 .soft { color: var(--olive-600); }
.empathy p { margin: 26px auto 0; max-width: 40em; color: var(--ink-soft); }

.worry-list { display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; text-align:left; }
.worry-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.worry-card .q { font-family: var(--serif); color: var(--gold); font-size: 24.5px; }
.worry-card p { margin: 8px 0 0; font-size: 18.5px; color: var(--ink); }

/* ---------- サービス ---------- */
.service-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 36px 34px; box-shadow: var(--shadow-sm); position:relative; overflow:hidden;
  display:flex; flex-direction:column;
}
.service-card::before { content:""; position:absolute; top:0; left:0; width:100%; height:4px; background: linear-gradient(90deg, var(--olive-500), var(--olive-300, #b7c4ab)); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card .num { font-family: var(--serif); font-size: 15.5px; letter-spacing:.2em; color: var(--olive-400); }
.service-card .icon { width:58px; height:58px; margin: 14px 0 18px; color: var(--olive-600); }
.service-card h3 { font-size: 24.5px; letter-spacing:.04em; }
.service-card p { margin: 12px 0 22px; font-size: 18.5px; color: var(--ink-soft); flex:1; }
.service-card .more { font-size: 17.5px; font-weight: 600; color: var(--olive-700); display:inline-flex; align-items:center; gap:8px; }
.service-card:hover .more { gap: 12px; }

/* ---------- 選ばれる理由 ---------- */
.reasons { display:grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.reason { text-align:center; padding: 0 8px; }
.reason .ring {
  width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: #fff; border: 2px solid var(--olive-200); color: var(--olive-600);
  box-shadow: var(--shadow-sm);
}
.reason h3 { font-size: 22.5px; margin-bottom: 12px; }
.reason p { font-size: 18px; color: var(--ink-soft); }

/* ---------- 流れ ---------- */
.flow { max-width: 760px; margin: 0 auto; }
.flow-step { display:flex; gap: 26px; padding-bottom: 38px; position: relative; }
.flow-step:not(:last-child)::before { content:""; position:absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--olive-200); }
.flow-num {
  flex:none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--olive-500); color:#fff; display:flex; align-items:center; justify-content:center;
  font-family: var(--serif); font-size: 22.5px; font-weight:700; box-shadow: var(--shadow-sm);
}
.flow-body h3 { font-size: 21.5px; margin-bottom: 8px; }
.flow-body p { font-size: 18.5px; color: var(--ink-soft); margin: 0; }

/* ---------- 事務所紹介（代表メッセージ） ---------- */
.profile { display:grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items:center; }
.profile-photo {
  border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4/5; background:#e6e6e2; display:flex; align-items:center; justify-content:center;
}
.profile-photo svg { width:100%; height:100%; }
.profile-body .role { font-size: 15.5px; color: var(--olive-500); letter-spacing:.2em; }
.profile-body h2 { font-size: 28.5px; margin: 10px 0 4px; }
.profile-body .name { font-size: 17.5px; color: var(--ink-soft); margin-bottom: 22px; }
.profile-body p { color: var(--ink-soft); font-size: 19px; }
.profile-sign { font-family: var(--serif); font-size: 22.5px; color: var(--olive-800,#5b6650); margin-top: 18px; }

/* ---------- CTA（背景画像＋角丸カード）---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: 52px 0;
  background: url(../images/office.jpg) center/cover no-repeat;
}
.cta-card {
  position: relative; z-index: 1; max-width: 700px; margin: 0 auto;
  background: rgba(250,249,245,.97); border: 1px solid var(--line);
  border-radius: 24px; padding: 40px 44px; box-shadow: var(--shadow-lg);
}
.cta-band .en { letter-spacing:.35em; font-size: 14.5px; color: var(--olive-500); font-family:var(--serif); }
.cta-band h2 { color: var(--olive-900); font-size: clamp(27px, 3.4vw, 37px); margin: 14px 0 10px; }
.cta-band p { color: var(--ink-soft); margin-bottom: 24px; }
.cta-actions { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
.cta-tel { background: var(--olive-600); color:#fff; box-shadow: var(--shadow-sm); }
.cta-tel:hover { background: var(--olive-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cta-band .tel-big { display:block; font-family:var(--serif); font-size: 30px; margin-top: 16px; letter-spacing:.04em; color: var(--olive-800,#5b6650); }
.cta-band .tel-note { font-size: 13px; color: var(--ink-mute); }
@media (max-width:768px){ .cta-band { padding: 40px 0; } .cta-card { padding: 32px 20px; border-radius: 18px; } }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .service-grid { grid-template-columns: 1fr; }
  .worry-list { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; gap: 36px; }
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .profile-photo { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 18px 0 30px; }
  .hero-inner { position: relative; align-content: start; gap: 18px; padding-top: 26px; padding-bottom: 26px; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-copy p.desc { max-width: none; }
  /* スマホ: 写真を枠付きの背景にして、文字をその上に重ねる */
  .hero-visual { position: absolute; top: 70px; left: 22px; right: 22px; height: 220px; z-index: 0; margin: 0; max-width: none; display: block; }
  .hero-visual::before { display: none; }
  .hero-visual .photo { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); background: transparent; border: 1.5px solid rgba(143,160,127,.5); }
  .hero-visual .photo img { object-fit: cover; object-position: center; transform: none; opacity: .22; }
  .hero-scroll { display: none; }
  .hero-points { flex-wrap: wrap; gap: 14px 22px; }
}

/* サービスカード上部の画像枠 */
.service-card .card-img { width:100%; aspect-ratio:16/9; border-radius:12px; margin-bottom:20px; background:#e6e6e2; display:flex; align-items:center; justify-content:center; }

/* ===== ヒーローの上質な演出 ===== */
.hero-brand { z-index: 5; display: flex; align-items: center; gap: 10px; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hero-brand img { width: 40px; height: 40px; }
.hero-brand span { font-family: var(--serif); font-size: 18px; color: var(--olive-900); letter-spacing: .1em; }

.hero-scroll { z-index: 5; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--olive-700); margin-top: 20px; }
.hero-scroll .hs-txt { font-family: var(--serif); font-size: 12px; letter-spacing: .32em; }
.hero-scroll .hs-bar { width: 1.5px; height: 48px; background: rgba(110,125,99,.25); position: relative; overflow: hidden; border-radius: 2px; }
.hero-scroll .hs-bar::after { content:""; position:absolute; left:0; top:-50%; width:100%; height:55%; background: var(--gold); animation: scrollDot 1.9s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes scrollDot { 0%{top:-55%} 65%,100%{top:100%} }

/* 登場アニメーション（スプラッシュ後に再生） */
.hero-brand        { animation: heroUp .8s ease 1.55s both; }
.hero-copy .tagline{ animation: heroUp .8s ease 1.6s both; }
.hero-copy h1      { animation: heroUp .9s ease 1.75s both; }
.hero-copy p.desc  { animation: heroUp .8s ease 1.95s both; }
.hero-actions      { animation: heroUp .8s ease 2.1s both; }
.hero-points       { animation: heroUp .8s ease 2.25s both; }
.hero-visual       { animation: heroFade 1.1s ease 1.8s both; }
.hero-scroll       { animation: heroScrollIn 1s ease 2.5s both; }
@keyframes heroUp { from{opacity:0; transform:translateY(20px)} to{opacity:1; transform:none} }
@keyframes heroFade { from{opacity:0; transform:scale(1.03)} to{opacity:1; transform:none} }
@keyframes heroScrollIn { from{opacity:0} to{opacity:1} }
@media (prefers-reduced-motion: reduce){
  .hero-brand,.hero-copy .tagline,.hero-copy h1,.hero-copy p.desc,.hero-actions,.hero-points,.hero-visual,.hero-scroll{ animation:none; opacity:1; transform:none }
  .hero-scroll{ transform: none; }
}
@media (max-width: 768px){
  .hero-brand{ padding: 0 20px; }
  .hero-brand span{ font-size: 16px; }
}

/* ヒーロー写真の飾り枠（奥行き） */
.hero-visual::before { content:""; position:absolute; right:-16px; bottom:-16px; width:60%; height:56%; border:2px solid rgba(143,160,127,.55); border-radius: 22px; z-index:0; }
.hero-visual .photo { position: relative; z-index: 1; }
@media (max-width:900px){ .hero-visual::before { right:-10px; bottom:-10px; } }


/* PC: ヒーローを1画面に収める */
@media (min-width: 769px) {
  .hero { padding: 16px 0; }
  .hero-copy h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.4; }
  .hero-copy p.desc { margin: 16px 0 22px; font-size: 17px; }
  .hero-points { margin-top: 22px; }
  .hero-visual { display: flex; align-items: center; justify-content: center; }
  .hero-visual::before { display: none; }
  .hero-inner { grid-template-columns: .72fr 1.5fr; gap: 30px; }
  .hero-visual .photo { width: 100%; aspect-ratio: 4 / 3; height: auto; max-height: 84vh; margin: 0; }
}


/* ヒーロー装飾 */
.hero::before {
  content:""; position:absolute; left:-8%; bottom:-12%; width:46%; height:80%;
  background: radial-gradient(closest-side, rgba(185,164,122,.16), transparent 70%);
  filter: blur(8px); z-index:0; pointer-events:none;
}
.hero-seal {
  position:absolute; left:-18px; bottom:38px; z-index:3;
  width:104px; height:104px; border-radius:50%;
  background: var(--gold); color:#fff;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  box-shadow: var(--shadow-md); transform: rotate(-7deg);
  border:2px solid rgba(255,255,255,.65);
}
.hero-seal .hs-top { font-size:13px; letter-spacing:.06em; }
.hero-seal .hs-big { font-family:var(--serif); font-size:25px; font-weight:700; line-height:1; }
.hero-deco { position:absolute; z-index:0; pointer-events:none; }
.hero-deco-1 { top:64px; right:30px; width:122px; color: var(--olive-300, #b7c4ab); opacity:.6; transform: rotate(12deg); }
.hero-deco-2 { left:38px; bottom:84px; width:96px; color: var(--olive-400); opacity:.5; }
@media (max-width: 900px){ .hero-deco-1 { right:10px; top:30px; width:96px; } }
@media (max-width: 768px){ .hero-seal, .hero-deco { display:none; } }


/* ヒーローのオリーブの葉あしらい */
.hero-leaf { position:absolute; z-index:0; pointer-events:none; }
.hero-leaf-1 { top:-26px; left:-26px; width:150px; opacity:.55; transform: rotate(22deg); }
.hero-leaf-2 { top:30px; right:-30px; width:128px; opacity:.5; transform: rotate(-34deg) scaleX(-1); }
.hero-leaf-3 { bottom:-34px; left:24px; width:118px; opacity:.42; transform: rotate(154deg); }
@media (max-width: 768px){ .hero-leaf { display:none; } }

/* =========================================================
   ヒーロー：大きな角丸写真カード＋左下見出し＋右下ボタン
   ========================================================= */
.hero { position: relative; padding: 94px 0 26px; background: #fff; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; }
.hero::after, .hero::before { display: none !important; }

.hero-stage { position: relative; flex: 1 1 auto; height: auto; min-height: 400px; }

/* 写真：左に大きめの余白、右は画面端近くまで。左上を大きな丸みに */
.hero-photo {
  position: absolute; top: 0; bottom: 0;
  left: clamp(28px, 7.2vw, 160px);
  right: clamp(8px, 0.8vw, 18px);
  overflow: hidden;
  border-radius: clamp(130px, 15vw, 240px) 0 0 0;
  box-shadow: 0 18px 44px rgba(74,83,64,.14);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* 画像全体にうっすら白フィルター */
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: rgba(255,255,255,.13);
}

/* 左下から掛かる淡いグリーンの曲線オーバーレイ */
.hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(110% 120% at -4% 112%,
      rgba(150,185,140,.66) 26%,
      rgba(150,185,140,.38) 44%,
      rgba(150,185,140,.14) 56%,
      rgba(150,185,140,0) 66%);
}

/* 文字周りの読みやすさ確保（左下をほんのり白く） */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to right, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 24%, rgba(255,255,255,.14) 46%, rgba(255,255,255,0) 58%),
    radial-gradient(80% 90% at 0% 108%, rgba(255,255,255,.5) 18%, rgba(255,255,255,.2) 42%, rgba(255,255,255,0) 62%);
}

/* テキスト＋ボタンの土台（画面幅いっぱい・下寄せ） */
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding: 0 clamp(30px, 3.2vw, 62px) clamp(30px, 5vh, 54px) clamp(20px, 4.4vw, 96px);
}

.hero-copy { max-width: 60%; }
.hero .hero-copy .hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 5.2vw, 78px);
  line-height: 1.22; letter-spacing: .02em; color: #1b1c19;
}
.hero-title .ttl-seg { display: inline-block; }

.hero .hero-copy .hero-sub {
  margin: 22px 0 0; font-size: clamp(14.5px, 1.3vw, 18.5px);
  line-height: 2.1; color: #26271f; font-weight: 500;
}

/* 右下の縦積みボタン */
.hero-cards { display: flex; flex-direction: column; gap: 18px; width: clamp(250px, 21.5vw, 312px); flex: none; }
.hero-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: none;
  border-radius: 10px; padding: 18px 20px;
  box-shadow: 0 8px 22px rgba(40,50,35,.16);
  font-family: var(--sans); font-size: 17.5px; font-weight: 700; color: #23241f;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-card:hover { transform: translateX(5px); box-shadow: 0 14px 32px rgba(40,50,35,.24); }
.hero-card .hc-ico { color: var(--olive-600); display: flex; flex: none; }
.hero-card .hc-txt { flex: 1; letter-spacing: .04em; }
.hero-card .hc-arrow { color: #6fae62; font-size: 19px; font-weight: 700; transition: transform .25s ease; }
.hero-card:hover .hc-arrow { transform: translateX(4px); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .hero { padding: 86px 0 22px; min-height: auto; display: block; }
  .hero-stage { flex: none; height: clamp(520px, 84vh, 760px); min-height: 0; }
  .hero-photo {
    left: 14px; right: 14px;
    border-radius: 72px 0 0 0;
  }
  .hero-photo::after {
    background:
      radial-gradient(130% 110% at -6% 112%,
        rgba(150,185,140,.66) 30%,
        rgba(150,185,140,.36) 52%,
        rgba(150,185,140,0) 72%);
  }
  .hero-scrim {
    background:
      linear-gradient(to top, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 52%, rgba(255,255,255,0) 86%);
  }
  .hero-content { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 22px; padding: 0 30px 30px; }
  .hero-copy { max-width: 100%; }
  .hero .hero-copy .hero-title { font-size: clamp(40px, 10.5vw, 64px); }
  .hero .hero-copy .hero-sub br { display: none; }
  .hero-cards { width: 100%; gap: 12px; }
  .hero-card { padding: 15px 18px; }
}
@media (max-width: 560px) {
  .hero-photo { left: 10px; right: 10px; border-radius: 56px 0 0 0; }
}

/* ---------- ヒーロー：画像の自動切り替え（クロスフェード） ---------- */
.hero-photo .hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s ease;
  will-change: transform, opacity;
}
.hero-photo .hero-slide.is-active {
  opacity: 1;
  animation: heroKenburns 5.5s ease-out forwards;
}
/* フェードアウト中はズームの最終値を維持（カクつき防止） */
.hero-photo .hero-slide.is-leaving { transform: scale(1.08); }
@keyframes heroKenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo .hero-slide.is-active { animation: none; }
  .hero-photo .hero-slide.is-leaving { transform: none; }
}

/* ---------- ヒーロー下のスクロールインジケーター ---------- */
.hero .hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  width: max-content; margin: 16px auto 0;
  color: var(--olive-700);
}
.hero .hero-scroll .hs-circle {
  display: flex; align-items: center; justify-content: center;
  color: var(--olive-600);
  animation: hsBob 1.8s ease-in-out infinite;
}
.hero .hero-scroll .hs-txt { font-family: var(--serif); font-size: 12px; letter-spacing: .3em; padding-left: .3em; }
@keyframes hsBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .hero .hero-scroll .hs-circle { animation: none; } }
@media (max-width: 768px) {
  .hero .hero-scroll { display: none; }
}
