@charset "UTF-8";

/* ==========================================
   ANKA MART LP Design System CSS
   ==========================================
   【読み込み順】既存 CSS の「最後」に読み込んでください。
     <link rel="stylesheet" href="[static_contents]kddi/style/destyle.min.css">
   ========================================== */

/* ==========================================
   1. Design Tokens (CSS Variables)
   ==========================================
   既存の変数（--base-color / --blue / --pink）とは名前が重ならない。 */
:root {
  /* --- Layout & Container ---
     中身の幅は「最大 1000px」。画面がそれより狭いときは画面に合わせて縮む（可変）。
     左右の余白は 1000px の外側に付く。 */
  --container-content-width: 1000px;                /* 中身の最大幅 */
  --container-padding-x: clamp(1rem, 3vw, 2rem);    /* 左右の余白 スマホ16px 〜 PC32px */
  --container-max-width: calc(var(--container-content-width) + var(--container-padding-x) * 2);
  --section-padding-y: clamp(2.5rem, 5vw, 4rem);    /* スマホ40px 〜 PC64px */

  /* --- Column Grid (12 カラム) ---
     PC（1000px）では 1 カラム 65px ＋ ガター 20px。ガターは狭い画面で 16px まで縮む（可変）。 */
  --grid-columns: 12;
  --grid-gutter: clamp(1rem, 2vw, 1.25rem);         /* 16px 〜 20px */

  /* --- Spacing Scale (8px Grid System) --- */
  --space-2xs: 0.25rem; /* 4px */
  --space-xs:  0.5rem;  /* 8px */
  --space-sm:  1rem;    /* 16px */
  --space-md:  1.5rem;  /* 24px */
  --space-lg:  2rem;    /* 32px */
  --space-xl:  3rem;    /* 48px */
  --space-2xl: 4rem;    /* 64px */

  /* --- Breakpoints (参考値) ---
     CSS 変数はメディアクエリの中で使えないため、値を直接書く。モバイルファースト（min-width）で指定する。
       sm: 600px  / md: 768px（スマホ ⇔ PC の境目）/ lg: 1024px
     ※既存 CSS の境目は 767px / 991px / 1140px。md の 768px は既存と揃えている。 */

  /* --- Typography & Fonts --- */
  --font-family-base: 'Noto Sans JP', "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Verdana, "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  --font-family-monospace: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;

  --font-size-xs:   0.75rem;  /* 12px */
  --font-size-sm:   0.875rem; /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg:   1.125rem; /* 18px */
  --font-size-xl:   1.25rem;  /* 20px */
  --font-size-2xl:  1.5rem;   /* 24px */

  /* --- Leading (行送り) --- */
  --leading-none:    1;       /* ボタン内・アイコン・バッジ等 */
  --leading-tight:   1.3;     /* 見出し用（引き締め） */
  --leading-base:    1.5;     /* 標準UI（.l-container の基本） */
  --leading-relaxed: 1.75;    /* 文章用の p・長文・解説文（読みやすさ重視） */

  /* --- Border Radius (角丸) ---
     新規は 4px に統一する。既存 CSS は 6px → 4px、10px → 8px に変更済み。
     既存 CSS に残る 8px は旧資産として受け入れ、design-system 側にはトークンを追加しない。 */
  --radius-base: 4px;    /* ボタン・タグ・カード・入力枠・モーダル等すべて */
  --radius-pill: 9999px; /* 完全な丸み（ピル型）。丸ボタン等の例外用 */

  /* --- Brand & Base UI Colors --- */
  --color-primary: #0E0D6A;        /* メインカラー (KDDI)。今後ネイビー系に寄せる */
  --color-accent: #D9328E;         /* アクセント（ピンク）。既存 CSS の --pink と同じ値 */
  --color-accent-hover: #B82A79;   /* アクセントのホバー時。既存 CSS の --pink-hover と同じ値 */
  --color-blue: #2256C7;           /* レイアウト用の青（ボタン・背景・装飾など、リンク以外の青） */
  --color-blue-hover: #1D49A9;     /* レイアウト用の青のホバー時 */
  --color-text-main: #333333;      /* 本文テキスト */
  --color-text-sub: #666666;       /* 補足・注釈 */
  --color-border: #e0e0e0;         /* 枠線・区切り線 */
  --color-bg-light: #F8F8F8;       /* 背景用ライトグレー */
  --color-bg-blue: #DFEAF4;        /* 背景用ライトブルー */
  --color-bg-white: #ffffff;

  /* --- Semantic Status Colors (状態表現用) --- */
  --color-success: #338837;        /* 成功・完了・有効 */
  --color-warning: #ed6c02;        /* 警告・注意・期限間近 */
  --color-error: #dc3545;          /* エラー・無効・キャンセル */
  --color-info: #0288d1;           /* 安全 */

  /* --- Commerce Colors (EC 表示用) --- */
  --color-discount: #dc3545;       /* 割引率・値引きの表示 */
  --color-rank-1: #CFA82E;         /* ランキング 1 位（ゴールド） */
  --color-rank-2: #B5B5B5;         /* ランキング 2 位（シルバー） */
  --color-rank-3: #C7782F;         /* ランキング 3 位（ブロンズ） */

  /* --- Link Colors (リンク用) ---
     リンクの青は #1B82FA のみ。リンク以外の青は --color-blue を使う。 */
  --color-link: #1B82FA;           /* 通常リンク（既存の --blue と同じ） */
  --color-link-hover: #0369E0;     /* ホバー時（既存の青ボタンのホバー色と同じ） */
  --color-link-underline: rgba(27, 130, 250, 0.4); /* 文中リンクの下線（#1B82FA を透過させて主張を抑える） */

  /* --- SSL Certificate Type Colors (証明書の種別) --- */
  --color-ov: #45A7E5;
  --color-dv: #6B71D1;
  --color-ev: #31C4CB;
  --color-wc: #90B644;   /* ワイルドカード */
  --color-vmc: #BF60B4;  /* 企業ロゴ表示（VMC） */

  /* --- Shadows (高低差) --- */
  --color-shadow-base: rgba(0, 0, 0, 0.15);

  --shadow-layer-0: none;
  --shadow-layer-1: 0 1px 2px 0 var(--color-shadow-base);    /* 浅い浮き（ベース要素） */
  --shadow-layer-2: 0 2px 4px 1px var(--color-shadow-base);  /* ホバー時・ポップオーバー等 */
  --shadow-layer-3: 0 4px 8px 2px var(--color-shadow-base);  /* 固定ヘッダー・フローティング等 */
  --shadow-layer-4: 0 8px 16px 4px var(--color-shadow-base); /* モーダルダイアログ */

  /* --- z-index Layers (重ね順) --- */
  --z-index-deep: -1;
  --z-index-default: 1;
  --z-index-sticky: 100;    /* 固定ヘッダーなど */
  --z-index-popover: 200;   /* ドロップダウン・ツールチップ */
  --z-index-modal: 1000;    /* モーダルダイアログ */
  --z-index-toast: 1100;    /* 通知トースト */

  /* --- Transitions --- */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* --- Opacity --- */
  --opacity-hover: 0.75;    /* リンク・ボタンのホバー時（既存 style.css の a:hover と同じ値） */
}

