/*
Theme Name: Honogurashi Guide
Theme URI: https://honogurashi.gcxxblog.com/
Author: GCXX
Description: ほの暮しの庭の検証型攻略サイト用テーマ
Version: 1.0.1
Text Domain: honogurashi-guide
*/

:root {
  --ink: #17231d;
  --muted: #5b685f;
  --paper: #ffffff;
  --wash: #f2f7f1;
  --line: #d6e2d6;
  --forest: #1d5b3a;
  --forest-dark: #103c27;
  --gold: #c48a13;
  --night: #22354c;
  --danger: #8e3731;
  --shadow: 0 8px 26px rgba(26, 57, 38, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #edf2ed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
a { color: #075e99; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #003e68; }
img, iframe, video { display: block; max-width: 100%; }
iframe { width: 100%; border: 0; }
.site-shell { min-height: 100vh; background: var(--paper); }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: relative; z-index: 20; background: var(--forest-dark); color: #fff; border-bottom: 4px solid var(--gold); }
.site-header__main { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.site-brand { margin-right: auto; color: #fff; text-decoration: none; }
.site-brand__name { display: block; font-size: 1.18rem; font-weight: 800; line-height: 1.35; }
.site-brand__sub { display: block; color: #dbeadd; font-size: .73rem; }
.desktop-nav { display: flex; gap: 4px; align-items: center; }
.desktop-nav a { display: block; padding: 11px 12px; color: #fff; font-size: .9rem; font-weight: 700; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav .current-menu-item a { background: rgba(255,255,255,.12); }
.header-search { display: flex; width: min(330px, 30vw); }
.header-search input { min-width: 0; flex: 1; border: 1px solid #b8c8bc; border-right: 0; padding: 9px 11px; font: inherit; }
.header-search button { border: 0; padding: 0 14px; color: #17231d; background: #f0bd35; font: inherit; font-weight: 800; cursor: pointer; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); color: #fff; background: transparent; font-size: 1.45rem; cursor: pointer; }
.mobile-panel { display: none; padding: 0 0 16px; }
.mobile-panel.is-open { display: block; }
.mobile-panel a { display: block; border-top: 1px solid rgba(255,255,255,.16); padding: 10px 4px; color: #fff; font-weight: 700; text-decoration: none; }
.mobile-panel .header-search { width: 100%; margin-top: 12px; }

.hero { color: #fff; background: var(--forest-dark); }
.hero__visual { position: relative; display: grid; place-items: center; margin: 0; background: #102f21; }
.hero__visual img { width: 100%; height: auto; max-height: min(630px, 56vw); object-fit: contain; margin-inline: auto; background: #102f21; }
.hero__visual figcaption { position: absolute; right: 10px; bottom: 7px; padding: 3px 7px; color: #fff; background: rgba(8, 28, 18, .78); font-size: .68rem; line-height: 1.45; }
.hero__visual figcaption a { color: #fff; }
.hero__content { border-top: 1px solid rgba(255,255,255,.18); }
.hero__inner { min-height: 230px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: center; gap: 42px; padding-block: 34px 48px; }
.hero__eyebrow { margin: 0 0 8px; color: #f2ca60; font-weight: 800; font-size: .82rem; }
.hero h1 { margin: 0; max-width: 760px; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.2; }
.hero__lead { max-width: 720px; margin: 18px 0 0; color: #edf5ef; }
.hero__status { border-left: 3px solid #f2ca60; padding: 18px 20px; background: var(--night); }
.hero__status strong { display: block; margin-bottom: 5px; }
.hero__status p { margin: 0; color: #dbe6e0; font-size: .9rem; }

.quick-search { position: relative; margin-top: -26px; }
.quick-search__inner { display: grid; grid-template-columns: 1fr auto; box-shadow: var(--shadow); }
.quick-search input { min-width: 0; border: 1px solid var(--line); border-right: 0; padding: 17px 18px; background: #fff; font: inherit; }
.quick-search button { border: 0; padding: 0 28px; color: #fff; background: var(--forest); font: inherit; font-weight: 800; cursor: pointer; }

.home-section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.home-section--wash { background: var(--wash); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; padding-left: 13px; border-left: 5px solid var(--gold); font-size: 1.45rem; line-height: 1.35; }
.section-heading p { margin: 0; color: var(--muted); font-size: .9rem; }

.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-link { min-height: 102px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-top: 3px solid var(--forest); padding: 15px; color: var(--ink); background: #fff; text-decoration: none; }
.guide-link:hover { border-color: #8daf98; box-shadow: var(--shadow); }
.guide-link strong { line-height: 1.35; }
.guide-link span { margin-top: 5px; color: var(--muted); font-size: .8rem; }
.guide-link--night { border-top-color: var(--night); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.post-card__body { padding: 16px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .75rem; }
.post-card h3 { margin: 8px 0; font-size: 1.05rem; line-height: 1.45; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.post-card__thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #dfe9df; }

.verification { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.verification__item { border-left: 4px solid var(--forest); padding: 12px 14px; background: #fff; }
.verification__item strong { display: block; }
.verification__item p { margin: 5px 0 0; color: var(--muted); font-size: .85rem; }
.official-video { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 28px; align-items: center; }
.official-video__media { overflow: hidden; aspect-ratio: 16 / 9; background: #dfe9df; }
.official-video__media iframe { width: 100%; height: 100%; }
.official-video__text h2 { margin: 0 0 10px; font-size: 1.35rem; }
.official-video__text p { margin: 0; color: var(--muted); }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; padding-block: 36px 60px; }
.article-header { margin-bottom: 24px; }
.article-header h1 { margin: 8px 0 10px; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.35; }
.article-meta { color: var(--muted); font-size: .82rem; }
.entry-content { min-width: 0; }
.entry-content h2 { margin: 40px 0 18px; padding: 9px 13px; border-left: 5px solid var(--forest); background: var(--wash); font-size: 1.4rem; line-height: 1.4; }
.entry-content h3 { margin: 30px 0 12px; padding-bottom: 7px; border-bottom: 2px solid var(--line); font-size: 1.15rem; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--wash); }
.entry-content blockquote { margin: 22px 0; border-left: 4px solid var(--gold); padding: 13px 18px; background: #fff7df; }
.entry-content .wp-block-embed__wrapper { aspect-ratio: 16 / 9; overflow: hidden; }
.entry-content .wp-block-embed__wrapper iframe { height: 100%; }
.entry-content iframe[src*="youtube"] { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.source-note { margin: 25px 0; border: 1px solid var(--line); padding: 14px; background: var(--wash); font-size: .9rem; }
.sidebar-box { margin-bottom: 18px; border: 1px solid var(--line); background: #fff; }
.sidebar-box h2 { margin: 0; padding: 11px 13px; color: #fff; background: var(--forest-dark); font-size: .95rem; }
.sidebar-box ul { margin: 0; padding: 8px 13px 12px 30px; }
.sidebar-box li { margin: 6px 0; }

.archive-title { margin: 0 0 24px; font-size: 1.8rem; }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination a, .pagination span { border: 1px solid var(--line); padding: 7px 11px; text-decoration: none; }

.site-footer { color: #e7efe9; background: #142d20; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; padding-block: 34px; }
.site-footer h2 { margin: 0 0 10px; color: #fff; font-size: 1rem; }
.site-footer p, .site-footer li { color: #cad8cd; font-size: .84rem; }
.site-footer ul { margin: 0; padding-left: 18px; }
.site-footer a { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 14px 0; text-align: center; font-size: .75rem; }

@media (max-width: 900px) {
  .desktop-nav, .site-header .header-search { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .mobile-panel .header-search { display: flex; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 25px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .official-video { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .wrap { width: min(100% - 24px, 1180px); }
  .site-header__main { min-height: 62px; gap: 12px; }
  .site-brand__name { font-size: 1rem; }
  .site-brand__sub { display: none; }
  .hero__visual img { max-height: none; }
  .hero__visual figcaption { position: static; padding: 5px 12px; text-align: right; background: #102f21; font-size: .62rem; }
  .hero__inner { padding-block: 27px 43px; }
  .hero h1 { font-size: 2rem; }
  .hero__lead { margin-top: 12px; font-size: .92rem; }
  .hero__status { padding-left: 12px; }
  .quick-search { margin-top: -20px; }
  .quick-search input { padding: 14px 12px; }
  .quick-search button { padding-inline: 17px; }
  .home-section { padding: 34px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 7px; }
  .section-heading h2 { font-size: 1.25rem; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .guide-link { min-height: 92px; padding: 11px; }
  .post-grid, .verification, .sidebar { grid-template-columns: 1fr; }
  .post-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .post-card__thumb { height: 100%; min-height: 128px; aspect-ratio: auto; }
  .post-card__body { padding: 12px; }
  .post-card h3 { font-size: .95rem; }
  .post-card p { display: none; }
  .content-layout { padding-block: 26px 42px; }
  .article-header h1 { font-size: 1.55rem; }
  .entry-content h2 { margin-top: 32px; font-size: 1.2rem; }
  .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .entry-content table.compact-table { display: table; table-layout: fixed; white-space: normal; }
  .entry-content table.compact-table th:first-child, .entry-content table.compact-table td:first-child { width: 31%; }
  .footer-main { grid-template-columns: 1fr; gap: 18px; padding-block: 28px; text-align: left; }
}
