/* =============================================
   Pattern 32: Cafe (カフェ)
   Roast & Rest — 品質向上版
   ★ 独自構成: ブラウン×クリーム配色, 黒板UI, ポラロイド風写真, SVGアニメーション
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
    --c-brown: #4A3022;
    /* コーヒーブラウン */
    --c-brown-light: #7E6152;
    --c-cream: #FDFBF7;
    /* クリームベース */
    --c-paper: #F4EFEB;
    /* 古紙のような色 */
    --c-dark-chalk: #2A2F2C;
    /* 黒板の色 */
    --c-text: #332B27;
    --c-text-muted: #827A76;
    --c-white: #ffffff;
    --f-display: 'Playfair Display', serif;
    --f-hand: 'Caveat', cursive;
    --f-body: 'Zen Kaku Gothic New', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--f-body);
    color: var(--c-text);
    background: var(--c-cream);
    line-height: 1.8;
    font-weight: 400;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.container--sm {
    max-width: 750px;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--c-white) !important;
}

/* ===== タイポグラフィ ===== */
h2 {
    font-family: var(--f-body);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--c-brown);
    margin-bottom: 25px;
    letter-spacing: 0.05em;
}

p {
    font-size: 1.05rem;
    color: var(--c-text-muted);
}

.handwritten-title {
    display: inline-block;
    font-family: var(--f-hand);
    font-size: 2.8rem;
    color: var(--c-brown-light);
    transform: rotate(-5deg);
    margin-bottom: 10px;
    opacity: 0.9;
}

/* ===== ヘッダー ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    transition: all 0.3s;
    background: transparent;
}

.header.is-scrolled {
    background: var(--c-cream);
    padding: 15px 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--f-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-white);
    text-decoration: none;
    transition: color 0.3s;
}

.header.is-scrolled .logo {
    color: var(--c-brown);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-family: var(--f-display);
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--c-white);
    font-style: italic;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--c-brown-light);
}

.header.is-scrolled .nav a {
    color: var(--c-text);
}

.header.is-scrolled .nav a:hover {
    color: var(--c-brown);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--c-white);
    margin-bottom: 6px;
    transition: 0.3s;
}

.header.is-scrolled .menu-toggle span {
    background: var(--c-brown);
}

/* ===== ヒーロー ===== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(74, 48, 34, 0.4);
}

/* ブラウンのオーバーレイ */
.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-box {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 50px 70px;
    backdrop-filter: blur(5px);
}

.hero-subtitle {
    display: block;
    font-family: var(--f-hand);
    font-size: 2.2rem;
    color: var(--c-white);
    transform: rotate(-3deg);
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--f-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--c-white);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero-desc {
    font-family: var(--f-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== ボタン ===== */
.btn-primary {
    display: inline-block;
    background: var(--c-brown);
    color: var(--c-white);
    padding: 15px 40px;
    text-decoration: none;
    font-family: var(--f-body);
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 4px;
    border: 1px solid var(--c-brown);
    transition: all 0.3s;
}

.btn-primary:hover {
    background: transparent;
    color: var(--c-brown);
}

.mt-4 {
    margin-top: 30px;
}

/* ===== セクションベース ===== */
.section {
    padding: 100px 0;
}

.section--paper {
    background: var(--c-paper);
    /* 少しテクスチャの効いた色 */
}

.section-head {
    margin-bottom: 50px;
}

/* ===== About (SVGアニメーション) ===== */
.coffee-cup {
    color: var(--c-brown);
    margin-bottom: 20px;
}

.steam {
    stroke-dasharray: 10;
    stroke-dashoffset: 10;
    animation: steamAnim 3s infinite ease-out;
    opacity: 0;
}

.s1 {
    animation-delay: 0s;
}

.s2 {
    animation-delay: 1s;
}

.s3 {
    animation-delay: 2s;
}

@keyframes steamAnim {
    0% {
        stroke-dashoffset: 10;
        opacity: 0;
        transform: translateY(0) scaleX(1);
    }

    50% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
        transform: translateY(-15px) scaleX(1.5);
    }
}

.about-text h2 {
    margin-bottom: 30px;
}

/* ===== メニュー（黒板風 UI） ===== */
.section--chalkboard {
    position: relative;
    background: var(--c-dark-chalk);
    padding: 100px 20px;
    overflow: hidden;
}

.section--chalkboard::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1554118811-1e0d58224f24?q=80&w=1600');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mix-blend-mode: overlay;
    z-index: 0;
}

