/* 099 くもまる採用研究所 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f3f8ff;
  --c-navy: #1e3a8a;
  --c-blue: #2563eb;
  --c-sky: #cfe3ff;
  --c-yellow: #ffd84d;
  --c-pink: #ffc2d1;
  --c-deep: #0f1b3d;
  --c-accent-text: #1d4ed8;
  --c-text: #374151;
  --c-sub: #4b5563;
  --font: "M PLUS Rounded 1c", sans-serif;
  --font-pop: "Mochiy Pop One", sans-serif;
  --font-en: "Baloo 2", sans-serif;
  --line: 3px solid var(--c-navy);
  --shadow: 5px 5px 0 var(--c-navy);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.9; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }
.sp { display: inline; }
@media (min-width: 768px) { .sp { display: none; } }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.en { font-family: var(--font-en); font-weight: 700; font-size: 18px; letter-spacing: .12em; color: var(--c-accent-text); }
.sec-title { font-family: var(--font-pop); font-size: clamp(28px, 4vw, 44px); line-height: 1.45; color: var(--c-navy); margin: 4px 0 36px; }
.note { color: var(--c-sub); font-size: 15px; margin-top: 16px; }
p + p { margin-top: 1em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: var(--line); border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; box-shadow: 4px 4px 0 var(--c-navy); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--c-navy); }
.btn--blue { background: var(--c-blue); color: #fff; }
.btn--yellow { background: var(--c-yellow); color: var(--c-navy); }
.btn--white { background: #fff; color: var(--c-navy); }
.btn--lg { min-height: 62px; padding: 0 34px; font-size: 18px; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 10px 10px 0; }
.header__inner { display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 8px 0 14px; max-width: 1280px; margin: 0 auto; background: #fff; border: var(--line); border-radius: 999px; box-shadow: 4px 4px 0 var(--c-navy); }
.logo { display: flex; align-items: center; gap: 6px; min-height: 48px; text-decoration: none; font-family: var(--font-pop); font-size: 16px; color: var(--c-navy); white-space: nowrap; flex: none; }
.logo__mark { width: 40px; height: 30px; flex: none; }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 15px; box-shadow: 3px 3px 0 var(--c-navy); }
@media (max-width: 380px) { .logo { font-size: 14px; } .logo__mark { width: 32px; } .header__btn { padding: 0 12px; } }
@media (min-width: 1080px) {
  .logo { font-size: 19px; }
  .gnav { display: flex; gap: 4px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--c-navy); }
  .gnav a:hover { background: var(--c-sky); }
  .header__btn { margin-left: 8px; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 20px; height: 3px; border-radius: 3px; background: var(--c-navy); position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 10px; right: 10px; top: calc(100% + 8px); background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 20px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; font-weight: 700; color: var(--c-navy); border-bottom: 2px dotted var(--c-sky); }
.spmenu__nav a:last-child { border-bottom: 0; }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== メインビジュアル＋A03 ===== */
.hero__stage { position: relative; height: 100vh; min-height: 620px; overflow: hidden; background: var(--c-bg); }
.hero__photo { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; background: var(--c-sky); border: 0 solid var(--c-navy); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 27, 61, .7) 0%, rgba(15, 27, 61, .25) 50%, rgba(15, 27, 61, 0) 75%); }
.hero__copy { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 56px; color: #fff; }
.hero__tag { display: inline-block; background: #fff; color: var(--c-navy); border: var(--line); border-radius: 999px; padding: 2px 16px; font-weight: 700; font-size: 15px; transform: rotate(-3deg); }
.hero__title { font-family: var(--font-pop); font-size: clamp(44px, 7.6vw, 104px); line-height: 1.25; margin: 14px 0 24px; text-shadow: 4px 4px 0 var(--c-navy); }
.hero__sticker, .hero__after { display: none; }
@media (min-width: 1080px) { .hero__copy { left: 7vw; bottom: 10vh; } }
/* 動く版：縮んだカードの角にシール、下に一行 */
.is-motion .hero__sticker { display: grid; place-content: center; position: absolute; z-index: 3; width: 112px; height: 112px; border-radius: 50%; background: var(--c-yellow); border: var(--line); box-shadow: 4px 4px 0 var(--c-navy); text-align: center; font-weight: 700; line-height: 1.3; color: var(--c-navy); font-size: 16px; }
.is-motion .hero__sticker b { font-family: var(--font-pop); font-size: 26px; font-weight: 400; }
.is-motion .hero__after { display: block; position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 4vh; text-align: center; font-family: var(--font-pop); font-size: clamp(19px, 2.4vw, 28px); color: var(--c-navy); line-height: 1.5; }

/* ===== お悩み ===== */
.worry { padding: 96px 0; }
.bubbles { display: grid; gap: 24px; }
.bubble { position: relative; background: #fff; border: var(--line); border-radius: 32px; box-shadow: var(--shadow); padding: 24px 20px; text-align: center; font-weight: 700; font-size: 18px; color: var(--c-navy); line-height: 1.6; }
.bubble::after { content: ""; position: absolute; left: 32px; bottom: -17px; width: 26px; height: 26px; background: inherit; border-right: var(--line); border-bottom: var(--line); transform: rotate(45deg); }
.bubble--pink { background: var(--c-pink); }
.bubble--sky { background: var(--c-sky); }
.bubble--yellow { background: var(--c-yellow); }
@media (min-width: 768px) { .bubbles { grid-template-columns: repeat(2, 1fr); gap: 36px; } }
@media (min-width: 1080px) { .bubbles { grid-template-columns: repeat(4, 1fr); } .bubble:nth-child(even) { margin-top: 36px; } }

/* ===== くもまるのこと ===== */
.about { padding: 96px 0; background: var(--c-sky); border-block: var(--line); }
.about__inner { display: grid; gap: 32px; align-items: center; }
.about__mascot { width: min(240px, 60vw); margin: 0 auto; }
@media (min-width: 900px) { .about__inner { grid-template-columns: 320px 1fr; gap: 64px; } .about__mascot { width: 300px; } }

/* ===== C03：支援の5ステップ ===== */
.steps { --s-bg: #ffffff; --s-ink: var(--c-navy); --s-sub: var(--c-accent-text); background: var(--s-bg); padding: 96px 0; overflow: hidden; }
.steps__title { color: var(--s-ink); }
.steps__en { color: var(--s-sub); }
.steps__meter { display: none; }
.steps__viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 20px; }
.steps__track { display: flex; gap: 20px; padding: 0 20px; width: max-content; }
.scard { width: min(78vw, 360px); scroll-snap-align: center; background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; color: var(--c-text); }
.scard--sky { background: var(--c-sky); }
.scard--yellow { background: #fff3c4; }
.scard--pink { background: #ffe3ea; }
.scard--navy { background: var(--c-deep); color: #cbd5e1; }
.scard.scard--navy h3 { color: #fff; }
.scard.scard--navy .scard__no { color: var(--c-yellow); }
.scard__no { font-family: var(--font-en); font-weight: 700; font-size: 52px; line-height: 1; color: var(--c-accent-text); }
.scard h3 { font-family: var(--font-pop); font-size: 22px; line-height: 1.5; color: var(--c-navy); margin: 12px 0 10px; }
/* 動く版（PCだけ）：画面を止めて横に流し、背景を白→空色→紺に。見出しと進み具合の色も一緒に変える */
.is-motion-pc .steps { padding: 0; }
.is-motion-pc .steps__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 70px; }
.is-motion-pc .steps__viewport { overflow: visible; scroll-snap-type: none; }
.is-motion-pc .steps__track { padding: 0 7vw; gap: 40px; }
.is-motion-pc .scard { width: 400px; min-height: 340px; }
.is-motion-pc .steps__meter { display: flex; align-items: center; gap: 16px; margin: -16px 0 32px; font-family: var(--font-en); font-weight: 700; font-size: 26px; color: var(--s-ink); }
.is-motion-pc .steps__line { position: relative; width: 240px; height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--s-ink) 25%, transparent); overflow: hidden; }
.is-motion-pc .steps__line i { position: absolute; inset: 0; background: var(--c-yellow); transform-origin: 0 50%; transform: scaleX(.2); }
.steps.is-dark { --s-ink: #ffffff; --s-sub: #cbd5e1; }

/* ===== 事例（scroll-snap） ===== */
.cases { padding: 96px 0; background: var(--c-bg); }
.cases__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.arrows { display: none; gap: 12px; margin-bottom: 36px; }
.js .arrows { display: flex; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: var(--line); background: #fff; box-shadow: 3px 3px 0 var(--c-navy); font-size: 20px; font-weight: 700; color: var(--c-navy); cursor: pointer; font-family: var(--font); }
.cases__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 24px; scroll-padding: 0 20px; }
.cases__track:focus-visible { outline: 3px dashed var(--c-navy); outline-offset: -3px; }
.case { flex: none; width: min(80vw, 380px); scroll-snap-align: start; background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.case img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: var(--line); }
.case__body { padding: 20px 22px 24px; }
.case__who { font-weight: 700; color: var(--c-navy); font-size: 15px; }
.case__ba { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 8px; font-weight: 700; }
.case__ba span { background: #eef2f7; border-radius: 999px; padding: 2px 12px; color: var(--c-sub); }
.case__ba span.is-after { background: var(--c-yellow); color: var(--c-navy); }
.case__ba b { color: var(--c-blue); font-size: 20px; }
@media (min-width: 1080px) { .cases__track { padding-left: max(20px, calc((100vw - 1120px) / 2)); } }

/* ===== 料金 ===== */
.price { padding: 96px 0; background: var(--c-sky); border-block: var(--line); }
.plans { display: grid; gap: 28px; }
.plan { position: relative; background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 24px; }
.plan--main { background: var(--c-yellow); }
.plan__tag { position: absolute; top: -20px; right: 20px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--c-blue); color: #fff; border: var(--line); font-weight: 700; transform: rotate(-8deg); }
.plan h3 { font-family: var(--font-pop); font-size: 22px; color: var(--c-navy); }
.plan__price { font-weight: 700; font-size: 30px; color: var(--c-navy); margin: 8px 0; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* ===== よくある質問 ===== */
.faq { padding: 96px 0; }
.faq__list { display: grid; gap: 16px; max-width: 860px; }
.faq details { background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--c-navy); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 20px; font-weight: 700; color: var(--c-navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c-yellow); font-family: var(--font-en); }
.faq summary::after { content: "+"; margin-left: auto; font-size: 24px; font-family: var(--font-en); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px 66px; }

/* ===== 無料相談 ===== */
.contact { padding: 0 0 96px; }
.contact__box { display: grid; background: var(--c-blue); border: var(--line); border-radius: 32px; box-shadow: 8px 8px 0 var(--c-navy); overflow: hidden; }
.contact__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: var(--line); }
.contact__body { padding: 36px 24px 40px; color: #fff; }
.contact__title { font-family: var(--font-pop); font-size: clamp(28px, 4vw, 44px); line-height: 1.45; margin-bottom: 12px; }
.contact__btns { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 28px; }
.contact__btns .btn--blue { background: var(--c-yellow); color: var(--c-navy); }
@media (min-width: 900px) { .contact__box { grid-template-columns: 1fr 1fr; } .contact__photo { height: 100%; aspect-ratio: auto; border-bottom: 0; border-right: var(--line); } .contact__body { padding: 56px 48px; } }
@media (max-width: 420px) { .contact__btns .btn--lg { font-size: 16px; padding: 0 22px; } }

.footer { background: var(--c-navy); color: #dbe6ff; padding: 56px 20px 32px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-pop); font-size: 24px; color: #fff; margin-bottom: 10px; }
.footer__fiction { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
