/*
Theme Name: ComChay
Description: Quiet, warm, mobile-first theme for ComChay.com — Asian Mindful Food & Travel.
Version: 1.0.0
Text Domain: comchay
*/

:root {
	--bg: #faf7f2;
	--paper: #fffdf9;
	--ink: #2b2723;
	--muted: #5b5249; /* #faf7f2 / #f1e4da 上で 4.5:1 以上 */
	--line: #e6dfd3;
	--accent: #9a4d33; /* 焼き土・味噌の色。緑/黒に寄せない */
	--accent-soft: #f1e4da;
	--radius: 10px;
	--wrap: 1080px;
	--serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.85 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.45; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section h2 { font-size: 1.5rem; margin: 0 0 8px; }
.eyebrow { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.section h2.eyebrow { font-family: var(--sans); font-size: .75rem; font-weight: 400; line-height: 1.85; margin: 0 0 6px; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); border: 2px solid var(--accent); border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.brand small { display: block; font: .6rem var(--sans); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: .9rem; }
.primary-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.lang-switch { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; font-size: .8rem; }
.lang-switch a { color: var(--muted); }
.lang-switch .current a { color: var(--ink); font-weight: 700; }
.header-right { display: flex; align-items: center; gap: 18px; }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
	.primary-nav.open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 0; }
	.primary-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.section { padding: 44px 0; }
}

/* Hero */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; color: #fff; background: #4b3a2e center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,22,16,.45), rgba(30,22,16,.7)); }
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); margin: 0; letter-spacing: .02em; }
.hero .tagline { font-family: var(--serif); font-size: clamp(1.05rem, 3vw, 1.4rem); margin: 10px 0 0; }
.hero .tagline-sub { margin: 4px 0 18px; opacity: .9; }
.hero p.lead { max-width: 560px; opacity: .95; }

