/* =========================================================
   [屋号] 公式サイト スタイル
   ========================================================= */

:root {
  --navy: #0F2E57;
  --blue: #1F6BD6;
  --mint: #3DDBB4;
  --yellow: #FFE45C;
  --bg: #F3F9FF;
  --white: #FFFFFF;
  --text-sub: #2C4566;
  --muted: #4A5F7A;
  --mint-light: #E3F9F2;
  --pale: #E6EEF8;
  --hilite: #FFF1A6;
  --line-green: #06C755;
  --danger: #C62828;

  --font-round: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
  --font-body: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;

  --container: 1240px;
  --gutter: 40px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-body);
  line-height: 1.8;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3, p { margin: 0; }

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

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- 共通パーツ ---------- */
.eyebrow { font-weight: 700; color: var(--blue); letter-spacing: 0.1em; margin-bottom: 8px; }
.eyebrow--center { text-align: center; }
.eyebrow--yellow { color: var(--yellow); }

.section-title {
  font-family: var(--font-round); font-weight: 900;
  font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.5;
}
.section-title--center { text-align: center; }
.section-lead { color: var(--text-sub); margin-top: 16px; }
.section-lead--center { text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  border: 2px solid var(--navy); box-shadow: 4px 4px 0 var(--navy);
  font: inherit; font-weight: 700; font-size: 17px; line-height: 1.4;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); box-shadow: 2px 2px 0 var(--navy); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { color: var(--navy); }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { color: var(--navy); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; box-shadow: 3px 3px 0 var(--navy); }
.btn--lg { min-height: 60px; padding: 0 30px 0 14px; gap: 12px; }
.btn--with-icon { padding-left: 12px; }
.btn--block { display: flex; width: 100%; padding-block: 12px; }

.btn-icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.btn-icon--white { background: var(--white); }
.btn-icon--line { background: var(--line-green); }
.btn-icon--navy { background: var(--navy); }

/* ボタンを光が横切る演出 */
.shine { position: relative; overflow: hidden; }
.shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: rgba(255, 255, 255, .45); transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite; pointer-events: none;
}
@keyframes shine { 0%, 65% { left: -60%; } 100% { left: 130%; } }

