/* 共通スタイル */

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* タイポグラフィトークン（Figma準拠） */
:root {
    /* Font families */
    --ff-sans: 'YuGothic', sans-serif;
    --ff-mincho: "游明朝体", "Yu Mincho", "YuMincho", serif;
    --ff-cta: 'Noto Sans JP', sans-serif;

    /* Font sizes */
    --fs-12: 12px;
    --fs-14: 14px;
    --fs-16: 16px;
    --fs-20: 20px;
    --fs-24: 24px;

    /* Line heights */
    --lh-100: 1;
    --lh-130: 1.3;
    --lh-150: 1.5;
    --lh-160: 1.6;
    --lh-170: 1.7;

    /* Letter spacing */
    --ls-000: 0;
    --ls-004: 0.04em;
}

/* 基本設定 */
html {
    font-size: 16px; /* ブラウザのデフォルトフォントサイズを明示 */
}

body {
    font-family: 'YuGothic', sans-serif;
    font-size: 16px; /* 明示的に16pxを設定 */
    line-height: 1.5;
    color: #333;
    background-color: #EDEDEA;
    padding-top: 56px; /* 固定ヘッダーの高さ分の余白 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;  /* macOS Firefox用 */

}



/* =============================
   Typo Utilities (Figma命名)
   ============================= */
/* Titles */
.title24 {
    font-family: var(--ff-mincho);
    font-weight: 800;
    font-size: var(--fs-24);
    line-height: var(--lh-170);
    letter-spacing: var(--ls-004);
}

.title20 {
    font-family: var(--ff-mincho);
    font-weight: 800;
    font-size: var(--fs-20);
    line-height: var(--lh-170);
    letter-spacing: var(--ls-004);
}

/* Body */
.body16 {
    font-family: var(--ff-sans);
    font-weight: 500;
    font-size: var(--fs-16);
    line-height: var(--lh-150);
    letter-spacing: var(--ls-000);
}

.body16--bold {
    font-family: var(--ff-sans);
    font-weight: 700;
    font-size: var(--fs-16);
    line-height: var(--lh-150);
    letter-spacing: var(--ls-000);
}

/* Notes */
.note12 {
    font-family: var(--ff-sans);
    font-weight: 500;
    font-size: var(--fs-12);
    line-height: var(--lh-150);
}

.note12--bold {
    font-weight: 700;
}

/* CTA */
.cta14 {
    font-family: var(--ff-cta);
    font-weight: 700;
    font-size: var(--fs-14);
    line-height: var(--lh-100);
}

/* ===== 強化セレクタ（競合対策） ===== */
/* CTAテキストがページ個別CSSや子孫セレクタで上書きされるのを防ぐ */
.cta-button-text.cta14,
.cta-text.cta14,
.cta-button .cta-button-text.cta14,
.fixed-bottom-cta .cta-button-text.cta14,
.cta-button .cta-text.cta14 {
    color: white;
    font-size: 14px;
    font-weight: 400;
}

/* 注釈ボールドの明示（ただしCTAバッジ内は通常の太さに統一） */
.note12--bold {
    font-weight: 700;
}

/* コンテナ - スマホファースト */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background-color: #EDEDEA;
    box-sizing: border-box;
}

/* Content Wrapper */
.content-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Main Column */
.main-column {
    background-color: #EDEDEA;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

/* タイトルセクション */
.title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 16px 16px 35px;
    background-color: #FFFFFF;
}

/* Title Component */
.title-component {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 8px;
}

.main-title {
    font-family: 'YuMincho', serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.7;
    letter-spacing: 0.04em;
    text-align: center;
    color: #B10100;
    position: relative;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 1px;
    background-color: #B10100;
}

/* Body Section */
.body-section {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 32px;
    padding: 32px 16px;
    background-color: #EDEDEA;
}

/* ========== CTA Area Styles ========== */
.cta-area {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 32px;
    width: 100%;
}

.cta-divider {
    width: 100%;
    height: 1px;
    background-color: #CCCCCC;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 16px;
}

/* Banner Line Link */
.banner-line-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    width: 100%;
}

.banner-line-link:hover {
    opacity: 0.8;
}

/* Banner Line */
.banner-line {
    width: 100%;
    height: 129px;
    display: block;
    position: relative;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #B10100;
    border: 2px solid #B10100;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1);
    width: 100%;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #8B0000;
    border-color: #8B0000;
}

.cta-button-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-badge {
    background-color: white !important;
    border-radius: 4px;
    padding: 4px 8px;
    display: inline-block;
}

.badge-text {
    font-family: var(--ff-sans);
    font-weight: 500;
    font-size: var(--fs-12);
    line-height: var(--lh-150);
    color: #B10100;
}

/* CTAバッジ内のテキストは色と太さを統一（font-weight: 700） */
.cta-badge,
.cta-badge .badge-text,
.cta-button .cta-badge,
.cta-button .cta-badge .badge-text,
.cta-button .cta-badge span {
    font-family: var(--ff-sans) !important;
    font-weight: 700 !important;
    font-size: var(--fs-12) !important;
    line-height: var(--lh-150) !important;
    color: #B10100 !important;
}

/* note12--boldが指定されていても、CTAバッジ内では700に統一 */
.cta-badge .badge-text.note12--bold,
.cta-badge.note12--bold,
.cta-button .cta-badge .badge-text.note12--bold {
    font-weight: 700 !important;
}

/* CTAボタンの白文字がバッジ内のテキストに継承されないように */
.cta-button .cta-badge,
.cta-button .cta-badge * {
    color: #B10100 !important;
}

.cta-text {
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.cta-button-text {
    color: white;
    font-size: 14px;
    font-weight: 400;
}

.cta-arrow {
    flex-shrink: 0;
}

.cta-button-arrow {
    flex-shrink: 0;
}

/* ========== Responsive Design ========== */

/* 500px以下の場合は100%幅 */
@media (max-width: 500px) {
    .container,
    .content-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

/* 500pxより大きい画面では390pxに制限 */
@media (min-width: 501px) {
    .container,
    .content-wrapper {
        max-width: 390px;
    }
    
    .main-column {
        max-width: 390px;
        margin: 0 auto;
    }
}

/* タブレット表示 */
@media (min-width: 768px) {
    .title-section {
        padding: 24px 16px 32px;
    }
    
    .body-section {
        padding: 40px 16px;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .cta-button {
        padding: 24px 48px;
    }
    
    .cta-text,
    .cta-button-text {
        font-size: 16px;
    }
}

/* デスクトップ表示 */
@media (min-width: 1024px) {
    /* 追加のスタイルがあればここに記述 */
}

/* ========== Accessibility ========== */

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    .cta-button {
        transition: none;
    }
}

/* フォーカス状態 */
.cta-button:focus {
    outline: 3px solid #B10100;
    outline-offset: 2px;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .main-title {
        color: #000000;
    }
    
    .cta-button {
        border: 3px solid #000000;
    }
}

/* ========== Fixed Bottom CTA ========== */
.fixed-bottom-cta {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    padding: 16px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Fixed Bottom CTA - レスポンシブ */
@media (min-width: 501px) {
    .fixed-bottom-cta {
        max-width: 390px;
    }
}

.fixed-bottom-cta.show {
    opacity: 1;
    visibility: visible;
}

body.menu-open .fixed-bottom-cta {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.fixed-bottom-cta .cta-content {
    width: 100%;
}

/* Fixed Bottom CTAは通常のCTAと同じスタイルを継承 */
