:root {
    --ink: #2a2420;
    --paper: #faf6f0;
    --accent: #6b5344;
    --accent-soft: #c4a882;
    --white: #ffffff;
    --shadow: rgba(42, 36, 32, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: stretch;
    gap: 0;
    padding: 0.65rem clamp(0.4rem, 2.5vw, 1rem);
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: none;
    border-bottom: 1px solid rgba(107, 83, 68, 0.15);
}

.logo {
    display: none;
}

.logo:hover {
    text-decoration: none;
    color: var(--accent);
}

.nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0;
    font-size: clamp(0.68rem, 2.8vw, 0.78rem);
    letter-spacing: 0.14em;
}

.nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    color: var(--ink);
    opacity: 0.85;
}

.nav a:hover {
    opacity: 1;
    color: var(--accent);
    text-decoration: none;
}

.section {
    padding: 2.5rem 1.25rem 3rem;
}

.section-inner {
    max-width: 36rem;
    margin: 0 auto;
}

.section-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
    color: var(--accent);
}

.section-label-ja {
    margin: 0.35rem 0 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent-soft);
}

/* TOP */
.top-section {
    padding: 0;
}

.top-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.top-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* ヒーロー突入時のズーム系挙動を明示的に無効化 */
.top-hero,
.top-hero-bg,
.top-hero-inner,
.top-hero-logo {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

.top-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(42, 36, 32, 0.75) 0%,
        rgba(42, 36, 32, 0.25) 45%,
        transparent 100%
    );
    pointer-events: none;
}

.top-hero-inner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100svh;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

@media (max-width: 899px) {
    .top-hero,
    .top-hero-inner {
        height: 100svh;
        min-height: 100svh;
    }
}

.top-hero-logo {
    width: min(320px, 68vw);
    height: auto;
    object-fit: contain;
}

.top-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    opacity: 0.9;
}

.top-title {
    margin: 0 0 0.5rem;
    font-size: clamp(2.1rem, 8vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.28em;
}

.top-lead {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    opacity: 0.95;
}

/* CONCEPT */
.concept-section {
    position: relative;
    padding: 0;
}

.concept-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    z-index: 2;
    color: var(--white);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.25) 40%,
        transparent 80%
    );
}

.concept-overlay .section-inner {
    padding: 2rem 1.5rem 3rem;
}

.concept-figure {
    margin: 0 0 1.5rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 32px var(--shadow);
}

.concept-figure-full {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.concept-figure-full img {
    width: 100%;
    max-width: none;
    display: block;
}

.concept-body p {
    margin: 0 0 1rem;
    text-align: center;
}

.concept-body p:last-child {
    margin-bottom: 0;
}

/* SHOP */
.beans-grid {
    display: grid;
    gap: 1.25rem;
    margin: 0 0 2rem;
}

.bean-item {
    padding: 1rem 1.1rem;
    border-radius: 6px;
    background: rgba(250, 246, 240, 0.8);
    box-shadow: 0 8px 20px rgba(42, 36, 32, 0.06);
}

.bean-name {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.bean-price {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--ink);
}

.bean-desc {
    margin: 0;
}

.bean-desc[open] {
    display: flex;
    flex-direction: column;
}

.bean-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.85;
    cursor: pointer;
    list-style: none;
}

.bean-text::-webkit-details-marker {
    display: none;
}

.bean-text-toggle::before {
    content: " 続きを読む";
    font-size: 0.78em;
    letter-spacing: 0.06em;
    color: rgba(42, 36, 32, 0.55);
    white-space: nowrap;
}

.bean-desc[open] > .bean-text {
    order: 2;
    margin-top: 0.45rem;
    font-size: 0.8rem;
}

.bean-desc[open] .bean-text-short {
    display: none;
}

.bean-desc[open] .bean-text-toggle::before {
    content: "閉じる";
}

.bean-text-full {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.85;
}

.bean-desc[open] > .bean-text-full {
    order: 1;
}

.shop-embeds {
    display: grid;
    gap: 1.75rem;
}

.embed-block {
    padding: 1rem 0 0;
    border-top: 1px solid rgba(107, 83, 68, 0.18);
}

.embed-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.embed-link:hover {
    text-decoration: none;
}

.embed-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(42, 36, 32, 0.14);
    background: #2a2420;
}

.embed-frame-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.embed-cta {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    z-index: 1;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    padding: 0.55rem 1.2rem;
    border-radius: 4px;
    border: 1px solid rgba(250, 246, 240, 0.55);
    background: rgba(42, 36, 32, 0.78);
    color: #faf6f0;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.embed-link:hover .embed-frame-wrap img {
    transform: scale(1.04);
}

.embed-link:hover .embed-cta {
    background: rgba(42, 36, 32, 0.92);
    border-color: rgba(250, 246, 240, 0.85);
}

.embed-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.embed-note {
    margin: 0.6rem 0 0;
    font-size: 0.8rem;
    color: rgba(42, 36, 32, 0.7);
}

.shop-setagaya-pay {
    margin-top: 0.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(107, 83, 68, 0.18);
    text-align: center;
}

.shop-setagaya-pay-text {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.85;
    letter-spacing: 0.04em;
}

.shop-instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8rem;
    padding: 0.55rem 1.2rem;
    border-radius: 4px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--ink);
    background: transparent;
    border: 1px solid rgba(42, 36, 32, 0.3);
}

.shop-instagram-btn:hover {
    text-decoration: none;
    background: rgba(42, 36, 32, 0.06);
}

