/* ==========================================================
   Hapi訪問看護ステーション — modern refresh
   ========================================================== */

/* ----------------------------------------------------------
   ブランドカラー（ロゴの 3 色。ロゴ画像から実測した値そのまま）
   色はここにだけ書き、下では var() で参照する。
   派生色は同じ色相の濃淡だけにする。紫・オレンジなど別の色相は使わない。
   scripts/check-brand-colors.py が PR ごとに検査する。
   ---------------------------------------------------------- */
:root {
  /* 青 */
  --teal: #25afb8;
  --teal-dark: #157a82;
  --teal-light: #4cc7cf;
  --light-teal: #e8f9fd;
  /* 赤 */
  --pink: #c03363;
  --pink-light: #d94e7e;
  --pink-pale: #fdeef3;
  /* 黄。白地の文字には明るすぎるので、文字は --yellow-text を使う */
  --yellow: #e4c227;
  --yellow-light: #ecd04f;
  --yellow-dark: #d4b52a;
  --yellow-text: #b89a10;
  --light-yellow: #fbf7e3;
  --ink: #2b3138;
  --ink-soft: #5a636e;
  --bg: #ffffff;
  --radius: 20px;
  --shadow-sm: 0 2px 12px rgba(43, 49, 56, 0.06);
  --shadow-md: 0 10px 30px rgba(43, 49, 56, 0.1);
  --shadow-lg: 0 24px 60px rgba(43, 49, 56, 0.14);
  --font-jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --font-en: "Quicksand", var(--font-jp);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

html, body { overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3, dt, dd, dl, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.en { font-family: var(--font-en); letter-spacing: 0.06em; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -80px; z-index: 200;
  padding: 10px 18px; background: var(--ink); color: #fff; line-height: 1.4;
  border-radius: 0 0 10px 10px; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.container--narrow { width: min(820px, 92%); }
.center { text-align: center; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43, 49, 56, 0.06);
  transition: box-shadow 0.3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  width: min(1240px, 94%); margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__icon { border-radius: 12px; }
.brand__name {
  display: block; font-family: var(--font-en); font-weight: 700;
  font-size: 1.5rem; line-height: 1.1;
}
.brand__name span { display: inline-block; animation: hueDance 3.6s ease infinite; }
.brand__name span:nth-child(1) { animation-delay: 0.00s; }
.brand__name span:nth-child(2) { animation-delay: 0.12s; }
.brand__name span:nth-child(3) { animation-delay: 0.24s; }
.brand__name span:nth-child(4) { animation-delay: 0.36s; }
.brand__name span:nth-child(5) { animation-delay: 0.48s; }
.brand__name span:nth-child(6) { animation-delay: 0.60s; }
.brand__name span:nth-child(7) { animation-delay: 0.72s; }
.brand__name span:nth-child(8) { animation-delay: 0.84s; }
@keyframes hueDance {
  0%, 100% { color: var(--ink); transform: translateY(0); }
  12% { color: var(--yellow); transform: translateY(-3px); }
  24% { color: var(--teal); transform: translateY(0); }
  36% { color: var(--pink); }
  60% { color: var(--ink); }
}
.brand__sub { display: block; font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.12em; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  display: block; padding: 8px 11px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.88rem;
  transition: background 0.2s, color 0.2s;
}
.nav__list a:hover { background: var(--light-teal); color: var(--teal); }

.header__tel {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff; box-shadow: 0 6px 18px rgba(192, 51, 99, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.header__tel:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(192, 51, 99, 0.45); }
.header__tel .icon { width: 1.5em; height: 1.5em; }
.header__tel-body { line-height: 1.25; }
.header__tel-body strong { font-family: var(--font-en); font-size: 1.05rem; display: block; }
.header__tel-body small { font-size: 0.68rem; opacity: 0.9; }

.menu-btn {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 0; border-radius: 14px;
  background: var(--light-teal); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span {
  width: 20px; height: 2px; background: var(--teal); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 8vw, 90px)) 0 clamp(90px, 11vw, 150px);
  background: linear-gradient(160deg, var(--light-teal) 0%, #fff 55%, var(--light-yellow) 100%);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35;
  animation: drift 14s ease-in-out infinite alternate;
}
.blob--teal { width: 420px; height: 420px; background: var(--teal); top: -120px; left: -100px; }
.blob--pink { width: 360px; height: 360px; background: var(--pink); bottom: -80px; right: 8%; animation-delay: -4s; }
.blob--yellow { width: 300px; height: 300px; background: var(--yellow); top: 20%; right: -80px; animation-delay: -8s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.12); }
}

.hero__inner {
  position: relative; width: min(1180px, 92%); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
  font-size: 0.85rem; font-weight: 700; color: var(--teal);
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 175, 184, 0.5); }
  60% { box-shadow: 0 0 0 8px rgba(37, 175, 184, 0); }
}

.hero__title {
  margin-top: 20px;
  font-size: clamp(1.8rem, 4vw, 2.85rem);
  font-weight: 900; line-height: 1.4; letter-spacing: 0.02em;
}
/* 検索向けに「大阪の訪問看護」を h1 に含める。見た目はキャッチコピーの上の小見出し */
.hero__title-kicker {
  display: block; margin-bottom: 6px;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem); font-weight: 700; letter-spacing: 0.08em;
  color: var(--teal);
}
.hero__title-line { display: block; }
.hero__title em {
  font-style: normal; color: var(--pink);
  background: linear-gradient(transparent 68%, rgba(228, 194, 39, 0.5) 68%);
}

