/* --- ファミレス風デザイン設定 --- */
:root {
    --fam-orange: #ff8c00;
    --fam-yellow: #ffc107;
    --fam-red: #e74c3c;
    --fam-brown: #5d4037;
    --fam-green: #2e7d32;
    --fam-bg: #fffdf5;
    --fam-border: #ffd54f;
    --highlight-green: #d4edda;
    --insta-gradient: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    /* パネル・動画ボタン用の緑グラデーション */
    --unified-green-grad: linear-gradient(to bottom, #66bb6a, #2e7d32);
    --unified-green-grad-hover: linear-gradient(to bottom, #4caf50, #1b5e20);
}

* { box-sizing: border-box; }

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background-color: var(--fam-bg);
    background-image: radial-gradient(var(--fam-border) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--fam-brown);
    margin: 0;
    line-height: 1.6;
    font-size: 20px;
    font-weight: 500;
}

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

/* 見出しフォント */
h1, h2, h3, h4, .logo, .btn-fam, .nav-grid-item, .btn-panel-full, .btn-fam-small, .btn-insta-footer, .view-count { font-weight: 900; }

a { color: var(--fam-brown); text-decoration: none; transition: all 0.3s ease; }
a:hover { opacity: 0.9; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* --- セクション共通 --- */
section { margin: 40px 0; padding: 0; border-bottom: none; }
.section-title-wrap { text-align: center; margin-bottom: 30px; }
.section-subtitle { display: block; font-size: 1rem; color: var(--fam-orange); margin-bottom: 5px; font-weight: 800; }
.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem); color: var(--fam-brown); margin: 0;
    display: inline-block; background: linear-gradient(transparent 60%, var(--fam-yellow) 60%);
    padding: 0 10px; line-height: 1.3;
}

/* --- ヒーローエリア --- */
.hero {
    min-height: 400px; position: relative; display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 40px 0;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://tsukanko.jp/manage/wp-content/uploads/2025/06/hirai.jpg') no-repeat center/cover;
    z-index: -1; filter: brightness(1.1);
}
.hero-content {
    background: rgba(255, 255, 255, 0.95); padding: 30px; text-align: center;
    border-radius: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 5px solid var(--fam-yellow);
    width: 90%; max-width: 600px;
}
.hero p { font-size: 1.2rem; margin: 0 0 10px; color: var(--fam-brown); font-weight: 800; line-height: 1.4; }
.hero h1 {
    font-size: clamp(2.2rem, 10vw, 4.5rem); margin: 0; color: var(--fam-red);
    text-shadow: 3px 3px 0 #fff, 5px 5px 0 var(--fam-yellow); line-height: 1.1;
    word-break: keep-all; white-space: normal;
}

