/* ============================================================
   WH Creation — site styles
   Design: 静けさの中の力 (quiet confidence)
   Minimal JS, single stylesheet, system + Noto Sans JP.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* color */
  --ink: #232830;            /* headings */
  --body: #49505a;           /* body text */
  --muted: #68727d;          /* secondary text (AA on white) */
  --line: #e7eaee;           /* hairline borders */
  --bg: #ffffff;
  --bg-soft: #f5f6f8;        /* alternating sections */
  --brand: #3f5973;          /* slate blue — primary */
  --brand-deep: #2f4559;
  --brand-ink: #1c2a38;
  --brand-tint: #eef2f6;     /* pale blue tint */
  --cta: #e8590c;            /* orange — single CTA accent */
  --cta-deep: #c94a06;
  --gold: #d9a441;
  --footer: #24303c;

  /* type */
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* rhythm */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;
  --container: 1120px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(28,42,56,.06), 0 2px 8px rgba(28,42,56,.05);
  --shadow-md: 0 8px 24px rgba(28,42,56,.10);
  --shadow-lg: 0 20px 48px rgba(28,42,56,.16);

  --ease: cubic-bezier(.22,.61,.36,1);
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; font-weight: 700; margin: 0 0 var(--sp-2); }
p { margin: 0 0 var(--sp-3); }
ul, ol { margin: 0 0 var(--sp-3); padding-left: 1.4em; }
::selection { background: var(--brand); color: #fff; }

/* ---------- 3. Layout ---------- */
.container { width: min(var(--container), 92vw); margin-inline: auto; }
.section { padding: var(--sp-6) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--brand-tint); }
.section--dark { background: var(--footer); color: #cdd6df; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; letter-spacing: .18em; color: var(--brand);
  text-transform: uppercase; margin-bottom: var(--sp-2);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brand); }
.lead { font-size: 1.08rem; color: var(--muted); }

/* ---------- 4. Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(28,42,56,.06); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: var(--sp-3); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; font-size: .92rem; font-weight: 600;
  color: var(--ink); border-radius: 8px;
}
.nav a:hover { color: var(--brand); background: var(--brand-tint); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.header__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; background: var(--brand); color: #fff;
  font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm);
}
.header__cta:hover { background: var(--brand-deep); color: #fff; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  position: relative; transition: transform .25s, opacity .25s;
}
.nav-toggle span::before { position: absolute; top: -7px; left: 0; }
.nav-toggle span::after { position: absolute; top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--brand:hover { background: var(--brand-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn--cta { background: var(--cta); color: #fff; box-shadow: var(--shadow-sm); }
.btn--cta:hover { background: var(--cta-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-tint); }
.btn--light { background: #fff; color: var(--brand-ink); }
.btn--light:hover { background: #eef2f6; }
.btn--lg { padding: 17px 36px; font-size: 1.05rem; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: min(78vh, 640px); display: flex; align-items: center;
  background: var(--brand-ink);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,28,38,.72) 0%, rgba(18,28,38,.55) 45%, rgba(28,42,56,.86) 100%);
}
.hero__in { position: relative; z-index: 2; padding: var(--sp-6) 0; max-width: 720px; }
.hero__kicker { font-size: .85rem; letter-spacing: .28em; color: rgba(255,255,255,.85); margin-bottom: var(--sp-3); }
.hero h1 {
  color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.25;
  font-weight: 800; letter-spacing: .02em; margin-bottom: var(--sp-3);
}
.hero p { color: rgba(255,255,255,.88); font-size: 1.12rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.hero__stats { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.hero__stats span { color: rgba(255,255,255,.75); font-size: .82rem; }

/* Dynamic hero — animated aurora + particles (no image, always sharp) */
.hero--dynamic {
  background: linear-gradient(135deg, #14222e 0%, #1f3a52 40%, #3f5973 70%, #2f4559 100%);
  background-size: 220% 220%;
  animation: hero-gradient 14s ease-in-out infinite alternate;
}
@keyframes hero-gradient {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
.hero__aurora {
  position: absolute; border-radius: 50%; filter: blur(60px);
  will-change: transform; pointer-events: none;
}
.hero__aurora--1 {
  width: 560px; height: 560px; background: #4f86ad; opacity: .5;
  top: -160px; left: -140px; animation: hero-drift-1 8s ease-in-out infinite alternate;
}
.hero__aurora--2 {
  width: 480px; height: 480px; background: #2f6f92; opacity: .5;
  bottom: -180px; right: -120px; animation: hero-drift-2 10s ease-in-out infinite alternate;
}
.hero__aurora--3 {
  width: 300px; height: 300px; background: #f06a2a; opacity: .3;
  top: 15%; right: 18%; animation: hero-drift-3 12s ease-in-out infinite alternate;
}
@keyframes hero-drift-1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(160px, 120px) scale(1.32); } }
@keyframes hero-drift-2 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-150px, -110px) scale(1.38); } }
@keyframes hero-drift-3 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-120px, 150px) scale(1.28); } }