.hero__lead { margin-top: 22px; color: var(--ink-soft); font-size: clamp(0.95rem, 1.4vw, 1.08rem); }
.hero__lead strong { color: var(--pink); font-size: 1.15em; }

.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff; box-shadow: 0 8px 22px rgba(192, 51, 99, 0.35);
}
.btn--primary:hover { box-shadow: 0 12px 28px rgba(192, 51, 99, 0.45); }
.btn--ghost {
  background: #fff; color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--teal);
}
.btn--ghost:hover { background: var(--light-teal); }
.btn--lg { padding: 18px 40px; font-size: 1.2rem; }
/* 例外: Instagram 自身のブランドカラー（Instagram へのリンクだと一目で分かるように） */
.btn--insta {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); /* brand-exception: instagram */
  color: #fff; box-shadow: 0 8px 22px rgba(204, 35, 102, 0.3); /* brand-exception: instagram */
}

.hero__stats {
  margin-top: 40px; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.stat {
  background: rgba(255, 255, 255, 0.85); border-radius: 16px;
  padding: 14px 16px; box-shadow: var(--shadow-sm); text-align: center;
}
.stat dt { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.1em; }
.stat dd { font-family: var(--font-en); font-weight: 700; font-size: 1.3rem; color: var(--teal); line-height: 1.3; }
.stat dd span { font-family: var(--font-jp); font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); display: inline-block; margin-inline: 2px; }