/* ---------- スクロール進捗バー ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 60;
  background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 2px solid var(--navy); }
.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo__mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--blue); border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-round); font-weight: 900; font-size: 18px;
}
.logo__name { font-family: var(--font-round); font-weight: 900; font-size: 20px; }

.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.global-nav a { color: var(--navy); text-decoration: none; font-weight: 700; font-size: 15px; }
.global-nav a:hover { color: var(--blue); }
.global-nav__cta { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px;
  border: 2px solid var(--navy); background: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow-x: clip; }
.hero__blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__blob--mint { width: 520px; height: 520px; background: var(--mint); right: -160px; top: -140px; opacity: .35; }
.hero__blob--yellow { width: 180px; height: 180px; background: var(--yellow); left: -60px; bottom: 40px; }
.hero__inner {
  position: relative; padding-top: 88px; padding-bottom: 96px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center;
}
.hero__badge {
  display: inline-block; margin-bottom: 20px; padding: 6px 16px; border-radius: 999px;
  background: var(--white); border: 2px solid var(--navy); font-weight: 700; font-size: 14px;
}
.hero__title {
  margin-bottom: 24px; font-family: var(--font-round); font-weight: 900;
  font-size: clamp(2.5rem, 1.6rem + 3vw, 3.75rem); line-height: 1.3; letter-spacing: .02em;
}
.hero__lead { margin-bottom: 36px; font-size: 18px; max-width: 520px; color: var(--text-sub); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.marker {
  display: inline-block; color: var(--blue);
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% 40%;
  animation: marker .7s .9s cubic-bezier(.6, 0, .2, 1) both, jump 4s 2s ease-in-out infinite;
}
@keyframes marker { from { background-size: 0% 40%; } to { background-size: 100% 40%; } }
@keyframes jump {
  0%, 80%, 100% { transform: translateY(0) rotate(0); }
  85% { transform: translateY(-12px) rotate(-5deg); }
  90% { transform: translateY(0) rotate(3deg); }
  95% { transform: translateY(-4px) rotate(0); }
}

/* ページ読み込み時の登場 */
.hero-in { animation: heroIn .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-in--2 { animation-delay: .15s; }
.hero-in--3 { animation-delay: .3s; }
.hero-in--4 { animation-delay: .45s; }
.hero-in--5 { animation-delay: .55s; }
@keyframes heroIn { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

/* ヒーローのイラスト */
.hero-art { position: relative; height: 460px; }
.hero-art__ring {
  position: absolute; width: 300px; height: 300px; left: 50%; top: 50%; margin: -150px 0 0 -150px;
  border: 3px dashed var(--blue); border-radius: 50%; opacity: .5;
  animation: spin 24s linear infinite;
}
.hero-art__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-art__lines path {
  fill: none; stroke: var(--blue); stroke-width: 3; stroke-dasharray: 8 6; stroke-linecap: round;
  animation: dash 1.4s linear infinite;
}
.chip {
  position: absolute; padding: 14px 18px; border: 2px solid var(--navy); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--navy); font-weight: 700; font-size: 15px; z-index: 2;
}
.chip--paper { left: 0; top: 10px; background: var(--white); animation: floatA 5s ease-in-out infinite; }
.chip--excel { right: 10px; top: 0; background: var(--yellow); animation: floatB 6s ease-in-out infinite; }
.chip--line { left: 20px; bottom: 30px; background: var(--mint); animation: floatC 7s ease-in-out infinite; }
.hero-screen {
  position: absolute; left: 50%; top: 50%; width: min(280px, 78%); translate: -50% -55%;
  background: var(--white); border: 2px solid var(--navy); border-radius: 20px;
  box-shadow: 6px 6px 0 var(--blue); padding: 20px;
  animation: bob 4s ease-in-out infinite;
}
.hero-screen__title { margin-bottom: 12px; font-family: var(--font-round); font-weight: 900; font-size: 18px; }
.hero-screen__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.hero-screen__list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg); border-radius: 10px; }
.tick { flex: none; transform-origin: center; animation: tick 3.6s ease-out infinite; }
.tick--2 { animation-delay: .4s; }
.tick--3 { animation-delay: .8s; }

@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(5deg); } 50% { transform: translateY(-10px) rotate(8deg); } }
@keyframes floatC { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(1deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -56; } }
@keyframes tick { 0%, 8% { scale: 0; } 16% { scale: 1.4; } 22%, 100% { scale: 1; } }

