/* えほんのじかん LP（v0.3.3）
 * Claude のデザインのページ「えほんのじかんLP 新デザイン案」（2026-11-11）をもとにした見た目。
 * 白地に、淡いクリーム・緑・グレーの帯。見出しは丸ゴシック、本文はゴシック。
 * スマホを基準に書き、広い画面（761px 以上）は min-width で足す。中身（文字・写真）はパターン側。
 */

:root {
	--eh-text: #2b2523;
	--eh-sub: #4a403c;
	--eh-mute: #5c514c;
	--eh-red: #c8102e;
	--eh-red-dark: #a50d25;
	--eh-green: #3f7d2e;
	--eh-orange: #c45f00;
	--eh-cream: #fff7ec;
	--eh-green-bg: #f4f8ee;
	--eh-pink-bg: #fdeff2;
	--eh-gray-bg: #f7f3ef;
	--eh-line: #efe6dc;
	--eh-gothic: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	--eh-maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", var(--eh-gothic);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	overflow-x: hidden;
	-webkit-text-size-adjust: 100%;
	font-family: var(--eh-gothic);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.85;
	letter-spacing: 0.02em;
	color: var(--eh-text);
	background: #ffffff;
}
h1, h2, h3 { font-family: var(--eh-maru); font-weight: 700; margin: 0; word-break: auto-phrase; }
img { max-width: 100%; height: auto; }
p { overflow-wrap: anywhere; margin: 0; }
a { color: var(--eh-red); }
a:hover { color: #8a0a20; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main.wp-block-group, .wp-block-post-content { margin-block-start: 0; }
.wp-block-post-content > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-block-post-content > .alignfull { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; }

/* 並べた箱の中では、ブロック同士の間の余白（WordPress が付ける）を消し、gap で空ける */
.eh-wrap > *, .eh-grid2 > *, .eh-grid3 > *, .eh-grid4 > *, .eh-stack > *, .eh-head > *, .eh-products > *,
.eh-product > *, .eh-product__cans > *, .eh-product__body > *, .eh-flavor > *, .eh-nutrient > *, .eh-card > *,
.eh-boxes > *, .eh-box > *, .eh-voice > *, .eh-faq > *, .eh-biz > *, .eh-hero__text > *, .eh-hero__cta > *,
.eh-award > *, .eh-header__inner > *, .eh-footer__inner > *, .eh-footer__company > *, .eh-buybar > * {
	margin: 0 !important;
}

/* ---------- 並べ方 ---------- */
.eh-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; display: flex; flex-direction: column; gap: 32px; }
.eh-grid2, .eh-grid3, .eh-grid4 { display: grid; }
.eh-grid2 { grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.eh-grid2--top { align-items: start; }
.eh-grid3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.eh-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eh-stack { display: flex; flex-direction: column; gap: 16px; }
.eh-center { text-align: center; }
@media (min-width: 761px) {
	.eh-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
	.eh-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	.eh-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- 区画と文字 ---------- */
.eh-sec { padding: 64px 0; }
@media (min-width: 761px) { .eh-sec { padding: 96px 0; } }
.eh-bg-green { background: var(--eh-green-bg); }
.eh-bg-cream { background: var(--eh-cream); }
.eh-bg-gray { background: var(--eh-gray-bg); }
.eh-bg-dark { background: var(--eh-text); color: #ffffff; }

.eh-head { display: flex; flex-direction: column; gap: 10px; }
.eh-head--center { text-align: center; }
.eh-kicker { font-family: var(--eh-maru); font-weight: 700; color: var(--eh-red); font-size: 14px; letter-spacing: 0.12em; }
.eh-head--green .eh-kicker { color: var(--eh-green); }
.eh-h2 { font-size: 26px; line-height: 1.5; }
.eh-h3 { font-size: 20px; line-height: 1.5; }
@media (min-width: 761px) { .eh-h2 { font-size: 34px; } .eh-h3 { font-size: 22px; } }
.eh-text { color: var(--eh-sub); }
.eh-note { font-size: 12px; color: #6b605b; }
.eh-round img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
@media (min-width: 761px) { .eh-round img { border-radius: 28px; } }

/* ---------- ボタン ---------- */
.wp-block-buttons { gap: 8px; }
.eh-btn-main .wp-block-button__link {
	background: var(--eh-red);
	color: #ffffff;
	font-weight: 700;
	border-radius: 999px;
	min-height: 48px;
	padding: 12px 30px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.4;
}
.eh-btn-main .wp-block-button__link:hover { background: var(--eh-red-dark); color: #ffffff; }
.eh-btn-small .wp-block-button__link { min-height: 44px; padding: 8px 20px; font-size: 14px; white-space: nowrap; }
.eh-btn-full { width: 100%; }
.eh-btn-full .wp-block-button__link { width: 100%; }

/* ---------- ヘッダー ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: 46px; }
@media (min-width: 783px) { .admin-bar header.wp-block-template-part { top: 32px; } }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }
.eh-header { background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--eh-line); }
.eh-header__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.eh-header__logo { width: 80px; flex: none; }
.eh-header__logo img { width: 100%; height: auto; }
.eh-nav { font-size: 14px; font-weight: 700; color: var(--eh-text); }
.eh-nav a { color: var(--eh-text); text-decoration: none; }
.eh-nav a:hover { color: var(--eh-red); }
/* 幅 960px 未満はメニューを三本線のボタンにまとめる（WordPress 標準の切り替えは 600px なので、600〜959px も同じにする） */
@media (max-width: 959px) {
	.eh-header__inner { gap: 10px; }
	.eh-header__buy { margin-left: auto !important; }
	.eh-nav { order: 3; }
	.eh-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; padding: 8px; margin-right: -8px; }
	.eh-nav .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
	.eh-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
/* 開いたメニュー（全画面） */
.eh-nav .wp-block-navigation__responsive-container.is-menu-open { background: #ffffff; color: var(--eh-text); }
.eh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 64px; }
.eh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; }
.eh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--eh-line); }
.eh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: 16px 4px !important; font-family: var(--eh-maru); font-size: 18px; }
.eh-nav .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }
@media (min-width: 761px) {
	.eh-header__inner { height: 68px; }
	.eh-header__logo { width: 88px; }
}
@media (min-width: 960px) {
	.eh-nav .wp-block-navigation__container { gap: 4px 24px; }
}

