@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@300;400;500;600&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');
@import 'reset.css';
@import 'variables.css';
@import 'components/header.css';
@import 'components/footer.css';
@import 'components/hero.css';
@import 'components/cards.css';
@import 'components/buttons.css';
@import 'components/fv-loader.css';
@import 'components/fv-slider.css';
@import 'sections.css';

/* MOBO フォント（@import の後に記述） */
@font-face {
  font-family: 'MOBO';
  src: url('../fonts/MOBO-ExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MOBO';
  src: url('../fonts/MOBO-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MOBO';
  src: url('../fonts/MOBO-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MOBO';
  src: url('../fonts/MOBO-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   Base
=========================== */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  background: radial-gradient(125% 125% at 50% 0%, #e8f4fc 0%, #f1f8fb 45%, #f4faf0 78%, #f8fbf3 100%) fixed;
}

/* 下層ページ：固定ヘッダーに本文が隠れないようオフセット */
.subpage main {
  padding-top: 130px;
}

@media (max-width: 960px) {
  .subpage main {
    padding-top: 96px;
  }
}

/* スマホ：ヘッダー非表示のため上部オフセットを詰める */
@media (max-width: 767px) {
  .subpage main {
    padding-top: 24px;
  }
}

/* ===========================
   Layout Utilities
=========================== */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--container-md);
}

.section {
  padding-block: 100px;
  scroll-margin-top: 140px;   /* 固定ヘッダー分、アンカー移動時にずれない */
}

@media (max-width: 1024px) {
  .section {
    padding-block: 80px;
  }
}

@media (max-width: 767px) {
  .section {
    padding-block: 56px;
    scroll-margin-top: 80px;   /* スマホはヘッダー非表示のため着地余白を詰める */
  }
}

.section--alt {
  background-color: var(--color-bg-alt);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   Typography Utilities
=========================== */
.heading-xl {
  font-size: var(--text-5xl);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  line-height: 1.25;
}

.heading-md {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

.heading-sm {
  font-size: var(--text-xl);
  font-weight: var(--fw-medium);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.text-muted {
  color: var(--color-text-muted);
}

/* ===========================
   Misc Utilities
=========================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-12);
}

.pc-br {
  display: inline;
}

@media (max-width: 767px) {
  .pc-br {
    display: none;
  }
}
