/* ============================================
 * AUREA COFFEE - 店舗ページ用CSS
 * style.css もしくは別ファイルとして読み込んでください
 * ============================================ */


/* ----------------------------------------
 * 共通変数（既存テーマに合わせて調整してください）
 * ---------------------------------------- */
:root {
    --branch-color-bg: #fff;
    --branch-color-bg-warm: #faf8f5;
    --branch-color-text: #333;
    --branch-color-text-sub: #777;
    --branch-color-accent: #b08d57;
    /* ゴールド系アクセント */
    --branch-color-border: #e5e0d8;
    --branch-color-hero-bg: #2c2519;
    /* ダークブラウン */
    --branch-font-en: 'Cormorant Garamond', 'Times New Roman', serif;
    --branch-font-ja: 'Noto Serif JP', 'YuMincho', '游明朝', serif;
    --branch-container: 1100px;
    --branch-gap: clamp(24px, 4vw, 60px);
}


/* ============================================
 * アーカイブページ
 * ============================================ */

/* ヒーロー */
.p-branch-archive__hero {
    background: var(--branch-color-hero-bg);
    color: #fff;
    text-align: center;
    padding: clamp(80px, 12vw, 160px) 20px clamp(60px, 8vw, 120px);
}

.p-branch-archive__hero-en {
    font-family: var(--branch-font-en);
    font-size: clamp(11px, 1.2vw, 14px);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 16px;
}

.p-branch-archive__hero-title {
    font-family: var(--branch-font-ja);
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.p-branch-archive__hero-lead {
    font-size: clamp(13px, 1.4vw, 15px);
    line-height: 2;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* リストセクション */
.p-branch-archive__list {
    background: var(--branch-color-bg-warm);
    padding: var(--branch-gap) 20px calc(var(--branch-gap) * 1.5);
}

.p-branch-archive__container {
    max-width: var(--branch-container);
    margin: 0 auto;
}

/* エリアブロック */
.p-branch-archive__area {
    margin-bottom: clamp(48px, 6vw, 80px);
}

.p-branch-archive__area:last-child {
    margin-bottom: 0;
}

.p-branch-archive__area-name {
    text-align: center;
    margin-bottom: 12px;
}

.p-branch-archive__area-name-inner {
    display: inline-block;
    font-family: var(--branch-font-ja);
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--branch-color-text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--branch-color-accent);
}

.p-branch-archive__area-desc {
    text-align: center;
    font-size: 14px;
    color: var(--branch-color-text-sub);
    margin-bottom: 32px;
    line-height: 1.8;
}

/* カードグリッド */
.p-branch-archive__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(20px, 3vw, 36px);
    margin-top: 32px;
}

/* カード */
.p-branch-card {
    display: block;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: var(--branch-color-text);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.p-branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.p-branch-card__thumb {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--branch-color-bg-warm);
}

.p-branch-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.p-branch-card:hover .p-branch-card__thumb img {
    transform: scale(1.05);
}

.p-branch-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e2d8 0%, #d4cdc0 100%);
}

.p-branch-card__pref {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--branch-font-en);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #fff;
    background: rgba(30, 25, 15, 0.6);
    padding: 4px 10px;
    border-radius: 2px;
    line-height: 1;
}

.p-branch-card__body {
    padding: 24px 28px 28px;
}

.p-branch-card__name {
    font-family: var(--branch-font-ja);
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.p-branch-card__excerpt {
    font-size: 13px;
    color: var(--branch-color-text-sub);
    line-height: 1.8;
    margin-bottom: 16px;
}

.p-branch-card__link-text {
    display: block;
    font-family: var(--branch-font-en);
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--branch-color-accent);
    transition: letter-spacing 0.3s ease;
    text-align: right;
}

.p-branch-card:hover .p-branch-card__link-text {
    letter-spacing: 0.18em;
}

.p-branch-card__arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.p-branch-card:hover .p-branch-card__arrow {
    transform: translateX(4px);
}


/* ============================================
 * 詳細ページ
 * ============================================ */

