/* =========================================================
   Base : 変数・リセット・共通UI
========================================================= */

:root {
  /* Color */
  --color-primary: #0C4388;
  --color-primary-dark: #082F63;
  --color-bg: #F4F8FC;
  --color-bg-light: #F7FAFD;
  --color-bg-blue: #EDF5FB;
  --color-white: #FFFFFF;
  --color-text: #20242A;
  --color-text-sub: #2B2F34;
  --color-sub: #DCEAF7;
  --color-sub-light: #E7F1FA;
  --color-accent: #BDD9F0;
  --color-accent-light: #D5E7F5;
  --color-border: rgba(32, 36, 42, 0.12);
  --color-input-border: #D8E0E8;
  --color-error: #C0392B;

  /* Font */
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  /* 見出し：英数字は Outfit、日本語は Zen Kaku Gothic New */
  --font-heading: "Outfit", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

  /* Layout */
  --container-max: 1280px;
  --gutter: 56px;
  --section-space: 120px;
  --header-height: 88px;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.8, 0.35, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 0.3s;
}

@media (max-width: 1080px) {
  :root {
    --gutter: 32px;
    --header-height: 72px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --section-space: 80px;
    --header-height: 64px;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--color-bg-light);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Button (ピル型) ----------
   文字は常に中央。矢印は右端の小さな丸の中に置く */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding-inline: 64px;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  transform: none;
}

.btn__arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  padding: 10px;
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--duration) var(--ease),
              background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ネイビー：ごく淡いグラデーションと柔らかい影 */
.btn--primary {
  background: linear-gradient(135deg, #1656A6 0%, var(--color-primary) 45%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  box-shadow: 0 12px 24px -12px rgba(8, 47, 99, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn--primary .btn__arrow {
  background: rgba(255, 255, 255, 0.16);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #124B91 0%, var(--color-primary-dark) 70%);
  box-shadow: 0 16px 28px -12px rgba(8, 47, 99, 0.65),
              inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn--primary:hover .btn__arrow {
  background: var(--color-white);
  color: var(--color-primary);
}

/* 白地＋ネイビー枠：薄い影で少し浮かせる */
.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 10px 22px -14px rgba(12, 67, 136, 0.45);
}

.btn--secondary .btn__arrow {
  background: var(--color-sub-light);
}

.btn--secondary:hover {
  background: var(--color-bg-light);
  box-shadow: 0 14px 26px -14px rgba(12, 67, 136, 0.5);
}

.btn--secondary:hover .btn__arrow {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ネイビー背景の上で使う白ボタン */
.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.4);
}

.btn--white .btn__arrow {
  background: var(--color-sub-light);
}

.btn--white:hover .btn__arrow {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ネイビー背景の上で使う、白枠のボタン */
.btn--outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.btn--outline-white .btn__arrow {
  background: rgba(255, 255, 255, 0.14);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--outline-white:hover .btn__arrow {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ---------- Section label (小さな英字の見出し) ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--color-primary);
}

.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ---------- Text link (矢印付きテキストリンク) ---------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--color-primary);
}

.text-link__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-primary);
  border-radius: 9999px;
  background: var(--color-primary);
  color: var(--color-white);
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.text-link__icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--duration) var(--ease);
}

.text-link:hover .text-link__icon {
  background: var(--color-white);
  color: var(--color-primary);
}

.text-link:hover .text-link__icon svg {
  transform: translateX(3px);
}

/* ---------- Reveal（スクロールでふわっと表示。main.js が付与） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out),
              transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* 写真は表示時に、少し拡大した状態からゆっくり等倍へ */
.reveal-photo img {
  transform: scale(1.06);
  transition: transform 1.6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-photo.is-revealed img {
  transform: none;
}

/* ---------- Utility ---------- */
/* 画面には表示せず、読み上げソフトにだけ伝える */
.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .u-pc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
