﻿@charset "UTF-8";
/*
Theme Name: 8bantei-theme
Author: 株式会社ゆしのけデザイン
Description: ラーメン食堂 8番亭様専用 カスタムテーマ
Version: 1.0.0
*/

/*=========================================
  1. 全体共通設定
=========================================*/
body { 
    margin: 0; padding: 0; 
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; 
    color: #333; 
    background-color: #fdfdfd; /* 真っ白よりわずかに柔らかい色 */
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.sp-only { display: none; } 
.pc-only { display: inline; }

/*=========================================
  2. ヘッダー＆フッター
=========================================*/
#header { 
    background: #fff; 
    border-bottom: 3px solid #d32f2f; /* 8番亭レッドのライン */
    padding: 10px 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; top: 0; z-index: 1000; 
}
.header-inner { max-width: 1000px; margin: 0 auto; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; }
.site-logo img { height: 35px; width: auto; display: block; }
.header-right { text-align: right; font-size: 0.75rem; line-height: 1.4; color: #666; }
.hours-text { color: #d32f2f; font-weight: bold; margin-top: 3px; }

#footer { background: #333; color: #fff; padding: 60px 0 30px; text-align: center; }
.footer-logo img { max-width: 200px; margin-bottom: 30px; }
.footer-info { line-height: 1.8; font-size: 0.9rem; margin-bottom: 40px; }
.copyright { font-size: 0.8rem; opacity: 0.5; }

/*=========================================
  3. トップページ (front-page.php)
=========================================*/

/* ヒーロー（黒背景から画像に変更） */
.hero-section { 
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('./assets/img/hero-bg-pc.jpg'); /* PC用の画像を読み込む */
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    color: #fff; 
    padding: 400px 30px; /* 画像をしっかり見せるために余白を広めにとる */
    text-align: center; 
}
.hero-title { font-size: 1.5rem; font-weight: normal; margin-bottom: 15px; }
.hero-title span { font-weight: bold; font-size: 3rem; display: block; margin-top: 5px; letter-spacing: 0.05em; }
.hero-subtitle { font-size: 0.95rem; line-height: 2; margin-bottom: 40px; opacity: 0.9; }
.hero-btn { 
    display: inline-block; padding: 12px 40px; background: #d32f2f; color: #fff; 
    border-radius: 50px; font-weight: bold; font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4); transition: all 0.3s; 
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6); }

