/* =========================================
   古民家珈琲 とまり木（架空・テンプレート）
   モバイルファーストで記述
   ========================================= */

:root {
    --paper:      #ede7da;   /* 漏壁（ろうへき）＝土壁の色 */
    --paper-2:    #f6f2e9;   /* 一段明るい面 */
    --paper-3:    #e3dbca;   /* 一段濃い面 */
    --sumi:       #24211c;   /* 墨＝本文 */
    --sumi-soft:  #5f584d;   /* 補助テキスト */
    --sumi-faint: #8c8477;
    --ai:         #3a5a78;   /* 藍＝アクセント */
    --ai-bg:      #dfe6ed;
    --hi:         #a8552f;   /* 緋＝注意・混雑 */
    --line:       #d5cbb6;
    --line-soft:  #e0d8c6;

    --mincho: "Hiragino Mincho ProN", "HiraMinProN-W3", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", serif;
    --gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--gothic);
    color: var(--sumi);
    background: var(--paper);
    line-height: 1.9;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    font-feature-settings: "palt" 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 700px; }

/* ---- 画像プレースホルダー（Firefly画像に差し替える場所） ---- */
.ph {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, #ded5c0, #ded5c0 10px, #d6ccb5 10px, #d6ccb5 20px);
    color: var(--sumi-soft);
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
    border: 1px dashed #bdb096;
}
.ph::before {
    content: attr(data-ph);
    position: absolute;
    top: 8px; left: 8px;
    background: var(--sumi);
    color: var(--paper);
    font-size: 0.65rem;
    padding: 2px 8px;
    letter-spacing: 0.04em;
}

/* =========== ヘッダー =========== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(237, 231, 218, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 54px;
}
.logo {
    font-family: var(--mincho);
    font-size: 0.72rem;
    color: var(--sumi-soft);
    text-decoration: none;
    line-height: 1.3;
    letter-spacing: 0.08em;
}
.logo strong { display: block; font-size: 1.12rem; color: var(--sumi); letter-spacing: 0.12em; }
.header-tel {
    font-family: var(--mincho);
    font-size: 0.98rem;
    color: var(--sumi);
    text-decoration: none;
    border: 1px solid var(--line);
    padding: 0.45rem 0.85rem;
}

.site-nav { border-top: 1px solid var(--line-soft); }
.nav-list {
    list-style: none;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 12px;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li { flex: 0 0 auto; }
.nav-list a {
    display: block;
    padding: 0.65rem 0.8rem;
    font-size: 0.8rem;
    color: var(--sumi-soft);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list a:focus-visible {
    color: var(--ai);
    border-bottom-color: var(--ai);
}

/* =========== ヒーロー =========== */
.hero-img {
    width: 100%;
    height: 44vh;
    min-height: 240px;
    object-fit: cover;
}
.hero-body { padding: 2.5rem 20px 3rem; text-align: center; }
.hero-eyebrow {
    font-size: 0.78rem; letter-spacing: 0.22em; color: var(--ai);
    margin-bottom: 1rem;
}
.hero-title {
    font-family: var(--mincho);
    font-size: clamp(2rem, 9.5vw, 3.3rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.04em;
    margin-bottom: 1.2rem;
    text-wrap: balance;
}
.hero-lead { font-size: 0.95rem; color: var(--sumi-soft); margin-bottom: 2rem; }

.spec-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 2rem;
}
.spec { background: var(--paper); padding: 1rem 0.5rem; }
.spec-label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--sumi-faint); }
.spec-value { display: block; font-family: var(--mincho); font-size: 1.5rem; color: var(--ai); line-height: 1.4; }

.btn {
    display: inline-block;
    min-height: 48px;
    line-height: 48px;
    padding: 0 2.2rem;
    background: var(--sumi);
    color: var(--paper);
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.1em;
}

/* =========== セクション共通 =========== */
.section { padding: 4rem 0; }
.section-tint { background: var(--paper-2); }

