/*
Theme Name: Mug's Kitchen 2
Author: motoki
Description: 自分専用の自作テーマ
Version: 1.0
Text Domain: mugskitchen2
*/

/* ========================================
    Base
======================================== */
:root {
	/* 基本設定（あとでまとめて変更できる） */
	--font-size-base: 16px;
	--color-text-base: #333333;
	--font-family-base: 'Noto Sans JP', sans-serif;
}

html {
	font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family-base);
	color: var(--color-text-base);
	line-height: 1.6;
	background: #fff;
}
.sub_line {
    max-width: 1440px;
    margin: 0 auto;   /* 中央寄せ */
    padding: 0 1rem;  /* スマホで端がくっつかないように余白 */
}

.archive-link {
    text-align: center;
    margin-top: 4rem;
}

main {
    margin-top: 70px; /* ヘッダーの高さ分 */
    margin-bottom: 100px; /* フッターの高さ分 */
}

/* 画像のモーダル */
/* モーダルの背景 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* モーダル内の画像 */
.image-modal img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-radius: 6px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.image-modal.show {
    opacity: 1;
    visibility: visible;
}

.image-modal.show img {
    transform: scale(1);
}

/* 閉じるボタン */
.image-modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.js-modal-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}



/* wordpressログイン時ヘッダーメニュー非表示 */
#wpadminbar {
	display: none !important;
}

/* ========================================
    header
======================================== */
/* ヘッダー固定 */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	z-index: 1000;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.5rem 1rem;
}

.site-logo a {
	font-size: 1.25rem;
	font-weight: 700;
	color: #000;
	text-decoration: none;
}

/* ナビゲーション */
.site-nav .menu {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav a {
	color: #333;
	text-decoration: none;
	font-weight: 500;
}

/* ハンバーガーはPCでは非表示 */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
}
.menu-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	margin: 5px auto;
	background-color: #333;
	border-radius: 2px;
}

/* スマホ用 */
@media (max-width: 768px) {
	.site-nav {
		display: none;
	}
    .site-search {
        display: none;
    }
	.menu-toggle {
		display: block;
	}
}

/* ========================================
    検索窓
======================================== */
.search-form {
	position: relative;
	width: 250px; /* 必要に応じて調整 */
}

.search-label {
	position: relative;
	display: block;
}

.search-field {
	width: 100%;
	padding: 0.5rem 0.8rem 0.5rem 2rem; /* 左側に余白を追加 */
	border: none;
	border-radius: 8px;
	background: #f3f3f3;
	font-size: 0.9rem;
}

.search-field:focus {
	outline: none;
	background: #eaeaea;
}

.search-icon {
	position: absolute;
	left: 0.6rem;
	top: 50%;
	transform: translateY(-50%);
	color: #666;
	pointer-events: none; /* アイコンの上でも入力できるように */
}

/* ========================================
    footer
======================================== */
footer {
}
.footer {
    background-color: #030213;
	color: #fff;
	padding: 40px 20px 20px;
	font-size: 14px;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin: 0 auto;
	gap: 30px;
}

.footer-col {
	flex: 1;
	min-width: 220px;
}

.footer-col .site-title {
	font-size: 18px;
	margin-bottom: 10px;
}

.footer-col .menu-name {
	font-size: 16px;
	margin-bottom: 10px;
}

.footer-col p {
	line-height: 1.6;
	margin-bottom: 10px;
}

.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-col ul li {
	margin-bottom: 6px;
}

.footer-col ul li a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-col ul li a:hover {
	color: #fff;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	text-align: center;
	padding-top: 15px;
	margin-top: 20px;
	font-size: 12px;
	color: #aaa;
}



/* ========================================
    index.php
======================================== */
/* h2 */
#index h2 {
	position: relative;
	display: inline-block;
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 60px;
	padding-bottom: 0.5rem;
}

#index h2::after, 
#index h2::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background-color: orange;
}