/* ヒーロー（共通：背景画像 or ダークブラウン） */
.p-branch-single__hero {
    position: relative;
    height: clamp(300px, 50vw, 520px);
    overflow: hidden;
    background-color: var(--branch-color-hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.p-branch-single__hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(30, 25, 15, 0.45);
    color: #fff;
    text-align: center;
    padding: 20px;
}

.p-branch-single__hero-en {
    font-family: var(--branch-font-en);
    font-size: clamp(11px, 1.2vw, 14px);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 12px;
}

.p-branch-single__hero-pref {
    font-family: var(--branch-font-ja);
    font-size: clamp(12px, 1.3vw, 14px);
    letter-spacing: 0.2em;
    opacity: 0.8;
    margin-bottom: 12px;
}

.p-branch-single__hero-title {
    font-family: var(--branch-font-ja);
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 400;
    letter-spacing: 0.15em;
}

.p-branch-single__hero-area {
    margin-top: 12px;
    font-size: 14px;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* ヒーロー（アイキャッチなし：高さをコンテンツに合わせる） */
.p-branch-single__hero--no-img {
    height: auto;
    padding: clamp(80px, 12vw, 140px) 20px clamp(60px, 8vw, 100px);
}

.p-branch-single__hero--no-img .p-branch-single__hero-overlay {
    position: relative;
    background: none;
}

/* パンくず */
.p-branch-single__breadcrumb {
    background: var(--branch-color-bg-warm);
    padding: 16px 20px;
    border-bottom: 1px solid var(--branch-color-border);
}

.p-branch-single__container {
    max-width: var(--branch-container);
    margin: 0 auto;
}

.p-branch-single__breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: var(--branch-color-text-sub);
}

.p-branch-single__breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin-left: 4px;
    color: var(--branch-color-border);
}

.p-branch-single__breadcrumb-list a {
    color: var(--branch-color-text-sub);
    text-decoration: none;
    transition: color 0.3s;
}

.p-branch-single__breadcrumb-list a:hover {
    color: var(--branch-color-accent);
}

/* 本文エリア */
.p-branch-single__content {
    padding: var(--branch-gap) 20px;
    background: var(--branch-color-bg);
}

/**
 * .p-branch-single__body
 * 管理画面で直書きするHTML向けの汎用スタイル。
 * the_content() で出力される要素にスタイルを当てています。
 * 既存のTOPページと同様のセクション構成を
 * エディタ側で自由に組めるようにしています。
 */
.p-branch-single__body {
    max-width: var(--branch-container);
    margin: 0 auto;
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 2;
    color: var(--branch-color-text);
    letter-spacing: 0.05em;
}

/* the_content 内の汎用スタイル */
.p-branch-single__body h2 {
    font-family: var(--branch-font-en);
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-align: center;
    margin: clamp(48px, 6vw, 80px) 0 20px;
}

.p-branch-single__body h3 {
    font-family: var(--branch-font-ja);
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-align: center;
    margin: 32px 0 16px;
    line-height: 1.8;
}

.p-branch-single__body h4 {
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-align: center;
    margin: 24px 0 12px;
    color: var(--branch-color-text-sub);
    line-height: 1.9;
}

.p-branch-single__body p {
    margin-bottom: 1.5em;
    text-align: center;
}

.p-branch-single__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 32px auto;
    border-radius: 4px;
}

.p-branch-single__body .wp-block-gallery,
.p-branch-single__body .wp-block-columns {
    margin: 40px 0;
}

/* 地図埋め込み対応 */
.p-branch-single__body iframe {
    display: block;
    max-width: 100%;
    margin: 32px auto;
    border: none;
    border-radius: 4px;
}

/* テーブル（営業時間等） */
.p-branch-single__body table {
    width: 100%;
    max-width: 600px;
    margin: 24px auto;
    border-collapse: collapse;
    font-size: 14px;
}

.p-branch-single__body table th,
.p-branch-single__body table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--branch-color-border);
    text-align: left;
}

.p-branch-single__body table th {
    width: 30%;
    font-weight: 400;
    color: var(--branch-color-text-sub);
    white-space: nowrap;
}

/* 戻るリンク */
.p-branch-single__back {
    padding: 0 20px clamp(48px, 6vw, 80px);
    background: var(--branch-color-bg);
    text-align: center;
}

.p-branch-single__back-link {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--branch-color-accent);
    text-decoration: none;
    padding: 12px 32px;
    border: 1px solid var(--branch-color-accent);
    border-radius: 2px;
    transition: background 0.3s, color 0.3s;
}

.p-branch-single__back-link:hover {
    background: var(--branch-color-accent);
    color: #fff;
}

.p-branch-single__back-arrow {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.3s;
}

.p-branch-single__back-link:hover .p-branch-single__back-arrow {
    transform: translateX(-4px);
}


/* ============================================
 * the_content() 内で使う独自ブロック
 * （管理画面の本文に直書きするクラス）
 * ============================================ */