/* --- トップナビゲーション (元の色・立体グラデーション) --- */
.top-nav-grid {
    display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-bottom: 5px solid var(--fam-orange);
}
.nav-grid-item {
    display: flex; align-items: center; justify-content: center; padding: 20px 10px;
    color: #fff; text-decoration: none; font-size: 1.1rem; line-height: 1.2; text-align: center;
    transition: all 0.2s; text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.nav-grid-item:hover { filter: brightness(1.1); }
.nav-1 { background: linear-gradient(to bottom, #ffb74d, #ff9800); }
.nav-2 { background: linear-gradient(to bottom, #ff8a65, #ff5722); }
.nav-3 { background: linear-gradient(to bottom, #81c784, #4caf50); }
.nav-4 { background: linear-gradient(to bottom, #a1887f, #795548); }


/* --- 次回営業日 --- */
.next-open-board { background-color: transparent; border: none; padding: 0; max-width: 900px; margin: 0 auto 30px auto; text-align: center; }
#next-open-display {
    display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
    background-color: #fff0f0; padding: 20px 30px; border-radius: 40px;
    border: 4px solid var(--fam-red); box-shadow: 0 10px 0 rgba(231, 76, 60, 0.2);
}
.next-label { font-size: 1.2rem; font-weight: 800; color: var(--fam-brown); margin: 0; }
.next-date-text { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; color: var(--fam-red); line-height: 1.2; }
.next-note { font-size: 0.9rem; color: #666; margin: 0; }
.next-menu-area { margin-top: 40px; }

/* --- 献立・メニュー共通 --- */
.menu-group { margin-bottom: 40px; }
.menu-group-title {
    text-align: center; font-size: 1.8rem; margin-bottom: 30px; color: #fff;
    background: var(--fam-brown); display: inline-block; padding: 10px 40px;
    border-radius: 40px; position: relative; left: 50%; transform: translateX(-50%);
    box-shadow: 5px 5px 0 var(--fam-orange); white-space: nowrap;
}
.menu-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.menu-card {
    background: #fff; padding: 15px; border: 3px solid var(--fam-border); border-radius: 15px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.05); transition: transform 0.2s;
}
.menu-card:hover { transform: translateY(-3px); border-color: var(--fam-orange); }
.m-name { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; }
.m-emoji { font-size: 1.6rem; margin-right: 10px; }
.m-price { font-weight: 900; color: var(--fam-red); font-size: 1.3rem; margin-left: 10px; white-space: nowrap; }

/* --- パネルレイアウト (ご来店情報・こだわり) --- */
.info-panel {
    background: #fff; border: 4px solid var(--fam-orange); border-radius: 25px;
    display: flex; flex-direction: column; margin-bottom: 40px; overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
/* PCでは横並び・高さ合わせ */
.info-body { display: flex; align-items: stretch; }
.info-img-box {
    flex: 1; border-right: 4px solid var(--fam-orange); position: relative; min-height: 300px;
}
.info-img-box img { width: 100%; height: 100%; object-fit: cover; position: absolute; top:0; left:0; }
.info-text-box {
    flex: 1.5; padding: 40px; display: flex; flex-direction: column; justify-content: center;
}
/* ボタンがない場合のパネル下部余白 */
.info-panel > .info-text-box { padding-bottom: 40px; }
/* ボタンがある場合のパネル本体下部余白 */
.info-body > .info-text-box { padding-bottom: 40px; }

.info-text-box h3 {
    font-size: 1.8rem; margin-bottom: 20px; color: var(--fam-orange);
    display: flex; align-items: center; border-bottom: 3px dashed var(--fam-orange);
    padding-bottom: 10px;
}
.info-icon { font-size: 2rem; margin-right: 10px; }
.highlight { background: var(--fam-yellow); padding: 2px 8px; border-radius: 6px; font-weight: 800; }

/* 幅100%ボタン (緑統一・立体グラデーション) */
.btn-panel-full {
    display: block; width: 100%; padding: 18px;
    background: var(--unified-green-grad); /* 緑統一 */
    color: #fff; text-align: center; font-size: 1.3rem; font-weight: 900;
    text-decoration: none; border-top: 4px solid var(--fam-orange);
    transition: all 0.2s; text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.btn-panel-full:hover { background: var(--unified-green-grad-hover); color: #fff; }

/* スマホ画像の3:2比率対応 (全てのパネル画像に適用) */
@media (max-width: 768px) {
    .info-body { flex-direction: column; }
    .info-img-box {
        width: 100%; border-right: none; border-bottom: 4px solid var(--fam-orange);
        position: relative; min-height: auto;
        aspect-ratio: 3 / 2; /* スマホでは全て3:2 */
    }
    .info-img-box img { position: static; height: auto; }
    .info-text-box { padding: 30px; }
}

/* --- 愉快な家族たち (3:2画像) --- */
.staff-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
.staff-item {
    background: #fff; border: 4px solid var(--fam-yellow); border-radius: 20px;
    overflow: hidden; text-align: center; box-shadow: 6px 6px 0 rgba(0,0,0,0.05);
}
.staff-pic { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 4px solid var(--fam-yellow); }
.staff-info-box { padding: 20px; }
.staff-role {
    font-size: 0.9rem; font-weight: 800; color: #fff; background: var(--fam-orange);
    display: inline-block; padding: 5px 15px; border-radius: 15px; margin-bottom: 10px;
}
.staff-name { font-size: 1.4rem; font-weight: 900; margin-bottom: 10px; display: block; color: var(--fam-brown); }
.staff-detail { font-size: 1rem; line-height: 1.5; text-align: left; }
.no-img {
    background: #fff6e0; display: flex; align-items: center; justify-content: center;
    font-size: 5rem; aspect-ratio: 3 / 2;
}

/* --- 動画心得 (枠なし・余白0) --- */
.kakemono { list-style: none; padding: 0; margin: 0 auto; max-width: 800px; }
.kakemono li {
    font-size: 1.3rem; font-weight: 800; margin-bottom: 15px; padding: 15px 20px;
    background: #fff6e0; border-radius: 15px; display: flex; align-items: center;
    border: 2px solid var(--fam-brown);
}
.kakemono li::before { content: '✅'; font-size: 1.5rem; margin-right: 15px; }

/* --- 動画ギャラリー (日付なし・幅100%・緑統一立体ボタン) --- */
.video-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.video-frame {
    border: 4px solid var(--fam-border); background: #fff; border-radius: 20px;
    overflow: hidden; box-shadow: 6px 6px 0 rgba(0,0,0,0.05); display: flex; flex-direction: column;
}
.video-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 4px solid var(--fam-border); }
.video-meta { padding: 20px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; }
.view-count {
    display: inline-block; color: #fff; background: var(--fam-red); padding: 5px 15px;
    border-radius: 20px; font-weight: 900; font-size: 1.4rem; margin-bottom: 10px;
    transform: rotate(-2deg); box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}
.btn-video-full {
    display: block; width: 100%; padding: 15px;
    background: var(--unified-green-grad); /* 緑統一 */
    color: #fff; font-size: 1.1rem; text-align: center; text-decoration: none;
    font-weight: 900; margin-top: auto; border-top: 4px solid var(--fam-border);
    transition: all 0.1s; text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.btn-video-full:hover { background: var(--unified-green-grad-hover); }

/* --- 店舗情報 --- */
.shop-data-wrap {
    background: #fff; padding: 40px; border-radius: 30px;
    border: 4px solid var(--fam-orange); max-width: 800px; margin: 0 auto;
}
.data-list { list-style: none; padding: 0; margin: 0; }
.data-list li {
    margin-bottom: 20px; display: flex; align-items: flex-start;
    border-bottom: 3px dotted var(--fam-border); padding-bottom: 15px;
}
.data-icon { font-size: 1.5rem; margin-right: 15px; }
.data-content { font-weight: 800; }

/* --- カレンダー --- */
.cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; margin-top: 20px;
    background: #fff; padding: 20px; border-radius: 20px; border: 3px solid var(--fam-brown);
}
.cal-cell { padding: 15px 5px; border-radius: 10px; background: #fff6e0; font-weight: 800; font-size: 1.1rem; }
.cal-head { color: #fff; background: var(--fam-brown); }
.cal-open { background-color: var(--fam-orange); color: #fff; position: relative; }
.cal-open::after { content: '営業'; position: absolute; bottom: 2px; left: 0; right: 0; font-size: 0.7rem; color: #fff; }
.today-highlight {
    border: 4px solid var(--fam-red); background-color: var(--highlight-green) !important;
    color: var(--fam-brown) !important; position: relative; z-index: 10;
}

/* --- フッター (元のインスタカラーボタン) --- */
footer {
    background: var(--fam-brown); color: #fff; text-align: center;
    padding: 40px 0; border-top: 8px solid var(--fam-orange); margin-top: 80px;
}
.insta-circle {
    width: 100px; height: 100px; border-radius: 50%;
    border: 4px solid var(--fam-yellow); margin: 0 auto 15px; padding: 4px; background: #fff;
}
.insta-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.btn-insta-footer {
    display: inline-block; padding: 20px 0; width: 90%; max-width: 450px;
    background: var(--insta-gradient); /* 元の色 */
    color: #fff; border-radius: 50px;
    font-size: clamp(1.2rem, 5vw, 1.5rem); font-weight: 900; line-height: 1.4;
    text-decoration: none; box-shadow: 0 6px 0 #fff; transition: transform 0.1s;
    border: 3px solid #fff; margin-bottom: 30px; white-space: pre-wrap;
}
.btn-insta-footer:active { transform: translateY(4px); box-shadow: 0 2px 0 #fff; }
.btn-insta-footer:hover { opacity: 0.9; }
