/* ==========================================
   チケットパルサー - メインスタイルシート
   ========================================== */

/* --- CSS変数 --- */
:root {
    --main-color: #009444;
    --sub-color: #f7b52c;
    --light-bg: #f0f9f4;
}

/* --- ベース --- */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fafafa;
    padding-bottom: 3rem;
}

/* --- ユーティリティ --- */
.text-main { color: var(--main-color) !important; }
.bg-main   { background-color: var(--main-color) !important; }
.border-main { border: 2px solid var(--main-color) !important; }

/* --- セクションタイトル --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    color: var(--main-color);
}
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--sub-color);
    margin: 15px auto;
    border-radius: 2px;
}

/* ==========================================
   ヒーローセクション
   ========================================== */
.hero {
    position: relative;
    background: #28cc73;
    color: white;
    padding-top: 20px;
    padding-bottom: 0;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* --- 吹き出し --- */
.speech-bubble {
    position: relative;
    z-index: 2;
    background: #fff;
    color: var(--main-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    margin-top: 10px;
}
.speech-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 20%;
    border: 12px solid transparent;
    border-top-color: #fff;
}

/* --- ヒーロー内テキスト --- */
.hero-headline {
    letter-spacing: -1px;
    font-weight: 900;
}
.hero-headline .sub-text {
    font-size: 0.45em;
    display: block;
    margin-bottom: 10px;
    opacity: 0.9;
    color: #222;
}
.hero-headline .accent-dark {
    color: #222;
    font-size: 0.75em;
}
.hero-headline .accent-yellow {
    color: var(--sub-color);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.accent-pink {
    color: #E4005A;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}
.hero-lead {
    color: #222;
}

/* --- 特徴グリッド --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.feature-item {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.feature-item i {
    color: var(--main-color);
    margin-right: 8px;
    font-size: 1.2rem;
}

/* ==========================================
   買取プランカード
   ========================================== */
.plan-card {
    border: 2px solid #FFF;
    border-radius: 40px !important;
    overflow: hidden !important;
}

.plan-rate-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1em 0;
}
.plan-rate-inner {
    position: relative;
    width: 80%;
    aspect-ratio: 16 / 9;
    background: url('img/kai_bg_img.png') center / contain no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}
.plan-rate-text {
    position: relative;
    color: #fff;
    text-align: center;
    z-index: 1;
}
.plan-rate-label {
    font-weight: bold;
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    margin-bottom: -5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.plan-rate-value {
    font-weight: 900;
    font-size: clamp(1.8rem, 8vw, 3.2rem);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}
.plan-rate-value span {
    font-size: clamp(1.2rem, 4vw, 2rem);
}

.plan-step-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

/* ==========================================
   ステップカード（ご利用方法）
   ========================================== */
.step-card {
    border: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}
.step-card-green {
    background-color: #009846;
    color: white;
}
.step-badge {
    border-radius: 64px;
    margin: 0.4em 0;
}
.step-badge span {
    font-weight: bolder;
    font-size: 1.4em;
    padding: 0.4em 0;
    display: block;
}

/* ==========================================
   テーブル
   ========================================== */
.table th {
    font-size: 0.9rem;
    vertical-align: middle;
}

/* ==========================================
   アコーディオン（FAQ）
   ========================================== */
.accordion-button:not(.collapsed) {
    background-color: var(--light-bg);
    color: var(--main-color);
}

/* ==========================================
   カード共通
   ========================================== */
.card {
    border-radius: 15px;
    overflow: hidden;
}

/* ==========================================
   追従LINEボタン
   ========================================== */
.line-sticky {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: 450px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}
.line-sticky.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}
.btn-line {
    background-color: #06C755;
    color: white;
    font-weight: bold;
    padding: 18px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.4);
    border: 2px solid #fff;
}

/* ==========================================
   レスポンシブ（モバイル）
   ========================================== */
@media (max-width: 767px) {
    .hero {
        padding-top: 20px;
    }
    .hero .py-5 {
        padding-top: 1rem !important;
    }
    .hero-text-content {
        text-align: center !important;
    }
    .hero-image-container {
        text-align: center;
        margin-top: 10px;
    }
    .hero-image-container img {
        max-width: 85%;
    }
    .feature-grid {
        max-width: 400px;
        margin: 0 auto;
    }
    .speech-bubble {
        left: 50%;
        transform: translateX(-50%);
    }
    .speech-bubble::after {
        left: 45%;
    }
}




/* ==========================================
   追加セクション用スタイル
   ========================================== */
.bg-light-gray {
    background-color: #f8f9fa;
}

.highlight-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* レスポンシブに文字サイズ調整 */
    color: #333;
    line-height: 1.4;
}

.problem-list-container {
    border-width: 3px !important;
}

