@charset "utf-8";

/* ==========================================================================
   price.css - Petit Maison KIRISHIMA Price Section Styles
   Optimized: Clean Grid Layout (1 item = Centered / 2+ items = Responsive Side-by-side)
   ========================================================================== */

/* --- 1. セクション全体 --- */
.price-section {
    padding: 100px 0;
    background-color: var(--color-primary); /* 霧島グリーン */
    color: var(--color-text-light);
    overflow: hidden;
    font-family: var(--font-jp);
}

.price-container {
    width: 95%;
    max-width: 1280px;
    margin: 0 auto;
}

/* --- 2. タイトルエリア --- */
.price-title-area {
    text-align: center;
    margin-bottom: 60px;
}

.price-subtitle {
    display: block;
    font-family: var(--font-en);
    font-size: 13px;
    color: var(--color-accent); /* シャンパンゴールド */
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.price-title {
    font-family: var(--font-jp);
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0;
}

.price-title-line {
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
    margin: 20px auto 0;
}

/* --- 3. グリッド配置（基本設定：PC等で3プランが綺麗に横並び） --- */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 50px;
}

/* --- 4. 料金カード個別設定 --- */
.price-item {
    background: var(--color-bg-base);
    color: var(--color-text-main);
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--color-accent);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.price-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

/* ★ 1個しか存在する場合：画面中央に配置 */
.price-grid:has(.price-item:only-child) {
    display: flex;
    justify-content: center;
}

.price-grid:has(.price-item:only-child) .price-item {
    max-width: 650px;
}

/* ★ 2個だけ存在する場合：中央寄りの2列並び */
.price-grid:has(.price-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* カード内のヘッダー */
.price-header {
    background: #fbfbf9;
    padding: 30px 15px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.room-label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 3px 14px;
    margin-bottom: 15px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 2px;
}

.price-header h4 {
    font-family: var(--font-jp);
    font-size: 20px;
    color: var(--color-primary);
    margin: 0 0 8px;
    letter-spacing: 0.05em;
}

.price-header .capacity {
    font-size: 13px;
    color: #777;
    margin: 0;
}

/* ★ カード内のコンテンツエリア */
.price-body {
    padding: 20px 15px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
}

/* 料金リスト */
.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* リストアイテム：上下中央揃えに変更 */
.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.price-list li:last-child {
    border-bottom: none;
}

/* ★ 左側の期間テキスト */
.price-list li .price-period {
    font-size: 12px;
    color: #555;
    white-space: normal;
    text-align: left;
    letter-spacing: -0.01em;
    line-height: 1.5;
    margin-right: 10px;
}

/* ★ 右側の金額表記 */
.price-list li .price-value {
    font-family: var(--font-en);
    font-size: 16px;
    color: var(--color-primary);
    letter-spacing: 0;
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
    flex-shrink: 0;
}

.price-list li .price-value small {
    font-size: 11px;
    font-weight: 400;
    margin-left: 1px;
    display: inline;
}

/* 注意書きフッター */
.price-footer {
    text-align: center;
    margin-top: 30px;
}

.price-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin: 4px 0;
}

/* 強調表示用の注記スタイル */
.price-note-highlight {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

/* --- 5. タブレット表示（769px〜1024px） --- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .price-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* --- 6. PC表示（1025px〜） --- */
@media screen and (min-width: 1025px) {
    .price-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- 7. スマホ表示（768px以下） --- */
@media screen and (max-width: 768px) {
    .price-section {
        padding: 70px 0;
    }

    .price-grid {
        grid-template-columns: 1fr; /* スマホは1列縦並び */
        gap: 30px;
    }

    .price-grid:has(.price-item:nth-child(2):last-child) {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .price-grid:has(.price-item:only-child) .price-item {
        max-width: 100%;
    }

    .price-header {
        padding: 25px 15px;
    }

    .price-body {
        padding: 20px 15px;
    }

    .price-header h4 {
        font-size: 20px;
    }

    .price-list li .price-period {
        font-size: 14px;
    }

    .price-list li .price-value {
        font-size: 20px;
    }

    .price-note-highlight {
        font-size: 13px;
    }
}