/* ---------- 1. 最初の画面（スマホは 見出し→缶の写真→説明 の順。PC は左に文、右に缶の写真） ---------- */
.eh-hero { background: var(--eh-cream); overflow: hidden; padding: 20px 0 40px; }
.eh-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "products" "bottom"; gap: 16px; }
.eh-hero__grid > * { margin: 0 !important; }
.eh-hero__top { grid-area: top; display: flex; flex-direction: column; gap: 6px; }
.eh-hero__products { grid-area: products; }
.eh-hero__bottom { grid-area: bottom; display: flex; flex-direction: column; gap: 16px; }
.eh-hero__top > *, .eh-hero__bottom > *, .eh-hero__products > *, .eh-hero__set > * { margin: 0 !important; }
.eh-hero__title { font-size: 28px; line-height: 1.35; letter-spacing: 0.04em; }
.eh-hero__lead { font-size: 16px; color: var(--eh-sub); }
.eh-hero__products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eh-hero__set { background: #ffffff; border-radius: 18px; padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.eh-hero__setimg a { display: block; }
.eh-hero__setimg img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.eh-hero__setname { font-family: var(--eh-maru); font-weight: 700; font-size: 14px; }
.eh-hero__set:first-child .eh-hero__setname { color: var(--eh-green); }
.eh-hero__set:last-child .eh-hero__setname { color: var(--eh-orange); }
@media (min-width: 761px) {
	.eh-hero { padding: 48px 0 56px; }
	.eh-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "top products" "bottom products"; gap: 20px 48px; align-items: end; }
	.eh-hero__bottom { align-self: start; gap: 18px; }
	.eh-hero__products { align-self: center; gap: 16px; }
	.eh-hero__set { padding: 12px 12px 14px; border-radius: 24px; gap: 8px; }
	.eh-hero__setimg img { border-radius: 16px; }
	.eh-hero__setname { font-size: 18px; }
	.eh-hero__title { font-size: 46px; }
	.eh-hero__lead { font-size: 17px; }
}
@media (min-width: 1100px) { .eh-hero__title { font-size: 52px; } }
.eh-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eh-tags li { margin: 0; background: #ffffff; border: 1.5px solid var(--eh-text); border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 700; }
@media (min-width: 761px) { .eh-tags li { font-size: 14px; padding: 2px 14px; } }
.eh-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.eh-hero__cta > * { margin: 0 !important; }
.eh-award { display: flex; align-items: center; gap: 10px; }
.eh-award__badge { width: 88px; flex: none; }
.eh-award__badge img { width: 100%; height: auto; }
@media (min-width: 761px) { .eh-award__badge { width: 104px; } }
.eh-award__text { font-size: 12px; line-height: 1.6; color: var(--eh-mute); }

/* ---------- 3. 商品を選ぶ ---------- */
.eh-products { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1000px) { .eh-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.eh-product {
	--eh-c: var(--eh-green);
	background: #ffffff;
	border-radius: 28px;
	border-top: 6px solid var(--eh-c);
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.eh-product--koguma { --eh-c: var(--eh-orange); }
@media (min-width: 761px) { .eh-product { padding: 32px; } }
.eh-product__cans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eh-flavor { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.eh-flavor__img img { width: 100%; max-width: 200px; aspect-ratio: 3 / 4; object-fit: contain; margin: 0 auto; }
.eh-flavor__name { font-weight: 700; font-size: 15px; }
.eh-product__body { display: flex; flex-direction: column; gap: 10px; }
.eh-product__series { font-size: 13px; color: var(--eh-mute); }
.eh-product__name { font-size: 26px; line-height: 1.3; color: var(--eh-c); }
@media (min-width: 761px) { .eh-product__name { font-size: 30px; } }
.eh-product__flavors { font-size: 14px; color: var(--eh-sub); }
.wp-block-buttons.eh-shop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px !important; }
.eh-shop .wp-block-button { width: 100%; }
.eh-shop .wp-block-button__link {
	width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
	background: #ffffff;
	color: var(--eh-text);
	border: 1.5px solid var(--eh-text);
}
.eh-shop .eh-shop__amazon { grid-column: 1 / -1; }
@media (max-width: 420px) { .eh-shop .wp-block-button__link { font-size: 13px; padding: 8px 4px; letter-spacing: 0; } }
.eh-shop .eh-shop__amazon .wp-block-button__link { background: var(--eh-text); color: #ffffff; }
.eh-shop .wp-block-button__link:hover { background: var(--eh-cream); color: var(--eh-text); }
.eh-shop .eh-shop__amazon .wp-block-button__link:hover { background: #000000; color: #ffffff; }
.eh-credit { font-size: 11px; color: #6b605b; }

.eh-spec { align-self: center; width: 100%; max-width: 560px; }
.eh-spec table { border-collapse: collapse; width: 100%; font-size: 14px; }
.eh-spec td { padding: 8px 4px; border: 0; border-bottom: 1px solid #e4dcd3; vertical-align: top; }
.eh-spec td:first-child { color: var(--eh-mute); width: 7.5em; }
.eh-spec tr:last-child td { border-bottom: 0; }

/* ---------- 4. 安心の中身 ---------- */
.eh-nutrient { background: var(--eh-cream); border-radius: 24px; padding: 20px 12px; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.eh-nutrient__label { font-size: 13px; color: var(--eh-mute); }
.eh-nutrient__value { font-family: var(--eh-maru); font-weight: 700; font-size: 26px; line-height: 1.2; }
.eh-nutrient__value span { font-size: 15px; }
.eh-grid4 > .eh-nutrient:last-child .eh-nutrient__value span { font-size: 18px; line-height: 1.45; }
@media (min-width: 761px) {
	.eh-nutrient { padding: 24px 16px; }
	.eh-nutrient__value { font-size: 30px; }
	.eh-nutrient__value span { font-size: 16px; }
	.eh-grid4 > .eh-nutrient:last-child .eh-nutrient__value span { font-size: 22px; }
}
.eh-grid4 + .eh-note { margin-top: -20px !important; }
.eh-safe__wafer img { width: 100%; max-width: 460px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; margin: 0 auto; }
.eh-safe__open img { max-width: 380px; object-position: center top; }
.eh-safe__open { margin-top: 4px !important; }

/* ---------- 5. 使い方 ---------- */
/* 生成した写真の注記「イメージです」：写真の右下に小さく重ねる */
.eh-note-img { position: relative; }
.eh-note-img figcaption {
	position: absolute;
	right: 10px;
	bottom: 10px;
	margin: 0;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--eh-mute);
	font-size: 11px;
	line-height: 1.6;
}
.eh-card { display: flex; flex-direction: column; gap: 12px; }
.eh-card__title { font-size: 20px; line-height: 1.5; }
.eh-card__text { font-size: 14px; color: var(--eh-sub); }

/* ---------- 6. つくり手 ---------- */
.eh-bg-dark .eh-kicker { color: #ffb3c0; }
.eh-bg-dark .eh-text { color: #e8e1dc; }
.eh-bg-dark .eh-round { margin-top: 6px !important; }
.eh-bg-dark .eh-round img { border-radius: 20px; }
.eh-boxes { display: flex; flex-direction: column; gap: 14px; }
.eh-box { border: 1px solid #5a4f4b; border-radius: 20px; padding: 18px 22px; }
.eh-box__title { font-weight: 700; word-break: auto-phrase; }
.eh-box__text { margin-top: 4px !important; font-size: 14px; color: #d6cdc7; }

/* ---------- 7. お客様の声（スマホは横に送って読む） ---------- */
.eh-voice { margin: 0; border-radius: 24px; padding: 24px; background: var(--eh-green-bg); }
.eh-voice--2 { background: var(--eh-cream); }
.eh-voice--3 { background: var(--eh-pink-bg); }
.eh-voice__text { font-size: 15px; }
@media (max-width: 760px) {
	.eh-voices { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.eh-voices > * { scroll-snap-align: start; }
}
.eh-voices + .eh-note { margin-top: -16px !important; }

/* ---------- 8. よくあるご質問・まとめての購入 ---------- */
.eh-faq { display: flex; flex-direction: column; gap: 12px; }
.eh-faq > .eh-h2 { margin-bottom: 8px !important; }
.eh-faq__item { background: #ffffff; border-radius: 16px; padding: 16px 20px; }
.eh-faq__item summary { font-weight: 700; cursor: pointer; }
.eh-faq__item p { margin-top: 10px !important; font-size: 14px; }
.eh-biz { background: #ffffff; border: 2px solid var(--eh-red); border-radius: 28px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 761px) { .eh-biz { padding: 32px; } }
.eh-biz__title { font-size: 22px; line-height: 1.5; }
@media (min-width: 761px) { .eh-biz__title { font-size: 24px; } }

/* ---------- フッター ---------- */
.eh-footer { border-top: 1px solid var(--eh-line); padding: 40px 0 112px; font-size: 13px; color: var(--eh-mute); }
@media (min-width: 761px) { .eh-footer { padding-bottom: 40px; } }
.eh-footer__inner { flex-direction: column; gap: 20px; }
@media (min-width: 761px) { .eh-footer__inner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; } }
.eh-footer__company { display: flex; align-items: center; gap: 16px; }
.eh-footer__logo { width: 160px; flex: none; }
.eh-footer__logo img { width: 100%; height: auto; }
.eh-footer__address { line-height: 1.7; }
.eh-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.eh-footer__links a { color: var(--eh-mute); }
.eh-footer > * { margin-top: 0; margin-bottom: 0; }
.eh-footer__copy { text-align: center; font-size: 12px; margin-top: 24px !important; }

/* スマホ：画面の下に購入ボタン */
.eh-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--eh-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { .eh-buybar { display: none; } }
