/* ============================================================
   精密審美会 採用サイト — Design Tokens & Base Styles
   Figmaデザイン準拠
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --color-primary: #1556A6;        /* 見出し・リンク */
  --color-primary-light: #32A9E1;  /* CTAアクセント */
  --color-text: #333333;           /* 本文 */
  --color-text-light: #666666;     /* サブテキスト */
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-bg-light: #F5F5F5;
  --color-border: #E0E0E0;
  --color-hover-nav: #333333;      /* ナビhover */
  --color-hover-btn: #1556A6;      /* ボタンhover下線・テキスト */

  /* Typography */
  --font-primary: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro', 'メイリオ', sans-serif;

  /* Font Sizes — PC */
  --fs-h1: 38px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-xs: 12px;

  /* Font Sizes — SP (overridden via media query) */
  --fs-h1-sp: 30.4px;
  --fs-h2-sp: 25px;
  --fs-h3-sp: 19px;
  --fs-body-sp: 14px;
  --fs-small-sp: 12px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-xxl: 80px;

  /* Layout */
  --max-width: 1440px;
  --content-width: 1000px;
  --sp-width: 430px;

  /* SP Responsive Tokens
     430px基準Figmaデザイン → 360px端末まで対応
     大見出し: clamp() / 本文: 固定px / 余白: % */
  --sp-padding: 5%;
  --sp-section-gap: 40px;
  --sp-title-size: clamp(22px, 5.8vw, 28px);
  --sp-subtitle-size: clamp(16px, 4.2vw, 20px);
  --sp-body-size: 14px;

  /* Animation */
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index */
  --z-header: 100;
  --z-modal: 200;
  --z-overlay: 150;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-primary);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --- Utility --- */
.inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.inner--wide {
  max-width: var(--max-width);
}

.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;
}

/* --- Scroll Fade-in --- */
.js-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- SP Media Query --- */
@media (max-width: 768px) {
  h1 { font-size: var(--fs-h1-sp); }
  h2 { font-size: var(--fs-h2-sp); }
  h3 { font-size: var(--fs-h3-sp); }

  body {
    font-size: var(--fs-body-sp);
  }
}

/* --- PC専用 / SP専用 表示切替 --- */
.sp-only {
  display: none;
}

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

/* --- SP専用改行 ---
   sp-br:    全SP (≤768px)
   sp-br-sm: 中間SP (≤420px) — 430pxでは不要だが中間幅で折り返す見出し用
   sp-br-xs: 極小SP (≤385px) — 375px以下でのみ折り返す見出し用
   ---------------------------------------- */
.sp-br,
.sp-br-sm,
.sp-br-xs {
  display: none;
}

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

@media (max-width: 420px) {
  .sp-br-sm {
    display: inline;
  }
}

@media (max-width: 385px) {
  .sp-br-xs {
    display: inline;
  }
}