/* ギャラリー（写真を横並び → SP で縦積み） */
.p-branch-single__body .branch-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 40px 0;
}

.p-branch-single__body .branch-gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0;
    border-radius: 4px;
}

/* NOTICE ブロック（アイコン + テキスト横並び） */
.p-branch-single__body .branch-notice {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 720px;
    margin: 32px auto;
}

.p-branch-single__body .branch-notice__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.p-branch-single__body .branch-notice__item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0;
    border-radius: 0;
}

.p-branch-single__body .branch-notice__item p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--branch-color-text-sub);
    margin-bottom: 0;
}


/* ============================================
 * お知らせセクション（店舗詳細）
 * ============================================ */
.p-branch-news {
    padding: var(--branch-gap) 20px;
    background: var(--branch-color-bg-warm);
}

.p-branch-news__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(32px, 4vw, 48px);
}

.p-branch-news__heading-en {
    font-family: var(--branch-font-en);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--branch-color-text);
}

.p-branch-news__heading-ja {
    font-family: var(--branch-font-ja);
    font-size: 13px;
    letter-spacing: 0.15em;
    color: var(--branch-color-text-sub);
}

.p-branch-news__list {
    max-width: 760px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.p-branch-news__item {
    border-bottom: 1px solid var(--branch-color-border);
}

.p-branch-news__item:first-child {
    border-top: 1px solid var(--branch-color-border);
}

.p-branch-news__link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 8px;
    text-decoration: none;
    color: var(--branch-color-text);
    transition: background 0.3s ease;
    cursor: pointer;
}

.p-branch-news__link:hover {
    background: rgba(255, 255, 255, 0.6);
}

.p-branch-news__date {
    flex-shrink: 0;
    font-family: var(--branch-font-en);
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--branch-color-text-sub);
    min-width: 90px;
}

.p-branch-news__title {
    flex: 1;
    font-size: 14px;
    letter-spacing: 0.05em;
    line-height: 1.7;
}

.p-branch-news__arrow {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--branch-color-accent);
    transition: transform 0.3s ease;
}

.p-branch-news__link:hover .p-branch-news__arrow {
    transform: translateX(4px);
}


/* ============================================
 * COMING SOON バッジ（一覧カード）
 * ============================================ */
.p-branch-card__badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(176, 141, 87, 0.9);
    color: #fff;
    font-family: var(--branch-font-en);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-align: center;
    padding: 8px 0;
    line-height: 1;
}

/* カード全体を少し抑えた表現にする（任意） */
.p-branch-card--coming-soon .p-branch-card__thumb img {
    filter: brightness(0.85);
}

/* COMING SOON バッジ（詳細ヒーロー） */
.p-branch-single__hero-badge {
    display: inline-block;
    margin-top: 20px;
    font-family: var(--branch-font-en);
    font-size: 13px;
    letter-spacing: 0.25em;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px 24px;
    border-radius: 2px;
    background: rgba(176, 141, 87, 0.7);
    line-height: 1;
}


/* ============================================
 * フェードインアニメーション
 * ============================================ */
.p-branch-archive__area,
.p-branch-card {
    opacity: 0;
    transform: translateY(24px);
    animation: branchFadeUp 0.7s ease forwards;
}

.p-branch-archive__area {
    animation-delay: 0.1s;
}

.p-branch-card:nth-child(1) {
    animation-delay: 0.2s;
}

.p-branch-card:nth-child(2) {
    animation-delay: 0.35s;
}

.p-branch-card:nth-child(3) {
    animation-delay: 0.5s;
}

.p-branch-card:nth-child(4) {
    animation-delay: 0.65s;
}

@keyframes branchFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
 * レスポンシブ
 * ============================================ */
@media (max-width: 768px) {
    .p-branch-archive__cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .p-branch-single__hero {
        height: clamp(220px, 60vw, 320px);
    }

    .p-branch-card__body {
        padding: 20px;
    }

    .p-branch-single__body p,
    .p-branch-single__body h2,
    .p-branch-single__body h3,
    .p-branch-single__body h4 {
        text-align: left;
    }

    .p-branch-single__body .branch-gallery {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .p-branch-single__body .branch-notice {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* お知らせ SP */
    .p-branch-news__link {
        flex-wrap: wrap;
        gap: 4px 16px;
        padding: 16px 4px;
    }

    .p-branch-news__date {
        font-size: 12px;
        min-width: auto;
    }

    .p-branch-news__title {
        width: 100%;
        font-size: 13px;
        order: 3;
    }

    .p-branch-news__arrow {
        margin-left: auto;
    }
}