/* ---------- キーワード帯 ---------- */
.ticker {
  background: var(--navy); color: var(--white); padding: 16px 0;
  transform: rotate(-1.5deg); margin: 0 -40px;
  border-top: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow);
  overflow: hidden;
}
.ticker__track {
  display: flex; width: max-content; gap: 0;
  font-family: var(--font-round); font-weight: 700; font-size: 20px; white-space: nowrap;
  animation: marquee 84s linear infinite;
}
.ticker__group { display: flex; gap: 48px; padding-right: 48px; }
.ticker__dot--y { color: var(--yellow); }
.ticker__dot--m { color: var(--mint); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- お悩み ---------- */
.problems { padding-top: 112px; padding-bottom: 96px; }
.problems .section-title { margin-bottom: 16px; }
.problems__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.problem-card {
  font: inherit; color: var(--navy); text-align: left; cursor: pointer;
  background: var(--white); border: 2px solid var(--navy); border-radius: 18px;
  padding: 24px; min-height: 96px; display: flex; gap: 14px; align-items: center;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.problem-card:hover { transform: translateY(-6px) rotate(-1deg); }
.problem-card[aria-expanded="true"] { background: var(--yellow); box-shadow: 5px 5px 0 var(--navy); }
.problem-card__icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.problem-card:nth-child(odd) .problem-card__icon { background: var(--yellow); }
.problem-card:nth-child(even) .problem-card__icon { background: var(--mint); }
.problem-card__text { flex: 1; font-weight: 500; line-height: 1.6; }
.problem-card__toggle {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--navy); background: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px;
}
.problem-card__toggle::before { content: "＋"; }
.problem-card[aria-expanded="true"] .problem-card__toggle::before { content: "−"; }

.problem-panel {
  margin-top: 32px; background: var(--white); border: 2px solid var(--navy); border-radius: 24px;
  box-shadow: 6px 6px 0 var(--blue); padding: 32px;
  animation: panelIn .45s cubic-bezier(.2, .9, .3, 1.25) both;
}
.problem-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; translate: 0 -20px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
.problem-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.problem-panel__title { font-family: var(--font-round); font-weight: 900; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); line-height: 1.5; }
.problem-panel__close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy); background: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.problem-panel__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.problem-panel__box { border-radius: 18px; padding: 24px; }
.problem-panel__box--before { background: var(--bg); border: 2px dashed var(--muted); }
.problem-panel__box--after { background: var(--mint-light); border: 2px solid var(--navy); }
.pill {
  display: inline-block; margin-bottom: 12px; padding: 2px 14px; border-radius: 999px;
  color: var(--white); font-weight: 700; font-size: 13px;
}
.pill--navy { background: var(--navy); }
.pill--blue { background: var(--blue); }
.tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 14px; border-radius: 999px; background: var(--white); border: 2px solid var(--navy); font-size: 13px; font-weight: 700; }
.problems__closing { margin-top: 48px; text-align: center; font-family: var(--font-round); font-weight: 900; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); }
.problems__closing span { color: var(--blue); }

/* ---------- サービス ---------- */
.services { background: var(--white); border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); }
.services__inner { padding-top: 96px; padding-bottom: 96px; }
.services .section-title { margin-bottom: 48px; }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.service-card {
  background: var(--bg); border: 2px solid var(--navy); border-radius: 22px; padding: 28px;
  transition: transform .2s ease;
}
.service-card:hover { transform: translateY(-6px) rotate(-1deg); }
.service-card--mint { box-shadow: 5px 5px 0 var(--mint); }
.service-card--yellow { box-shadow: 5px 5px 0 var(--yellow); }
.service-card .service-card__num { margin-bottom: 4px; font-family: var(--font-round); font-weight: 900; font-size: 34px; color: var(--blue); line-height: 1.4; }
.service-card h3 { margin-bottom: 10px; font-size: 20px; }
.service-card p { font-size: 15px; color: var(--text-sub); }

/* ---------- やくそく ---------- */
.promises { padding-top: 112px; padding-bottom: 96px; }
.promises .section-title { margin-bottom: 48px; }
.promises__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.promise { text-align: center; padding: 8px; }
.promise__icon {
  width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 28px; border: 2px solid var(--navy);
  box-shadow: 4px 4px 0 var(--navy); display: flex; align-items: center; justify-content: center;
  animation: bob 4s ease-in-out infinite;
}
.promise__icon--blue { background: var(--blue); }
.promise__icon--mint { background: var(--mint); }
.promise__icon--yellow { background: var(--yellow); }
.promise h3 { margin-bottom: 10px; font-size: 21px; }
.promise p { font-size: 15px; color: var(--text-sub); }

