/* A contemporary home set in greenery conveys both land stewardship and real-estate expertise. */
.hero-image {
  background-image: url('assets/hero-botanical.webp');
  background-position: center;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(12, 34, 28, .80), rgba(16, 47, 37, .48) 58%, rgba(16, 43, 34, .20));
}

.hero-curtain { display: none; }
.gsap-ready .hero-curtain { display: block; position: absolute; z-index: 2; inset: 0; background: var(--ink); clip-path: inset(0); }
.gsap-ready .hero-image,
.gsap-ready .site-header,
.gsap-ready .hero-content > *,
.gsap-ready .scroll { animation: none; }

.hero-image { animation: hero-breathe 18s ease-out both; will-change: transform; }
.site-header { animation: header-enter .9s .15s both; }
.hero-content > * { opacity: 0; animation: hero-copy-enter .9s cubic-bezier(.2,.75,.25,1) forwards; }
.hero-content .eyebrow { animation-delay: .35s; }
.hero-content h1 { animation-delay: .5s; }
.hero-content .hero-copy { animation-delay: .7s; }
.hero-content .text-link { animation-delay: .9s; }
.scroll { opacity: 0; animation: fade-in .8s 1.15s forwards; }

.service-card { overflow: hidden; }
.service-card::before { content: ''; position: absolute; inset: auto 0 0; height: 4px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.75,.25,1); }
.service-card:hover { transform: translateY(-7px); box-shadow: 0 16px 30px rgba(20, 54, 45, .10); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .service-icon { transform: translateY(-4px); transition: transform .35s ease; }

.section-heading .eyebrow::after,
.section-top .eyebrow::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  margin: 0 0 3px 12px;
  vertical-align: middle;
  background: currentColor;
  transition: width .8s cubic-bezier(.2,.75,.25,1);
}

.section:has(.reveal.visible) .eyebrow::after { width: 44px; }

.message-image {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.25s cubic-bezier(.77,0,.18,1);
}

.message.scene-ready .message-image { clip-path: inset(0 0 0 0); }

.flow-list li { transition: background .35s ease, padding-left .35s ease; }
.flow-list li:hover { background: rgba(255,255,255,.55); padding-left: 16px; }

.company-list > div { transition: background .35s ease, padding-left .35s ease; }
.company-list > div:hover { background: var(--pale); padding-left: 14px; }

@keyframes hero-breathe { from { transform: scale(1.11); } to { transform: scale(1.03); } }
@keyframes header-enter { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes hero-copy-enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }

/* Larger type strengthens readability for the core 40–60 audience. */
body { font-size: 16px; }
.site-header { height: 104px; }
.main-nav { font-size: 14px; gap: 30px; }
.eyebrow { font-size: 11px; letter-spacing: 2.2px; }
.hero h1 { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.5; }
.hero-copy { font-size: 17px; line-height: 2.05; }
.text-link { font-size: 13px; }
.section-heading h2, .section-top h2 { font-size: clamp(36px, 3.3vw, 50px); }
.intro .section-heading h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.6; }
.intro-body p { font-size: clamp(13px, 1.1vw, 16px); line-height: 2.1; }
.service-card h3 { font-size: 21px; }
.service-card p, .section-top > p, .message-panel > p:not(.eyebrow) { font-size: 14px; }
.flow-list h3 { font-size: 18px; }
.flow-list p, .company-list > div { font-size: 14px; }

.message-image {
  background-image: url('assets/inheritance-consultation.png');
  background-position: center;
}

footer > a:last-child,
footer > a:last-child:visited {
  color: #526f65;
  text-decoration: none;
}

footer > a:last-child:hover {
  color: var(--green);
}

