/* ==========================================================================
   CSS Variables (Theme Configuration for "pertica")
   温かみのある手作り洋菓子・焼き菓子をイメージした配色とフォント
   ========================================================================== */
:root {
    /* Colors - pertica様向け（温かみのあるブラウン・キャラメル・オフホワイト） */
    --color-primary: #b58055; /* 温かみのあるキャラメルブラウン（焼き菓子の色） */
    --color-primary-hover: #9c6e48;
    --color-text-main: #4a403a; /* 少し茶色がかった柔らかいテキスト色 */
    --color-text-muted: #8c7f76;
    --color-bg-base: #fcf9f5; /* 優しいオフホワイト（バニラ色） */
    --color-bg-light: #ffffff;
    --color-border: #f0e6dd;

    /* Typography - 洗練されたエレガントなフォント */
    /* お店のロゴに合わせた、上品な明朝体と筆記体の組み合わせ */
    --font-main: 'Noto Serif JP', serif;
    --font-en: 'Cormorant Garamond', serif;
    --font-logo: 'Alex Brush', cursive; /* ロゴ用筆記体 */

    /* Layout */
    --container-width: 1000px;
    --header-height: 80px;
    --mobile-action-bar-height: 60px;

    /* Animation */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-base);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--mobile-action-bar-height);
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Typography & Titles
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-en {
    display: block;
    font-family: var(--font-en);
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
}

.section-desc {
    margin-top: 10px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 2px; /* 丸みを抑えて洗練された印象に */
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 128, 85, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

.btn-insta {
    gap: 8px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background-color: rgba(252, 249, 245, 0.95); /* perticaベースカラーの透過 */
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-logo);
    font-size: 3.5rem; /* 筆記体は少し小さく見えるためサイズを大きく */
    font-weight: 400;
    color: var(--color-text-main);
    letter-spacing: 0.02em;
    text-transform: capitalize; /* 最初の文字を大文字にして "Pertica" にする */
    display: inline-block;
    line-height: 1;
}

/* 文章中の「pertica」をロゴと同じ筆記体にするクラス */
.brand-text {
    font-family: var(--font-logo);
    font-size: 1.6em; /* ベースの文字より少し大きくしてバランスを取る */
    font-weight: 400;
    text-transform: capitalize; /* Pertica */
    display: inline-block;
    line-height: 0.8;
    transform: translateY(0.15em); /* 少し下にずらして明朝体と高さを合わせる */
}

.desktop-nav ul {
    display: none;
    list-style: none;
    gap: 30px;
}

.desktop-nav a {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic; /* 英語メニューをイタリックにしてエレガントに */
    color: var(--color-text-muted);
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav a:hover {
    color: var(--color-primary);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
    border-radius: 2px;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header-action {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav ul, .header-action {
        display: flex;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 64, 58, 0.4); /* ブラウン系の暗幕で文字を見やすく */
    z-index: -1;
}

.hero-content {
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.2rem;
    }
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section {
    padding: 80px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 120px 0;
    }
}

/* ==========================================================================
   Concept Section
   ========================================================================== */
.concept-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.concept-text {
    font-size: 1.05rem;
}

.concept-text p {
    margin-bottom: 20px;
}

.concept-image img {
    border-radius: 2px; /* 丸みを抑える */
    box-shadow: 0 10px 30px rgba(181, 128, 85, 0.1); /* 影もブラウン系に */
}

@media (min-width: 768px) {
    .concept-content {
        flex-direction: row;
        align-items: center;
    }
    .concept-text, .concept-image {
        flex: 1;
    }
    .concept-text {
        padding-right: 40px;
    }
}

/* ==========================================================================
   Menu Section
   ========================================================================== */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

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

.menu-item {
    background-color: var(--color-bg-base);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(181, 128, 85, 0.15);
}

.menu-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.menu-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.menu-item:hover .menu-img-wrap img {
    transform: scale(1.08);
}

.menu-info {
    padding: 25px 20px;
    text-align: left; /* 洗練された雰囲気に合わせるため左揃え */
}

.menu-name {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.menu-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: left;
}

/* ==========================================================================
   Gallery (Instagram) Section
   ========================================================================== */
.insta-grid-mockup {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .insta-grid-mockup {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.insta-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.insta-item:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   Access Section
   ========================================================================== */
.access-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 768px) {
    .access-content {
        flex-direction: row;
    }
    .access-info, .access-map {
        flex: 1;
    }
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 18px 0;
    border-bottom: 1px dashed var(--color-border); /* 実線からダッシュ線にして可愛く */
    text-align: left;
    vertical-align: top;
}

.info-table th {
    width: 30%;
    font-weight: 700;
    color: var(--color-primary);
}

.access-map {
    height: 300px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .access-map {
        height: 100%;
        min-height: 300px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-text-main);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-logo);
    font-size: 4rem;
    font-weight: 400;
    color: var(--color-bg-base);
    letter-spacing: 0.02em;
    text-transform: capitalize;
    margin-bottom: 15px;
    line-height: 1;
}

.footer-address {
    margin-bottom: 30px;
    color: #d8d0ca;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-links a {
    color: #e0d9d3;
    font-size: 0.9rem;
    text-decoration: underline;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    color: #998f88;
    font-size: 0.8rem;
    font-family: var(--font-en);
}

/* ==========================================================================
   Mobile Action Bar (集客用 画面下部固定ボタン)
   ========================================================================== */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-action-bar-height);
    background-color: #fff;
    display: flex;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
    z-index: 1000;
}

@media (min-width: 768px) {
    .mobile-action-bar {
        display: none;
    }
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--color-text-main);
    font-size: 0.75rem;
    font-weight: 700;
    border-right: 1px solid var(--color-border);
}

.action-btn:last-child {
    border-right: none;
}

/* Instagram予約用に色付け (Instagramのグラデーション風またはメインカラー) */
.action-btn.reserve {
    background-color: var(--color-primary); 
    color: #fff;
}

.action-btn svg {
    display: block;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}
