/*
Theme Name: Cocoon Child
Description: Cocoon専用子テーマ
Template: cocoon-master
Version: 1.1.3
*/
@charset "UTF-8";

/* --- ヒーローキャプション（流れるテロップ） --- */
.p-hero-caption {
    background-color: #eaddcf;
    padding: 8px 0;
    overflow: hidden; /* 枠外の文字を隠す */
    white-space: nowrap; /* 改行させない */
    position: relative;
}

.p-hero-caption-text {
    display: inline-block;
    padding-left: 100%; /* 開始位置を画面右端に設定 */
    font-size: 0.9rem;
    font-weight: bold;
    color: #5d4037;
    margin: 0;
    letter-spacing: 0.05em;
    animation: flowText 20s linear infinite; /* 20秒かけてループ */
}

/* 文字を右から左へ動かすアニメーション */
@keyframes flowText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* スマホでの速度調整（画面が狭いので少し早めに感じるため） */
@media screen and (max-width: 1023px) {
    .p-hero-caption-text {
        font-size: 0.8rem;
        animation: flowText 15s linear infinite; /* スマホは15秒くらいが丁度いいです */
    }
}

/* ==========================================================================
   Cocoon安全版：PCレイアウト (1024px以上)
   左固定（アイボリー背景・ナビ縦書き・余白微調整） ＆ 右スクロール
   ========================================================================== */
