/* リセットCSS */
* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 共通変数 */
:root {
    --main-color: #A34A20; 
    --accent-color: #E2B400; 
    --text-color: #333;
    --bg-color: #fff;
    --font-jp: "Noto Sans JP", sans-serif;
}

/* 基本設定 */
body {
    font-family: var(--font-jp);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f7f7f7;
    padding-top: 70px; /* ヘッダーの高さ分 */
}
.no-scroll { overflow: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title {
    text-align: center; font-size: 32px; font-weight: bold;
    color: var(--main-color); margin-bottom: 50px;
}

/* --- ヘッダー --- */
.header {
    width: 100%; background-color: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed; top: 0; left: 0; z-index: 100;
}
.header__inner {
    max-width: 1200px; margin: 0 auto; padding: 10px 20px;
    display: flex; justify-content: space-between; align-items: center; height: 70px;
}
.header__logo { display: block; line-height: 1.2; }
.header__logo h1 {
    font-family: 'Train One', cursive; font-size: 28px; color: var(--main-color); line-height: 1;
}
.header__logo p {
    font-family: var(--font-jp); font-size: 10px; font-weight: 700; letter-spacing: 2px;
}

/* PCナビ */
.nav-pc ul { display: flex; gap: 30px; }
.nav-pc a { font-weight: bold; padding: 5px 0; position: relative; }
.nav-pc a::after {
    content: ''; position: absolute; bottom: -3px; left: 0; width: 100%; height: 2px;
    background-color: var(--accent-color); transform: scaleX(0); transition: transform 0.3s;
}
.nav-pc a:hover::after, .nav-pc a.is-active::after { transform: scaleX(1); }

/* ヘッダーアクション (SNS + ハンバーガー) */
.header__action { display: flex; align-items: center; gap: 15px; }
.sns-links { display: flex; gap: 12px; align-items: center; }
.sns-icon {
    display: block; width: 24px; height: 24px;
    color: var(--main-color); transition: color 0.3s, transform 0.2s;
}
.sns-icon svg { width: 100%; height: 100%; }
.sns-icon:hover { color: var(--accent-color); transform: translateY(-2px); }

/* ハンバーガーアイコン */
.menu-toggle {
    display: none; border: none; background: none; cursor: pointer; padding: 10px; z-index: 200;
}
.icon-bar {
    display: block; width: 25px; height: 3px; background-color: var(--text-color); margin: 5px 0; transition: 0.4s;
}

/* SPナビ */
.nav-sp {
    display: none; position: fixed; top: 70px; left: 0; width: 100%; height: calc(100vh - 70px);
    background-color: rgba(255, 255, 255, 0.95); z-index: 150; padding: 20px; overflow-y: auto;
}
.nav-sp.is-open { display: block !important; }
.nav-sp ul { text-align: center; }
.nav-sp li { padding: 15px 0; border-bottom: 1px solid #eee; }
.nav-sp a { font-size: 18px; font-weight: bold; display: block; }
.nav-sp .sp-cta {
    display: inline-block; margin-top: 15px; background-color: var(--accent-color);
    color: var(--bg-color); padding: 10px 30px; border-radius: 5px;
}

/* ハンバーガーアニメーション */
.menu-toggle.is-open .icon-bar:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.is-open .icon-bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .icon-bar:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* --- メインビジュアル --- */
.hero {
    position: relative; height: 60vh; min-height: 400px;
    display: flex; justify-content: center; align-items: center;
    color: white; text-align: center; overflow: hidden;
}
.hero__image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.hero__overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4); z-index: 2;
}
.hero__content { position: relative; z-index: 5; max-width: 90%; }
.hero__subtitle { font-size: 20px; letter-spacing: 2px; margin-bottom: 10px; font-weight: 300; }
.hero__title { font-size: 48px; font-weight: 700; margin-bottom: 30px; line-height: 1.3; }
.hero__actions { display: flex; justify-content: center; gap: 20px; }