/* ---------- 試算ツール ---------- */
.calc { position: relative; background: var(--blue); border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); color: var(--white); overflow: hidden; }
.calc__blob { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--mint); left: -80px; top: -80px; opacity: .5; }
.calc__inner { position: relative; max-width: 1140px; padding-top: 96px; padding-bottom: 96px; }
.calc .section-title span { color: var(--yellow); }
.calc__lead { margin: 16px 0 40px; text-align: center; font-size: 16px; }
.calc__card {
  background: var(--white); color: var(--navy); border: 2px solid var(--navy); border-radius: 24px;
  box-shadow: 6px 6px 0 var(--navy); padding: 32px;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: stretch;
}
.calc__inputs { display: flex; flex-direction: column; gap: 18px; }
.calc__subtitle { font-family: var(--font-round); font-weight: 900; font-size: 19px; }
.calc__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; }
.field input[type="number"] {
  height: 52px; width: 100%; font: inherit; font-size: 22px; font-weight: 700; padding: 0 14px;
  border: 2px solid var(--navy); border-radius: 12px; color: var(--navy); background: var(--white);
}
.field input[type="number"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.range__head { display: flex; justify-content: space-between; align-items: baseline; }
.range__value { font-family: var(--font-round); font-weight: 900; font-size: 26px; color: var(--blue); }
.range input[type="range"] { width: 100%; height: 28px; accent-color: var(--blue); }
.range__scale { display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; color: var(--muted); }

.calc__result { position: relative; background: var(--bg); border: 2px solid var(--navy); border-radius: 20px; padding: 28px; }
.calc__badge {
  position: absolute; right: 20px; top: -18px; padding: 4px 14px; background: var(--yellow);
  border: 2px solid var(--navy); border-radius: 999px; font-weight: 900; font-size: 13px;
  animation: bob 4s ease-in-out infinite;
}
.calc__label { font-weight: 700; }
.calc__big {
  font-family: var(--font-round); font-weight: 900; font-size: clamp(2.5rem, 1.6rem + 3vw, 3.75rem);
  line-height: 1.2; color: var(--blue); overflow-wrap: anywhere;
}
.calc__big small { font-size: 26px; color: var(--navy); }
.calc__stamp {
  display: inline-block; margin: 6px 0 22px; padding: 4px 16px; background: var(--yellow);
  border: 2px solid var(--navy); border-radius: 999px; font-family: var(--font-round); font-weight: 900; font-size: 18px;
  transform: rotate(-2deg);
}
.compare { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.compare__row-head { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.compare__bar { position: relative; height: 26px; border-radius: 999px; border: 2px solid var(--navy); overflow: hidden; }
.compare__bar--now { background: #8FA3BC; }
.compare__bar--after { background: var(--yellow); }
.compare__fill { height: 100%; background: var(--blue); border-right: 2px solid var(--navy); transition: width .6s cubic-bezier(.3, 1.4, .5, 1); }
.compare__saved { position: absolute; right: 12px; top: 0; line-height: 22px; font-size: 12px; font-weight: 900; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--white); border-radius: 14px; padding: 10px 12px; }
.stat__label { font-size: 12px; font-weight: 700; color: var(--muted); }
.stat__value { font-weight: 900; font-size: 17px; }
.stat__value small { font-size: 12px; }
.calc__note { margin-bottom: 16px; font-size: 12px; color: var(--muted); }

/* ---------- ご相談の流れ ---------- */
.flow { padding-top: 112px; padding-bottom: 96px; }
.flow .section-lead { margin-bottom: 48px; }
.flow__wrap { position: relative; padding-top: 64px; }
.flow__track {
  position: absolute; left: 10%; right: 10%; top: 14px; height: 8px;
  background: var(--pale); border: 2px solid var(--navy); border-radius: 999px; overflow: hidden;
}
.flow__fill { height: 100%; width: 0; background: var(--blue); animation: flowfill 6s linear infinite; }
.flow__runner {
  position: absolute; left: 10%; top: 0; width: 38px; height: 38px; margin-left: -19px; z-index: 2;
  border-radius: 50%; background: var(--yellow); border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  animation: flowdot 6s linear infinite;
}
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.step {
  background: var(--white); border: 2px solid var(--navy); border-radius: 18px; padding: 24px 20px;
  text-align: center; box-shadow: 4px 4px 0 var(--navy);
  animation: stepGlow 6s ease-out infinite;
}
.step:nth-child(2) { animation-delay: 1.1s; }
.step:nth-child(3) { animation-delay: 2.2s; }
.step:nth-child(4) { animation-delay: 3.3s; }
.step:nth-child(5) { animation-delay: 4.4s; }
.step__num {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-round); font-weight: 900; font-size: 22px;
}
.step:nth-child(odd) .step__num { background: var(--yellow); }
.step:nth-child(even) .step__num { background: var(--mint); }
.step h3 { margin-bottom: 6px; font-size: 18px; }
.step p { font-size: 14px; color: var(--text-sub); }
@keyframes flowfill { 0% { width: 0; opacity: 1; } 73% { width: 100%; opacity: 1; } 88% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
@keyframes flowdot { 0% { left: 10%; opacity: 0; } 4% { opacity: 1; } 73% { left: 90%; opacity: 1; } 86% { left: 90%; opacity: 0; } 100% { left: 90%; opacity: 0; } }
@keyframes stepGlow {
  0% { background: var(--white); translate: 0 0; }
  5% { background: var(--hilite); translate: 0 -12px; }
  14% { translate: 0 0; }
  40% { background: var(--hilite); }
  52%, 100% { background: var(--white); translate: 0 0; }
}

/* ---------- プロフィール ---------- */
.about { background: var(--white); border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); }
.about__inner {
  max-width: 1100px; padding-top: 96px; padding-bottom: 96px;
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: center;
}
.about__inner:has(> .about__photo[hidden]) { max-width: 780px; grid-template-columns: minmax(0, 1fr); }
.about__photo { position: relative; width: 280px; height: 280px; margin: 0 auto; }
.about__photo-shadow { position: absolute; inset: 0; border-radius: 50%; background: var(--mint); transform: translate(14px, 14px); border: 2px solid var(--navy); }
.about__photo-frame {
  position: absolute; inset: 0; border-radius: 50%; background: var(--bg); border: 2px solid var(--navy);
  overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted);
}
.about__photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.about__name { margin-bottom: 4px; font-family: var(--font-round); font-weight: 900; font-size: clamp(1.875rem, 1.4rem + 1.5vw, 2.25rem); }
.about__role { margin-bottom: 20px; font-weight: 700; color: var(--text-sub); }
.about__text { font-size: 16px; }

/* ---------- 対応エリア ---------- */
.area { padding-top: 96px; padding-bottom: 96px; }
.area__card {
  background: var(--white); border: 2px solid var(--navy); border-radius: 24px; padding: 40px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
}
.area__text { flex: 1 1 280px; }
.area__text .section-title { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); margin-bottom: 12px; }
.area__desc { color: var(--text-sub); }
.area__list { flex: 2 1 420px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area__list li {
  padding: 8px 18px; border-radius: 999px; background: var(--bg); border: 2px solid var(--navy); font-weight: 700;
  animation: chipWave 3.2s ease-in-out infinite;
}
.area__list li:nth-child(2) { animation-delay: .15s; }
.area__list li:nth-child(3) { animation-delay: .3s; }
.area__list li:nth-child(4) { animation-delay: .45s; }
.area__list li:nth-child(5) { animation-delay: .6s; }
@keyframes chipWave { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 -10px; } }