@media screen and (min-width: 1024px) {
	.wrap{
		max-width:100%;
	}

    /* --- 1. ヘッダー（ロゴエリア）：背景色変更 --- */
    #header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 280px !important;
        height: auto !important;
        min-height: 160px !important; 
        background-color: #f5f1e7 !important; /* ← 画像の色（ベージュ系）に変更 */
        border-right: 1px solid #eaddcf; /* 境界線も少し背景に馴染む色に微調整 */
        z-index: 9999;
        display: block !important;
    }
    
    .header-in {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 80px 20px 20px 20px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    /* --- 2. ナビゲーション：背景色変更 --- */
    #navi {
        position: fixed !important;
        top: 160px !important; 
        left: 0;
        width: 280px !important;
        height: calc(100vh - 160px) !important;
        background-color: #f5f1e7 !important; /* ← 画像の色（ベージュ系）に変更 */
        border-right: 1px solid #eaddcf; /* 境界線も少し背景に馴染む色に微調整 */
        z-index: 9998;
        display: block !important;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .navi-in { 
        width: 100% !important; 
        min-height: 100% !important;
        margin: 0 !important; 
        display: flex !important;
        justify-content: center;
        margin-top: 10px !important; 
        padding: 0 0 50px 0 !important;
        box-sizing: border-box;
    }
    
    .navi-in > ul {
        writing-mode: vertical-rl;
        -webkit-writing-mode: vertical-rl;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        align-content: center !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        min-height: min-content;
    }
    
    .navi-in > ul > li {
        width: auto !important;
        height: auto !important;
        border-bottom: none !important;
        margin: 0 !important;
    }
    
    .navi-in > ul > li > a {
        display: block !important;
        padding: 0 2px !important; 
        font-weight: bold;
        letter-spacing: 0.1em;
        text-decoration: none;
        color: #333;
        transition: opacity 0.3s;
        white-space: nowrap !important; 
        overflow: visible !important;
    }

    .navi-in > ul > li > a:hover {
        opacity: 0.5;
    }

    /* --- 3. メインコンテンツとフッターを右側にずらす --- */
    #content, #footer {
        margin-left: 280px !important;
        width: calc(100% - 280px) !important;
    }

    #content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    #sidebar, .breadcrumb { display: none !important; }
    
    #main, .main-in, #content-in { 
        width: 100% !important; 
        padding: 0 !important; 
        margin: 0 !important; 
    }

    /* --- 4. コンテンツ内部の余白調整 --- */
    .p-container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 40px;
        box-sizing: border-box;
    }
    .p-section { padding: 60px 0; }
    .p-section-title { text-align: center; margin-bottom: 40px; font-size: 2.2rem; }

    /* ヒーローエリア */
    .p-hero { width: 100%; height: 100vh; position: relative; }
    .p-hero-visual, .p-hero-visual img, .p-hero-visual video { width: 100%; height: 100%; object-fit: cover; display: block; }
    .p-hero-overlay {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.2);
    }
    .p-hero-title { color: #fff; font-size: 4rem; text-align: center; text-shadow: 0 0 20px rgba(0,0,0,0.5); }

    /* 各種パーツ */
    .p-concept-text { text-align: center; line-height: 1.8; font-size: 1.1rem; }
    .p-specialty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .p-specialty-item img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; display: block; border-radius: 100%;}
	.p-specialty-item p { text-align: center;}
	.p-seats-main { display: flex; gap: 30px; align-items: center; margin-bottom: 30px; }
    .p-seats-image { width:100%; }
    .p-seats-sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .p-shop-flex { display: flex; gap: 40px; }
    .p-shop-map { min-height: 350px; position: relative; background: #f5f5f5; border-radius: 4px; overflow: hidden; width: 50%; }
    .p-shop-map iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
	.p-payment-icons img { max-width: 90px;}
	.p-shop-details { max-width:50%; }
	.p-shop-details dt { border-left: solid #f5f1e7; padding: 5px; font-weight: bold;}
	.p-shop-details dd { margin-bottom: 5px;}
    #footer { background-color: #1a1a1a !important; color: #fff !important; padding: 40px 0 !important; }
}

/* ==========================================================================
   スマホ・タブレット向けリセット (1023px以下)
   ========================================================================== */
@media screen and (max-width: 1023px) {
    #header, #navi { position: static !important; width: 100% !important; height: auto !important; background-color: #f5f1e7 !important; }
    .navi-in > ul { writing-mode: horizontal-tb; -webkit-writing-mode: horizontal-tb; flex-direction: column !important; }
    #content, #footer { margin-left: 0 !important; width: 100% !important; }
    #content { margin-top: 0 !important; padding-top: 0 !important; }
    .p-hero { height: 60vh; }
    .p-section { padding: 50px 20px; }
	.p-payment-icons img { max-width: 50px;}
}

/* ==========================================================================
   スマホ・タブレット向け (1023px以下)
   ========================================================================== */
@media screen and (max-width: 1023px) {

    /* --- 1. サイドバー固定を解除し、通常のヘッダーへ --- */
    #header, #navi {
        position: static !important; /* 固定を解除 */
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        border-right: none !important;
        background-color: #f5f1e7 !important;
    }

    #header {
        padding: 20px 0 !important;
        border-bottom: 1px solid #eaddcf;
    }

    .header-in {
        padding: 0 !important;
    }

    /* ナビゲーションを横並び、またはスマホ用メニューに */
    .navi-in {
        padding: 10px 0 !important;
    }

    .navi-in > ul {
        writing-mode: horizontal-tb !important; /* 横書きに戻す */
        -webkit-writing-mode: horizontal-tb !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px !important;
        padding: 0 10px !important;
    }

    .navi-in > ul > li > a {
        padding: 5px 10px !important;
        font-size: 0.9rem;
    }

    /* --- 2. メインコンテンツの「逃げ」をリセット --- */
    #content, #footer {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* --- 3. 各セクションの調整 --- */
    .p-container {
        padding: 0 20px; /* スマホは余白を狭める */
    }

    .p-section {
        padding: 50px 0; /* セクション間隔を調整 */
    }

    .p-section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    /* ヒーローエリア */
    .p-hero {
        height: 50vh; /* スマホでは高さを抑える */
    }

    .p-hero-title {
        font-size: 2rem;
    }

    /* 最新情報（ニュース）を縦並びに */
    .p-news-grid {
        flex-direction: column !important;
        gap: 30px;
    }

    /* 名物（円形を少し小さく） */
    .p-specialty-grid {
        flex-direction: column !important;
        align-items: center;
        gap: 40px;
    }

    .p-specialty-item {
        width: 100% !important;
    }

    .p-specialty-item img {
        width: 180px !important;
        height: 180px !important;
    }

    /* お席のご紹介（縦並び） */
    .p-seats-main {
        flex-direction: column !important;
        gap: 20px;
    }

    .p-seats-image, .p-seats-text {
        width: 100% !important;
    }

    .p-seats-sub {
        grid-template-columns: repeat(3, 1fr); /* 3列維持か、1frに変えて縦並びかはお好みで */
        gap: 10px;
    }

    /* 店舗情報（縦並び） */
    .p-shop-flex {
        flex-direction: column !important;
        gap: 30px;
    }

    .p-shop-map {
        width: 100% !important;
        min-height: 300px !important;
    }

    /* 決済アイコン */
    .p-payment-icons {
        justify-content: flex-start;
    }

    #footer {
        padding: 40px 0 !important;
    }
	