/* 営業時間（重なる白い箱） */
.info-section { max-width: 800px; margin: -40px auto 60px; padding: 0 20px; position: relative; z-index: 10; }
.info-box { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); text-align: center; }
.info-title { font-size: 1.1rem; color: #d32f2f; margin: 0 0 20px; font-weight: bold; }
.hours-grid { display: flex; gap: 20px; justify-content: center; margin: 20px 0; background: #fafafa; padding: 20px; border-radius: 4px; }
.hour-item { text-align: center; font-size: 0.95rem; }
.sunday .time, .holiday { color: #d32f2f; font-weight: bold; }
.holiday { margin-top: 20px; }

/* お知らせ */
.news-section { margin-bottom: 60px; }
.section-heading { text-align: left; font-size: 1.3rem; margin-bottom: 20px; border-bottom: 2px solid #333; padding-bottom: 10px; font-weight: bold; }
.news-list { list-style: none; padding: 0; background: #fff; border-radius: 8px; border: 1px solid #eee; }
.news-list li { border-bottom: 1px solid #eee; }
.news-list li:last-child { border-bottom: none; }
.news-list a { display: flex; padding: 20px; align-items: center; transition: 0.3s; font-size: 0.95rem; }
.news-list a:hover { background: #fafafa; }
.news-list .date { color: #999; margin-right: 20px; font-family: Arial, sans-serif; }

/* LINE＆ナビ（黒・赤カード） */
.line-section { margin-bottom: 60px; text-align: center; }
.line-btn { display: flex; align-items: center; justify-content: center; background: #06C755; color: #fff; padding: 15px 30px; border-radius: 50px; max-width: 600px; margin: 0 auto; box-shadow: 0 4px 15px rgba(6,199,85,0.3); transition: 0.3s; }
.line-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.line-icon { font-weight: bold; font-size: 1.2rem; margin-right: 15px; background: #fff; color: #06C755; padding: 5px 10px; border-radius: 4px; }
.line-text { text-align: left; line-height: 1.3; font-weight: bold; font-size: 1rem; }

.nav-section { max-width: 1000px; margin: 0 auto 80px; padding: 0 20px; }
.nav-container { display: flex; gap: 20px; justify-content: center; }
.nav-card { flex: 1; color: #fff; padding: 40px; border-radius: 8px; text-align: center; transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.nav-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.menu-card { background-color: #222; }
.access-card { background-color: #d32f2f; }
.card-inner h3 { margin: 0 0 10px 0; font-size: 1.5rem; }
.card-inner p { margin: 0; font-size: 0.9rem; letter-spacing: 0.1em; opacity: 0.8; }
.arrow { display: block; margin-top: 15px; font-size: 1.2rem; }

/* おすすめ（白いカード） */
.pickup-section { max-width: 1000px; margin: 0 auto 80px; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 1.5rem; position: relative; }
.section-title span { background: #fdfdfd; padding: 0 20px; position: relative; z-index: 1; font-weight: bold; }
.section-title::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #ddd; z-index: 0; }
.pickup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pickup-item { background: #fff; padding: 30px 20px; border-radius: 8px; text-align: center; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.pickup-item h3 { font-size: 1.1rem; margin: 0 0 15px 0; }
.pickup-item .price { font-size: 1.4rem; color: #d32f2f; font-weight: bold; margin: 0 0 15px 0; }
.pickup-item .desc { font-size: 0.9rem; color: #666; line-height: 1.6; margin: 0; }

/*=========================================
  4. お品書きページ (page-menu.php)
=========================================*/
.page-header { background-color: #111; color: #fff; padding: 60px 20px; text-align: center; margin-bottom: 40px; }
.menu-container { padding: 0 20px 80px; }
.tax-note { text-align: right; font-size: 0.85rem; color: #666; margin-bottom: 20px; }

/* 画像に合わせた「赤い帯」のカテゴリーヘッダー */
.menu-category { 
    background-color: #d32f2f; 
    color: #fff; 
    font-size: 1.3rem; 
    padding: 10px 15px; 
    border-radius: 4px;
    margin-bottom: 25px;
    display: flex; 
    align-items: baseline; 
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(211, 47, 47, 0.3);
}
.menu-category span { font-size: 0.9rem; color: #fff; opacity: 0.9; margin-left: 15px; font-weight: normal; }

/* サブカテゴリー（赤い左線） */
.menu-sub-category { 
    font-size: 1.1rem; color: #333; 
    margin: 30px 0 15px; 
    border-left: 5px solid #d32f2f; 
    padding-left: 10px; 
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.menu-sub-category span { font-size: 0.85rem; color: #666; font-weight: normal; margin-left: 10px; }

/* 点線リーダーを使ったアイテム表示 */
.menu-group { margin-bottom: 30px; }
.menu-item { display: flex; align-items: flex-end; margin-bottom: 12px; font-size: 1.05rem; }
.menu-name { font-weight: bold; color: #333; }
.menu-name span.badge { 
    display: inline-block; background: #ffca28; color: #333; /* おすすめは目立つ黄色・ゴールド系 */
    font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-left: 10px; vertical-align: middle; font-weight: bold;
}
.menu-name small { display: block; font-size: 0.8rem; color: #666; font-weight: normal; margin-top: 2px; }
.menu-dots { flex-grow: 1; border-bottom: 1px dotted #ccc; margin: 0 10px 5px; min-width: 20px; }
.menu-price { font-weight: bold; color: #d32f2f; text-align: right; white-space: nowrap; }
.menu-price small { display: block; font-size: 0.8rem; color: #666; font-weight: normal; }

/* ランチボックス特別デザイン */
.lunch-box { background: #fff; border: 2px solid #d32f2f; border-radius: 8px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.lunch-box h3 { color: #d32f2f; margin-top: 0; margin-bottom: 15px; border-bottom: 1px dashed #ccc; padding-bottom: 10px;}
.lunch-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.lunch-list li { background: #fafafa; padding: 10px 15px; border-radius: 4px; border: 1px solid #eee; display: flex; justify-content: space-between; font-weight: bold;}
.lunch-list li span { color: #d32f2f; }

/*=========================================
  5. アクセスページ (page-access.php)
=========================================*/
.access-data-list { border-top: 2px solid #333; width: 100%; margin-bottom: 60px;}
.access-data-list dt { background: #fafafa; font-weight: bold; padding: 20px 15px; border-bottom: 1px solid #eee; width: 30%; float: left; clear: both; box-sizing: border-box; }
.access-data-list dd { padding: 20px 15px; border-bottom: 1px solid #eee; margin: 0; width: 70%; float: left; box-sizing: border-box; line-height: 1.6; }
.access-data-list::after { content: ""; display: block; clear: both; }

.btn-map { display: inline-block; padding: 12px 30px; background: #fff; color: #333; border: 2px solid #ccc; border-radius: 50px; font-size: 0.95rem; font-weight:bold; transition: 0.3s; }
.btn-map:hover { background: #f0f0f0; border-color: #999; transform: translateY(-2px); }

/*=========================================
  6. レスポンシブ（スマホ対応）
=========================================*/
@media screen and (max-width: 768px) {
    
    .site-logo img { height: 25px; }
    .header-right { font-size: 0.65rem; } .address-text span.p-code { display: none; }
    .pc-only { display: none; } .sp-only { display: block; }
    
    .hero-section { padding: 80px 20px; } .hero-title span { font-size: 2.2rem; }
    .hours-grid { flex-direction: column; gap: 10px; }
    .nav-container { flex-direction: column; } .nav-card { padding: 30px; }
    .pickup-grid { grid-template-columns: 1fr; }
    
    .menu-category { font-size: 1.2rem; padding: 10px; }
    .menu-item { font-size: 0.95rem; justify-content: space-between; align-items: flex-start; border-bottom: 1px dotted #ddd; padding-bottom: 10px; margin-bottom: 10px; }
    .menu-name { white-space: normal; }
    .menu-dots { display: none; } /* スマホでは点線を消してスッキリ */
    
    .access-data-list dt, .access-data-list dd { width: 100%; float: none; border-bottom: none; }
    .access-data-list dt { background: #f4f4f4; border-bottom: 1px dotted #ccc; padding: 10px 15px; margin-top: 10px; }
    .access-data-list dd { padding: 10px 15px 20px; border-bottom: 1px solid #eee; }
   
}

@media screen and (max-width: 768px) {
    /* ▼ スマホ用画像の切り替えと高さ調整 ▼ */
    .hero-section {
        background-image: 
            linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
            url('./assets/img/hero-bg-sp.jpg'); 
        
        /* ▼ ここにスマホ専用の高さを指定します ▼ */
        padding: 300px 10px; /* PCより少し控えめにするのがコツです */
    }

    /* 以下、すでにあるスマホ用のCSSはそのまま */
    .site-logo img { height: 25px; }
    /* ... 略 ... */
}