#index h2::after {
	bottom: 0;
}

#index h2::before {
	bottom: -6px; /* 下に少しずらして二重線 */
}
/* メインビジュアル */
#index .main-visual {
	position: relative;
	width: 100%;
	height: 400px; /* PC時の高さ */
	background: url('assets/images/main-visual.jpg') center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-align: center;
}

#index .main-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35); /* 文字を読みやすくするオーバーレイ */
}

#index .main-visual__inner {
	position: relative;
	z-index: 1;
	max-width: 800px;
	padding: 0 1rem;
}

#index .main-visual__title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

#index .main-visual__lead {
	font-size: 1.125rem;
	line-height: 1.6;
}


@media (max-width: 768px) {
    #index .main-visual {
        height: 250px; /* スマホ時の高さ */
    }
    #index .main-visual__title {
        font-size: 1.75rem;
    }
    #index .main-visual__lead {
        font-size: 1rem;
    }
}

/* ガチレビュー */
#index .review-section {
	padding: 4rem 1rem;
	text-align: center;
}

#index .section-description {
	margin-bottom: 2rem;
	font-size: 1rem;
}

#index .review-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* 最新の1件（大きいカード） */
#index .review-item--large {
	display: flex;
	gap: 1.5rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	overflow: hidden;
	text-align: left;
}

#index .review-item--large .review-thumb {
	width: 50%;
	aspect-ratio: 3 / 2; /* 横:縦 = 3:2 */
    background-repeat: no-repeat;
	background-position: center;
	background-size: 100%; /* 初期値 */
	transition: background-size 0.6s ease;
}

#index .review-item--large:hover .review-thumb {
	background-size: 110%; /* 10% 拡大 */
}

#index .review-badge {
	display: inline-block;
	background: #e63946;
	color: #fff;
	padding: 0.2rem 0.6rem;
	font-size: 0.75rem;
	border-radius: 4px;
	margin-bottom: 0.5rem;
}

#index .review-item--large .review-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

#index .review-title {
	font-weight: 600;
	margin-bottom: 0.5rem;
}

#index .review-excerpt {
	font-size: 0.95rem;
	margin-bottom: 0.5rem;
}

#index .review-excerpt:not(.review-item--large .review-excerpt) {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

#index .review-price {
	margin-bottom: 1rem;
    text-align: left;
    color: oklch(.627 .194 149.214);
}

/* 下の3件カード */
#index .review-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

#index .review-item {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	overflow: hidden;
	text-align: left;
}

#index .review-item img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

#index .review-content {
	padding: 1rem;
}
#index .review-thumb {
	position: relative; /* 子要素のabsolute配置用 */
	overflow: hidden;
}
#index .review-thumb img {
    transition: transform 0.3s ease;
}
#index .review-item:hover .review-thumb img {
	transform: scale(1.05); /* 5%拡大 */
}

/* 左上のタグ */
#index .review-tag {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #28a745; /* 緑 */
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.2rem 0.6rem;
	border-radius: 12px;
}

/* 右上の評価 */
#index .review-rating {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #fff;
	color: #333;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.2rem 0.6rem;
	border-radius: 12px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15);
	display: flex;
	align-items: center;
	gap: 0.2rem;
}

#index .review-rating::before {
	content: "★";
	color: #f4c542; /* 星を黄色に */
}

#index .review-tags {
	display: flex;
	flex-wrap: wrap;  /* はみ出したら折り返す */
	gap: 0.5rem;      /* タグ同士の間隔 */
	margin: 0.5rem 0;
}

#index .review-tags .review-sub-tag {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	font-size: 0.8rem;
	color: #333;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	white-space: nowrap; /* 改行防止 */
}

#index .btn {
	display: inline-block;
	background: #000;
	color: #fff;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.9rem;
	transition: background 0.2s;
}

#index .btn:hover {
	background: #333;
}

#index .btn-sm {
	padding: 0.3rem 0.8rem;
	font-size: 0.8rem;
}

