/**
 * pages/store.css
 * 店舗詳細ページ専用スタイル。
 * 接頭辞: .p-store
 */

/* -----------------------------------------------------------------
 * ヘッダー・基本情報
 * ----------------------------------------------------------------- */
.p-store__hero {
    margin-bottom: var(--space-5);
}

.p-store__hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.p-store__name {
    font-size: var(--fs-h1);
    line-height: var(--lh-h1);
    margin-bottom: var(--space-3);
}

.p-store__catchcopy {
    font-family: var(--font-accent);
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    color: var(--color-text-sub);
    margin-bottom: var(--space-4);
}

.p-store__price {
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.p-store__price-unit {
    font-size: var(--fs-body);
    font-weight: var(--fw-normal);
    color: var(--color-text-sub);
}

.p-store__description {
    margin-bottom: var(--space-6);
}

/* CTA（PC表示用。SPではSticky CTAを使用） */
.p-store__cta {
    display: none;
    margin-bottom: var(--space-6);
}

@media (min-width: 1024px) {
    .p-store__cta {
        display: block;
    }

    .p-store__hero-image {
        aspect-ratio: 16 / 9;
    }
}

/* -----------------------------------------------------------------
 * 基本情報テーブル
 * ----------------------------------------------------------------- */
.p-store__table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-body);
}

.p-store__table th,
.p-store__table td {
    padding: var(--space-3);
    border-bottom: var(--border-width) solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.p-store__table th {
    width: 30%;
    min-width: 100px;
    font-weight: var(--fw-medium);
    color: var(--color-text-sub);
    background-color: var(--color-surface-alt);
}

/* 基本情報テーブル内のリンク（ホームページ等）。予約用CTAボタンとは区別し、
   通常のテキストリンクとして目立ちすぎない見せ方にする */
.p-store__table a {
    color: var(--color-primary);
    text-decoration: underline;
    word-break: break-all;
}

.p-store__table a:hover {
    color: var(--color-primary-hover);
}

/* -----------------------------------------------------------------
 * 地図
 * ----------------------------------------------------------------- */
.p-store__map {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

/* -----------------------------------------------------------------
 * プラン一覧
 * ----------------------------------------------------------------- */
.p-store__plan {
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.p-store__plan-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.p-store__plan-name {
    font-size: var(--fs-h3);
}

.p-store__plan-price {
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
}

.p-store__plan-description {
    font-size: var(--fs-small);
    line-height: var(--lh-small);
    color: var(--color-text-sub);
}

/* -----------------------------------------------------------------
 * 商品カタログ
 * ----------------------------------------------------------------- */
.p-store__catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
}

.p-store__catalog-image-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
}

.p-store__catalog-image-frame::before {
    content: "";
    display: block;
    padding-top: 133.33%; /* 3:4 = 高さ ÷ 幅 */
}

.p-store__catalog-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p-store__catalog-caption {
    font-size: var(--fs-caption);
    line-height: var(--lh-caption);
    color: var(--color-text-sub);
}

@media (min-width: 768px) {
    .p-store__catalog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* -----------------------------------------------------------------
 * ギャラリー（カテゴリタブ）
 * ----------------------------------------------------------------- */
.p-store__gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.p-store__gallery-tab {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--fs-small);
    background-color: var(--color-surface-alt);
    color: var(--color-text-sub);
    border: var(--border-width) solid var(--color-border);
}

.p-store__gallery-tab[aria-selected="true"] {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.p-store__gallery-panel[hidden] {
    display: none;
}

.p-store__gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

.p-store__gallery-image-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.p-store__gallery-image-frame::before {
    content: "";
    display: block;
    padding-top: 100%; /* 1:1 */
}

.p-store__gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .p-store__gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Lightbox */
.p-store__lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background-color: var(--color-overlay);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
}

.p-store__lightbox[data-open="true"] {
    display: flex;
}

.p-store__lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.p-store__lightbox-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    color: var(--color-text-inverse);
    font-size: var(--fs-h2);
}

/* -----------------------------------------------------------------
 * ハッシュタグリンク
 * ----------------------------------------------------------------- */
.p-store__hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