/* Googleフォームは外部iframeのため、枠・余白のみサイト側で整える。 */
.contact { padding: 92px 20px 76px; }
.contact-inner { max-width: 760px; }
.contact-lead { margin-bottom: 24px; }
.contact-form {
  padding: 26px 30px 28px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  box-shadow: 0 20px 45px rgba(9, 36, 28, .16);
}
.contact-form h3 {
  margin: 0 0 4px;
  font: 600 24px/1.5 var(--serif);
  letter-spacing: .04em;
}
.contact-form-intro { margin: 0 0 14px; color: #587067; font-size: 13px; }
.google-form-embed { min-height: 120px; }
.google-form-frame { display: block; width: 100%; min-height: 860px; border: 0; background: #fff; }
.google-form-status { margin: 0; padding: 28px 16px; color: #587067; text-align: center; background: var(--pale); font-size: 13px; }
.privacy-consent-note { margin: 14px 0 0; font-size: 12px; }
.privacy-consent-note a { color: inherit; text-underline-offset: 3px; }
.footer-privacy { color: inherit; text-decoration: none; }
.footer-privacy:hover { color: var(--green); }

.privacy-page { min-height: 100vh; background: var(--pale); }
.privacy-header { padding: 30px 5.8%; color: var(--ink); background: #fff; }
.privacy-main { max-width: 900px; margin: 0 auto; padding: 90px 7%; }
.privacy-document { padding: clamp(32px, 6vw, 70px); background: #fff; }
.privacy-document h1 { margin: 0 0 30px; font: 600 clamp(30px, 4vw, 46px)/1.45 var(--serif); letter-spacing: .04em; }
.privacy-document h2 { margin: 38px 0 10px; font: 600 20px/1.6 var(--serif); }
.privacy-document p, .privacy-document li { font-size: 14px; line-height: 2; }
.privacy-document ul { padding-left: 1.5em; }
.privacy-updated { color: #72897f; font-size: 12px !important; }

@media (min-width: 781px) {
  .message {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .message-image {
    position: relative;
    inset: auto;
  }

  .message-panel {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    padding: 85px 14%;
    transform: none;
  }
}

@media (max-width: 780px) {
  /* 400px前後の画面で横幅を圧迫しやすい文字要素のみを縮小。 */
  body { font-size: 14px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.8px; }
  .main-nav { font-size: 13px; }
  .hero h1 { font-size: clamp(18px, 6vw, 30px); }
  .hero-image { background-position: 82% center; }
  .hero-copy { font-size: 14px; }
  .text-link, .button-arrow { font-size: 12px; }
  .section-heading h2, .section-top h2 { font-size: clamp(29px, 8vw, 34px); }
  .intro .section-heading h2 { font-size: clamp(17px, 5.6vw, 28px); line-height: 1.6; }
  .intro-body p { font-size: 14px; }
  .section-top > p, .service-card p, .message-panel > p:not(.eyebrow), .flow-list p, .company-list > div { font-size: 12px; }
  .service-card h3, .flow-list h3 { font-size: 16px; }
  .company-list > div { grid-template-columns: 82px 1fr; }
  .contact h2 { font-size: 30px; }
  .contact p { font-size: 12px; }
  .contact-button { font-size: 12px; }
  .contact { padding: 64px 3.5% 44px; }
  .contact-form { padding: 18px 0 8px; }
  .contact-form h3, .contact-form-intro { padding: 0 16px; }
  /* フォーム内の文字はGoogle側の管理のため、広い幅で描画して縮小し、他セクションの文字サイズに近づける。 */
  .google-form-embed { height: 700px; overflow: hidden; }
  .google-form-frame { width: 125%; height: 875px !important; min-height: 0 !important; margin: 0; transform: scale(.8); transform-origin: 0 0; }
  .contact-form h3 { font-size: 20px; }
  .contact-form-intro, .google-form-status, .privacy-consent-note { font-size: 12px; }

  body.menu-open { overflow: hidden; }

  .site-header {
    position: fixed;
    top: 0;
    height: 72px;
    isolation: isolate;
    transition: top .4s ease, left .4s ease, right .4s ease, height .4s ease, border-radius .4s ease, background-color .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
  }

  .site-header.is-scrolled {
    top: 8px;
    left: 8px;
    right: 8px;
    height: 64px;
    border-radius: 16px;
    background: rgba(19, 55, 46, .78);
    box-shadow: 0 6px 24px rgba(8, 28, 22, .14);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
  }

  .site-header.menu-open {
    background: rgba(19, 55, 46, .78);
    box-shadow: 0 6px 24px rgba(8, 28, 22, .14);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
  }

  .menu-button {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    align-items: center;
    transition: background-color .3s ease, border-color .3s ease;
  }

  .menu-button i {
    position: absolute;
    width: 17px;
    transition: transform .45s cubic-bezier(.2,.75,.25,1), opacity .25s ease;
  }

  .menu-button i:first-child { transform: translateY(-4px); }
  .menu-button i:last-child { transform: translateY(4px); }
  .site-header.menu-open .menu-button { background: rgba(255,255,255,.12); border-color: transparent; }
  .site-header.menu-open .menu-button i:first-child { transform: rotate(45deg); }
  .site-header.menu-open .menu-button i:last-child { transform: rotate(-45deg); }

  .main-nav {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    padding: 26px 8% 32px;
    gap: 0;
    background: rgba(19, 55, 46, .96);
    box-shadow: 0 18px 34px rgba(8, 28, 22, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.2,.75,.25,1), visibility .45s;
  }

  .main-nav a {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
    font-size: 14px;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity .35s ease, transform .45s cubic-bezier(.2,.75,.25,1);
  }

  .main-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .site-header.is-scrolled .main-nav.open {
    top: 80px;
    border-radius: 16px;
  }
  .main-nav.open a { opacity: 1; transform: none; }
  .main-nav.open a:nth-child(1) { transition-delay: .08s; }
  .main-nav.open a:nth-child(2) { transition-delay: .13s; }
  .main-nav.open a:nth-child(3) { transition-delay: .18s; }
  .main-nav.open a:nth-child(4) { transition-delay: .23s; }
  .main-nav.open .nav-contact { margin: 20px 0 0; padding: 13px 16px; border: 1px solid rgba(255,255,255,.65); }

  .message-panel h2 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .hero-content > *, .scroll, .reveal { opacity: 1; transform: none; }
}