#index .btn-dark {
	background: #111;
}

/* レシピ */
#index .recipe-section {
	padding: 4rem 1rem;
	text-align: center;
    background-color:  color-mix(in oklab, #ececf0 60%, transparent);
}

#index .recipe-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

#index .recipe-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

#index .recipe-item {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	overflow: hidden;
	text-align: left;
}

#index .recipe-item img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

#index .recipe-content {
	padding: 1rem;
}
#index .recipe-thumb {
	position: relative; /* 子要素のabsolute配置用 */
	overflow: hidden;
}

#index .recipe-thumb img {
    transition: transform 0.3s ease;
}
#index .recipe-item:hover .recipe-thumb img {
	transform: scale(1.05); /* 5%拡大 */
}

#index .recipe-title {
	font-weight: 600;
	margin-bottom: 0.5rem;
}

#index .recipe-excerpt {
	font-size: 0.95rem;
	margin-bottom: 0.5rem;
}

#index .recipe-excerpt:not(.recipe-item--large .recipe-excerpt) {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

#index .recipe-meta {
	color: #777;
	font-size: 0.85rem;
	margin-bottom: 1rem;
}

/* 左上のタグ */
#index .recipe-tag {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #28a745; /* 緑 */
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.2rem 0.6rem;
	border-radius: 12px;
}


/* コンテンツ */
#index .content-section {
	padding: 4rem 1rem;
	text-align: center;
    background-color:  color-mix(in oklab, #ececf0 60%, transparent);
}
#index .card-grid {
	display: grid;
	grid-auto-flow: column;   /* 横並び */
	justify-content: center;  /* 中央寄せ */
	gap: 20px;                /* カード間の余白 */
}

#index .card {
	text-align: center;
    width: 200px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#index .card img {
	width: 100%;
	aspect-ratio: 4 / 3; /* 画像比率を統一 */
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 10px;
}

#index .card h3 {
	font-size: 16px;
	margin: 5px 0;
}

#index .card p {
	font-size: 14px;
	color: #666;
	margin-bottom: 5px;
}

#index .card span {
	display: block;
	font-size: 13px;
	color: #888;
}

#index .card:hover {
	transform: scale(1.05); /* 5%拡大 */
}

/* ========================================
    single-review.php
======================================== */
#single-review .review-hero {
	padding: 2rem 1rem;
}

#single-review .review-hero-inner {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

#single-review .review-hero-image {
	flex: 1 1 50%;
}

#single-review .review-hero-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: cover;
}

#single-review .review-thumbnails {
    display: flex;
    gap: 10px;          /* サムネイルの間隔 */
    margin-top: 10px;
    width: 100%;        /* アイキャッチと同じ幅 */
}

#single-review .review-thumbnails img {
    flex: 1;            /* 均等に広がる */
    max-width: calc(33.333% - 10px); /* 最大3枚で並ぶ想定 */
    aspect-ratio: 1/1;  /* 正方形に揃える */
    object-fit: cover;  /* はみ出す部分は切り取り */
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

#single-review .review-thumbnails img:hover {
    transform: scale(1.05);
}

#single-review .review-hero-content {
	flex: 1 1 50%;
}

#single-review .review-title {
	font-size: 1.8rem;
	margin-bottom: 1rem;
}

#single-review .review-price {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

#single-review .price-old {
	text-decoration: line-through;
	color: #999;
	margin-left: .5rem;
}

#single-review .discount {
	color: #f00;
	font-weight: bold;
	margin-left: .5rem;
}

#single-review .review-meta {
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* 2列 */
	gap: 1rem 2rem; /* 縦・横の余白 */
	list-style: none;
	padding: 0;
	margin: 1.5rem 0;
}

#single-review .review-meta li {
	display: flex;
	align-items: center;
	font-size: 1rem;
}

#single-review .review-meta .value {
	font-weight: 600;
}

