/* ===============================================
   料金プランセクション
   =============================================== */
.pricing-section {
    /* 画面の80%の高さを確保（残りの20%で下のコンテンツがチラ見えします） */
    /*height: 80vh;*/
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    margin-bottom: 50px;
    background-color: #ffca1c ;
    color: #2a2a2a;
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 30px; */
    flex-direction: column;
}

/* 税別・税込切り替えスイッチ */
.tax-toggle {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    flex-direction: row-reverse;
}
.toggle-label.active {
    color: var(--text-white);
    font-weight: bold;
}
.switch-btn {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}
.switch-btn.on {
    background: var(--tab-paper); /* 金/茶色系のアクセントカラー */
}
.switch-circle {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.switch-btn.on .switch-circle {
    transform: translateX(20px);
}

/* 料金カードのグリッド（横3分割） */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* カードの基本デザイン（すべて統一） */
.pricing-card {
    background: rgba(255, 255 , 255,0.8);
    /*border: 1px solid rgba(255, 255, 255, 1);*/
    border-radius: 8px;
    padding:  20px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
    justify-content: space-around;
}
.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 200, 0, 1);
    background-color: #ffffff;
}

.pricing-grid .pricing-card:nth-child(even) {
    /*background-color: #fffde2; /* ここにお好みの色を指定してください */*/
    /*border: 5px solid rgba(255, 200, 150, 1);*/
}


.card-header {
    text-align: center;
    margin-bottom: 20px;
    min-height: 50px;
}
.plan-name {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.plan-desc {
    font-size: 0.75rem;
    color: rgba(100 , 100, 100, 1);
}

.plan-price {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    flex-direction: column;
}
.price-value {
    font-size: 2.8rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
    letter-spacing: 0.05em;
}
.price-unit {
    font-size: 0.9rem;
    margin-left: 5px;
}
.price-strike {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: rgba(255, 0, 0, 1);
    margin-bottom: 5px;
}
.price-value.highlight {
    color: var(--tab-paper);
}

/* リスト部分 */
.plan-features {
    list-style: none;
    padding: 10px;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.8;
    background: rgba(0, 0, 0, 0.1) ;
}
.plan-features li {
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) ;
    display: flex;
    justify-content: space-between;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* スマホ対応（横幅が足りない場合は横スクロールにする） */
@media (max-width: 900px) {
    .pricing-section {
        height: auto; /* スマホでは80vhを解除 */
        padding-top: 60px;
    }
    .pricing-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
    }
    .pricing-card {
        min-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}
/* ===============================================
   税別・税込切り替えスイッチ（スマホUX・iOS風トグル）
   =============================================== */
.tax-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 1);
}

.toggle-label {
    transition: color 0.3s ease;
}
.toggle-label.active {
    color: var(--text-white);
    font-weight: bold;
}

/* スイッチのベース（背景部分） */
.switch-btn {
    width: 54px;
    height: 32px;
    background-color: rgba(255, 255, 255, 1); /* OFF時の色 */
    border: none;
    border-radius: 16px; /* 完全に丸みを帯びた形 */
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); /* 内側に影をつけて凹みを表現 */
    outline: none; /* クリック時の枠線を消す */
}

/* ON時（税込）の背景色 */
.switch-btn.on {
    background-color: var(--tab-paper); /* アクセントカラーのゴールド/茶色 */
}

/* スイッチの丸いノブ */
.switch-circle {
    width: 28px;
    height: 28px;
    background-color: #999999;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    /* ノブの下に落ちる影で立体感を演出 */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    /* スマホ特有の少しバウンスする（弾む）ような気持ちいい動き */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ON時のノブの移動距離 */
.switch-btn.on .switch-circle {
    /* 54(全体の幅) - 2(左の隙間) - 28(ノブの幅) - 2(右の隙間) = 22px移動 */
    transform: translateX(22px);
}

/* ===============================================
   吹き出し風の下線（中央・下向き）
   =============================================== */
.balloon-line {
    position: relative;
    display: inline-block;
    padding-bottom: 4px; /* 文字と下線の間の隙間 */
    border-bottom: 2px solid var(--tab-paper); /* 下線の太さと色 */
}

/* 中央の「しっぽ（下向き三角形）」を作る設定 */
.balloon-line::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* 中央にぴったり合わせる */

    /* 位置の調整：-(下線の太さ + 三角形の高さ) に設定します */
    bottom: -8px;

    /* 三角形の形と色 */
    border-top: 6px solid var(--tab-paper); /* 三角形の高さと色 */
    border-left: 6px solid transparent; /* 左半分の幅（透明） */
    border-right: 6px solid transparent; /* 右半分の幅（透明） */
}

.toiawase {
    display: grid;
    width: 20vw;
    min-width:250px;
    background-color: #fff;
    border-radius: 40px;
    margin:70px auto ;
    padding: 20px;
    font-size: 1.2em;
}

.toiawase:hover{
    opacity: 0.8;
}

.toiawase span{
    display: flex;
    justify-content: center;
    font-weight: bold;
}


.triangle-bracket {
  display: inline-flex;
  align-items: stretch; /* テキストの高さに合わせて三角形の高さを伸ばす */
  gap: 30px; /* 三角形とテキストの隙間 */
  font-size: 1.2rem;
  font-weight: bold;

}

/* 三角形の共通設定 */
.triangle-bracket::before,
.triangle-bracket::after {
  content: "";
  width: 12px; /* 三角形の横幅（太さ） */
  background-color: #fff; /* 三角形の色 */
}

/* 左側の三角形（ 外側の輪郭が \ の角度 ） */
.triangle-bracket::before {
  /* 左上、右上、右下 を結ぶ三角形 */
  clip-path: polygon(0 0, 50% 0, 100% 100%);
}

/* 右側の三角形（ 外側の輪郭が / の角度 ） */
.triangle-bracket::after {
  /* 左上、右上、左下 を結ぶ三角形 */
  clip-path: polygon(0 0, 50% 0, 0 100%);
}
