:root {
  --tiffany: #49c4c8;
  --tiffany-dark: #24999d;
  --tiffany-deep: #14777b;
  --tiffany-pale: #e8fafa;
  --ink: #253037;
  --muted: #66747a;
  --gray: #f3f7f8;
  --line: #d9e5e7;
  --white: #fff;
  --container: 1160px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif; line-height: 1.9; background: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
ul { margin: 0; padding-left: 1.25em; }

.site-header { position: fixed; top: 0; z-index: 20; width: 100%; height: var(--header-height); background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(19,82,84,.05); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; width: min(var(--container), calc(100% - 40px)); height: 100%; margin: auto; }
.site-logo { display: grid; line-height: 1.15; color: var(--ink); }
.site-logo-small { font-size: 10px; letter-spacing: .08em; }
.site-logo-main { margin-top: 4px; font-size: 23px; font-weight: 700; letter-spacing: .08em; }
.global-nav { display: flex; align-items: center; gap: 18px; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.global-nav a { padding: 8px 0; transition: .2s; }
.global-nav a:hover { color: var(--tiffany-dark); }
.global-nav .nav-contact { padding: 11px 18px; color: #fff; background: linear-gradient(135deg, var(--tiffany), #8adfe2); }
.nav-toggle { display: none; }

.hero { position: relative; display: grid; min-height: 760px; padding: calc(var(--header-height) + 70px) 20px 78px; overflow: hidden; color: #fff; background: url("../images/hero-consultation.webp") 58% center / cover no-repeat; }
.hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,48,51,.84) 0%, rgba(12,48,51,.72) 38%, rgba(12,48,51,.34) 64%, rgba(12,48,51,.10) 100%); content: ""; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 680px); align-items: center; width: min(var(--container), 100%); margin: auto; }
.eyebrow, .num { color: #8ee4e6; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.hero h1 { margin: 18px 0 24px; color: #fff; font-size: 48px; line-height: 1.18; letter-spacing: .03em; white-space: nowrap; }
.hero-lead { max-width: 680px; font-size: 16px; }
.hero-points { display: grid; gap: 7px; margin-top: 22px; padding: 0; list-style: none; font-size: 14px; font-weight: 700; }
.hero-points li::before { margin-right: 9px; color: #9ff0f2; content: "✓"; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 10px 28px; border: 1px solid transparent; font-weight: 700; line-height: 1.45; transition: .2s; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--tiffany-dark), var(--tiffany)); }
.button-primary:hover { filter: brightness(.94); transform: translateY(-1px); }
.hero .button-secondary { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.hero .button-secondary:hover { color: var(--tiffany-deep); background: #fff; }
.button-outline { color: var(--tiffany-deep); border-color: var(--tiffany); background: #fff; }
.button-instagram { color: #fff; background: #34404a; }

.menu-section { padding: 48px 20px; background: var(--gray); }
.menu-box { width: min(820px, 100%); margin: 0 auto; padding: 40px 54px; }
.menu-box h2 { margin: 0 0 22px; color: var(--tiffany-deep); font-size: 24px; line-height: 1.4; }
.menu-icon { margin-right: 8px; color: var(--tiffany-dark); }
.menu-box ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 38px; margin: 0; padding: 0; list-style: none; counter-reset: menu; }
.menu-box li { border-top: 1px solid rgba(36,153,157,.22); counter-increment: menu; }
.menu-box a { display: flex; gap: 12px; padding: 12px 0; color: var(--tiffany-deep); font-size: 16px; font-weight: 700; line-height: 1.55; }
.menu-box a::before { color: var(--tiffany-dark); content: counter(menu, decimal-leading-zero); }

.section { position: relative; padding: 108px 20px; overflow: hidden; }
.section > * { position: relative; z-index: 1; }
.section-heading { width: min(var(--container), 100%); margin: 0 auto 46px; text-align: center; }
.section-en { display: block; color: var(--tiffany-deep); font-size: clamp(56px, 7vw, 90px); font-weight: 400; line-height: .9; letter-spacing: .02em; }
.section-heading h2 { margin-top: 14px; color: var(--tiffany-dark); font-size: clamp(28px, 3vw, 42px); line-height: 1.45; }
.section-lead { width: min(820px, 100%); margin: -12px auto 48px; text-align: center; }

.shg-section::before { position: absolute; top: 152px; left: 0; z-index: 0; width: 68%; height: calc(100% - 190px); min-height: 360px; background: var(--gray); content: ""; }
.shg-section.shg-right::before { right: 0; left: auto; }

/* PBS / PROBLEM */
.problem { z-index: 0; padding-bottom: 106px; background: #fff; }
.problem::before { position: absolute; top: 130px; right: 38px; z-index: 0; width: 1131px; height: 1131px; border: solid 80px var(--tiffany-pale); border-radius: 50%; opacity: .78; pointer-events: none; transform: translateX(50%); content: ""; }
.problem > * { position: relative; z-index: 1; }
.problem-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; text-align: center; }
.problem-wrap h3 { margin-bottom: 28px; font-size: 34px; line-height: 1.5; }
.problem-text { max-width: 650px; margin: 0 auto; text-align: left; font-weight: 700; }
.problem-list { display: inline-grid; gap: 13px; margin: 40px auto 0; padding: 0; text-align: left; font-weight: 700; list-style: none; }
.problem-list li { position: relative; padding-left: 27px; }
.problem-list li::before { position: absolute; top: 0; left: 0; color: var(--tiffany-dark); content: "◆"; }
.problem-list li:nth-child(1) { transition-delay: .05s; }
.problem-list li:nth-child(2) { transition-delay: .10s; }
.problem-list li:nth-child(3) { transition-delay: .15s; }
.problem-list li:nth-child(4) { transition-delay: .20s; }
.problem-list li:nth-child(5) { transition-delay: .25s; }
.problem-list li:nth-child(6) { transition-delay: .30s; }
.problem-list li:nth-child(7) { transition-delay: .35s; }
.problem-list li:nth-child(8) { transition-delay: .40s; }
.problem-arrow { width: 84px; height: 46px; margin: 38px auto 28px; background: linear-gradient(135deg, var(--tiffany-dark), var(--tiffany)); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.problem-message { max-width: 680px; margin: 0 auto; font-size: 23px; font-weight: 700; line-height: 1.65; text-align: left; }

.solution-wrap, .profile-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; width: min(var(--container), 100%); margin: auto; }
.solution-copy h3 { margin-bottom: 24px; color: var(--tiffany-deep); font-size: 28px; line-height: 1.55; }
.solution-copy p + p { margin-top: 16px; }
.solution-highlight { padding: 18px 20px; border-left: 4px solid var(--tiffany); background: #fff; font-weight: 700; }
.solution-graphic { width: min(520px, 100%); margin: auto; }
.solution-graphic img { width: 100%; height: auto; }

.stagger-wrap, .three-wrap, .flow-grid { width: min(var(--container), 100%); margin: 0 auto; }
.service-wrap, .reason-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 58px 42px; }
.stagger-card, .feature-card { position: relative; padding: 0; background: transparent; }
.stagger-card:nth-child(even), .feature-card:nth-child(even) { transform: translateY(34px); }
.card-image { display: block; overflow: hidden; background: var(--gray); }
.stagger-card img, .feature-card img { width: 100%; aspect-ratio: 4 / 3; margin: 12px 0 20px; object-fit: cover; }
.feature-card img { margin-top: 0; }
.stagger-card h3, .feature-card h3 { margin-bottom: 15px; color: var(--tiffany-deep); font-size: 21px; line-height: 1.55; }
.stagger-card ul { display: grid; gap: 5px; padding-left: 1.2em; font-size: 16px; }
.stagger-card .num, .feature-card .num { color: var(--tiffany-dark); }
.feature-card p:last-child { font-size: 16px; }
.service-note { width: min(900px, 100%); margin: 90px auto 0; padding: 26px 30px; background: var(--tiffany-pale); border-left: 4px solid var(--tiffany); }
.service-note h3 { margin-bottom: 8px; color: var(--tiffany-deep); font-size: 19px; }

.before-after { background: #fff; }
.compare-table { width: min(1000px, 100%); margin: 0 auto; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.compare-row { display: grid; grid-template-columns: 1fr 1.12fr; }
.compare-row > div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare-row:nth-child(odd):not(.compare-head) { background: #f9fbfb; }
.compare-head {
  color: #fff;
  background: linear-gradient(
    77deg,
    var(--tiffany-deep),
    #91fcff
  );
  font-weight: 700;
}

.flow { background: var(--gray); }
.flow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.flow-grid article { position: relative; padding: 28px 20px 24px; background: #fff; border-top: 4px solid var(--tiffany); }
.flow-grid article:not(:last-child)::after { position: absolute; top: 50%; right: -18px; z-index: 2; color: var(--tiffany); font-size: 23px; content: "›"; transform: translateY(-50%); }
.flow-grid .num { color: var(--tiffany-dark); }
.flow-grid h3 { margin: 8px 0 11px; color: var(--tiffany-deep); font-size: 18px; line-height: 1.45; }
.flow-grid p:last-child { font-size: 13px; }

.qa { background: #fff; }
.faq-list { width: min(860px, 100%); margin: 0 auto; }
.faq-list details { padding: 20px 0; border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 0 46px 0 42px; color: var(--tiffany-deep); font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { position: absolute; left: 0; color: var(--tiffany-dark); font-size: 20px; content: "Q"; }
.faq-list summary::after { position: absolute; top: 0; right: 8px; color: var(--tiffany-dark); font-size: 24px; content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 16px 42px 0; padding: 18px 20px; background: var(--gray); }

.profile-wrap > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.profile-wrap h3 { margin-bottom: 18px; color: var(--tiffany-deep); font-size: 25px; }
.profile-wrap p + p { margin-top: 14px; }
.office-info { display: grid; grid-template-columns: 190px 1fr; width: min(900px, 100%); margin: 70px auto 0; border-top: 1px solid var(--line); }
.office-info dt, .office-info dd { margin: 0; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.office-info dt { color: var(--tiffany-deep); background: rgba(232,250,250,.6); font-weight: 700; }
.office-info a { text-decoration: underline; text-underline-offset: 3px; }

.contact { background: linear-gradient(135deg, #eefafa 0%, #fff 68%); text-align: center; }
.contact-inner { width: min(850px, 100%); margin: 0 auto; }
.contact-inner > p:first-child { font-size: 17px; }
.contact-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.contact-note { margin-top: 24px; color: var(--muted); font-size: 14px; }

.footer { padding: 58px 20px 145px; color: #fff; background: #153c3f; text-align: center; }
.footer-nav { display: grid; grid-template-columns: repeat(3, max-content); width: fit-content; justify-content: center; gap: 10px 42px; margin: 0 auto 36px; font-size: 13px; text-align: left; }
.footer-nav a { display: block; text-align: left; }
.footer-nav a:hover { color: #a2eff1; }
.copyright { font-size: 12px; line-height: 1.6; }

.fixed-contact { position: fixed; right: 0; bottom: 34%; z-index: 12; display: grid; width: 174px; opacity: 0; visibility: hidden; transition: .25s; }
.fixed-contact.is-visible { opacity: 1; visibility: visible; }
.fixed-contact a { display: grid; gap: 2px; padding: 12px 9px; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.35; text-align: center; }
.fixed-contact span { font-size: 9px; font-weight: 400; letter-spacing: .08em; opacity: .85; }
.fixed-phone { background: #244c50; }.fixed-instagram { background: #3c4750; }.fixed-inquiry { background: linear-gradient(135deg, var(--tiffany-dark), var(--tiffany)); }
.page-top { position: fixed; right: 18px; bottom: 28px; z-index: 15; display: flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--tiffany-deep); font-size: 18px; opacity: 0; pointer-events: none; transition: .3s; }
.page-top.is-show { opacity: 1; pointer-events: auto; }

.js-fadein {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.js-fadein.u-fadein { transform: translateY(24px); }
.js-fadein.u-fadeinUp { transform: translateY(30px); }
.js-fadein.u-fadeinLeft { transform: translateX(-30px); }
.js-fadein.u-fadeinRight { transform: translateX(30px); }

.js-fadein.is-active {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 1020px) {
  .global-nav { gap: 11px; font-size: 11px; }
  .flow-grid { grid-template-columns: repeat(3, 1fr); }
  .flow-grid article:not(:last-child)::after { display: none; }
}

@media (max-width: 767px) {
  :root { --header-height: 64px; }
  .site-header-inner { width: calc(100% - 28px); }
  .site-logo-main { font-size: 19px; }
  .site-logo-small { font-size: 9px; }
  .nav-toggle { display: grid; width: 34px; gap: 6px; padding: 7px 0; border: 0; background: transparent; }
  .nav-toggle span { display: block; height: 2px; background: var(--tiffany-deep); transition: .2s; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .global-nav { position: fixed; top: var(--header-height); left: 0; display: none; width: 100%; max-height: calc(100vh - var(--header-height)); overflow: auto; padding: 26px 20px; background: #fff; border-bottom: 1px solid var(--line); }
  .global-nav.is-open { display: grid; }
  .global-nav .nav-contact { width: fit-content; padding: 10px 16px; }

  .hero { min-height: 660px; padding: calc(var(--header-height) + 42px) 20px 54px; background-position: 60% center; }
  .hero::before { background: linear-gradient(90deg, rgba(12,48,51,.88) 0%, rgba(12,48,51,.72) 58%, rgba(12,48,51,.30) 100%); }
  .hero h1 { font-size: 25px; line-height: 1.2; }
  .hero-lead { font-size: 15px; }
  .hero-buttons { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }

  .menu-section { padding: 48px 20px; }
  .menu-box { padding: 28px 16px; }
  .menu-box h2 { margin-bottom: 16px; font-size: 21px; }
  .menu-box ol { grid-template-columns: 1fr; }
  .menu-box a { padding: 11px 0; font-size: 16px; }

  .section { padding: 76px 20px; }
  .section-heading { margin-bottom: 34px; }
  .section-en { font-size: 52px; }
  .section-heading h2 { font-size: 27px; }
  .section-lead { margin-bottom: 36px; text-align: left; }
  .shg-section::before { top: 98px; width: 88%; height: calc(100% - 148px); min-height: 240px; }

  .problem::before { top: 118px; right: -700px; width: 920px; height: 920px; border-width: 66px; opacity: .65; transform: none; }
  .problem-wrap { padding: 0; }
  .problem-wrap h3 { font-size: 27px; }
  .problem-text { font-size: 16px; }
  .problem-list { gap: 11px; margin-top: 32px; font-size: 16px; }
  .problem-message { font-size: 19px; }
  .problem-arrow { width: 72px; height: 34px; margin: 34px auto 24px; }

  .solution-wrap, .profile-wrap { grid-template-columns: 1fr; gap: 40px; }
  .solution-copy h3 { font-size: 24px; }
  .solution-graphic { max-width: 360px; margin-top: 8px; }

  .service-wrap, .reason-wrap, .flow-grid { grid-template-columns: 1fr; gap: 48px; }
  .stagger-card:nth-child(even), .feature-card:nth-child(even) { transform: none; }
  .service-note { margin-top: 58px; padding: 22px 20px; }

  .compare-table { border: 0; }
  .compare-row { grid-template-columns: 1fr; margin-bottom: 18px; border: 1px solid var(--line); }
  .compare-head { display: none; }
  .compare-row > div { border: 0; }
  .compare-row > div:first-child { background: #edf3f4; font-weight: 700; }
  .compare-row > div:first-child::before { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; content: "BEFORE"; }
  .compare-row > div:last-child { background: #fff; color: var(--tiffany-deep); font-weight: 700; }
  .compare-row > div:last-child::before { display: block; margin-bottom: 4px; color: var(--tiffany-dark); font-size: 11px; content: "AFTER"; }

  .flow-grid article { padding: 24px 20px; }
  .faq-list summary { padding-left: 35px; }
  .faq-list details p { margin: 16px 0 0; }
  .office-info { grid-template-columns: 1fr; margin-top: 48px; }
  .office-info dt { padding-bottom: 4px; border-bottom: 0; }
  .office-info dd { padding-top: 4px; }
  .contact-buttons { display: grid; }

  .footer { padding: 48px 20px 115px; }
  .footer-nav { grid-template-columns: 1fr; width: fit-content; gap: 5px; margin-bottom: 30px; }
  .fixed-contact { right: 0; bottom: 0; width: 100%; grid-template-columns: repeat(3, 1fr); }
  .fixed-contact a { min-width: 0; padding: 9px 5px 8px; font-size: 10px; }
  .fixed-contact span { font-size: 8px; }
  .page-top { right: 12px; bottom: 82px; }
}

@media screen and (max-width: 375px) {
  .hero h1 { font-size: 25px; }
  .section-en { font-size: 47px; }
  .fixed-contact a { font-size: 9px; padding-right: 3px; padding-left: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