.section-label {
    font-size: 0.68rem; letter-spacing: 0.28em; color: var(--ai);
    text-align: center; margin-bottom: 0.6rem; text-transform: uppercase;
}
.section-title {
    font-family: var(--mincho);
    font-size: clamp(1.5rem, 6vw, 2.1rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
    margin-bottom: 1rem;
    text-wrap: balance;
}
.section-lead {
    text-align: center; font-size: 0.9rem; color: var(--sumi-soft);
    margin-bottom: 2.5rem;
}
.note { font-size: 0.75rem; color: var(--sumi-faint); margin-top: 1.2rem; line-height: 1.85; }

/* =========== カード（席） =========== */
.cards { display: grid; gap: 1.2rem; }
.card { background: var(--paper-2); border: 1px solid var(--line); }
.section-tint .card { background: #fff; }
.ph-card { aspect-ratio: 4 / 3; }
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.2rem; }
.card-title { font-family: var(--mincho); font-size: 1.15rem; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.card-text { font-size: 0.85rem; color: var(--sumi-soft); line-height: 1.85; }

.badge {
    display: inline-block; font-size: 0.7rem; letter-spacing: 0.08em;
    padding: 0.15rem 0.7rem; background: var(--ai-bg); color: var(--ai);
    margin-bottom: 0.6rem;
}

/* =========== 間取り図（SVG） =========== */
.floorplan {
    max-width: 420px;
    margin: 0 auto 2rem;
    background: var(--paper-2);
    border: 1px solid var(--line);
    padding: 1.2rem 1rem 1rem;
}
.section-tint .floorplan { background: #fff; }
.fp-svg { width: 100%; height: auto; display: block; }

.fp-area    { fill: none; stroke: var(--line); stroke-width: 1.5; }
.fp-garden  { fill: #dfe6dc; stroke: var(--line); stroke-width: 1.5; }
.fp-table   { fill: var(--paper-3); stroke: var(--sumi-faint); stroke-width: 1; }
.fp-seat    { fill: var(--ai); }
.fp-counter { fill: var(--paper-3); stroke: var(--sumi-faint); stroke-width: 1; }
.fp-stairs  { fill: none; stroke: var(--sumi-faint); stroke-width: 1; stroke-dasharray: 3 3; }

.fp-floor {
    font-family: var(--mincho);
    font-size: 13px;
    fill: var(--sumi);
    letter-spacing: 0.08em;
}
.fp-label { font-size: 11px; fill: var(--sumi); font-weight: 700; }
.fp-sub   { font-size: 9.5px; fill: var(--sumi-faint); }
.fp-room  { font-size: 10px; fill: var(--sumi-soft); }
.fp-entry { font-size: 10px; fill: var(--sumi-faint); letter-spacing: 0.1em; }

.fp-legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    justify-content: center;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line-soft);
    font-size: 0.72rem;
    color: var(--sumi-faint);
}
.fp-legend li { display: flex; align-items: center; gap: 0.35rem; }
.fp-legend span { width: 11px; height: 11px; display: inline-block; }
.lg-seat   { background: var(--ai); border-radius: 50%; }
.lg-table  { background: var(--paper-3); border: 1px solid var(--sumi-faint); }
.lg-garden { background: #dfe6dc; border: 1px solid var(--line); }

/* =========== 席の一覧表 =========== */
.scroller { overflow-x: auto; }
.seat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
    font-variant-numeric: tabular-nums;
}
.seat-table th, .seat-table td {
    text-align: left;
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid var(--line-soft);
    white-space: nowrap;
}
.seat-table thead th {
    font-size: 0.74rem;
    color: var(--sumi-soft);
    border-bottom: 1px solid var(--line);
}
.seat-table tbody th { font-weight: 700; }

/* 設備タグ */
.facility { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.facility-title { font-family: var(--mincho); font-size: 1.05rem; letter-spacing: 0.06em; margin-bottom: 1rem; text-align: center; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.tags li {
    font-size: 0.82rem; padding: 0.4rem 0.9rem;
    background: var(--paper-2); border: 1px solid var(--line); color: var(--sumi-soft);
}
.section-tint .tags li { background: #fff; }

/* =========== 空間 =========== */
.space-grid { display: grid; gap: 1.5rem; }
.ph-space { aspect-ratio: 3 / 2; }
.space-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.space-text p { font-size: 0.9rem; color: var(--sumi-soft); margin-bottom: 1rem; }
.space-text strong { color: var(--sumi); }

/* =========== メニュー =========== */
.menu-grid { display: grid; gap: 1.5rem; }
.ph-menu { aspect-ratio: 4 / 3; }
.menu-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.menu-lists { display: grid; gap: 1.8rem; }
.menu-heading {
    font-family: var(--mincho); font-size: 1rem; letter-spacing: 0.08em;
    padding-bottom: 0.5rem; margin-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}
.menu-list { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; font-size: 0.88rem; }
.menu-list dt { padding: 0.4rem 0; }
.menu-list dd { padding: 0.4rem 0; font-variant-numeric: tabular-nums; color: var(--sumi-soft); }

/* =========== 「いま」の状況（JSで表示） =========== */
.now-box {
    max-width: 620px;
    margin: 0 auto 2rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--ai);
    padding: 1.2rem 1.3rem;
    text-align: center;
}
.section-tint .now-box { background: #fff; }
.now-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--sumi-faint);
    margin-bottom: 0.3rem;
}
.now-status {
    display: block;
    font-family: var(--mincho);
    font-size: 1.7rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
}
.now-status.is-free   { color: var(--ai); }
.now-status.is-mid    { color: #8a6a2e; }
.now-status.is-busy   { color: var(--hi); }
.now-status.is-closed { color: var(--sumi-faint); }
.now-detail {
    display: block;
    font-size: 0.83rem;
    color: var(--sumi-soft);
    margin-top: 0.4rem;
}

/* =========== いまの混み具合（JSで自動表示） =========== */
.now-box {
    max-width: 620px;
    margin: 0 auto 2rem;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-left: 4px solid var(--ai);
    padding: 1.1rem 1.2rem;
    text-align: center;
}
.section-tint .now-box { background: #fff; }
.now-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--sumi-faint);
    margin-bottom: 0.2rem;
}
.now-status {
    display: block;
    font-family: var(--mincho);
    font-size: 1.7rem;
    letter-spacing: 0.06em;
    line-height: 1.5;
    color: var(--ai);
}
.now-status.is-free   { color: #3f7a52; }
.now-status.is-mid    { color: var(--ai); }
.now-status.is-busy   { color: var(--hi); }
.now-status.is-closed { color: var(--sumi-faint); }
.now-detail {
    display: block;
    font-size: 0.8rem;
    color: var(--sumi-soft);
    margin-top: 0.3rem;
}

/* いまの時間帯の行を目立たせる */
.bars li.is-now .bar-time {
    color: var(--sumi);
    font-weight: 700;
}
.bars li.is-now .bar {
    outline: 2px solid var(--sumi);
    outline-offset: 2px;
}
.bars li.is-now .bar-note {
    color: var(--sumi);
    font-weight: 700;
}

/* =========== 混雑グラフ =========== */
.chart { max-width: 620px; margin: 0 auto; }
.chart-title.is-today::after {
    content: "今日";
    font-family: var(--gothic);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    background: var(--ai);
    color: var(--paper-2);
    padding: 0.12rem 0.55rem;
    margin-left: 0.6rem;
    vertical-align: 0.15em;
}
.bars li.is-now .bar-time {
    color: var(--ai);
    font-weight: 700;
}
.bars li.is-now .bar {
    outline: 2px solid var(--sumi);
    outline-offset: 1px;
    opacity: 1;
}
.bars li.is-now .bar-note::before {
    content: "いま　";
    color: var(--sumi);
    font-weight: 700;
}
.chart-title {
    font-family: var(--mincho); font-size: 1rem; letter-spacing: 0.08em;
    margin: 1.8rem 0 0.8rem;
}
.chart-title:first-child { margin-top: 0; }
.bars { list-style: none; display: grid; gap: 0.3rem; }
.bars li {
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    grid-template-areas: "time bar" "time note";
    align-items: center;
    gap: 0 0.7rem;
}
.bar-time {
    grid-area: time;
    font-size: 0.78rem;
    color: var(--sumi-faint);
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.bar {
    grid-area: bar;
    display: block;
    height: 14px;
    width: var(--v);
    background: var(--ai);
    opacity: 0.55;
}
.bar.is-busy { background: var(--hi); opacity: 0.75; }
.bar-note {
    grid-area: note;
    font-size: 0.7rem;
    color: var(--sumi-faint);
    line-height: 1.5;
}
.bar-note:empty { display: none; }

/* =========== お願い =========== */
.rules { list-style: none; }
.rules li {
    font-size: 0.88rem;
    color: var(--sumi-soft);
    padding: 0.9rem 0 0.9rem 1.4rem;
    border-bottom: 1px solid var(--line-soft);
    position: relative;
    line-height: 1.85;
}
.rules li::before {
    content: "―";
    position: absolute;
    left: 0;
    color: var(--ai);
}
.rules strong { color: var(--sumi); }

/* =========== アクセス =========== */
.access-grid { display: grid; gap: 1.5rem; }
.ph-map { aspect-ratio: 4 / 3; }
.info-list { display: grid; grid-template-columns: 5rem 1fr; gap: 0 1rem; font-size: 0.9rem; }
.info-list dt {
    color: var(--sumi-faint); font-size: 0.83rem;
    padding: 0.8rem 0; border-top: 1px solid var(--line);
}
.info-list dd { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.tel-link {
    font-family: var(--mincho); font-size: 1.4rem; color: var(--ai);
    text-decoration: none; letter-spacing: 0.02em;
}
.hours-value { font-family: var(--mincho); font-size: 1.3rem; color: var(--ai); font-weight: 600; }
.hint { font-size: 0.72rem; color: var(--sumi-faint); }

/* =========== FAQ =========== */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; list-style: none;
    padding: 1.1rem 2rem 1.1rem 0; position: relative;
    font-size: 0.93rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "＋"; position: absolute; right: 0.3rem; top: 1rem;
    color: var(--ai); font-size: 1.1rem;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 1.3rem; font-size: 0.86rem; color: var(--sumi-soft); }

/* =========== フッター =========== */
.site-footer {
    background: var(--sumi); color: #b5ac9d;
    padding: 3rem 0 2.5rem; text-align: center;
}
.footer-logo {
    font-family: var(--mincho); font-size: 0.75rem; line-height: 1.5;
    letter-spacing: 0.1em; margin-bottom: 0.8rem;
}
.footer-logo strong { display: block; font-size: 1.3rem; color: #ede7da; letter-spacing: 0.14em; }
.footer-address { font-size: 0.85rem; margin-bottom: 0.4rem; }
.footer-address a { color: #d9c9a8; }
.footer-hours { font-size: 0.82rem; margin-bottom: 1.5rem; }
.footer-copy { font-size: 0.74rem; opacity: 0.6; margin-bottom: 2rem; }
.disclaimer {
    font-size: 0.72rem; line-height: 1.9; color: #8a8175;
    border-top: 1px solid #3a352d; padding-top: 1.5rem;
    max-width: 620px; margin: 0 auto; text-align: left;
}
.disclaimer strong { color: #ada393; }

/* =========================================
   タブレット以上
   ========================================= */
@media (min-width: 700px) {
    body { font-size: 17px; }
    .section { padding: 5.5rem 0; }
    .cards-3 { grid-template-columns: repeat(3, 1fr); }
    .space-grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
    .menu-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
    .menu-lists { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .access-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
    .hero-img { height: 54vh; }
    .logo { font-size: 0.8rem; }
    .header-tel { font-size: 1.1rem; }
    .nav-list { justify-content: center; padding: 0 20px; }
    .nav-list a { font-size: 0.85rem; padding: 0.75rem 1rem; }
    .bars li { grid-template-columns: 2.4rem 1fr 9rem; grid-template-areas: "time bar note"; }
    .bar-note { text-align: left; }
}