/* --- コンテナの余白設定をヒーローエリアのみ解除 --- */
	
	/* --- メインエリアの余白を完全にゼロにする --- */
    #main,
    .main-in,
    #content,
    #content-in {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
	
	#header-container{
		display:none;
	}
	
	
    #custom-front-content {
        width: 100%;
        overflow-x: hidden;
    }

    .p-hero {
        width: 100vw; /* 画面の横幅いっぱいを強制 */
        height: 100vh;
        height: 100svh;
        margin-left: calc(50% - 50vw); /* 親要素の余白を無視して左端に寄せる */
        margin-right: calc(50% - 50vw);
        position: relative;
    }

    .p-hero-visual, 
    .p-hero-visual img, 
    .p-hero-visual video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* タイトル位置の調整 */
    .p-hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.2);
    }

    .p-hero-title {
        color: #fff !important;
        font-size: 2.2rem;
        text-align: center;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    /* 2段目以降のセクションには適正な余白を戻す */
    .p-section .p-container {
        padding-left: 20px;
        padding-right: 20px;
    }
	
    /* --- ナビメニュー全体の背景色 --- */
    .navi-menu-content {
        background-color: #f5f1e7 !important;
    }

    /* --- メニュー内の各リンク（li）の背景色も統一 --- */
    .navi-menu-content ul.menu li {
        background-color: #f5f1e7 !important;
    }

    /* --- リンク自体の背景や枠線を調整（必要に応じて） --- */
    .navi-menu-content ul.menu li a {
        background-color: #f5f1e7 !important;
        border-bottom: 1px solid #eaddcf; /* 馴染む色で境界線 */
        color: #333 !important;
    }

    /* --- メニューを閉じるボタンなどのエリア --- */
    .menu-close-button {
        background-color: #f5f1e7 !important;
        color: #333 !important;
    }
	
/* サイト全体のヘッダー周辺をアイボリーで塗りつぶす */
    header.header.mobile-header,
    .mobile-header-container,
    .header-container,
    .header-container-in,
    #header-container,
    #header {
        background-color: #f5f1e7 !important;
        background: #f5f1e7 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* スクロール時の「透明化」を物理的に上書き */
    .mobile-header[data-transparent="true"],
    .mobile-header.is-fixed,
    .fixed-header {
        background-color: #f5f1e7 !important;
        opacity: 1 !important;
    }

    /* ロゴやボタンの背景も個別にアイボリー化 */
    .site-logo-inside,
    .logo-header,
    .mobile-menu-buttons {
        background-color: #f5f1e7 !important;
    }

    /* 三本線などのボタン自体の背景は透明にしてヘッダー色を見せる */
    .menu-button,
    .home-menu-button,
    .search-menu-button {
        background-color: transparent !important;
        color: #333 !important;
    }
	
    /* 1. ヘッダーの中身を横並びにして、両端に寄せる準備 */
    .mobile-header-container {
        display: flex !important;
        justify-content: space-between !important; /* 両端に配置 */
        align-items: center !important;
        padding: 0 !important;
    }

    /* 2. ロゴエリアを左端に固定し、右側の余白を最大化する */
    .logo-header {
        margin-right: auto !important; /* これでロゴ以外の要素を右に押し出します */
        padding-left: 15px !important; /* 左端の微調整 */
        display: flex !important;
        align-items: center !important;
    }

    /* 3. 右側のメニューボタン群をひとまとめにして右寄せ */
    .mobile-menu-buttons {
        display: flex !important;
        flex-direction: row !important; /* ボタンが複数ある場合横に並べる */
        margin-left: 0 !important;
        padding-right: 10px !important; /* 右端の微調整 */
    }

    /* 4. 不要な中央寄せ設定を解除 */
    .site-name-text,
    .site-logo-inside {
        text-align: left !important;
        margin: 0 !important;
    }
	
    /*  5. 左側ロゴだけ左寄せ */	
	body > ul.mobile-header-menu-buttons.mobile-menu-buttons.has-logo-button > li.logo-menu-button.menu-button {
        margin-right: auto !important; /* 右側に自動で余白を作り、自身を左端へ */
        display: flex !important;
	}
	
}