#single-review .review-meta .icon {
	margin-right: .5rem;
	font-size: 1.2rem;
}

#single-review .single-review-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}

#single-review .single-review-tag {
	display: inline-block;
	background: oklch(.95 .0058 264.53);
	color: #333;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.2rem 0.6rem;
	border-radius: 10px;
	white-space: nowrap;
}

#single-review .review-links {
	margin-top: 2rem;
}

#single-review .review-links .store-btn {
	display: block;
	text-align: center;
	font-weight: bold;
	padding: 1rem;
	border-radius: 8px;
	text-decoration: none;
	transition: 0.3s;
}

/* --- Amazon (大きなオレンジボタン) --- */
#single-review .btn-amazon {
	background: #ff9900;
	color: #fff;
	font-size: 1.1rem;
	margin-bottom: 1rem;
}

#single-review .btn-amazon:hover {
	background: #e68a00;
}

/* --- 下の2つを横並びに --- */
#single-review .btn-row {
	display: flex;
	gap: 0.5rem;
}

#single-review .btn-row .store-btn {
	flex: 1;
	background: #fff;
	color: #333;
	border: 2px solid #ddd;
	font-size: 1rem;
}

#single-review .btn-row .store-btn:hover {
	border-color: #aaa;
}

/* アイコン風に左に余白（任意） */
#single-review .store-btn::before {
	margin-right: .3rem;
}

#single-review .review-ingredients {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 1.5rem;
	margin-top: 2rem;
}

#single-review .ingredients-title {
	font-size: 1.1rem;
	font-weight: bold;
	margin-bottom: 1rem;
}

#single-review .ingredients-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

#single-review .ingredients-list li {
	display: flex;
	justify-content: space-between;
	padding: 0.4rem 0;
	border-bottom: 1px solid #f3f3f3;
}

#single-review .ingredients-list li:last-child {
	border-bottom: none;
}

#single-review .ingredients-cost {
	margin-top: 1rem;
	font-weight: bold;
	border-top: 1px solid #eee;
	padding-top: 0.8rem;
}

#single-review .ingredients-cost .cost {
	color: #28a745; /* 緑色 */
	font-weight: bold;
}

#single-review .review-rating {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 1.5rem;
	margin-top: 2rem;
}

#single-review .rating-title {
	font-size: 1.2rem;
	font-weight: bold;
	margin-bottom: 1rem;
}

#single-review .rating-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* 2列並び */
	gap: 1rem 2rem;
}

#single-review .rating-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

#single-review .rating-label {
	flex: 0 0 80px; /* 左ラベル幅 */
	font-weight: 500;
}

#single-review .rating-bar {
	flex: 1;
	height: 8px;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

#single-review .rating-fill {
	height: 100%;
	background: #111; /* 黒ベース（変更可） */
}

#single-review .rating-score {
	font-size: 0.9rem;
	color: #555;
	flex: 0 0 40px;
	text-align: right;
}

#single-review .review-detail {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

#single-review .review-detail-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

#single-review .review-detail-content {
    line-height: 1.8;
    font-size: 1rem;
}

#single-review .review-detail-content h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1rem;
}

#single-review .review-detail-content p {
    margin: 0.5rem 0;
}

#single-review .review-steps {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

#single-review .review-steps-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

#single-review .review-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

#single-review .step-left {
    flex: 0 0 40px; /* 番号エリア固定幅 */
    display: flex;
    justify-content: center;
}

#single-review .step-number {
    background: #ff6600;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#single-review .step-right {
    flex: 1;
    padding-left: 1rem;
}

#single-review .step-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

#single-review .step-text {
    margin-bottom: 1rem;
    line-height: 1.6;
}

#single-review .step-images {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

#single-review .step-images img {
    width: 200px;
    border-radius: 8px;
    object-fit: cover;
}

#single-review .review-tips {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

#single-review .review-section-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

#single-review .review-tips-content p {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: #444;
}
