/* ========================================
   リセット & ベーススタイル
   PCファースト。コンテンツ幅は padding を除き最大 1200px（:root --content-max-width）
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    font-size: var(--font-size-16);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family:
        "Noto Sans JP",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Roboto",
        sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-base);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

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

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

a:hover {
    opacity: 0.7;
}

main {
    display: block;
    margin: 0;
    padding: 0;
}

footer {
    display: block;
    margin: 0;
    padding: 0;
}

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

ul,
ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* ========================================
   CSS変数（デザイントークン）
   ======================================== */
:root {
    /* カラーパレット */
    --color-base: #ffffff;
    --color-text-primary: #333333;
    --color-text-secondary: #6a7282;
    --color-text-muted: #4a4a4a;
    --color-text-gray: #4a5565;
    --color-text-light: #9d9d9d;
    --color-border: #cdcdcd;
    --color-border-light: #e5e7eb;
    --color-border-gray: #e0e0e0;
    --color-border-blue: #dbeafe;
    --color-bg-light: #f3f4f6;
    --color-bg-lighter: #f5f5f5;
    --color-bg-section: #f9fafb;
    --color-bg-section-blue: #f3fbff;
    --color-bg-badge-blue: #eff6ff;
    --color-bg-solution: #f0f9ff;
    --color-label-blue: #93c5fd;
    --color-check-green: #28a745;

    /* メインカラー */
    --color-main-light-01: #ceeced;
    --color-main-01: #1cb1be;
    --color-main-02: #138eb1;
    --color-main-dark-01: #1a3264;
    --color-main-dark-02: #1864ab;
    --color-main-dark-03: #074b8b;

    /* アクセント */
    --color-accent: #4dc928;
    --color-alert: #d83a3a;

    /* グラデーション */
    --gradient-main: linear-gradient(90deg, #1cb1be 0%, #1864ab 100%);
    --gradient-light: linear-gradient(90deg, #edfdff 0%, #d7e9ff 100%);
    --gradient-hero: linear-gradient(180deg, #edfdff 0%, #d7e9ff 100%);

    /* 背景色（セクション別） */
    --color-hero-bg: #edfdff;
    --color-case-banner-bg: #ecfcff;
    --color-footer-bg: #f5f5f5;

    /* スペーシング（4px = 0.25rem　16px = 1rem 単位） */
    --spacing-xs: 0.25rem; /* 4px相当 */
    --spacing-sm: 0.5rem; /* 8px相当 */
    --spacing-md: 1rem; /* 16px相当 */
    --spacing-card: 1.25rem; /* 20px相当 */
    --spacing-lg: 1.5rem; /* 24px相当 */
    --spacing-xl: 2rem; /* 32px相当 */
    --spacing-2xl: 3rem; /* 48px相当 */
    --spacing-3xl: 4rem; /* 64px相当 */
    --spacing-4xl: 5rem; /* 80px相当 */
    --spacing-5xl: 6rem; /* 96px相当 */

    /* フォントサイズ（16px = 1rem 基準・管理用変数） */
    --font-size-10: 0.625rem;
    --font-size-11: 0.6875rem;
    --font-size-12: 0.75rem;
    --font-size-13: 0.8125rem;
    --font-size-14: 0.875rem;
    --font-size-15: 0.9375rem;
    --font-size-16: 1rem;
    --font-size-17: 1.0625rem;
    --font-size-18: 1.125rem;
    --font-size-19: 1.1875rem;
    --font-size-20: 1.25rem;
    --font-size-22: 1.375rem;
    --font-size-24: 1.5rem;
    --font-size-26: 1.625rem;
    --font-size-28: 1.75rem;
    --font-size-30: 1.875rem;
    --font-size-32: 2rem;
    --font-size-36: 2.25rem;
    --font-size-40: 2.5rem;
    --font-size-48: 3rem;
    --font-size-56: 3.5rem;
    --font-size-60: 3.75rem;
    --font-size-64: 4rem;
    --font-size-96: 6rem;
    --font-size-100: 6.25rem;
    --font-size-120: 7.5rem;
    --font-size-128: 8rem;
    --font-size-200: 12.5rem;
    /* 可変フォント（clamp） */
    --font-size-hero: clamp(6.25rem, 18vw, 8rem);
    --font-size-hero-sub: clamp(1.5rem, 2.5vw, 2.25rem);
    --font-size-hero-sub-sm: clamp(1.25rem, 2vw, 2rem);
    --font-size-section-title: clamp(1.5rem, 2.2vw, 2.25rem);
    --font-size-section-lead: clamp(1.25rem, 2vw, 1.625rem);

    /*
     * コンテナ幅（PCファースト・ルール準拠）
     * コンテンツ幅は padding を除き最大 75rem（1200px）。
     * レスポンシブでは各CSSで --container-padding を上書き可。
     */
    --content-max-width: 75rem;
    --container-width: 75rem;
    --container-padding: var(--spacing-xl);
    --container-max-width: calc(var(--content-max-width) + 2 * var(--spacing-xl));
    --container-max-width-wide: var(--container-max-width);

    /* ブレークポイント */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-2xl: 1400px;

    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* シャドウ */
    --shadow-sm: 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
    --shadow-md: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 1px 3px 0 rgba(24, 100, 171, 0.08), 0 1px 2px -1px rgba(24, 100, 171, 0.08);
    --shadow-lg: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0px 10px 15px 0px rgba(0, 0, 0, 0.1), 0px 4px 6px 0px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0px 25px 50px 0px rgba(27, 97, 163, 0.7);
    --shadow-hero: 0px 25px 50px 0px rgba(27, 97, 163, 0.7);

    /* Z-index */
    --z-dropdown: 100;
    --z-header: 1000;
    --z-modal: 2000;

    /* ヘッダー高さ（.anchor-nav の top と連動・レスポンシブで上書き） */
    --header-height: 5rem;
}

/* ========================================
   ユーティリティクラス
   ======================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* スムーズスクロール */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* スマホ表示: 全体のコンテンツ左右paddingを16pxに統一 */
@media (max-width: 768px) {
    :root {
        --container-padding: var(--spacing-md);
    }
}