.hero__visual { position: relative; }
.hero__visual > img {
  border-radius: 28px; box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.hero__card {
  position: absolute; left: -18px; bottom: -26px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 18px; padding: 14px 20px;
  box-shadow: var(--shadow-md);
  animation: floaty 4s ease-in-out infinite;
}
.hero__card p { font-size: 0.82rem; line-height: 1.55; color: var(--ink-soft); }
.hero__card strong { color: var(--pink); font-size: 1rem; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero__wave svg { width: 100%; height: clamp(40px, 6vw, 90px); }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section--tint { background: linear-gradient(180deg, var(--light-teal), #fff); }
.section--dark {
  background:
    radial-gradient(600px 300px at 90% -10%, rgba(228, 194, 39, 0.25), transparent),
    radial-gradient(600px 300px at 5% 110%, rgba(192, 51, 99, 0.3), transparent),
    linear-gradient(150deg, var(--teal-dark), var(--teal));
  color: #fff;
}
.section--dark .section__eyebrow { color: var(--yellow); }
.section--dark .section__title { color: #fff; }
.section--dark .section__lead { color: rgba(255, 255, 255, 0.85); }

.section__eyebrow {
  font-weight: 700; font-size: 0.9rem; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.22em; text-align: center;
}
.section__title {
  margin-top: 8px; text-align: center;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; letter-spacing: 0.03em;
}
.marker { background: linear-gradient(transparent 66%, rgba(228, 194, 39, 0.55) 66%); }
.section__lead {
  margin: 22px auto 0; max-width: 760px; text-align: center; color: var(--ink-soft);
}

/* ---------- Cards (features) ---------- */
.cards { margin-top: 48px; display: grid; gap: 22px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: var(--radius); padding: 32px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(43, 49, 56, 0.05);
  text-align: center; transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 24px;
}
.card__icon svg { width: 34px; height: 34px; }
.card__icon--teal { background: var(--light-teal); color: var(--teal); }
.card__icon--pink { background: var(--pink-pale); color: var(--pink); }
.card__icon--yellow { background: var(--light-yellow); color: var(--yellow-text); }
.card h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.55; }
.card p { margin-top: 12px; font-size: 0.88rem; color: var(--ink-soft); text-align: left; }

/* ---------- Services ---------- */
.services {
  margin-top: 48px; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.service {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--teal);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service:nth-child(3n+2) { border-top-color: var(--pink); }
.service:nth-child(3n) { border-top-color: var(--yellow); }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service__icon { width: 38px; height: 38px; color: var(--teal); }
.service:nth-child(3n+2) .service__icon { color: var(--pink); }
.service:nth-child(3n) .service__icon { color: var(--yellow-text); }
.service h3 { margin-top: 14px; font-size: 1.05rem; font-weight: 700; }
.service p { margin-top: 8px; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Philosophy ---------- */
.philosophy { margin-top: 48px; display: grid; gap: 18px; }
.philosophy__item {
  display: flex; align-items: center; gap: 24px;
  background: #fff; border-radius: var(--radius); padding: 26px 30px;
  box-shadow: var(--shadow-sm); border-left: 6px solid var(--teal);
}
.philosophy__item--pink { border-left-color: var(--pink); }
.philosophy__item--yellow { border-left-color: var(--yellow); }
.philosophy__num {
  font-size: 2rem; font-weight: 700; color: rgba(43, 49, 56, 0.14); flex: none;
}
.philosophy__item p { font-size: 1.02rem; }
.philosophy__item strong { color: var(--pink); }

.logo-story {
  margin-top: 64px; display: grid; grid-template-columns: 320px 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
  background: linear-gradient(135deg, var(--light-yellow), #fff);
  border-radius: 28px; padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}
.logo-story__image img { margin: 0 auto; animation: floaty 5s ease-in-out infinite; }
.logo-story__title { font-size: 1.35rem; font-weight: 900; margin-bottom: 14px; }
.logo-story__body p + p { margin-top: 10px; }
.logo-story__body { color: var(--ink-soft); font-size: 0.95rem; }
.text-pink { color: var(--pink); font-weight: 700; }
.text-yellow { color: var(--yellow-text); font-weight: 700; }

/* ---------- Area ---------- */
.area-chips {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.area-chip {
  padding: 10px 26px; border-radius: 999px; font-weight: 700;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.area-chip--main { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.area-chip--etc { background: transparent; border-style: dashed; font-weight: 500; }

.cta-banner {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px; padding: clamp(24px, 4vw, 40px);
}
.cta-banner__text { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 700; }
.cta-banner__text strong { color: var(--yellow); }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; display: grid; gap: 14px; }
.faq__item {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(43, 49, 56, 0.06); overflow: hidden;
}
.faq__item summary {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 52px 20px 22px; cursor: pointer; font-weight: 700;
  list-style: none; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 22px;
  width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(45deg); transition: transform 0.25s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item p {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 0 22px 22px; color: var(--ink-soft);
}
.faq__q, .faq__a {
  flex: none; width: 34px; height: 34px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 700; font-size: 1rem;
}
.faq__q { background: var(--light-teal); color: var(--teal); }
.faq__a { background: var(--pink-pale); color: var(--pink); }

/* ---------- Access ---------- */
.access {
  margin-top: 48px; display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.access__name { font-size: 1.3rem; font-weight: 900; }
.access__list { margin-top: 22px; display: grid; gap: 14px; }
.access__list > div {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px;
  padding-bottom: 14px; border-bottom: 1px dashed rgba(43, 49, 56, 0.15);
}
.access__list dt {
  font-weight: 700; color: var(--teal); font-size: 0.9rem;
  display: flex; align-items: baseline;
}
.access__list dd { color: var(--ink-soft); font-size: 0.95rem; }
.access__list a { font-family: var(--font-en); font-weight: 700; font-size: 1.1rem; }

.access__tabs { margin-top: 26px; display: flex; gap: 10px; }
.access__tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--light-teal); background: #fff;
  font-family: inherit; font-weight: 700; font-size: 0.88rem; color: var(--ink-soft);
  transition: all 0.2s;
}
.access__tab.is-active { border-color: var(--teal); color: var(--teal); background: var(--light-teal); }

.access__maps { position: relative; }
.access__panel {
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1; background: var(--light-teal);
}
.access__panel img, .access__panel iframe {
  width: 100%; height: 100%; object-fit: cover; border: 0; display: block;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink); color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 0; margin-top: 40px;
}
.footer__inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { border-radius: 12px; }
.footer__name { font-weight: 700; font-size: 1.25rem; color: #fff; line-height: 1.2; }
.footer__sub { font-size: 0.75rem; letter-spacing: 0.1em; opacity: 0.75; }
.footer__address { font-style: normal; font-size: 0.85rem; line-height: 1.9; }
.footer__address a { color: var(--yellow); text-decoration: none; font-weight: 700; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; max-width: 340px; }
.footer__nav a {
  color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.85rem;
}
.footer__nav a:hover { color: var(--yellow); }
.footer__copy {
  margin-top: 44px; padding: 18px 0; text-align: center;
  font-size: 0.78rem; opacity: 0.6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Mobile tel FAB ---------- */
.tel-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: none; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(135deg, var(--pink), var(--pink-light)); color: #fff;
  box-shadow: 0 10px 26px rgba(192, 51, 99, 0.45);
  font-size: 0.72rem; font-weight: 700; line-height: 1.35;
}
.tel-fab .icon { width: 1.6em; height: 1.6em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1420px) {
  .header__tel-body small { display: none; }
}

.cards--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .cards--4, .cards--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1280px) {
  :root { --header-h: 64px; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(43, 49, 56, 0.08);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform 0.3s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; padding: 12px 6vw 20px; gap: 0; }
  .nav__list a { padding: 13px 8px; font-size: 1rem; border-bottom: 1px dashed rgba(43, 49, 56, 0.1); border-radius: 0; }

  .header__tel { display: none; }
  .menu-btn { display: flex; }
  .tel-fab { display: flex; }
}

@media (max-width: 840px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 8px; }
  .hero__card { left: 8px; bottom: -18px; padding: 10px 16px; }

  .services { grid-template-columns: 1fr 1fr; }
  .logo-story { grid-template-columns: 1fr; text-align: left; }
  .logo-story__image img { max-width: 240px; }
  .access { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; text-align: left; }
}

@media (max-width: 560px) {
  body { line-height: 1.8; }
  .cards--4, .cards--3 { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 10px 6px; }
  .stat dd { font-size: 1.05rem; }
  .philosophy__item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; }
  .cta-banner { justify-content: center; text-align: center; }
  .footer__copy { padding-bottom: 88px; } /* keep clear of tel FAB */
}

/* ==========================================================
   Subpages
   ========================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(44px, 7vw, 72px)) 0 clamp(40px, 6vw, 64px);
  background: linear-gradient(160deg, var(--light-teal) 0%, #fff 60%, var(--light-yellow) 100%);
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: var(--teal); opacity: 0.12; filter: blur(40px);
}
.page-hero__eyebrow {
  font-weight: 700; font-size: 0.9rem; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.22em;
}
.page-hero__title {
  margin-top: 6px; font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 900; letter-spacing: 0.03em;
}
.page-hero__lead { margin-top: 14px; color: var(--ink-soft); max-width: 720px; }

.breadcrumb { margin-top: 22px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: var(--ink-soft); }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: rgba(43,49,56,0.35); }

.nav__list a[aria-current="page"] { background: var(--light-teal); color: var(--teal); }

/* Steps timeline */
.steps { margin-top: 48px; display: grid; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding-bottom: 40px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 31px; top: 70px; bottom: 8px; width: 2px;
  background: repeating-linear-gradient(var(--teal) 0 6px, transparent 6px 12px);
  opacity: 0.5;
}
.step__num {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff; font-family: var(--font-en); font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 8px 18px rgba(37, 175, 184, 0.35);
}
.step:nth-child(2) .step__num { background: linear-gradient(135deg, var(--pink), var(--pink-light)); box-shadow: 0 8px 18px rgba(192,51,99,0.3); }
.step:nth-child(3) .step__num { background: linear-gradient(135deg, var(--yellow-dark), var(--yellow)); box-shadow: 0 8px 18px rgba(228,194,39,0.35); }

.step__body {
  position: relative; overflow: hidden;
  background: #fff; border-radius: 20px; padding: 22px 26px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(43, 49, 56, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.step:hover .step__body { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* 右上のゴースト番号 */
.step__ghost {
  position: absolute; top: 2px; right: 16px;
  font-weight: 700; font-size: 3.6rem; line-height: 1.2;
  color: rgba(37, 175, 184, 0.12); pointer-events: none;
}
.step:nth-child(2) .step__ghost { color: rgba(192, 51, 99, 0.10); }
.step:nth-child(3) .step__ghost { color: rgba(228, 194, 39, 0.18); }

.step__head { display: flex; align-items: center; gap: 14px; }
.step__icon {
  flex: none; width: 46px; height: 46px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--light-teal); color: var(--teal);
}
.step:nth-child(2) .step__icon { background: var(--pink-pale); color: var(--pink); }
.step:nth-child(3) .step__icon { background: var(--light-yellow); color: var(--yellow-text); }
.step__icon svg { width: 23px; height: 23px; }

.step__body h3 { font-size: 1.15rem; font-weight: 700; }
.step__body p { margin-top: 12px; color: var(--ink-soft); font-size: 0.95rem; }
.step__tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.step__tags li {
  font-size: 0.78rem; font-weight: 700; color: var(--teal);
  background: var(--light-teal); border-radius: 999px; padding: 4px 14px;
}

/* Data tables */
.table-wrap { margin-top: 32px; overflow-x: auto; border-radius: 18px; box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 16px 20px; border-bottom: 1px solid rgba(43,49,56,0.08); text-align: left; vertical-align: top; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table th { background: var(--light-teal); color: var(--ink); font-weight: 700; width: 32%; min-width: 130px; }
.data-table--price td:last-child { text-align: right; font-family: var(--font-en); font-weight: 700; color: var(--pink); white-space: nowrap; }
.data-table caption { caption-side: bottom; padding: 12px; font-size: 0.8rem; color: var(--ink-soft); text-align: left; }

/* Figures */
.figures { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.figures--single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.figure-frame { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); }
.figure-frame img { width: 100%; }
.figure-frame figcaption { padding: 14px 18px; font-size: 0.82rem; color: var(--ink-soft); text-align: center; border-top: 1px solid rgba(43,49,56,0.06); }

/* Partners */
.partners { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.partner {
  display: block; text-decoration: none; color: var(--ink); text-align: center;
  background: #fff; border-radius: var(--radius); padding: 40px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(43,49,56,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.partner__badge {
  width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; color: #fff; font-weight: 700;
  font-size: 0.95rem; line-height: 1.5; padding: 12px; text-align: center;
}
.partner__badge--red { background: linear-gradient(135deg, var(--pink), var(--pink-light)); }
.partner__badge--blue { background: linear-gradient(135deg, var(--teal), var(--teal-light)); }
.partner h3 { font-size: 1.1rem; }
.partner p { margin-top: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.partner__link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--teal); }

/* Notice / checklists */
.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li {
  position: relative; padding: 16px 20px 16px 52px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm);
  color: var(--ink-soft); font-size: 0.95rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--light-teal); color: var(--teal); font-weight: 700;
  display: grid; place-items: center; font-size: 0.8rem;
}
.numbered-list { margin-top: 24px; display: grid; gap: 12px; counter-reset: nl; }
.numbered-list li {
  position: relative; padding: 16px 20px 16px 56px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm);
  color: var(--ink-soft); font-size: 0.95rem; counter-increment: nl;
}
.numbered-list li::before {
  content: counter(nl); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--pink); color: #fff; font-family: var(--font-en); font-weight: 700;
  display: grid; place-items: center; font-size: 0.85rem;
}

/* CTA strip before footer */
.cta-strip {
  background:
    radial-gradient(500px 240px at 90% -20%, rgba(228,194,39,0.3), transparent),
    linear-gradient(140deg, var(--teal-dark), var(--teal));
  color: #fff; text-align: center; padding: clamp(56px, 8vw, 90px) 0;
}
.cta-strip h2 { font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 900; }
.cta-strip p { margin-top: 10px; color: rgba(255,255,255,0.85); }
.cta-strip .btn { margin-top: 26px; }

.section__subtitle {
  margin-top: 56px; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 900;
  display: flex; align-items: center; gap: 14px;
}
.section__subtitle::before {
  content: ""; width: 10px; height: 28px; border-radius: 4px;
  background: linear-gradient(var(--teal), var(--yellow));
}

@media (max-width: 840px) {
  .figures { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
  .step__num { width: 48px; height: 48px; font-size: 1rem; }
  .step:not(:last-child)::after { left: 23px; top: 54px; }
}

/* ---------- Instagram ticker（元サイト風・2段構え） ---------- */
.insta-rows {
  margin-top: 48px; display: grid; gap: 20px;
  width: 100vw; margin-left: calc(50% - 50vw); /* コンテナを突き抜けて全幅で流す */
}
.insta-row { overflow: hidden; }
.insta-row__track {
  display: flex; width: max-content;
  animation: instaFlowLeft var(--dur, 80s) linear infinite;
}
.insta-row--right .insta-row__track { animation-name: instaFlowRight; }
.insta-row:hover .insta-row__track,
.insta-row:focus-within .insta-row__track { animation-play-state: paused; }
@keyframes instaFlowLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes instaFlowRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* カード：白いカードの背後に3色のスプラッシュ（青地+黄の斜め帯+赤の斜め帯） */
.insta-card {
  position: relative; flex: none; display: block;
  padding: 30px 36px 34px; text-decoration: none; color: var(--ink);
  /* 3色の並びをカードごとにローテーション（JSが insta-card--c0/c1/c2 を付与） */
  --sp-top: var(--yellow-light); --sp-mid: var(--teal-light); --sp-btm: var(--pink-light);
}
.insta-card--c1 { --sp-top: var(--pink-light); --sp-mid: var(--yellow-light); --sp-btm: var(--teal-light); }
.insta-card--c2 { --sp-top: var(--teal-light); --sp-mid: var(--pink-light); --sp-btm: var(--yellow-light); }
.insta-card__splash {
  position: absolute; inset: 14px 12px; border-radius: 22px;
  background: var(--sp-mid); overflow: hidden; display: block;
  box-shadow: 0 14px 30px rgba(43, 49, 56, 0.14);
}
.insta-card__splash::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 35%;
  background: var(--sp-top);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
  border-radius: 22px 22px 0 0;
}
.insta-card__splash::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 35%;
  background: var(--sp-btm);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 22px 22px;
}
.insta-card__body {
  position: relative; width: 280px;
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border-radius: 20px; padding: 14px 20px 16px;
  box-shadow: 0 0 1px rgba(0,0,0,.075), 0 0 2px rgba(0,0,0,.075),
              0 0 4px rgba(0,0,0,.075), 0 0 8px rgba(0,0,0,.075), 0 0 16px rgba(0,0,0,.075);
  transition: background 0.5s;
  /* 本家の着地姿勢: 少し下がって -6度 傾く */
  transform-origin: 10% 60%;
  transform: translateY(10px) rotate(-6deg);
}

/* 表示領域に入ったら下からスプリングで飛び出す（本家: y300 → y10 / rotate -6deg） */
@media (prefers-reduced-motion: no-preference) {
  .insta-card__body { transform: translateY(300px); }
  .insta-card.is-in .insta-card__body {
    animation: cardPop 0.8s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
  }
}
@keyframes cardPop {
  0%   { transform: translateY(300px) rotate(0deg); }
  62%  { transform: translateY(-16px) rotate(-7.2deg); }
  82%  { transform: translateY(18px) rotate(-5.4deg); }
  100% { transform: translateY(10px) rotate(-6deg); }
}
.insta-card:hover .insta-card__body { background: #ececec; }
.insta-card__img {
  width: 240px; height: 240px; object-fit: cover;
  transition: transform 0.5s;
}
.insta-card:hover .insta-card__img { transform: scale(0.95); }
.insta-card__desc {
  margin-top: 12px; padding: 12px 4px 0; width: 100%;
  border-top: 0;
  background: linear-gradient(90deg, var(--teal), var(--yellow), var(--pink)) no-repeat top / 100% 3px;
  font-weight: 700; font-size: 0.8rem; line-height: 1.7; color: #000;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(0.8rem * 1.7 * 3 + 12px);
}
.insta-card__pointer {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-bottom: 4px;
  color: var(--pink); font-weight: 700; font-size: 0.9rem;
  animation: movePointer 1s infinite;
}
.insta-card__pointer img { width: 24px; height: 24px; transform: rotate(180deg); }
@keyframes movePointer {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.insta-note {
  margin-top: 14px; text-align: center; font-size: 0.78rem; color: var(--ink-soft); opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .insta-row { overflow-x: auto; }
  .insta-row__track { animation: none !important; }
}

@media (max-width: 560px) {
  .insta-card { padding: 26px 26px 30px; }
  .insta-card__splash { inset: 12px 9px; }
  .insta-card__body { width: 230px; padding: 12px 14px 10px; }
  .insta-card__img { width: 202px; height: 202px; }
}

/* ---------- Partner page ---------- */
.partners2 { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.partner2 {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 24px; overflow: hidden;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(43, 49, 56, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.partner2:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.partner2__visual {
  position: relative; height: 150px;
  display: grid; place-items: center; overflow: hidden;
}
.partner2__visual::before, .partner2__visual::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.partner2__visual::before { width: 150px; height: 150px; top: -60px; left: -40px; }
.partner2__visual::after { width: 190px; height: 190px; bottom: -110px; right: -50px; }
.partner2--red .partner2__visual { background: linear-gradient(135deg, var(--pink-light), var(--pink)); }
.partner2--blue .partner2__visual { background: linear-gradient(135deg, var(--teal-light), var(--teal)); }

.partner2__name {
  position: relative; padding: 34px 24px 0; margin: 0;
  color: #fff; font-weight: 900; font-size: 1.25rem; line-height: 1.5;
  text-align: center; letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s;
}
.partner2:hover .partner2__name { transform: scale(1.04); }

.partner2__tag {
  position: absolute; top: 14px; left: 16px;
  padding: 4px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem; font-weight: 700; color: var(--ink-soft);
}

.partner2__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.partner2__body h3 { font-size: 1.15rem; font-weight: 700; }
.partner2__body p { flex: 1; font-size: 0.88rem; color: var(--ink-soft); }
.partner2__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem; color: var(--teal);
}
.partner2__link .icon { transition: transform 0.3s; }
.partner2:hover .partner2__link .icon { transform: translateX(5px); }

.partner-cta {
  margin-top: 72px; border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
  background: linear-gradient(135deg, var(--light-teal), #fff 55%, var(--light-yellow));
  border: 1px solid rgba(37, 175, 184, 0.2);
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
}
.partner-cta h2 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 900; }
.partner-cta p { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 840px) {
  .partners2 { grid-template-columns: 1fr; }
  .partner-cta { grid-template-columns: 1fr; text-align: center; }
  .partner-cta .btn { justify-self: center; }
}

/* Partner colorways (追加分) */
.partner2--yellow .partner2__visual { background: linear-gradient(135deg, var(--yellow-light), var(--yellow-dark)); }

/* 最終行が1枚だけ余ったときは中央に寄せる（3列表示のときだけ） */
@media (min-width: 841px) {
  .partners2 > .partner2:nth-child(3n+1):last-child { grid-column: 2; }
}

/* ==========================================================
   Rich effects — ブランド3色を活かした演出
   ========================================================== */

/* ヘッダー上端の3色ライン */
.header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--yellow) 50%, var(--pink));
}

/* 色付きセクションは角を大きく丸めて有機的に */
.section--tint, .section--dark, .cta-strip, .footer {
  border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0;
}

/* 対応エリア（ダークセクション）にロゴの白透かし */
.section--dark { position: relative; overflow: hidden; }
.section--dark::before {
  content: ""; position: absolute; right: -70px; bottom: -90px;
  width: 440px; height: 440px; z-index: 0; pointer-events: none;
  background: url("/images/hapilabo_logo-icon.png") center / contain no-repeat;
  filter: brightness(0) invert(1); opacity: 0.08; transform: rotate(-8deg);
}
.section--dark > .container { position: relative; z-index: 1; }

/* サブページのヒーローにもロゴの透かし */
.page-hero::after {
  width: min(300px, 32vw); height: min(300px, 32vw);
  right: 4%; top: 55%;
  background: url("/images/hapilabo_logo.png") center / contain no-repeat;
  filter: none; border-radius: 0; opacity: 0.1;
  transform: translateY(-50%) rotate(-6deg);
}

/* ヒーローのオーロラを強める */
.blob { opacity: 0.42; }
.blob--teal { width: 520px; height: 520px; }
.blob--pink { width: 460px; height: 460px; }

/* ブランド色の浮遊パーティクル */
.pt {
  position: absolute; bottom: -30px; border-radius: 50%;
  opacity: 0; pointer-events: none;
}
.pt--1  { left: 8%;  width: 12px; height: 12px; background: var(--teal); }
.pt--2  { left: 22%; width: 8px;  height: 8px;  background: var(--pink); }
.pt--3  { left: 38%; width: 15px; height: 15px; background: var(--yellow); }
.pt--4  { left: 55%; width: 9px;  height: 9px;  background: var(--teal); }
.pt--5  { left: 68%; width: 13px; height: 13px; background: var(--pink); }
.pt--6  { left: 80%; width: 8px;  height: 8px;  background: var(--yellow); }
.pt--7  { left: 90%; width: 11px; height: 11px; background: var(--teal); }
.pt--8  { left: 47%; width: 7px;  height: 7px;  background: var(--pink); }
.pt--9  { left: 4%;  width: 9px;  height: 9px;  background: var(--yellow); }
.pt--10 { left: 15%; width: 14px; height: 14px; background: var(--pink); }
.pt--11 { left: 30%; width: 6px;  height: 6px;  background: var(--teal); }
.pt--12 { left: 62%; width: 16px; height: 16px; background: var(--yellow); }
.pt--13 { left: 74%; width: 7px;  height: 7px;  background: var(--teal); }
.pt--14 { left: 85%; width: 10px; height: 10px; background: var(--pink); }
.pt--15 { left: 95%; width: 8px;  height: 8px;  background: var(--yellow); }
.pt--16 { left: 51%; width: 12px; height: 12px; background: var(--pink); }

/* 中抜きの輪っかタイプ（泡感アップ） */
.pt--ring { background: transparent !important; border: 2px solid var(--teal); }
.pt--ring.pt--10, .pt--ring.pt--14, .pt--ring.pt--16 { border-color: var(--pink); }
.pt--ring.pt--12, .pt--ring.pt--15 { border-color: var(--yellow); }

/* カードのホバー光沢スイープ */
.card, .partner2 { position: relative; overflow: hidden; }
.card::after, .partner2 .partner2__body::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg); pointer-events: none; transition: left 0.7s ease;
}
.card:hover::after, .partner2:hover .partner2__body::after { left: 140%; }
.partner2__body { position: relative; overflow: hidden; }

/* ---------- 動きは reduced-motion 非設定時のみ ---------- */
@media (prefers-reduced-motion: no-preference) {

  /* パーティクルの浮遊 */
  .pt { animation: floatUp linear infinite; }
  .pt--1 { animation-duration: 11s; animation-delay: -2s; }
  .pt--2 { animation-duration: 14s; animation-delay: -7s; }
  .pt--3 { animation-duration: 10s; animation-delay: -4s; }
  .pt--4 { animation-duration: 16s; animation-delay: -1s; }
  .pt--5 { animation-duration: 12s; animation-delay: -9s; }
  .pt--6 { animation-duration: 15s; animation-delay: -5s; }
  .pt--7 { animation-duration: 11s; animation-delay: -8s; }
  .pt--8 { animation-duration: 13s; animation-delay: -3s; }
  .pt--9  { animation-duration: 17s; animation-delay: -6s; }
  .pt--10 { animation-duration: 12s; animation-delay: -10s; }
  .pt--11 { animation-duration: 15s; animation-delay: -2.5s; }
  .pt--12 { animation-duration: 10s; animation-delay: -7.5s; }
  .pt--13 { animation-duration: 18s; animation-delay: -4.5s; }
  .pt--14 { animation-duration: 12s; animation-delay: -11s; }
  .pt--15 { animation-duration: 14s; animation-delay: -1.5s; }
  .pt--16 { animation-duration: 16s; animation-delay: -9s; }
  @keyframes floatUp {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    8%   { opacity: 0.4; }
    85%  { opacity: 0.25; }
    100% { transform: translateY(-105vh) translateX(24px); opacity: 0; }
  }

  /* ヒーローの読み込み演出：順に立ち上がる */
  .hero__badge,
  .hero__title-kicker,
  .hero__title-line,
  .hero__lead,
  .hero__cta,
  .hero__stats { opacity: 0; animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
  .hero__badge      { animation-delay: 0.05s; }
  .hero__title-kicker { animation-delay: 0.1s; }
  .hero__title-line:nth-child(2) { animation-delay: 0.18s; }
  .hero__title-line:nth-child(3) { animation-delay: 0.32s; }
  .hero__lead       { animation-delay: 0.5s; }
  .hero__cta        { animation-delay: 0.66s; }
  .hero__stats      { animation-delay: 0.82s; }
  @keyframes riseIn {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* 「生き生きと」のマーカーがスッと引かれる */
  .hero__title em {
    background: linear-gradient(transparent 68%, rgba(228, 194, 39, 0.5) 68%) no-repeat 0 0;
    background-size: 0% 100%;
    animation: markerSweep 0.6s ease 1s forwards;
  }
  @keyframes markerSweep { to { background-size: 100% 100%; } }

  /* 写真は右からふわっと */
  .hero__visual { opacity: 0; animation: visualIn 0.9s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
  @keyframes visualIn {
    from { opacity: 0; transform: translateX(36px) rotate(3deg); }
    to   { opacity: 1; transform: translateX(0) rotate(0); }
  }

  /* ヒーローCTAの鼓動 */
  .hero .btn--primary { animation: ctaGlow 3s ease 1.6s infinite; }
  @keyframes ctaGlow {
    0%, 100% { box-shadow: 0 8px 22px rgba(192, 51, 99, 0.35); }
    50% { box-shadow: 0 8px 30px rgba(192, 51, 99, 0.55), 0 0 0 10px rgba(192, 51, 99, 0.07); }
  }
}

/* ==========================================================
   Rich effects 第2弾
   ========================================================== */

/* ブランド色の選択色とフォーカスリング */
::selection { background: rgba(37, 175, 184, 0.25); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ヘッダーの3色ラインは薄めにして、スクロール進捗バーを主役に */
.header::before { opacity: 0.22; }
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  z-index: 130; pointer-events: none;
  background: linear-gradient(90deg, var(--teal), var(--yellow) 50%, var(--pink));
}

/* 上へ戻るボタン（読了リングつき） */
.to-top {
  position: fixed; right: 18px; bottom: 20px; z-index: 95;
  width: 54px; height: 54px; border: 0; border-radius: 50%;
  background: #fff; color: var(--teal); cursor: pointer;
  box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.to-top.is-show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { color: var(--pink); }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top svg circle {
  fill: none; stroke: var(--teal); stroke-width: 3;
  stroke-dasharray: 151; stroke-dashoffset: var(--ring, 151);
  stroke-linecap: round; opacity: 0.9;
}
.to-top .to-top__arrow { position: relative; width: 20px; height: 20px; }
@media (max-width: 1280px) {
  .to-top { right: 16px; bottom: 92px; } /* モバイルは電話ボタンの上に */
}

/* FAQ: 開いたときに答えがふわっと出る */
.faq__item[open] > p { animation: faqOpen 0.35s ease; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  /* ヒーローのマウス追従は背景のオーロラのみ（写真が動くとクリックできると誤解されるため） */
  .blob { translate: calc(var(--mx, 0) * 34px) calc(var(--my, 0) * 24px); }

  /* モバイル電話ボタンの波紋 */
  .tel-fab::before {
    content: ""; position: absolute; inset: 0; border-radius: 999px;
    animation: fabRipple 3.2s ease-out infinite;
  }
  @keyframes fabRipple {
    0%   { box-shadow: 0 0 0 0 rgba(192, 51, 99, 0.45); }
    55%  { box-shadow: 0 0 0 14px rgba(192, 51, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 51, 99, 0); }
  }
}

/* ==========================================================
   Rich effects 第3弾
   ========================================================== */

/* ヒーローにフィルムグレイン（ざらっとした質感） */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
}

/* 波を二重にして、奥の波がゆっくり流れる */
.hero__wave::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px;
  height: clamp(40px, 6vw, 90px); opacity: 0.4; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0,50 Q150,18 300,50 T600,50 T900,50 T1200,50 L1200,90 L0,90 Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 1200px 100%;
}

/* 横から出てくるリビール（未表示のときだけずらす。表示後は必ず定位置） */
@media (prefers-reduced-motion: no-preference) {
  .logo-story.reveal:not(.is-visible) { transform: translateX(-36px); }
  .access__info.reveal:not(.is-visible) { transform: translateX(-30px); }
  .access__maps.reveal:not(.is-visible) { transform: translateX(30px); }
}

/* ヘッダーはスクロールすると少し細くなる */
.header__inner { transition: height 0.3s ease; }
.header.is-scrolled .header__inner { height: calc(var(--header-h) - 12px); }

@media (prefers-reduced-motion: no-preference) {
  /* 奥の波がゆっくり流れ続ける */
  .hero__wave::before { animation: waveDrift 22s linear infinite; }
  @keyframes waveDrift { to { background-position-x: 1200px; } }

  /* 対応エリアのチップがぽんぽんっと順に登場 */
  .area-chips.is-visible .area-chip {
    opacity: 0;
    animation: chipPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  .area-chips.is-visible .area-chip:nth-child(1) { animation-delay: 0.05s; }
  .area-chips.is-visible .area-chip:nth-child(2) { animation-delay: 0.12s; }
  .area-chips.is-visible .area-chip:nth-child(3) { animation-delay: 0.19s; }
  .area-chips.is-visible .area-chip:nth-child(4) { animation-delay: 0.26s; }
  .area-chips.is-visible .area-chip:nth-child(5) { animation-delay: 0.33s; }
  .area-chips.is-visible .area-chip:nth-child(6) { animation-delay: 0.40s; }
  .area-chips.is-visible .area-chip:nth-child(7) { animation-delay: 0.47s; }
  .area-chips.is-visible .area-chip:nth-child(8) { animation-delay: 0.58s; }
  @keyframes chipPop {
    from { opacity: 0; transform: scale(0.6) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
  }

  /* トップの電話バナーに、ゆっくり回る3色の縁取り */
  @property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
  .cta-banner { position: relative; }
  .cta-banner::before {
    content: ""; position: absolute; inset: -2px; border-radius: 26px;
    padding: 2px; pointer-events: none;
    background: conic-gradient(from var(--angle), var(--teal), var(--yellow), var(--pink), var(--teal));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderSpin 8s linear infinite;
  }
  @keyframes borderSpin { to { --angle: 360deg; } }
}

/* ==========================================================
   モバイル最適化（読みやすさ優先）
   ========================================================== */

/* サブページ透かしは必ず本文の下に敷く */
.page-hero::after { z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }

@media (max-width: 560px) {
  /* PC向けの改行はスマホでは解除して自然に折り返す */
  .section__lead br { display: none; }

  /* 小さめだった本文文字をひと回り大きく */
  .card p, .service p, .step__body p, .partner2__body p { font-size: 0.95rem; }
  .check-list li, .numbered-list li { font-size: 0.95rem; }
  .philosophy__item p { font-size: 1rem; }
  .faq__item summary { font-size: 0.98rem; }
  .faq__item p { font-size: 0.95rem; }
  .data-table { font-size: 0.92rem; }
  .data-table th, .data-table td { padding: 12px 14px; }
  .data-table th { width: 30%; min-width: 96px; }
  .access__list dd { font-size: 1rem; }
  .footer__address { font-size: 0.9rem; }
  .footer__nav a { font-size: 0.9rem; padding: 4px 0; display: inline-block; }
  .breadcrumb ol { font-size: 0.85rem; }
  .insta-note { font-size: 0.85rem; }
  .page-hero__lead { font-size: 0.98rem; }

  /* ボタンは全幅にして押しやすく */
  .hero__cta .btn { flex: 1 1 100%; }

  /* 透かしはスマホでは控えめに */
  .page-hero::after { opacity: 0.07; }
}

/* ==========================================================
   近未来リッチ演出
   ========================================================== */

/* ガラス質感（すりガラス）: 実績カード・写真上のカード */
.stat {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.hero__card {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.hero__badge {
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* スクロール進捗バーに未来的なグロー */
.scroll-progress { box-shadow: 0 0 10px rgba(37, 175, 184, 0.55), 0 0 20px rgba(192, 51, 99, 0.25); }

/* セクション見出しの下に、リビール時に伸びる3色ライン */
.section__title { position: relative; padding-bottom: 18px; }
.section__title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--yellow), var(--pink));
}

@media (prefers-reduced-motion: no-preference) {
  /* リビールを「ブラーから実体化」する近未来演出に強化 */
  .reveal {
    filter: blur(7px);
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
  }
  .reveal.is-visible { filter: blur(0); }

  /* 見出し下のラインは0から伸びる */
  .section__title::after { width: 0; transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s; }
  .section__title.is-visible::after,
  .is-visible .section__title::after { width: 56px; }

  /* ヒーローの背景を斜めの光がゆっくり横切る（本文には被らない） */
  .hero__bg::after {
    content: ""; position: absolute; top: -20%; bottom: -20%; left: 0;
    width: 34%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-14deg) translateX(-160%);
    animation: lightSweep 9s ease-in-out infinite;
  }
  @keyframes lightSweep {
    0%, 55%  { transform: skewX(-14deg) translateX(-160%); }
    80%, 100% { transform: skewX(-14deg) translateX(480%); }
  }
}

/* ==========================================================
   スマホ微調整（密着・潰れ対策）
   ========================================================== */

/* FAQ回答の本文は1ブロックとして自然に折り返す */
.faq__body { flex: 1; min-width: 0; }

/* Instagram全幅レイアウト内の注記に左右余白 */
.insta-note { padding-left: 6vw; padding-right: 6vw; }

@media (max-width: 560px) {
  /* 実績カードは縦積みにして、ゆったり読ませる */
  .hero__stats { grid-template-columns: 1fr; gap: 10px; }
  .stat {
    display: flex; align-items: center; justify-content: space-between;
    text-align: left; padding: 12px 20px;
  }
  .stat dt { font-size: 0.8rem; }
  .stat dd { font-size: 1.2rem; }
  .stat dd span { margin-left: 6px; }
}
