/* ============================================================
   base.css — 変数定義・リセット・タイポグラフィ
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Color */
  --c-black: #0A0A0A;
  --c-charcoal: #141518;
  --c-ink: #1A1C22;
  --c-white: #FFFFFF;
  --c-offwhite: #F7F8FA;
  --c-gray-100: #EEF0F4;
  --c-gray-200: #D9DCE3;
  --c-gray-400: #9AA0AD;
  --c-gray-600: #5A6070;
  --c-text: #1A1C22;
  --c-text-sub: #5A6070;

  /* Accent (くすみブルー1色。#3D5A99を基準に濃淡を作成) */
  --c-accent: #3D5A99;
  --c-accent-strong: #31487A;
  --c-accent-soft: rgba(61, 90, 153, 0.12);

  /* Typography — Hero (Shippori Mincho) と統一 */
  --ff-jp: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "YuMincho", "Yu Mincho", serif;
  --ff-en: "Cormorant Garamond", "Shippori Mincho", "Noto Serif JP", serif;

  /* Layout */
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;

  /* Radius / Shadow */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 18px rgba(16, 22, 40, 0.06);
  --shadow-md: 0 18px 48px rgba(16, 22, 40, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--ff-jp);
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* WebP配信のために <picture> で <img> を包んでいるが、既存CSSは
   .ob-media-img { height: 100% } のように「img が親要素の直接の子」である
   前提で書かれている。display: contents で <picture> 自身のボックスを
   消し、レイアウト上は <img> が従来どおり親の直接の子として扱われるようにする。 */
picture {
  display: contents;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Typography helpers ---- */
.logo-text {
  font-family: var(--ff-en);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
}

.section-label {
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.1rem;
}
.section-label.light { color: #7FA0FF; }

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.accent { color: var(--c-accent); }

/* ---- Buttons ---- */
.btn {
  --btn-py: 15px;
  --btn-px: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
  line-height: 1;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
  will-change: transform;
}
.btn-sm { --btn-py: 12px; --btn-px: 26px; font-size: 0.9rem; }

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(61, 90, 153, 0.28);
}
.btn-primary:hover {
  background: var(--c-accent-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(61, 90, 153, 0.36);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-gray-200);
}
.btn-outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-3px);
}

/* ---- Focus visibility (a11y) ---- */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sp-only { display: none; }

@media (max-width: 680px) {
  .sp-only { display: inline; }
}