/* ---------- よくある質問 ---------- */
.faq { padding-bottom: 96px; }
.faq .section-title { margin-bottom: 40px; }
.faq__list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq__item { background: var(--white); border: 2px solid var(--navy); border-radius: 18px; overflow: hidden; }
.faq__item[open] { box-shadow: 5px 5px 0 var(--mint); }
.faq__q {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: 17px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q-mark {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-round); font-weight: 900;
}
.faq__q-text { flex: 1; }
.faq__chev { flex: none; transition: transform .25s ease; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 24px 22px 72px; color: var(--text-sub); }

/* ---------- お問い合わせ ---------- */
.contact { position: relative; background: var(--yellow); border-top: 2px solid var(--navy); overflow: hidden; }
.contact__ring {
  position: absolute; width: 220px; height: 220px; right: 40px; top: -60px;
  border: 3px dashed var(--navy); border-radius: 50%; opacity: .25; animation: spin 24s linear infinite;
}
.contact__inner { position: relative; max-width: 1000px; padding-top: 96px; padding-bottom: 96px; }
.contact__title { text-align: center; font-family: var(--font-round); font-weight: 900; font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); line-height: 1.4; }
.contact__lead { margin: 16px 0 40px; text-align: center; font-size: 17px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.form-card {
  margin-top: 56px; background: var(--white); border: 2px solid var(--navy); border-radius: 24px;
  box-shadow: 6px 6px 0 var(--navy); padding: 40px;
}
.form-card__title { font-family: var(--font-round); font-weight: 900; font-size: 24px; margin-bottom: 4px; }
.form-card__lead { color: var(--text-sub); font-size: 15px; margin-bottom: 28px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form__row--full { grid-column: 1 / -1; }
.form__label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.form__req, .form__opt { padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.form__req { background: var(--navy); color: var(--white); }
.form__opt { background: var(--pale); color: var(--navy); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--navy);
  padding: 12px 14px; border: 2px solid var(--navy); border-radius: 12px; background: var(--bg);
}
.form textarea { min-height: 160px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #7D8DA3; }
.form [aria-invalid="true"] { border-color: var(--danger); background: #FFF5F5; }
.form__error { margin-top: 6px; color: var(--danger); font-size: 13px; font-weight: 700; }
.form__error:empty { display: none; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { padding: 0; }
.form__radios { display: flex; flex-wrap: wrap; gap: 10px; }
.form__radio { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 2px solid var(--navy); border-radius: 999px; background: var(--white); cursor: pointer; font-weight: 500; }
.form__radio input { accent-color: var(--blue); width: 18px; height: 18px; }
.form__agree { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.form__agree input { accent-color: var(--blue); width: 20px; height: 20px; margin-top: 4px; flex: none; }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.form__submit .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form__status { text-align: center; font-weight: 700; }
.form__status--ok { color: #1E6B52; }
.form__status--error { color: var(--danger); }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: var(--white); }
.site-footer__inner { padding-top: 48px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer__name { font-family: var(--font-round); font-weight: 900; font-size: 22px; }
.site-footer__tagline { margin-top: 4px; font-size: 14px; color: #C9D8EE; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__copy { width: 100%; font-size: 12px; color: #C9D8EE; }

/* ---------- 文書ページ（プライバシーポリシーなど） ---------- */
.doc { max-width: 820px; padding-top: 72px; padding-bottom: 96px; }
.doc__title { font-family: var(--font-round); font-weight: 900; font-size: clamp(1.875rem, 1.4rem + 1.5vw, 2.5rem); margin-bottom: 24px; }
.doc h2 { font-family: var(--font-round); font-weight: 900; font-size: 20px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text-sub); }
.doc ul { margin: 8px 0 0; padding-left: 1.4em; }
.doc__date { margin: 40px 0 24px; }

/* ---------- スクロールで現れる演出（JS有効時のみ） ---------- */
.js .reveal { opacity: 0; translate: 0 60px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .global-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 2px solid var(--navy);
    padding: 12px var(--gutter) 24px;
    display: none;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--pale); font-size: 17px; }
  .global-nav__cta { display: block; margin-top: 16px; }
  .global-nav__cta .btn { display: flex; width: 100%; padding: 0 28px; font-size: 17px; border-bottom: 2px solid var(--navy); }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; --header-h: 64px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 72px; }
  .hero-art { height: 360px; }
  .hero-screen { width: min(240px, 64%); padding: 16px; }
  .hero-screen__title { font-size: 16px; }
  .chip--paper { top: 0; }
  .chip--line { bottom: 0; }
  .calc__card { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .flow__track, .flow__runner { display: none; }
  .flow__wrap { padding-top: 0; }
  .flow__steps { grid-template-columns: minmax(0, 1fr); }
  .about__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .form-card { padding: 24px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .faq__a { padding-left: 24px; }
  .area__card { padding: 28px; }
  .problems, .promises, .flow { padding-top: 80px; padding-bottom: 72px; }
}

@media (max-width: 420px) {
  .calc__fields { grid-template-columns: minmax(0, 1fr); }
  .chip { font-size: 13px; padding: 10px 14px; }
}

/* 動きを減らす設定の端末ではアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .flow__fill { width: 100%; }
  .flow__runner { display: none; }
  .shine::after { display: none; }
  .js .reveal { opacity: 1; translate: 0 0; }
}