/* MAP */
.map-address {
    margin: 0 0 1rem;
    text-align: center;
    font-size: 0.88rem;
}

.map-embed {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 32px var(--shadow);
    aspect-ratio: 4 / 3;
    max-height: 280px;
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-hint {
    margin: 1rem 0 0;
    font-size: 0.78rem;
    color: rgba(42, 36, 32, 0.65);
    text-align: center;
}

.map-shops {
    margin: 1.75rem 0 0;
}

.map-shops-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-align: center;
    color: var(--accent);
}

.map-shops-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.map-shop-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.9rem;
}

.map-shop-name {
    font-weight: 600;
}

.map-shop-note {
    font-size: 0.82rem;
    color: rgba(42, 36, 32, 0.8);
}

/* SNS */
.sns-section .section-inner {
    text-align: center;
}

.sns-lead {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
}

.sns-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.sns-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8rem;
    padding: 0.55rem 1.2rem;
    border-radius: 4px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--ink);
    background: transparent;
    border: 1px solid rgba(42, 36, 32, 0.3);
}

.sns-link:hover {
    text-decoration: none;
    background: rgba(42, 36, 32, 0.06);
}

.site-footer {
    padding: 1.5rem 1rem 2.5rem;
    text-align: center;
    border-top: 1px solid rgba(107, 83, 68, 0.12);
}

.footer-copy {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: rgba(42, 36, 32, 0.55);
}

/* 初期表示を軽くするため、下部セクションは表示時に描画 */
.shop-section,
.map-section,
.sns-section {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

/* ===================================
   Desktop / wide screens only
   （既定スタイルはモバイル優先のまま）
=================================== */
@media (min-width: 900px) {
    html {
        scroll-padding-top: 3.75rem;
    }

    #top,
    #concept,
    #shop,
    #map,
    #sns {
        scroll-margin-top: 3.25rem;
    }

    body {
        font-size: 16px;
    }

    .site-header {
        justify-content: center;
        padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
    }

    .nav {
        width: auto;
        gap: 0.65rem 2rem;
        font-size: 0.8125rem;
        letter-spacing: 0.16em;
    }

    .nav a {
        flex: none;
        text-align: left;
    }

    .section {
        padding: 3.25rem clamp(1.5rem, 5vw, 3rem) 4rem;
    }

    /* ヒーローが左右に余白で縮まないよう、.section のパディングを打ち消す（上書き順のためこの直後が重要） */
    .section.top-section {
        padding: 0;
    }

    .section-inner {
        max-width: min(52rem, 94vw);
    }

    .section-title {
        font-size: clamp(1.35rem, 2vw, 1.65rem);
    }

    /* ヒーロー：PCでもビューポート幅・高さいっぱいの全画面（背景は cover で横幅に追従） */
    .top-section {
        width: 100%;
        max-width: none;
        margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    }

    .top-hero {
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        max-height: none;
        height: auto;
    }

    .top-hero-inner {
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        max-height: none;
        height: auto;
        padding: clamp(2rem, 5vh, 3rem) clamp(1.5rem, 4vw, 3rem);
    }

    .top-hero-logo {
        width: min(380px, 34vw);
    }

    /* CONCEPT：PCでは写真左・テキスト右の横並び */
    .concept-section.section {
        padding: 0;
        width: 100%;
        max-width: none;
        display: flex;
        flex-direction: row-reverse;
        align-items: stretch;
        height: auto;
        min-height: 95vh;
        min-height: 95svh;
        min-height: 95dvh;
    }

    .concept-overlay {
        position: relative;
        inset: auto;
        flex: 1 1 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ink);
        background: var(--paper);
    }

    .concept-section .section-inner {
        max-width: none;
        width: 100%;
    }

    .concept-overlay .section-inner {
        padding: clamp(2rem, 4vw, 3.5rem);
    }

    .concept-body {
        max-width: min(28rem, 90%);
        margin: 0;
    }

    .concept-body p {
        font-size: clamp(1.05rem, 1.35vw, 1.2rem);
        line-height: 1.9;
        letter-spacing: 0.06em;
        text-align: left;
        margin-bottom: 0.85rem;
    }

    .concept-body p:last-child {
        margin-bottom: 0;
    }

    .concept-figure-full {
        flex: 1 1 50%;
        min-height: 0;
        margin: 0;
        overflow: hidden;
        position: relative;
        z-index: 1;
    }

    .concept-figure-full img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        object-fit: cover;
        object-position: center;
    }

    /* SHOP：商品カード内の埋め込みは1つ想定 */
    .shop-embeds {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        align-items: start;
    }

    .embed-block {
        padding-top: 1.25rem;
    }

    .beans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }

    .bean-item {
        padding: 1.35rem 1.5rem;
    }

    .section-inner {
        max-width: min(72rem, 94vw);
    }

    .concept-section .section-inner {
        max-width: none;
        width: 100%;
    }

    /* MAP：地図をやや大きく */
    .map-embed {
        max-height: none;
        aspect-ratio: 16 / 10;
        max-width: min(42rem, 100%);
        margin-inline: auto;
    }

    .map-shops-list {
        gap: 1.25rem;
    }

    /* SNS */
    .sns-links {
        gap: 1rem 1.5rem;
    }

    .sns-link {
        min-width: 10rem;
        padding: 0.6rem 1.75rem;
    }

    .site-footer {
        padding: 2rem clamp(1rem, 4vw, 3rem) 3rem;
    }
}
