/*
Theme Name: アイランド・ウォーキング
Description: 「アイランド・ウォーキング（猫の島・田代島、鹿の島・金華山）」サイト用テーマ。海と島をイメージした配色の、軽量・レスポンシブな構成。
Version: 1.0.0
Requires PHP: 7.4
Author: mahoro
Text Domain: ouentai-island
License: GNU General Public License v2 or later
*/

:root {
	--c-primary: #0f5e7c;
	--c-primary-dark: #0a4358;
	--c-sea: #19a7b8;
	--c-accent: #f2a33c;
	--c-text: #1d2b33;
	--c-muted: #61727c;
	--c-line: #d9e5ea;
	--c-bg: #f2f8fa;
	--c-card: #fff;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(10, 50, 70, .06), 0 6px 18px rgba(10, 50, 70, .07);
	--font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--c-bg); color: var(--c-text);
	font-family: var(--font); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; }
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 14px; background: #fff; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 3px solid var(--c-sea); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-text); padding: 6px 0; }
.brand:hover { color: var(--c-text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-size: 1.15rem; font-weight: 800; color: var(--c-primary); letter-spacing: .02em; }
.brand-tag { font-size: .72rem; color: var(--c-muted); }

.nav-toggle {
	display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--c-primary); background: #fff; color: var(--c-primary);
	border-radius: 999px; padding: 6px 16px; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
}
.nav-toggle:hover { background: var(--c-primary); color: #fff; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
	display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav { display: none; background: var(--c-primary); color: #fff; }
.site-nav.is-open { display: block; }
.site-nav ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 20px; padding: 14px 0 18px; }
.site-nav a { display: block; padding: 8px 4px; color: #fff; text-decoration: none; font-size: .92rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--c-accent); }

/* ---------- ヒーロー ---------- */
.hero { background-size: cover; background-position: center 55%; }
.hero-shade {
	padding: clamp(56px, 11vw, 130px) 0;
	background: linear-gradient(110deg, rgba(8, 56, 76, .9) 0%, rgba(15, 94, 124, .7) 55%, rgba(25, 167, 184, .35) 100%);
	color: #fff;
}
.hero-kicker { margin: 0 0 .5em; font-size: .85rem; letter-spacing: .14em; opacity: .9; }
.hero-title { margin: 0 0 .3em; font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.hero-lead { margin: 0 0 1.4em; font-size: clamp(1rem, 2.6vw, 1.3rem); }
.button {
	display: inline-block; padding: 12px 28px; background: var(--c-accent); color: #3a2400; border-radius: 999px;
	text-decoration: none; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.button:hover { background: #ffb64f; color: #3a2400; }

/* ---------- セクション見出し ---------- */
.section-title { display: flex; align-items: baseline; gap: 14px; font-size: 1.5rem; margin: 0 0 22px; color: var(--c-primary-dark); }
.section-title span { font-size: .8rem; letter-spacing: .18em; color: var(--c-sea); text-transform: uppercase; }
.guide { padding-top: 52px; }
.main { padding: 44px 0 72px; }

/* ---------- ご案内タイル ---------- */
.guide-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.guide-grid a {
	display: flex; gap: 14px; align-items: center; height: 100%; padding: 16px 18px; background: var(--c-card);
	border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--c-text);
	border-left: 5px solid var(--c-sea); transition: transform .2s, border-color .2s;
}
.guide-grid a:hover { transform: translateY(-3px); border-color: var(--c-accent); }
.guide-no { flex: none; white-space: nowrap; font-size: 1.5rem; font-weight: 800; color: var(--c-sea); line-height: 1; font-variant-numeric: tabular-nums; }
.guide-title { font-weight: 700; font-size: .95rem; line-height: 1.5; }

/* ---------- お知らせ ---------- */
.news { display: grid; gap: 16px; }
.news-item { display: grid; grid-template-columns: 180px 1fr; gap: 20px; background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.news-thumb { display: block; background: var(--c-line); min-height: 130px; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-ph { display: block; width: 100%; height: 100%; min-height: 130px; background: linear-gradient(135deg, var(--c-primary), var(--c-sea)); }
.news-body { padding: 16px 20px 18px 0; }
.news-date { font-size: .8rem; color: var(--c-sea); font-weight: 700; letter-spacing: .05em; }
.news-title { font-size: 1.1rem; margin: 2px 0 6px; }
.news-title a { color: var(--c-text); text-decoration: none; }
.news-title a:hover { color: var(--c-primary); text-decoration: underline; }
.news-excerpt { margin: 0; font-size: .88rem; color: var(--c-muted); line-height: 1.7; }
@media (max-width: 600px) {
	.news-item { grid-template-columns: 1fr; gap: 0; }
	.news-thumb { aspect-ratio: 16 / 9; }
	.news-body { padding: 14px 18px 18px; }
}

.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers { min-width: 42px; padding: 8px 12px; text-align: center; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); text-decoration: none; font-weight: 700; color: var(--c-text); }
a.page-numbers:hover { border-color: var(--c-sea); color: var(--c-primary); }
.page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.page-numbers.dots { background: transparent; border-color: transparent; }

/* ---------- 記事・固定ページ ---------- */
.main-single { max-width: 840px; }
.single { background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 48px); }
.crumbs { font-size: .8rem; color: var(--c-muted); margin-bottom: 14px; }
.crumbs a { color: var(--c-muted); }
.single-title { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 4px 0 26px; padding-bottom: 14px; border-bottom: 3px solid var(--c-sea); }
.entry-content p { margin: 0 0 1.4em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.8em 0 .7em; }
.entry-content h3 { font-size: 1.25rem; padding-left: 10px; border-left: 4px solid var(--c-sea); }
.entry-content img { border-radius: 8px; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content table { border-collapse: collapse; max-width: 100%; }
.entry-content td, .entry-content th { border: 1px solid var(--c-line); padding: 6px 10px; }
.entry-content .embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.4em; }
.entry-content .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
@media (max-width: 600px) { .entry-content .alignleft, .entry-content .alignright { float: none; display: block; margin: 0 auto 1em; } }

.post-nav { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border: 1px solid var(--c-line); border-radius: 10px; text-decoration: none; color: var(--c-text); font-size: .9rem; line-height: 1.5; }
.post-nav a:hover { border-color: var(--c-sea); }
.post-nav small { color: var(--c-muted); }
.post-nav-next { text-align: right; grid-column: 2; }
.post-nav-prev { grid-column: 1; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav-next, .post-nav-prev { grid-column: 1; text-align: left; } }

/* ---------- フッター ---------- */
.site-footer { background: var(--c-primary-dark); color: #cfe6ee; padding: 34px 0; font-size: .88rem; text-align: center; }
.site-footer p { margin: 0 0 6px; }
.footer-name { font-weight: 800; font-size: 1rem; color: #fff; }
.site-footer a { color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .post-nav, .site-footer { display: none; } .single { box-shadow: none; padding: 0; } }

/* ---------- 活動終了のお知らせ ---------- */
.site-notice { background: #fff3d6; color: #5a4100; border-bottom: 1px solid rgba(0, 0, 0, .08); border-left: 8px solid var(--c-accent); font-size: .88rem; line-height: 1.75; }
.site-notice p { margin: 0; padding: 10px 0; }
.site-notice a { color: inherit; font-weight: 700; }
@media print { .site-notice { display: block; } }