/* --- セクション背景色の設定 --- */

/* 1. 基本（最新情報など） */
.p-section-news {
    background-color: #f5f1e7;
}

/* 2. 名物セクション（少し濃いベージュ） */
.p-section-specialty {
    background-color: #efe9da;
}

/* 3. 店舗情報（シックなベージュ） */
.p-section-shop {
    background-color: #e5dfd3;
}

/* --- テキストのメリハリ --- */
.p-section-title {
    color: #333; /* 黒系の文字 */
}

/* 朱色を使いたい場合のアクセント用クラス */
.c-vermilion {
    color: #b22d14 !important; /* 深みのある朱色 */
}

/* スマホ用：背景色を画面端まで広げる */
@media screen and (max-width: 1023px) {
    .p-section {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

.p-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #333;
    letter-spacing: 0.2em;
}

/* 左右の線 */
.p-section-title::before,
.p-section-title::after {
    content: "";
    flex-grow: 0;
    width: 40px; /* 線の長さ */
    height: 1px;
    background-color: #b22d14; /* 朱色 */
}

.p-section-title::before {
    margin-right: 20px;
}

.p-section-title::after {
    margin-left: 20px;
}

/*スマホ・タブレット細部調整*/

@media screen and (max-width: 1023px) {

    /* --- 1. コンセプト（情緒的な文字組み） --- */
    .p-concept-text {
        text-align: left; /* スマホでは左寄せが読みやすい */
        line-height: 2;   /* 行間を広げて高級感を出す */
        letter-spacing: 0.1em;
        font-size: 0.95rem;
        padding: 0 10px;
        color: #444;
    }

    /* --- 2. 名物（円形アイテムの最適化） --- */
    .p-specialty-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 50px !important; /* アイテム間の余白 */
        align-items: center !important;
    }

    .p-specialty-item {
        width: 100% !important;
        max-width: 280px;
        text-align: center;
    }

    .p-specialty-item img {
        width: 220px !important; /* PCより少し小さくして収まりを良く */
        height: 220px !important;
        margin: 0 auto 20px !important;
        border: 1px solid #b22d14; /* 朱色の細いラインで縁取り */
        padding: 5px;
        background-color: #fff;
    }

    .p-specialty-item p {
        font-weight: bold;
        font-size: 1.1rem;
        color: #333;
    }

    /* --- 3. お席のご紹介（リズムのある配置） --- */
    .p-seats-main {
        display: flex !important;
        flex-direction: column !important;
    }

    .p-seats-image {
        margin-bottom: 20px;
    }

    .p-seats-text {
        background-color: rgba(255, 255, 255, 0.6); /* 背面に少し白を敷いて可読性UP */
        padding: 20px;
        border-left: 3px solid #b22d14; /* 左側に朱色のアクセント */
        margin-bottom: 30px;
    }

    .p-seats-sub {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 3列維持 */
        gap: 8px !important;
    }

    .p-seats-sub-item img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 2px;
    }

    /* --- 4. 店舗情報（情報の整理） --- */
    .p-shop-flex {
        display: flex !important;
        flex-direction: column !important;
    }

    .p-shop-details h3 {
        font-size: 1.4rem;
        color: #b22d14;
        border-bottom: 1px dotted #b22d14;
        display: inline-block;
        margin-bottom: 20px;
    }

    .p-info-list dt {
        width: 100% !important;
        border-bottom: none !important;
        padding-bottom: 5px;
        color: #b22d14;
        font-size: 0.85rem;
    }

    .p-info-list dd {
        width: 100% !important;
        margin-bottom: 15px !important;
        padding-left: 0 !important;
        font-weight: bold;
    }

    .p-shop-map {
        width: 100% !important;
        height: 300px !important;
        margin-top: 30px;
        filter: sepia(20%); /* 少し和風に馴染むよう色調調整 */
    }
}

