/* ========================================
 * 静的LP用 ベースCSS (common-static.css)
 * WordPress側のcommon.cssから必要な部分を抽出
 *
 * 配置場所: /wp/article/_shared/css/common-static.css
 * 利用方法: <link rel="stylesheet" href="../../../_shared/css/common-static.css">
 *
 * 特徴：
 * - CSS変数定義（WordPress側と完全一致）
 * - 全要素リセット
 * - ユーザーエージェントスタイルの完全排除
 * - LP本体とheader/footer両方で使用される基本スタイル
 * ======================================== */

/* ========================================
 * CSS変数定義（WordPress側から完全コピー）
 * ======================================== */
:root {
  /* Color Tokens */
  --color-text: #1c3133;
  --color-text-sub: #ffffff;
  --color-main: #47a0aa;
  --color-main-light: #f2f8f9;
  --color-bg-gray: #f8f8fa;
  --color-second: #999999;
  --color-third: #666666;
  --color-light: #eeeeee;
  --color-gray: #cccccc;
  --color-locondo: #fa7046;
  --color-cta: #F2B94D;
  --color-shadow: rgba(36, 50, 51, 0.15);
  --color-admin-primary: #2271b1;
  --color-button-blue: #1967d2;
  --color-button-iij: #d05e80;

  /* Typography Tokens */
  --font-base: "Zen Kaku Gothic New", "Outfit", sans-serif !important;
  --font-heading: "Outfit", sans-serif;
  --font-size-base: 1.6rem;
  --font-base-weight: normal;
  --font-normal-weight: 400;
  --font-sub-weight: 500;
  --font-bold-weight: 600;
  --font-strong-weight: 700;
  --line-height-base: 1.75;
  --letter-space-normal: 0.05em;
  --letter-space-tight: 0.02em;
  --letter-space-wide: 0.08em;

  /* Border Radius Tokens - Primitive */
  --radius-4: 4px;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-10: 10px;
  --radius-16: 16px;
  --radius-100: 100px;
  --radius-full: 50%;

  /* Border Radius Tokens - Semantic (PC default) */
  --radius-thumbnail: var(--radius-6);
  --radius-button-primary: var(--radius-100);
  --radius-tag: var(--radius-16);
  --radius-badge: var(--radius-full);

  /* Layout Tokens */
  --max-width: 1280px;
  --bg-color: #ffffff;

  /* Header Heights for Scroll Offset */
  --header-height-sp: 56px;
  --header-height-pc: 100px;
}

/* ========================================
 * 全要素リセット
 * ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1;
}

/* ========================================
 * ベース設定
 * ======================================== */
html {
  font-size: 62.5%;
  /* scroll-behavior: smooth; */ /* LP固有のスムーススクロール処理に委譲 */
  scroll-padding-top: var(--header-height-sp); /* SP: 56px */
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  font-weight: var(--font-base-weight);
  font-style: normal;
  font-optical-sizing: auto;
  background: var(--bg-color);
  letter-spacing: var(--letter-space-wide);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Zen Kaku Gothic New", "Outfit", sans-serif;
  margin: 0;
  padding: 0;
}

/* pタグのリセット */
p {
  margin: 0;
  padding: 0;
}

/* ========================================
 * レスポンシブ表示切り替えクラス
 * ======================================== */
/* 初期（SP想定） */
.sp-only,
.pc-none {
  display: initial !important;
} /* SPだけ表示 / PCでは非表示 */

.pc-only,
.sp-none {
  display: none !important;
} /* PCだけ表示 / SPでは非表示 */

.tab-only {
  display: none !important;
} /* TBだけ表示（後でON） */

.tab-none {
  display: initial !important;
} /* TBで隠す（後でOFF） */

/* ========================================
 * メディア要素のリセット
 * ======================================== */
img {
  object-fit: cover;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ========================================
 * フォーム要素のリセット
 * ======================================== */
input,
button,
textarea,
select {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer !important;
}

input:focus,
button:focus {
  outline: none;
}

/* ========================================
 * リンク要素のリセット（ユーザーエージェントスタイル排除）
 * ======================================== */
a,
a:visited,
a:hover,
a:focus,
a:active {
  color: var(--color-text);
  text-decoration: none !important;
  transition: all 0.2s;
  overflow: hidden;
  cursor: pointer !important;
}

/* ========================================
 * main要素の基本スタイル
 * ======================================== */
main {
  display: block;
  width: 100%;
  height: auto;
}

/* ========================================
 * レスポンシブ: PC（1024px以上）
 * ======================================== */
@media screen and (min-width: 1024px) {
  html {
    scroll-padding-top: var(--header-height-pc); /* PC: 100px */
  }
}