/* ボタン共通 */
.btn {
    padding: 12px 25px; border-radius: 5px; font-weight: bold;
    transition: background-color 0.3s; white-space: nowrap;
}
.btn-primary { background-color: var(--main-color); color: white; border: 2px solid var(--main-color); }
.btn-primary:hover { background-color: #8c3e1b; border-color: #8c3e1b; }
.btn-secondary { background-color: transparent; color: var(--accent-color); border: 2px solid var(--accent-color); }
.btn-secondary:hover { background-color: var(--accent-color); color: var(--text-color); }
.btn-small {
    display: inline-block; padding: 8px 15px; font-size: 14px;
    border: 1px solid var(--accent-color); color: var(--accent-color);
}
.btn-small:hover { background-color: var(--accent-color); color: white; }

/* --- 特徴セクション --- */
.features { padding: 80px 0; background-color: var(--bg-color); }
.feature-grid { display: flex; gap: 30px; margin-top: 50px; }
.feature-item {
    flex: 1; text-align: center; padding: 20px;
    border: 1px solid #eee; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.feature-image { height: 200px; background-size: cover; background-position: center; margin-bottom: 20px; }
.feature-item h3 { font-size: 20px; color: var(--main-color); margin: 15px 0 10px; }
.feature-item p { font-size: 14px; color: #666; }

/* --- 店舗情報セクション --- */
.store-info { padding: 80px 0; background-color: #f4f4f4; }
.info-grid { display: flex; gap: 50px; margin-top: 50px; }

/* PCで均等幅 (50:50) */
.info-details, .info-access {
    flex: 1; 
    background-color: white; padding: 30px; border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.info-details__title, .info-access h4 {
    font-size: 22px; color: var(--main-color); border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px; margin-bottom: 20px; font-family: 'M PLUS Rounded 1c', sans-serif;
}

/* 営業時間リスト (改行崩れ修正版) */
.schedule-block dl {
    display: grid;
    grid-template-columns: max-content 1fr; /* 文字数に合わせて幅確保 + 残り */
    gap: 8px 20px; font-size: 15px; align-items: center;
}
.schedule-block dt { font-weight: 500; white-space: nowrap; color: var(--text-color); }
.schedule-block dd { color: #555; }

.holiday-note { font-weight: bold; color: #e74c3c; margin-top: 15px; }
.caution-note { font-size: 12px; color: #999; margin-top: 5px; }

/* 連絡先 */
.contact-block { margin-top: 30px; text-align: center; }
.contact-block h4 { font-size: 18px; color: var(--main-color); margin-bottom: 10px; }
.phone-number { font-size: 24px; font-weight: bold; margin: 10px 0 20px; }
.btn-call { display: block; width: 80%; margin: 0 auto; }

/* アクセス */
.address, .guide { font-size: 15px; margin-bottom: 10px; }
.map-placeholder {
    height: 250px; background-color: #ddd; margin: 20px 0;
    display: flex; justify-content: center; align-items: center; color: #666;
    max-width: 100%;
}
.btn-map { display: block; text-align: center; background-color: var(--main-color); color: white; }

/* --- お知らせセクション --- */
.blog-preview { padding: 80px 0; background-color: var(--bg-color); }
.blog-list { margin-top: 50px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.blog-item {
    display: flex; align-items: center; padding: 20px 0;
    border-bottom: 1px solid #eee; transition: background-color 0.3s;
}
.blog-item:last-child { border-bottom: none; }
.blog-item:hover { background-color: #fafafa; }
.blog-date { width: 100px; font-size: 14px; color: #999; flex-shrink: 0; }
.blog-category {
    display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px;
    font-weight: bold; color: white; margin-right: 15px; flex-shrink: 0;
}
.cat-news { background-color: var(--main-color); }
.cat-menu { background-color: #3498db; }
.cat-event { background-color: var(--accent-color); color: var(--text-color); }
.blog-title { font-size: 16px; font-weight: 500; flex-grow: 1; }
.center-btn { text-align: center; margin-top: 30px; }

/* --- CTA & Contactセクション (整理版) --- */
.cta-contact { padding: 60px 0; background-color: #fcf6e9; text-align: center; }
.cta-title { font-size: 32px; font-weight: bold; color: var(--main-color); margin-bottom: 40px; }
.order-wrapper {
    display: flex; justify-content: center; gap: 40px;
    align-items: flex-start; flex-wrap: wrap;
}
.order-main, .order-sub {
    background-color: white; padding: 30px; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); flex: 1; min-width: 300px; max-width: 500px;
}
.order-sub-title {
    font-size: 18px; font-weight: bold; color: var(--text-color);
    border-bottom: 2px solid var(--accent-color); display: inline-block;
    padding-bottom: 5px; margin-bottom: 15px;
}
.cta-note { font-size: 14px; color: #666; margin-bottom: 20px; }
.cta-note-small { font-size: 12px; color: #999; margin-top: 10px; }

/* 電話ボタン */
.btn-phone {
    display: flex; align-items: center; justify-content: center;
    background-color: var(--main-color); color: white; padding: 15px 20px;
    border-radius: 50px; transition: transform 0.2s, background-color 0.3s;
    box-shadow: 0 4px 10px rgba(163, 74, 32, 0.3);
}
.btn-phone:hover { background-color: #8c3e1b; transform: translateY(-2px); }
.icon-phone { font-size: 30px; margin-right: 15px; }
.phone-text { text-align: left; }
.phone-text .label { display: block; font-size: 12px; opacity: 0.9; }
.phone-text .number { display: block; font-size: 24px; font-weight: bold; line-height: 1; }

/* デリバリーボタン */
.delivery-grid { display: flex; justify-content: center; gap: 15px; }
.del-btn {
    display: flex; align-items: center; justify-content: center;
    width: 80px; height: 80px; border-radius: 12px; color: white; font-weight: bold;
    text-align: center; line-height: 1.2; transition: transform 0.2s, opacity 0.3s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.del-btn:hover { opacity: 0.9; transform: translateY(-3px); }
.del-name { font-size: 13px; }
.del-btn.uber { background-color: #06C167; }
.del-btn.demae { background-color: #D62328; }
.del-btn.rocket { background-color: #333; }

/* --- フッター --- */
.footer { background-color: #333; color: white; padding-top: 40px; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px;
    padding-bottom: 30px; border-bottom: 1px solid #555;
}
.footer-logo { font-family: 'Train One', cursive; font-size: 22px; font-weight: bold; color: var(--accent-color); margin-bottom: 10px; }
.footer h4 { font-size: 16px; margin-bottom: 15px; font-weight: bold; color: var(--accent-color); }
.footer-copy, .footer-contact { font-size: 14px; margin-bottom: 5px; }
.footer li { margin-bottom: 5px; }
.footer a { font-size: 14px; color: #ccc; transition: color 0.3s; }
.footer a:hover { color: white; }
.footer-bottom { text-align: center; padding: 15px 0; font-size: 12px; color: #aaa; }


/* --- スマホ対応 --- */
@media (max-width: 768px) {
    body { padding-top: 60px; }
    .header__inner { height: 60px; }
    .section-title { font-size: 26px; margin-bottom: 40px; }
    
    /* ヘッダー */
    .nav-pc { display: none; }
    .menu-toggle { display: block; }
    .sns-links { gap: 10px; }
    .sns-icon { width: 20px; height: 20px; }
    .nav-sp { top: 60px; height: calc(100vh - 60px); }

    /* ヒーロー */
    .hero { min-height: 350px; }
    .hero__subtitle { font-size: 16px; }
    .hero__title { font-size: 32px; margin-bottom: 20px; }
    .hero__actions { flex-direction: column; gap: 15px; }
    .btn { width: 100%; font-size: 16px; padding: 10px 20px; }

    /* コンテンツ */
    .features, .store-info, .blog-preview, .cta-contact { padding: 60px 0; }
    .feature-grid { flex-direction: column; gap: 20px; }
    
    /* 店舗情報（縦並び） */
    .info-grid { flex-direction: column; gap: 30px; }
    .contact-block .btn-call { width: 100%; max-width: none; margin: 0; }
    .map-placeholder { height: 200px; }

    /* ブログ */
    .blog-item { flex-direction: column; align-items: flex-start; padding: 15px 0; }
    .blog-date { margin-bottom: 5px; width: auto; }
    .blog-category { margin-right: 10px; margin-bottom: 5px; }
    .blog-title { font-size: 14px; }

    /* CTA (スマホ) */
    .order-wrapper { flex-direction: column; align-items: center; gap: 20px; }
    .order-main, .order-sub { width: 100%; padding: 25px 15px; }
    .delivery-grid { justify-content: space-around; }
    .del-btn { width: 90px; height: 90px; }

    /* フッター */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer h4 { margin-top: 20px; }
    
    /* ページトップボタン */
    .page-top-btn { width: 45px; height: 45px; bottom: 15px; right: 15px; }
}


/* --- Topに戻るボタン --- */
.btn-top {
    position: fixed; /* 画面に固定 */
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color); /* 黄色 */
    color: var(--main-color); /* 茶色 */
    border: none;
    border-radius: 50%; /* 丸形にする */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    opacity: 0; /* 初期状態では透明にして非表示 */
    visibility: hidden; /* アクセシビリティのため完全に隠す */
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 99;
}

.btn-top svg {
    width: 24px;
    height: 24px;
    transform: translateY(-2px); /* 矢印を少し上に調整 */
}

/* スクロール時にJSで付与するクラス */
.btn-top.is-show {
    opacity: 1; /* 表示 */
    visibility: visible;
    transform: translateY(0);
}

/* ホバーエフェクト */
.btn-top:hover {
    background-color: #d1a600; /* 少し暗い黄色 */
}

/* スマートフォンでのサイズ調整 (お好みで) */
@media (max-width: 768px) {
    .btn-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    .btn-top svg {
        width: 20px;
        height: 20px;
    }
}
}