/* ==========================================
   2. Base Style（.l-container の中だけに適用）
   ==========================================
   html / body / img などへの全体指定は既存ページに影響するため書かない。
   ※ box-sizing は destyle.min.css で border-box 済みのため指定不要。
   ※ html の scroll-behavior: smooth は既存 JS のスクロール処理と競合しうるため保留。
   ※ :where() で詳細度を下げ、c-* コンポーネント側で上書きしやすくしている。 */
.l-container {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--leading-base);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* --- 日本語タイポグラフィ・読みやすさの最適化 --- */
  font-feature-settings: "palt" 1; /* プロポーショナルメトリクスによる字詰め */
  line-break: strict;              /* 厳格な禁則処理 */
  word-break: auto-phrase;         /* 文節単位での自然な改行 */
  text-autospace: normal;          /* 和欧混植時の自動スペース調整 */
}

/* 文章用の p は行送りを広げて読みやすくする（.l-container 全体は 1.5、p は 1.75）
   また responsive.css の「p { font-size: 14px }」（767px 以下）を打ち消し、.l-container の文字サイズを継承させる。
   ※ 詳細度はクラス 1 つ分なので、c-* コンポーネント側で line-height を指定すれば上書きできる */
.l-container :where(p) {
  font-size: inherit;
  line-height: var(--leading-relaxed);
}