/* 円形画像の中身を正しくフィットさせる */
.p-specialty-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* これで縦横比を維持して枠を埋める */
    object-position: center;     /* 画像の中心を基準にする */
    border-radius: 50%;          /* 画像自体も丸く切り抜く */
    display: block;
}

/* PC：円形枠のサイズ固定 */
.p-specialty-image-wrapper {
    width: 220px;
    height: 220px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    /* Splide内のアイテムが歪まないように flex 制御 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* スマホ：円形枠のサイズ固定 */
@media screen and (max-width: 1023px) {
    .p-specialty-image-wrapper {
        width: 240px !important; /* お好みのサイズに調整してください */
        height: 240px !important;
    }
}

/* --- メニューボタン全体の調整 --- */
.menu_link {
    text-align: center;
    margin-top: 50px; /* カルーセルとの間隔 */
}

.menu_link a {
    display: inline-block;
    position: relative;
    padding: 18px 60px; /* スマホでも押しやすい十分なサイズ */
    background-color: #b22d14; /* サイトのアクセントカラー（朱色） */
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    border-radius: 2px; /* わずかに角を丸めて柔らかさを出す */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* 軽く浮かせて押しやすく */
}

/* ホバー時の動き（PC用） */
.menu_link a:hover {
    background-color: #8e2410; /* 少し濃い朱色に */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 和風の装飾：ボタンの左右に細い線をあしらう（任意） */
.menu_link a::before,
.menu_link a::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%);
}

.menu_link a::before { left: 20px; }
.menu_link a::after { right: 20px; }

/* スマホ用調整 */
@media screen and (max-width: 1023px) {
    .menu_link {
        margin-top: 30px;
        padding: 0 20px;
    }
    
    .menu_link a {
        display: block; /* スマホでは横幅いっぱいに近くして押しやすく */
        padding: 16px 20px;
        font-size: 1rem;
    }
}

/*スマホGooglemap*/
@media screen and (max-width: 1023px) {
    /* マップセクション自体の余白をリセット */
    .p-shop-map {
        position: relative;
        width: 100vw !important;
        /* 画面中央を基準に左右端まで強制拡大 */
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        
        height: 350px !important; /* スマホで見やすい高さ */
        overflow: hidden;
    }

    .p-shop-map iframe {
        width: 100% !important;
        height: 100% !important;
        border: 0;
        vertical-align: bottom; /* 下部の謎の隙間を消す */
    }

    /* マップの上の情報との間に適度な余白を作る */
    .p-shop-details {
        margin-bottom: 30px;
    }
}

/*ガタツキ調整*/
.p-shop-map iframe {
    pointer-events: none; /* 初期状態ではスクロールを透過させる */
}

/* マップエリアを一度クリック/タップしたら操作可能にする */
.p-shop-map.is-active iframe {
    pointer-events: auto;
}

body, html {
    overflow-x: hidden; /* 横方向のはみ出しを物理的にカットする */
}

/* 既存フッター上部の不要な余白と背景色をリセット */
#footer, 
.site-footer, 
.sub-footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background-color: transparent !important;
    border: none !important;
}

/* ウィジェットエリアが空の場合の非表示設定 */
#footer-widget-area {
    display: none !important;
}

/* 今回作成した店舗情報セクションの境界を調整 */
.footer-shop-info-part {
    margin-top: 0; /* 上部との隙間をゼロに */
    border-top: none; /* 重なって見える場合はボーダーを消す */
}