/* CoachMe! プロファイル診断 — 共通の土台（色・文字・ボタン・ページ枠） */

:root {
  /* ブランド（体験セッション申込ページに合わせる） */
  --c-white: #ffffff;
  --c-page: #f3fafd;
  --c-pale: #e6f4fb;
  --c-pale-2: #d6eef9;
  --c-line: #cfe8f4;
  --c-line-2: #a9d6ec;
  --c-blue: #0b7fb5;
  --c-blue-ink: #0a6f9f;
  --c-blue-2: #1fa3d8;
  --c-aqua: #47c1e6;
  --c-navy: #1f3a5f;
  --c-text: #2a4565;
  --c-muted: #637a95;
  --c-pink: #f0607f;
  --c-pink-ink: #d9476a;
  --c-pink-soft: #fde6ec;
  --c-marker: #fff09a;
  --c-line-green: #06c755;

  --grad-band: linear-gradient(100deg, #fde4ed 0%, #eef0fa 42%, #cdeffa 78%, #aee7f7 100%);
  --grad-btn: linear-gradient(180deg, #2eaad9 0%, #0b7fb5 100%);
  --grad-sky: linear-gradient(180deg, #e3f3fb 0%, #f3fafd 55%, #ffffff 100%);

  --shadow-card: 0 6px 22px rgba(24, 92, 134, 0.08);
  --shadow-soft: 0 3px 12px rgba(24, 92, 134, 0.07);
  --r-card: 18px;
  --gutter: 18px;

  --ff-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  --ff-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --ff-hand: "Klee One", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --ff-script: "Allura", "Snell Roundhand", cursive;

  /* 4タイプの色（動物の絵に合わせた淡い色） */
  --create: #e2694f;
  --create-ink: #bf4a33;
  --create-mid: #f4b6a6;
  --create-tint: #fcebe5;
  --connect: #f0982f;
  --connect-ink: #b5640c;
  --connect-mid: #f8cb8f;
  --connect-tint: #fdf2e0;
  --harmony: #5aad72;
  --harmony-ink: #2f7c48;
  --harmony-mid: #acd9b6;
  --harmony-tint: #e8f5ea;
  --logic: #4e96d2;
  --logic-ink: #2a6ca6;
  --logic-mid: #a9cdeb;
  --logic-tint: #e4f0fa;

  /* ページごとに上書きされる（結果ページ） */
  --main: var(--c-blue);
  --main-ink: var(--c-blue-ink);
  --main-mid: var(--c-line-2);
  --main-tint: var(--c-pale);
  --sub: var(--c-blue);
  --sub-ink: var(--c-blue-ink);
  --sub-mid: var(--c-line-2);
  --sub-tint: var(--c-pale);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--c-page);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-page);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  /* 改行は build が入れた <wbr>（文節の境目）でだけ起こす。1文節が1行に収まらない時だけ途中で折る */
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  text-wrap: pretty;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

p,
h1,
h2,
h3,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--c-blue-ink);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--c-aqua);
  outline-offset: 3px;
  border-radius: 10px;
}

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

/* ページの枠: スマホは全幅、PCは中央に480px */
.page {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--c-white);
}

@media (min-width: 520px) {
  html,
  body {
    background:
      radial-gradient(1200px 600px at 10% -10%, #fde9f0 0%, rgba(253, 233, 240, 0) 60%),
      radial-gradient(900px 700px at 100% 0%, #d4f0fb 0%, rgba(212, 240, 251, 0) 60%),
      var(--c-page);
    background-attachment: fixed;
  }

  .page {
    box-shadow: 0 0 0 1px rgba(169, 214, 236, 0.35), 0 10px 50px rgba(24, 92, 134, 0.10);
  }
}

/* 見出しの飾り: ＼〜／ の手書き文字 */
.kicker {
  font-family: var(--ff-hand);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--c-navy);
  text-align: center;
}

.brand-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-logo {
  width: 132px;
  height: auto;
}

.script {
  font-family: var(--ff-script);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--c-aqua);
}

/* 強調（コンテンツの [[ ]]）: 淡い黄色のマーカー */
.em {
  font-weight: 700;
  color: var(--c-blue-ink);
  background: linear-gradient(transparent 58%, var(--c-marker) 58%, var(--c-marker) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 1px;
}

/* ボタン */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, background-color 0.2s ease;
  touch-action: manipulation;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 6px 16px rgba(11, 127, 181, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary[disabled] {
  background: #b9cfdc;
  box-shadow: none;
  color: #f4f8fb;
  cursor: not-allowed;
}

.btn-primary[disabled]:active {
  transform: none;
}

.btn-ghost {
  color: var(--c-blue-ink);
  background: #fff;
  border: 1.5px solid var(--c-line-2);
}

.btn-line {
  color: #fff;
  background: var(--c-line-green);
  box-shadow: 0 6px 16px rgba(6, 150, 70, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-arrow {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  flex: none;
}

.btn-arrow svg {
  width: 10px;
  height: 10px;
  margin-left: 2px;
}

/* 下向きの三角（▼）でつなぐ */
.tri {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 12px solid var(--c-aqua);
}

.footer {
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  text-align: center;
}

.footer img {
  width: 92px;
  margin: 0 auto;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