/* Cards & grids */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid, .grid.two { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 520px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card .thumb { aspect-ratio: 4/3; background: var(--accent-soft); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; } /* 画像を切らずに全体を見せる（横長のカード画像の文字が欠けないように） */
.card .body { padding: 14px 16px 18px; }
.card h3 { margin: 4px 0 0; font-size: 1.05rem; }
.card h3 a { color: var(--ink); }
.meta { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.tile { display: block; padding: 28px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.tile:hover { text-decoration: none; border-color: var(--accent); }
.tile strong { display: block; font-family: var(--serif); font-size: 1.15rem; letter-spacing: .05em; }
.tile span { font-size: .85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .9rem; }
.chip:hover { text-decoration: none; border-color: var(--accent); }

.band { background: var(--accent-soft); }
.about-band { text-align: center; }
.about-band p { max-width: 640px; margin: 12px auto; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--accent); color: #fff; border: 0; cursor: pointer; font: inherit; }
.btn:hover { text-decoration: none; opacity: .9; }

/* Newsletter */
.newsletter form { display: flex; gap: 10px; max-width: 480px; margin-top: 16px; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1 1 220px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 10px 16px; background: var(--accent-soft); border-radius: 8px; margin: 12px 0; }

/* Single */
.entry { padding: 40px 0 64px; }
.entry h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 6px 0 12px; }
.entry .featured { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.entry-content { font-size: 1.05rem; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content img { border-radius: 8px; }
.entry-content a { text-decoration: underline; text-underline-offset: .2em; }
.breadcrumbs { font-size: .78rem; color: var(--muted); padding: 16px 0 0; }
.breadcrumbs a { color: var(--muted); }
.place-info { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; margin: 24px 0; }
.place-info dl { margin: 0; display: grid; grid-template-columns: 8.5em 1fr; }
.place-info dt, .place-info dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.place-info dt { color: var(--muted); font-size: .85rem; }
.place-info .note { grid-column: 1 / -1; border-bottom: 0; }
.place-info iframe { width: 100%; height: 280px; border: 0; border-radius: 8px; margin: 12px 0; }
.pagination { margin-top: 32px; display: flex; gap: 12px; }
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .85rem; text-align: center; }
.site-footer a { color: var(--muted); }

.hero .photo-credit { position: absolute; right: 16px; bottom: 8px; margin: 0; font-size: .75rem; color: #fff; opacity: .85; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.hero .photo-credit a { color: #fff; text-decoration: underline; text-underline-offset: .15em; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; }
.newsletter .nl-quiz { flex: 1 1 100%; font-size: .9rem; color: var(--muted); margin-top: 4px; }

.brand-logo { display: block; height: 46px; width: auto; }
@media (max-width: 520px) { .brand-logo { height: 38px; } }

.site-network { margin: 18px 0 20px; }
.site-network .net-title { margin: 0 0 6px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.site-network ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 0; margin: 0; font-size: .82rem; }
.site-network a { color: var(--muted); }

/* Newsletter / contact (plugin-rendered forms) */
.newsletter form.cc-newsletter { display: block; max-width: 480px; }
.newsletter .cc-newsletter p { margin: 0 0 12px; }
.newsletter .cc-newsletter label { font-size: .9rem; }
.newsletter .cc-newsletter .cc-nl-consent { font-size: .85rem; color: var(--muted); }
.cc-optout { margin: 16px 0; }
.cc-optout .cc-optout-status { margin-left: 8px; font-size: .9rem; color: var(--muted); }
.cc-quiz label { color: var(--muted); font-size: .9rem; }

/* ================================================================== *
 * Vibrant layer (2026-10-08): もっとワクワクする見た目に
 * 動きは prefers-reduced-motion の人には出さない。
 * ================================================================== */
:root {
	--saffron: #f4a62a;
	--chili: #d6452b;
	--ember: #8c2f1b;
	--ink-deep: #2b1d16;
	--glow: 0 14px 34px rgba(154, 77, 51, .28);
}

/* ---- Hero: 大きく、鮮やかに、ゆっくり動く ---- */
.hero { min-height: 82vh; background-size: cover; animation: heroDrift 26s ease-in-out infinite alternate; }
.hero::before { background:
	radial-gradient(circle at 18% 22%, rgba(244, 166, 42, .22), transparent 46%),
	linear-gradient(90deg, rgba(25, 10, 5, .78) 0%, rgba(25, 10, 5, .5) 42%, rgba(25, 10, 5, .1) 75%, rgba(25, 10, 5, .05) 100%),
	linear-gradient(180deg, rgba(25, 10, 5, .25), rgba(25, 10, 5, .45)); }
.hero h1 { font-size: clamp(3.4rem, 13vw, 7.4rem); line-height: 1.15; padding-bottom: .12em; letter-spacing: -.01em; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .4));
	background: linear-gradient(100deg, #fff 30%, var(--saffron) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tagline { font-size: clamp(1.3rem, 4.2vw, 2.1rem); margin-top: 18px; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.hero .tagline-sub { letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; opacity: .95; color: var(--saffron); }
.hero p.lead { font-size: 1.05rem; max-width: 600px; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
@keyframes heroDrift { from { background-position: 30% 35%; } to { background-position: 70% 65%; } }
.hero .wrap > * { animation: riseIn .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .wrap > *:nth-child(2) { animation-delay: .12s; }
.hero .wrap > *:nth-child(3) { animation-delay: .22s; }
.hero .wrap > *:nth-child(4) { animation-delay: .32s; }
.hero .wrap > *:nth-child(5) { animation-delay: .44s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---- Buttons ---- */
.btn { background: linear-gradient(135deg, var(--accent), var(--chili)); box-shadow: 0 6px 18px rgba(154, 77, 51, .3); font-weight: 600; letter-spacing: .02em; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { opacity: 1; transform: translateY(-3px) scale(1.02); box-shadow: var(--glow); }
.btn-hot { background: linear-gradient(135deg, var(--saffron), #f08a24); color: #2b1d16; box-shadow: 0 8px 26px rgba(244, 166, 42, .45); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 2px solid rgba(255, 255, 255, .85); box-shadow: none; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--ink-deep); }

/* ---- Marquee: 流れる帯 ---- */
.marquee { background: var(--ink-deep); color: var(--saffron); overflow: hidden; white-space: nowrap; padding: 14px 0; border-block: 3px solid var(--saffron); }
.marquee-track { display: inline-flex; gap: 28px; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: 1.25rem; letter-spacing: .06em; }
.marquee-track i { font-style: normal; color: var(--chili); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Section titles ---- */
.section { padding: 84px 0; }
.section h2.eyebrow { font-family: var(--serif); font-size: clamp(1.7rem, 4.6vw, 2.6rem); font-weight: 700; letter-spacing: .01em; line-height: 1.2; color: var(--ink); margin: 0 0 6px; position: relative; padding-bottom: 14px; }
.section h2.eyebrow::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 3px; margin-top: 14px; background: linear-gradient(90deg, var(--chili), var(--saffron)); }
.about-band { background: linear-gradient(135deg, #fff1d6, #f9d9c3); }
.about-band h2 { font-size: clamp(2rem, 6vw, 3.2rem); color: var(--ember); }
.band { background: linear-gradient(135deg, #fbe9d9, #f6dccb); }

/* ---- Cards ---- */
.card { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .3s ease; box-shadow: 0 2px 10px rgba(60, 30, 15, .06); }
.card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(120, 50, 25, .2); border-color: var(--saffron); }
.card .thumb img { transition: transform .6s ease; }
.card:hover .thumb img { transform: scale(1.08); }
.card .meta { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fdebc8; color: #7a3d12; font-weight: 700; letter-spacing: .06em; }
.card h3 { font-size: 1.12rem; }
.card h3 a:hover { color: var(--accent); }
@media (min-width: 861px) {
	/* 1枚目は横長の特集カード（画像は4:3のまま切らずに左、文字は右） */
	.latest-grid .card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-width: 2px; }
	.latest-grid .card:first-child .thumb { aspect-ratio: 4 / 3; }
	.latest-grid .card:first-child .body { display: flex; flex-direction: column; justify-content: center; padding: 28px 36px; }
	.latest-grid .card:first-child h3 { font-size: 1.8rem; line-height: 1.4; }
}

/* ---- Country chips ---- */
.chip { padding: 12px 22px; font-size: 1rem; font-weight: 600; border: 2px solid transparent; background: #fff; box-shadow: 0 3px 12px rgba(60, 30, 15, .1); transition: transform .2s ease, background .2s ease, color .2s ease; }
.chip:hover { background: linear-gradient(135deg, var(--saffron), var(--chili)); color: #fff; transform: translateY(-4px) rotate(-1.5deg); border-color: transparent; }

/* ---- Explore tiles: 色分け＋絵文字 ---- */
.tile { position: relative; overflow: hidden; padding: 30px 24px 26px; border: 0; color: var(--ink-deep); transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 4px 16px rgba(60, 30, 15, .1); }
.tile strong { font-size: 1.35rem; letter-spacing: .08em; }
.tile span { color: #4a3a30; }
.tile:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 20px 40px rgba(120, 50, 25, .22); }
.tile::after { content: "→"; position: absolute; right: 20px; bottom: 16px; font-size: 1.5rem; transition: transform .25s ease; }
.tile:hover::after { transform: translateX(6px); }
.tile-emoji { position: absolute; right: 14px; top: 8px; font-style: normal; font-size: 3.4rem; opacity: .9; transition: transform .35s ease; }
.tile:hover .tile-emoji { transform: scale(1.25) rotate(8deg); }
.tile-food { background: linear-gradient(135deg, #ffe3b8, #ffc272); }
.tile-places { background: linear-gradient(135deg, #ffd6cc, #ff9d86); }
.tile-travel { background: linear-gradient(135deg, #d8ecff, #9ccdf5); }
.tile-retreat { background: linear-gradient(135deg, #e9dcff, #c3a9f2); }
.tile-culture { background: linear-gradient(135deg, #ffe9a8, #f4c94d); }
.tile-stories { background: linear-gradient(135deg, #d5f2dc, #8fd5a3); }

/* ---- Newsletter: 目を引く帯 ---- */
.newsletter { background: radial-gradient(circle at 12% 20%, rgba(244, 166, 42, .6), transparent 45%), linear-gradient(135deg, var(--ember), var(--chili)); color: #fff; }
.newsletter .eyebrow, .newsletter h2.eyebrow { color: #fff; }
.newsletter .cc-newsletter label, .cc-quiz label { color: #fff; }
.newsletter .cc-newsletter .cc-nl-consent { color: rgba(255, 255, 255, .92); }
.newsletter .btn { background: linear-gradient(135deg, var(--saffron), #f08a24); color: #2b1d16; }
.newsletter .notice { background: #fff; color: var(--ink-deep); font-weight: 600; }

/* ---- Footer ---- */
.site-footer { background: var(--ink-deep); color: #e9dccb; border-top: 5px solid var(--saffron); }
.site-footer a, .site-network a { color: #f6c77c; }
.site-footer a:hover { color: #fff; }

/* ---- スクロールで現れる ---- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in { transition: opacity .7s ease, transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .3s ease; }

@media (max-width: 520px) {
	.hero { min-height: 74vh; }
	.section { padding: 56px 0; }
	.marquee-track { font-size: 1.05rem; }
	.tile-emoji { font-size: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) {
	.hero, .hero .wrap > *, .marquee-track { animation: none !important; }
	.card, .card .thumb img, .tile, .chip, .btn { transition: none !important; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Share & like */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 32px 0 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.like-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.like-btn:hover { border-color: var(--accent); }
.like-btn .ci { color: var(--chili, var(--accent)); transition: transform .2s ease; }
.like-btn.on { background: var(--accent-soft); border-color: var(--accent); cursor: default; }
.like-btn.on .ci { transform: scale(1.15); }
.like-count { min-width: 1.2em; font-variant-numeric: tabular-nums; color: var(--muted); }
.share-label { margin-left: auto; font-size: .85rem; color: var(--muted); }
.share-list { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.share-list a, .share-list button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; padding: 0; transition: border-color .2s ease, color .2s ease; }
.share-list a:hover, .share-list button:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.share-bar a:focus-visible, .share-bar button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.share-note { flex-basis: 100%; min-height: 1.2em; font-size: .85rem; color: var(--muted); }
@media (max-width: 520px) { .share-label { margin-left: 0; } }

/* 記事中の写真とクレジット */
.cc-fig { margin: 28px 0; }
.cc-fig img { width: 100%; max-height: 520px; object-fit: cover; }
.cc-fig figcaption { margin-top: 8px; font-size: .85rem; line-height: 1.6; color: var(--muted); }
.cc-credit { display: block; font-size: .78rem; opacity: .9; }
.cc-credit a { color: inherit; text-decoration: underline; }
.cc-credit-cover { margin-top: 32px; font-size: .8rem; color: var(--muted); }

/* 一覧カード: サムネイルを4:3の枠に収める（写真は枠いっぱいに、文字入りの画像は全体を表示） */
.card .thumb { display: block; }
.card .thumb img { object-fit: cover; }
.card .thumb.thumb--fit img { object-fit: contain; }
.section .wrap > h1 { color: var(--ink); }
