/* タブナビゲーション全体 */
.tab_wrap {
	width: 1100px;
	margin: 0 auto;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #d0c4b4;
    position: relative;
}

/* タブリンク（非選択時） */
.tab-link {
    background: #FFE4B5; /* 提案した色を使用 */
    border: none;
    padding: 10px 25px 15px 25px;
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    color: #6b5d4f;
    transition: all 0.3s ease;
    position: relative;
    min-width: 140px;
    border-radius: 8px 8px 0 0;
    margin: 0 2px;
    margin-top: 5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* タブリンクのレイアウト調整 */
.tab-link:first-child {
    margin-left: 0;
}

.tab-link:last-child {
    margin-right: 0;
}

/* タブリンクホバー時（非選択） */
.tab-link:hover:not(.active) {
    background: #FFCC99; /* 少し濃いめのホバー */
}

/* タブリンク（選択時） */
.tab-link.active {
    background: #fff3ea; /* 背景色と同じ */
    color: #5d4e37;
    border-top: 1px solid #d0c4b4;
    border-left: 1px solid #d0c4b4;
    border-right: 1px solid #d0c4b4;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    z-index: 1;
    position: relative;
    padding: 15px 25px;
    margin-top: 0;
}

/* 選択中タブの下線を隠す効果 */
.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #fff3ea; /* 背景色と同じ */
    z-index: 2;
}

/* タブ内の英語表記 */
.tab-english {
    font-size: 0.75rem;
    opacity: 0.8;
    display: block;
    margin-top: 2px;
    font-weight: 300;
}

/* コンテンツエリア */
.content-area {
    padding: 20px;
    background: white;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #5d4e37;
    text-align: center;
    margin-bottom: 5px;
    font-weight: 400;
}

.section-subtitle {
    font-size: 0.85rem;
    color: #8b7355;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.detail-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-content.active {
    display: block;
    opacity: 1;
}

/* メニューカテゴリー（初期表示）- 画像対応に修正 */
.menu-categories {
	display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 0 auto;
    max-width: 940px;
    transition: all 0.5s ease;
}

.category-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.1);
}

.category-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.1), 
                0 0 20px rgba(245, 230, 211, 0.8); /* やさしいグロー */
}

.category-card:hover img {
    opacity: 0.85; /* フェードアウト効果 */
}

.category-card:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(139, 115, 85, 0.25);
}

/* 詳細表示エリア */
.category-detail-area {
    display: none;
    background: white; /* 白背景に変更 */
    padding: 0px;
    margin: 0 auto;
    width: 1060px; /* 幅1000pxに変更 */
    max-width: 100%; /* レスポンシブ対応 */
    animation: fadeIn 0.5s ease;
}

.category-detail-area.active {
    display: block;
}


/* 戻るボタンのスタイル */
.detail-header {
    position: relative;
    padding: 20px 0;
    text-align: center;
}

.back-to-menu-btn {
    position: absolute;
    right: 0;
    top: 35%;
    transform: translateY(-50%);
    background: #FFE4B5;
    border: 1px solid rgba(139, 115, 85, 0.2);
    color: #313131;
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-family: inherit;
}

.back-to-menu-btn:hover {
    background-color: #8B4513;
    color: white;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .back-to-menu-btn {
        position: static;
        transform: none;
        margin: 0 auto 10px auto;
        display: flex;
        width: fit-content;
    }
    
    .detail-header {
        padding: 10px 0;
    }
}

.detail-title {
    font-size: 2.2rem;
    color: #5d4e37;
    margin-bottom: 10px;
}

.detail-subtitle {
    font-size: 0.9rem;
    color: #8b7355;
    letter-spacing: 1px;
}

.detail-content {
    color: #6b5d4f;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 30px;
}

/* コンパクトなカード一覧 */
.compact-cards {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.compact-card {
    background: #FFE4B5; /* タブと同じ色 */
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 115, 85, 0.2);
    min-width: 120px;
    text-align: center;
}

.compact-card:hover {
    background: #FFCC99 ; /* ホバー時は少し濃く */
    transform: translateY(-2px);
}

.compact-card.active {
    background: rgba(139, 115, 85, 0.8);
    color: white;
}

.compact-card-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.compact-card-english {
    font-size: 0.7rem;
    opacity: 0.8;
}


.content-area {
	padding: 0;
}
.section-wrap .content-area h3 {
	background-image: url("../images/menu/bg_title.png");
	background-repeat: no-repeat;
	background-position:  bottom center;
	padding-left: 1em;
	text-align: left;
}
.pb13 {padding-bottom: 13px;}

/* テイクアウトバナー */
.bnr_takeout {
	padding: 23px 0 0 45px;
}
.modaal-content-container h2 {
	margin-bottom: 30px;
}
.eigyo_text{
margin: 15px auto 8px;
    font-size: 16px;
    letter-spacing: 0px;
    font-weight: bold;
    color: #58351b;
	line-height: 1.4;
	text-align: center;
	}
.eigyo_text_serif {
	color: #58351b;
    font-size: 15px;
	line-height: 1.3;
}
.centerphoto {
	margin: 30px auto 0;
	text-align: center;
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* レスポンシブ対応（タブレット） */
@media (max-width: 1100px) and (min-width: 769px) {
.section-wrap .content-area h3 {
	text-align: center;
}

.bnr_takeout {
	padding: 0;
	text-align: center;
}


.tab_wrap {
        width: 95%;
        margin: 0 auto;
    }
    
    .menu-categories {
        max-width: 100%;
        gap: 20px;
    }
}

/* レスポンシブ対応（スマホ） */
@media (max-width: 768px) {
.section-wrap .content-area h3 {
	text-align: center;
}


	.bnr_takeout {
	padding: 5px 0 0 0;
	text-align: right;
}

	.tab_wrap {
        width: 90%;
        margin: 0 auto;
    }
    
    .tab-navigation {
        flex-direction: column;
        gap: 8px;
        border-bottom: none;
        padding: 0 20px 20px;
    }
    
    .tab-link {
        min-width: auto;
        width: 100%;
        padding: 15px 20px;
        font-size: 0.85rem;
        border-radius: 8px;
        margin: 0;
        margin-top: 0;
        border: 1px solid #d0c4b4;
    }

    .tab-link.active {
        margin-top: 0;
        padding: 15px 20px;
        border: 1px solid #d0c4b4;
        border-radius: 8px;
    }

    .tab-link.active::after {
        display: none;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .menu-categories {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }

    .compact-cards {
        gap: 8px;
    }

    .compact-card {
        min-width: 100px;
        padding: 10px 14px;
    }
}