/* 
 * 麺屋りゅうせい スタイルシート
 * モバイルファースト設計
 */

/* ===== 変数定義 ===== */
:root {
    --main-color: #e60012; /* メインカラー（赤） */
    --accent-color: #f39800; /* アクセントカラー（オレンジ） */
    --dark-color: #333333; /* テキスト色（濃い） */
    --light-color: #ffffff; /* テキスト色（明るい） */
    --bg-color: #f8f8f8; /* 背景色 */
    --section-padding: 60px 0; /* セクションの余白 */
    --container-padding: 0 20px; /* コンテナの余白 */
    --transition-speed: 0.3s; /* トランジション速度 */
}

/* ===== リセットとベーススタイル ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

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

ul, ol {
    list-style: none;
}

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

section {
    padding: var(--section-padding);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h2 {
    font-family: "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS明朝E", serif;
    font-weight: bold;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--main-color);
    margin: 15px auto 0;
}

/* ===== ローディングアニメーション ===== */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #E60012; /* base red, switches to transparent on open */
    z-index: 9999;
    transition: opacity 0.8s ease-out, background-color 0.6s ease-in-out;
    overflow: hidden;
}

#loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    animation: fade-in 1.5s ease forwards;
    z-index: 1;
}

/* ロゴを先にフェードアウトする状態 */
#loading.logo-out .loading-logo {
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* アニメーション削除 */

/* ===== ヘッダー ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color var(--transition-speed);
    padding: 15px 0;
}

#header.scrolled {
    background-color: transparent;
    box-shadow: none;
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.logo {
    width: 180px;
}

.logo img {
    width: 100%;
    height: auto;
}

.hamburger-menu {
    cursor: pointer;
    z-index: 101;
    position: absolute;
    right: 20px;
}

.hamburger-icon {
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff; /* make hamburger bars white */
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 10px;
}

.hamburger-icon span:nth-child(3) {
    top: 20px;
}

.hamburger-icon.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-icon.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* ===== ナビゲーションメニュー ===== */
#nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: var(--main-color);
    z-index: 99;
    transition: right 0.3s ease-in-out;
    display: flex;
    align-items: center;
}

#nav-menu.active {
    right: 0;
}

.nav-container {
    width: 100%;
    padding: 80px 30px;
}

#nav-menu ul li {
    margin-bottom: 20px;
}

#nav-menu ul li a {
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    padding: 5px 0;
    position: relative;
}

#nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-color);
    transition: width var(--transition-speed);
}

#nav-menu ul li a:hover::after {
    width: 100%;
}

/* ===== アクセスセクション ===== */
.google-review {
    text-align: center;
    margin-top: 30px;
}

.review-button {
    display: inline-flex;
    align-items: center;
    background-color: #4285F4;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.review-button:hover {
    background-color: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.review-button img {
    background-color: white;
    padding: 5px;
    border-radius: 50%;
    margin-right: 10px;
}

/* ===== ヒーローセクション ===== */
#hero {
    position: relative;
    z-index: 1; /* base layer: will be pinned behind following sections */
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* デフォルトではスマホ用動画を表示、PC用は非表示 */
.mobile-video {
    display: block;
}

.desktop-video {
    display: none;
}

/* タブレット以上の画面幅ではPC用動画を表示、スマホ用は非表示 */
@media (min-width: 768px) {
    .mobile-video {
        display: none;
    }
    
    .desktop-video {
        display: block;
    }
}

.hero-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-color);
    width: 90%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS明朝E", serif;
    font-weight: bold;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ramen-lady {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .ramen-lady {
        left: auto;
        right: 30px;
        transform: scale(0.8);
    }
}

.supervision-badge {
    margin-bottom: 15px;
}

.supervision-badge h3 {
    background-color: #FF69B4;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: popAnimation 2s infinite;
}

@keyframes popAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.profile-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.profile-icon:hover {
    transform: scale(1.1);
}

.ramen-lady-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 3px solid var(--light-color);
}

/* 横2列（写真 + ボタン）: 親 .ramen-lady を行方向フレックスに */
.ramen-lady {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap; /* always horizontal */
}

@media (min-width: 768px) {
    .ramen-lady {
        gap: 14px;
    }
}

/* row context: remove bottom margin on photo and avoid button wrapping */
.ramen-lady .ramen-lady-photo {
    margin-bottom: 0;
}

.ramen-lady #ramen-lady-btn {
    white-space: nowrap;
}

#ramen-lady-btn {
    background-color: var(--accent-color);
    color: var(--light-color);
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

#ramen-lady-btn:hover {
    background-color: var(--main-color);
}

/* ===== ポップアップ ===== */

.instagram-embed {
    margin: 20px 0;
    width: 100%;
}

.instagram-media {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
}

.instagram-link {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.insta-profile-link {
    display: flex;
    align-items: center;
    background-color: #E1306C;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.insta-profile-link:hover {
    background-color: #C13584;
    transform: translateY(-2px);
}

.insta-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
}

/* ===== Loader Curtain Effect ===== */
.curtains {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 2;
}

.curtain {
    flex: 1 1 50%;
    background-color: #E60012; /* red curtains */
    transform: translateX(0);
    transition: transform 0.9s ease-in-out;
}

#loading.open { /* when opening starts */
    background-color: transparent; /* reveal content between curtains */
}

/* open時はカーテンのみを動かす（ロゴは既にlogo-outで消えている想定） */

#loading.open .curtain.left {
    transform: translateX(-100%);
}

#loading.open .curtain.right {
    transform: translateX(100%);
}
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999; /* always on top */
    justify-content: center;
    align-items: center;
}