.problem-list-container ul li {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem); /* スマホでも見やすく大きめに */
    line-height: 1.5;
}

.fw-900 {
    font-weight: 900;
}

@media (max-width: 767px) {
    .problem-list-container {
        padding: 25px 15px !important;
    }
    .problem-list-container ul li i {
        font-size: 1.2rem;
    }
}

/* --- ベースの修正（横揺れを根本から止める） --- */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

/* --- 斜め背景セクションの共通設定 --- */
.bg-section-main, .bg-section-light {
    position: relative;
    /* 親セクションに z-index を指定しない、または低い値を設定 */
    z-index: 1; 
    padding: 100px 0;
    margin-top: -120px; /* 隙間を埋めるための重なり */
    overflow: visible;  /* 擬似要素が見えるようにする */
}

/* コンテンツ（文字・カード）を最前面へ */
.bg-section-main .container,
.bg-section-light .container {
    position: relative;
    z-index: 20; /* 背景の ::before (z-index: -1) より必ず高くする */
}

/* 背景を作る擬似要素の共通設定 */
.bg-section-main::before,
.bg-section-light::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    /* 100vwではなく、画面を十分覆う固定の大きな%を指定 */
    width: 150%; 
    height: 60%;
    z-index: -1; /* 親要素の内部で最背面へ */
    pointer-events: none; /* クリックを邪魔しない */
    
    opacity: 0;
    transition: opacity 1.7s ease, transform 1.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 1. 薄い緑：右下がり */
.bg-section-light::before {
    background-color: #5fd97d;
    transform: translateX(-50%) skewY(-3deg) translateY(50px);
}

/* 2. 濃い緑：右上がり（逆方向） */
.bg-section-main::before {
    background-color: var(--main-color);
    transform: translateX(-50%) skewY(3deg) translateY(50px);
}

/* --- アニメーション発火時の状態 --- */
.js-scroll-trigger.is-active.bg-section-light::before {
    opacity: 1;
    transform: translateX(-50%) skewY(-3deg) translateY(0);
}

.js-scroll-trigger.is-active.bg-section-main::before {
    opacity: 1;
    transform: translateX(-50%) skewY(3deg) translateY(0);
}

/* メインカラー背景時の文字色強制 */
.bg-section-main, 
.bg-section-main .section-title,
.bg-section-main .text-main,
.bg-section-main .text-muted,
.bg-section-main p,
.bg-section-main span {
}
.bg-section-main .section-title::after {
}

/* --- モバイル対応の微調整 --- */
@media (max-width: 767px) {
    .bg-section-main, .bg-section-light {
        padding: 80px 0;
        margin-top: -80px; /* モバイルでは斜めの高さに合わせて調整 */
    }
    
    /* 横揺れを完全に防ぐための念押し */
    .line-sticky {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 背景を描画している要素 */
.bg-skew {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #009846; /* 緑色 */
    clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%); /* 斜めの切り取り */
    z-index: 0; /* 背面に配置 */
}

/* コンテンツ全体を包むコンテナ */
.container {
    position: relative; /* z-indexを有効にするために必要 */
    z-index: 1;        /* 背景(0)より大きい数値を指定して前面へ */
}

/* --- ヘッダー固定用のスタイル --- */
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999 !important; /* 背景（z-index: 10）などより必ず上に持ってくる */
    background-color: rgba(255, 255, 255, 0.95) !important; /* 少し透かすとおしゃれです */
    backdrop-filter: blur(5px); /* 背景をぼかす効果 */
}

/* ヘッダーが固定された分、中身が上に潜り込まないよう余白を作る */
body {
    padding-top: 70px; /* ヘッダーの高さに合わせて調整してください */
}

@media (max-width: 767px) {
    body {
        padding-top: 60px; /* モバイル用の高さ調整 */
    }
}


/* ヘッダー全体の上下パディングを調整 */
.fixed-header, 
.navbar {
    padding-top: 2px !important;    /* 数値はお好みで調整してください */
    padding-bottom: 2px !important;
}

/* ロゴ画像要素の調整 */
.navbar-brand img {
    display: block;
    height: 90px;      /* ロゴの表示高さを指定 */
    width: auto;       /* 横幅は自動計算 */
    margin-top: 0;
    margin-bottom: 0;
    vertical-align: middle;
}

/* リンク自体の余白もリセット */
.navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-right: 0;
    display: flex;
    align-items: center;
}

.main_logo {
 width:300px;
}

@media (max-width: 767px) {
.navbar-brand img {
	height:60px;
    display: block;      /* ロゴの表示高さを指定 */
    width: auto;       /* 横幅は自動計算 */
    margin-top: 0;
    margin-bottom: 0;
    vertical-align: middle;
}

img.main_logo {
 height:90px;
 width: auto;  
}
}