/* rising particles */
.hero__particle {
  position: absolute; bottom: -12px; border-radius: 50%;
  background: rgba(255,255,255,.32); pointer-events: none;
  animation: hero-rise linear infinite;
}
.hero__particle--1 { left: 10%; width: 7px; height: 7px; animation-duration: 9s; }
.hero__particle--2 { left: 22%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 1.6s; }
.hero__particle--3 { left: 38%; width: 4px; height: 4px; animation-duration: 8s; animation-delay: 3.2s; }
.hero__particle--4 { left: 55%; width: 6px; height: 6px; animation-duration: 13s; animation-delay: .8s; }
.hero__particle--5 { left: 70%; width: 4px; height: 4px; animation-duration: 10s; animation-delay: 2.4s; }
.hero__particle--6 { left: 84%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 4.2s; }
.hero__particle--7 { left: 93%; width: 3px; height: 3px; animation-duration: 9s; animation-delay: 5.4s; }
@keyframes hero-rise {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  12% { opacity: .85; }
  80% { opacity: .35; }
  100% { transform: translateY(-56vh) translateX(28px) scale(.35); opacity: 0; }
}

.hero--dynamic::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 72%);
}
.hero--dynamic::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 78% 12%, transparent 0%, rgba(10,18,26,.5) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero--dynamic, .hero__aurora, .hero__particle { animation: none; }
}

/* ---------- 7. Cards ---------- */
.grid { display: grid; gap: var(--sp-3); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card__tag { align-self: flex-start; font-size: .75rem; font-weight: 700; color: var(--brand); background: var(--brand-tint); padding: 4px 12px; border-radius: 999px; }
.card h3 { font-size: 1.18rem; margin: 0; }
.card p { color: var(--muted); font-size: .94rem; margin: 0; }
.card__link { margin-top: auto; font-weight: 700; font-size: .92rem; }

/* ---------- 8. Section headings ---------- */
.section-head { max-width: 680px; margin-bottom: var(--sp-5); }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: .01em; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- 9. Testimonials ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-3); box-shadow: var(--shadow-sm);
}
.quote__stars { color: var(--gold); letter-spacing: .15em; margin-bottom: var(--sp-2); }
.quote__text { font-size: .96rem; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: var(--sp-2); }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.quote__name { font-weight: 700; color: var(--ink); font-size: .92rem; }

/* video testimonial card */
.video-card { cursor: pointer; }
.video-card .card__media { position: relative; }
.video-card .card__media::after {
  content: ""; position: absolute; inset: 0; background: rgba(15,23,32,.15);
  transition: background .25s;
}
.video-card:hover .card__media::after { background: rgba(15,23,32,.3); }
.video-card__play {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; color: var(--brand); box-shadow: var(--shadow-md);
}
.video-card__play::before { content: ""; width: 0; height: 0; border-left: 18px solid var(--brand); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }

/* ---------- 10. FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq + .faq { margin-top: var(--sp-2); }
.faq__q {
  width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-3); font-size: 1rem; font-weight: 700; color: var(--ink); font-family: inherit;
}
.faq__q::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .25s; }
.faq[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 var(--sp-3) var(--sp-3); color: var(--body); }

/* ---------- 11. Contact band ---------- */
.contact-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3);
}
.contact-tile {
  border-radius: var(--radius); padding: var(--sp-4); text-align: center;
  background: var(--brand); color: #fff; display: flex; flex-direction: column; gap: var(--sp-2); align-items: center;
}
.contact-tile--cta { background: var(--cta); }
.contact-tile__label { font-size: .85rem; letter-spacing: .12em; opacity: .85; }
.contact-tile__value { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; }
.contact-tile__note { font-size: .85rem; opacity: .85; }

/* ---------- 12. Footer ---------- */
.footer { background: var(--footer); color: #aebbc7; padding: var(--sp-5) 0 var(--sp-3); }
.footer a { color: #cdd6df; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.footer__brand img { height: 34px; margin-bottom: var(--sp-2); }
.footer__brand p { font-size: .88rem; color: #8fa0ae; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: var(--sp-2); }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 8px; }
.footer__col a { font-size: .9rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--sp-3);
  display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: space-between;
  font-size: .82rem; color: #8fa0ae;
}
.footer__legal { display: flex; gap: var(--sp-3); }

/* ---------- 13. Utilities / reveal ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: var(--sp-3); }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- 14. Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--brand-ink), var(--brand-deep));
  color: #fff; padding: var(--sp-5) 0;
}
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: var(--sp-2); }
.page-hero p { color: rgba(255,255,255,.82); max-width: 640px; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: var(--sp-3); }
.breadcrumb a { color: rgba(255,255,255,.8); }

/* ---------- 15. Prose (rich text) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: var(--sp-5); }
.prose h3 { font-size: 1.2rem; margin-top: var(--sp-4); }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--brand); background: var(--brand-tint); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink);
}

/* ---------- 15b. Video modal ---------- */
.video-modal {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 4vw;
  background: rgba(12,18,26,.82); backdrop-filter: blur(4px);
}
.video-modal.is-open { display: flex; }
.video-modal__in { position: relative; width: min(920px, 100%); aspect-ratio: 16/9; }
.video-modal__in iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius-lg); background: #000; }
.video-modal__close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 0;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.4rem; line-height: 1;
  border-radius: 50%; cursor: pointer;
}
.video-modal__close:hover { background: rgba(255,255,255,.26); }

/* ---------- 16. Responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .contact-band { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --sp-5: 48px; --sp-6: 64px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: var(--sp-2); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; }
  .hero { min-height: 72vh; }
}