.popup.active {
    display: flex;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    max-height: 80vh;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* ===== 共通スタイル ===== */
.rounded-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



/* ===== ラーメン紹介セクション ===== */
#ramen {
    background-color: #000; /* make ramen section background black */
    position: relative;
    z-index: 2; /* above hero */
}

.ramen-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

/* Dark card variant for ramen section */
.ramen-content.dark-card {
    background-color: #000; /* black background */
    color: var(--light-color); /* white text */
    border-radius: 16px; /* rounded corners */
    padding: 0px; /* inner spacing set to zero as requested */
}

.ramen-content.dark-card h3,
.ramen-content.dark-card p {
    color: var(--light-color);
}

.ramen-video {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.ramen-video video {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    background-color: #444;
    display: block;
}

.ramen-video video::before {
    content: 'ラーメン調理映像';
    color: white;
    font-size: 1.2rem;
}

.ramen-description {
    width: 100%;
}

/* Image container when using static image instead of video */
.ramen-media {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.ramen-media img {
    display: block;
    width: 100%;
    height: auto;
}

/* Scroll fade utility */
.scroll-fade {
    opacity: 0;
    transition: opacity 0.9s ease; /* slowed slightly */
}

.scroll-fade.scrolled {
    opacity: 1;
}

/* Ramen section menu heading color */
#ramen .menu-section h3 {
    color: #fff;
}

/* FAQ section layering and background */
#faq {
    position: relative;
    z-index: 20; /* above reviews/others */
    background: #ffffff;
    color: #111;
}

#faq h2, #faq h3, #faq p {
    color: inherit;
}

.menu-section {
    margin-top: 50px;
}

.set-menu {
    margin-bottom: 30px;
    width: 100%;
}

.set-item {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid var(--main-color);
    border-radius: 10px;
}

@media (min-width: 768px) {
    .set-item {
        flex-direction: row;
    }
}

.set-item img {
    width: 80%;
    height: auto;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .set-item img {
        width: 40%;
        height: auto;
        margin-right: 20px;
        margin-bottom: 0;
    }
}

.set-item .menu-details {
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .set-item .menu-details {
        width: 60%;
        text-align: left;
    }
}

.description {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.menu-item {
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-details {
    padding: 15px;
}

.menu-details h4 {
    margin-bottom: 5px;
}

.price {
    font-weight: 700;
    color: var(--main-color);
}

.recommendation {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 5px;
}

.menu-options {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-left: 10px;
}

.option {
    background-color: var(--bg-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    min-width: 100px;
}

/* ===== 口コミセクション ===== */
#reviews {
    background-color: var(--bg-color);
    position: relative;
    z-index: 10; /* above ramen */
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.instagram-post {
    width: 100%;
    min-height: 400px;
}

.social-link {
    text-align: center;
    margin-top: 30px;
}

.social-link a {
    display: inline-flex;
    align-items: center;
    background-color: var(--main-color);
    color: var(--light-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
}

.social-link a img {
    width: 24px;
    margin-right: 10px;
}

.social-link a:hover {
    background-color: var(--accent-color);
}

/* ===== 定食セクション ===== */
#teishoku {
    background-color: var(--light-color);
    position: relative;
    z-index: 11;
}

.teishoku-items {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.teishoku-item {
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.teishoku-item:hover {
    transform: translateY(-5px);
}

.teishoku-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.teishoku-details {
    padding: 15px;
}

.takeout-info {
    text-align: center;
    margin-top: 50px;
}

.takeout-info h3 {
    margin-bottom: 10px;
}

.kitchen-car {
    margin-top: 20px;
}

.kitchen-car img {
    border-radius: 10px;
    max-width: 100%;
}

/* ===== ドリンクメニュー ===== */
#drinks {
    background-color: var(--bg-color);
    position: relative;
    z-index: 12;
}

.drink-items {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.drink-item {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.drink-item:hover {
    transform: translateY(-5px);
}

.drink-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.drink-details {
    padding: 15px;
}

.kids-drink {
    text-align: center;
    margin-top: 20px;
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 10px;
    border-radius: 5px;
    font-weight: 700;
}

/* ===== 店舗アクセス情報 ===== */
#access {
    background-color: var(--light-color);
    position: relative;
    z-index: 13;
}

/* Footer on top of sections below */
#footer {
    position: relative;
    z-index: 14;
}

.map {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.access-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.business-hours th, .business-hours td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.business-hours th {
    text-align: left;
    width: 30%;
}

.contact-info a {
    color: var(--main-color);
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ===== フッター ===== */
#footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3, .footer-social h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-info p {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: block;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.social-links img {
    width: 20px;
    height: 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.copyright a {
    color: var(--accent-color);
}

.copyright a:hover {
    text-decoration: underline;
}

/* ===== レスポンシブ対応 ===== */
@media (min-width: 768px) {
    .header-inner {
        justify-content: flex-start;
    }
    
    .logo {
        width: 220px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
    
    .ramen-lady-photo {
        width: 80px;
        height: 80px;
    }
    
    #ramen-lady-btn {
        font-size: 1rem;
    }
    
    .ramen-content {
        flex-direction: column; /* keep vertical layout on tablets/desktops */
    }
    
    .ramen-video, .ramen-media, .ramen-description {
        width: 100%; /* prevent two-column layout on larger screens */
    }
    
    .menu-items, .teishoku-items, .drink-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instagram-feed {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .access-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 1024px) {
    .menu-items, .teishoku-items {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .drink-items {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .instagram-feed {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .access-info {
        grid-template-columns: repeat(3, 1fr);
    }
}