.chalkboard-wrap {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    border: 12px solid #5C4033;
    /* 木枠風 */
    border-radius: 4px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
}

.chalkboard-inner {
    padding: 60px;
    background: rgba(42, 47, 44, 0.85);
    /* チョークボードの緑黒っぽさ */
    color: rgba(255, 255, 255, 0.9);
}

.chalk-header {
    margin-bottom: 50px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 30px;
}

.chalk-header h2 {
    font-family: var(--f-display);
    font-size: 2.8rem;
    font-style: italic;
}

.chalk-header .handwritten-title {
    color: var(--c-white);
    opacity: 0.7;
}

.chalk-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.chalk-col h3 {
    font-family: var(--f-hand);
    font-size: 2rem;
    color: #FFF3E0;
    margin-bottom: 20px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.chalk-list {
    list-style: none;
}

.chalk-list li {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--f-body);
    font-size: 1.1rem;
}

.chalk-list li::after {
    content: '';
    flex: 1;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    margin: 0 10px;
    order: 2;
}

.item-name {
    order: 1;
    padding-right: 5px;
}

.item-name small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 5px;
}

.item-price {
    order: 3;
    font-family: var(--f-display);
    font-size: 1.2rem;
    padding-left: 5px;
}

.chalk-note {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== ギャラリー（ポラロイド風） ===== */
.polaroid-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.polaroid-card {
    background: var(--c-white);
    padding: 15px 15px 50px 15px;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.1);
    width: 280px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.polaroid-card:hover {
    transform: scale(1.05) translateZ(0) !important;
    box-shadow: 5px 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.polaroid-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.polaroid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(30%) contrast(1.1);
}

.polaroid-caption {
    font-family: var(--f-hand);
    font-size: 1.8rem;
    color: var(--c-brown);
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
}

.rotate-right {
    transform: rotate(4deg);
}

.rotate-left {
    transform: rotate(-3deg);
    margin-top: 20px;
}

/* ===== Access ===== */
.info-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    background: var(--c-white);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.info-image {
    flex: 1;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-text {
    flex: 1;
}

.info-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-dl {
    margin-bottom: 30px;
}

.info-dl dt {
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 700;
    color: var(--c-brown-light);
    font-size: 1.1rem;
    margin-top: 15px;
}

.info-dl dd {
    margin: 0 0 15px 10px;
    font-size: 0.95rem;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-paper);
    padding-bottom: 10px;
}

/* ===== フッター ===== */
.footer {
    background: var(--c-brown);
    color: var(--c-white);
    padding: 60px 0 30px;
}

.footer-logo {
    font-family: var(--f-display);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--c-white);
    margin-bottom: 20px;
}

.footer-social {
    margin-bottom: 30px;
}

.footer-social a {
    color: var(--c-white);
    text-decoration: none;
    font-family: var(--f-body);
    font-size: 0.9rem;
    margin: 0 15px;
    letter-spacing: 0.1em;
    transition: opacity 0.3s;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--c-white);
}

.copyright {
    font-family: var(--f-display);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

/* ===== アニメーション ===== */
.anim {
    opacity: 0;
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim.anim-up {
    transform: translateY(30px);
}

.anim.is-visible {
    opacity: 1;
    transform: translate(0);
}

.anim-d1 {
    transition-delay: 0.2s;
}

.anim-d2 {
    transition-delay: 0.4s;
}

.anim-hero {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-hero.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
    .container {
        padding: 0 25px;
    }

    .hero-box {
        padding: 40px 20px;
        border: none;
        background: rgba(0, 0, 0, 0.5);
        width: 100%;
        border-radius: 8px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .chalk-menu-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .chalkboard-wrap {
        border-width: 6px;
    }

    .chalkboard-inner {
        padding: 40px 20px;
    }

    .chalk-header h2 {
        font-size: 2.2rem;
    }

    .polaroid-grid {
        flex-direction: column;
        align-items: center;
    }

    .polaroid-card {
        width: 100%;
        max-width: 320px;
        transform: rotate(0) !important;
        margin-bottom: 20px;
    }

    .info-layout {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .info-image {
        height: 300px;
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}