/* ==========================================================
   MONOQUEST — WordPress additions
   原本 style.css にない、WordPress 化で必要になった最小限のスタイル。
   既存のトークン（色・余白・書体）だけを使う。
   ========================================================== */

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Links without a confirmed destination (rendered as <a> without href) */
a:not([href]) { cursor: default; }

/* ---------- Search panel ---------- */
.search-panel { border-top: 1px solid var(--line); background: var(--white); }
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 12px; padding: 16px 0; }
.search-form input[type="search"] {
  flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--charcoal);
  padding: 10px 14px; border: 1px solid var(--stone); background: var(--white); border-radius: 0;
}
.search-form input[type="search"]:focus { outline: 2px solid var(--sage-dark); outline-offset: 1px; }
.search-form .btn { padding: 10px 22px; }

/* ---------- Empty state / listing ---------- */
.empty-state { margin: 0; padding: 48px 0; text-align: center; font-size: 14px; letter-spacing: .06em; color: #555; }
.empty-state p { margin: 0 0 24px; }
.listing { padding-top: clamp(28px, 4vw, 48px); }
.listing-header { margin-bottom: 36px; }
.listing-title { margin-bottom: 8px; }
.listing-ja { margin: 0; font-size: 13px; letter-spacing: .08em; color: #555; }
.listing-description { margin-top: 16px; max-width: 720px; font-size: 14px; }
.listing-description p { margin: 0; }
.listing-search { max-width: 560px; margin-top: 12px; }

/* ---------- Card date (phase 2) ---------- */
.card-date { display: inline-block; margin: 14px 0 0 10px; font-family: var(--font-en); font-size: 10.5px; letter-spacing: .1em; color: #555; }
.card > .card-date:nth-child(2) { margin-left: 0; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin-bottom: 28px; font-size: 12px; letter-spacing: .06em; color: #555; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li { min-width: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: var(--stone); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--sage-dark); }
.breadcrumbs [aria-current] { color: var(--charcoal); overflow-wrap: anywhere; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 56px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px;
  font-family: var(--font-en); font-size: 13px; border: 1px solid var(--line);
}
.pagination a.page-numbers:hover { background: var(--ivory); }
.pagination .page-numbers.current { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.pagination .page-numbers.dots { border-color: transparent; }

/* ---------- Article ---------- */
.article { padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.article-inner { max-width: 800px; }
.article-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; }
.article-meta .tag { margin-top: 0; }
.article-date { font-size: 12px; letter-spacing: .06em; color: #555; }
.article-title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.6; letter-spacing: .04em; margin: 0 0 20px;
  /* Avoid a one-word last line (e.g. "ホン"): break at Japanese phrase boundaries and balance the lines. */
  word-break: auto-phrase; text-wrap: balance;
}
/* Labels next to the title (2026-11-04): short labels and one-line notes instead of a boxed notice. */
.article-header { margin: 0 0 28px; }
.article-header .article-title { margin-bottom: 0; }
.article-labels { margin: 14px 0 0; }
.article-label-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ad-label { flex: none; padding: 1px 8px; background: var(--charcoal); color: var(--white); font-size: 11px; font-weight: 700; line-height: 1.8; letter-spacing: .08em; }
.ad-label.is-format { background: transparent; color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--charcoal); }
/* Affiliate label (2026-11-06): white with a 1px charcoal frame, same size as the other labels. */
.ad-label.is-affiliate { background: var(--white); color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--charcoal); }
/* Affiliate sentence, once after the body (sources included) and before the editorial note. */
.affiliate-note { margin: 40px 0 0; font-size: 13px; line-height: 1.8; color: #555; }
.article-label-text { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: #555; overflow-wrap: anywhere; }
.article-eyecatch { margin: 0 0 40px; }
.article-eyecatch img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ivory); }
.article-eyecatch figcaption { margin-top: 8px; font-size: 12px; color: #555; }
.article-eyecatch figcaption a { text-decoration: underline; }

.entry-content { font-size: 15px; line-height: 2; letter-spacing: .04em; overflow-wrap: anywhere; }
.entry-content > * { margin: 0 0 1.6em; }
.entry-content h2 {
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.6;
  margin: 2.4em 0 1em; padding-bottom: .5em; border-bottom: 1px solid var(--line);
}
.entry-content h3 { font-size: 17px; font-weight: 700; margin: 2em 0 .8em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--sage-dark); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content img { height: auto; }
.entry-content figcaption { font-size: 12px; color: #555; margin-top: 6px; }
.entry-content .wp-block-table, .entry-content .table-wrap { overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--ivory); font-weight: 500; }
/* Only row headers (a th at the start of a body row, as in spec tables) get the fixed 32% column.
   Header-row cells (thead) keep automatic widths: with 4+ columns a fixed 32% each squeezed the last column
   (2026-11-06, hast. comparison table). */
.entry-content tbody th { width: 32%; }
/* Inside tables, English words are not split letter by letter (the body's overflow-wrap:anywhere would let
   automatic column widths shrink to one letter); a word longer than its cell still wraps. */
.entry-content th, .entry-content td { overflow-wrap: break-word; }
/* Hand-written tables (div.table-wrap) get equal columns, like block-editor tables with a fixed layout. */
.entry-content .table-wrap table { table-layout: fixed; }
@media (max-width: 640px) {
  .entry-content table { font-size: 13px; }
  .entry-content th, .entry-content td { padding: 8px 8px; }
}

.article-box { margin-top: 48px; padding: 24px clamp(16px, 3vw, 28px); background: var(--ivory); }
.article-box-title { font-family: var(--font-serif); font-weight: 600; font-size: 19px; margin: 0 0 16px; }

.article-footer { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.editorial-note p { margin: 0; font-size: 13px; line-height: 1.9; }
.editorial-note .editorial-name { font-weight: 700; margin-bottom: 6px; }
.share-title { margin: 0 0 8px; font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: .16em; }
.share ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.share a { display: inline-block; padding: 6px 14px; border: 1px solid var(--charcoal); font-family: var(--font-en); font-size: 12px; letter-spacing: .08em; }
.share a:hover { background: var(--charcoal); color: var(--white); }
.related { border-top: 1px solid var(--line); }
.related .h-en { margin-bottom: 28px; }

/* ---------- BRANDS ---------- */
.brand-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.brand-list li { border: 1px solid var(--line); }
.brand-list a { display: flex; flex-direction: column; gap: 4px; padding: 20px; height: 100%; transition: background .25s; }
.brand-list a:hover { background: var(--ivory); }
.brand-list b { font-family: var(--font-en); font-weight: 500; font-size: 14px; letter-spacing: .08em; overflow-wrap: anywhere; }
.brand-list small { font-size: 12px; color: #555; }

/* ---------- 404 ---------- */
.not-found-links { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 960px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .brand-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .article-footer { grid-template-columns: 1fr; }
  .search-form .btn { padding: 10px 16px; }
  .brand-list { grid-template-columns: 1fr; gap: 12px; }
}

/* Selected 2026-11-03 design: compatibility for functional inner pages and semantic WP markup. */
:root { --white:#fff; --line:#e9e7e0; --sage-dark:#71877c; --font-en:Arial,sans-serif; --font-serif:var(--serif),var(--sans); }
/* Reading line height for article and listing pages only; the top page keeps the original's line heights. */
.article, .listing, .related { line-height:1.8; }
img { max-width:100%; }
.h-en { font-family:Arial,sans-serif; font-weight:600; font-size:18px; letter-spacing:.12em; }
.site-header .brand { display:block; flex-shrink:0; }
.site-header .wordmark { height:auto; }
/* Top page without the hero image (proposal 2026-11-04): larger logo and taller header on the top page only;
   every other page keeps the original header. The menu and search panel open below the taller header. */
body.home .site-header { height:104px; }
body.home .site-header .wordmark { width:340px; }
body.home .site-header .search-panel { top:92px; }
@media(max-width:1050px) {
  /* 280px where the menu leaves room; narrower tablets (761–839px) shrink the logo so the header never overflows. */
  body.home .site-header .wordmark { width:clamp(210px, calc(100vw - 560px), 280px); }
}
@media(max-width:760px) {
  body.home .site-header { height:78px; }
  body.home .site-header .wordmark { width:224px; }
  body.home .gnav { top:77px; }
  body.home .site-header .search-panel { top:70px; }
}
@media(max-width:359px) {
  body.home .site-header .wordmark { width:200px; }
}
/* Short site description right below the header, then PICK UP. */
.home-intro { padding:24px 0 25px; border-bottom:1px solid #e9e7e0; }
.home-intro p { margin:0; font-size:13px; line-height:1.9; letter-spacing:.045em; color:#555; }
.home-intro strong { font-weight:500; color:var(--charcoal); }
/* Space between the description and PICK UP. On PC, PICK UP gets the same side padding as the description
   (34px; tablets 26px and phones 18px already come from .container), so both start at the same left edge. */
.home-intro + #pickup { padding-top:28px; }
@media(min-width:1051px) {
  .home-intro + #pickup { padding-left:34px; padding-right:34px; }
}
@media(max-width:760px) {
  .home-intro { padding:17px 0 18px; }
  .home-intro p { font-size:11px; letter-spacing:.02em; }
  .home-intro strong { display:block; }
  .home-intro + #pickup { padding-top:22px; }
}
.menu-btn span { display:block; width:20px; height:1px; background:currentColor; margin:5px 0; }
.site-header .search-panel { position:absolute; right:34px; top:76px; width:min(560px,calc(100vw - 36px)); box-shadow:0 8px 24px #2023211a; }
.site-header .search-panel .container { padding:0 12px; }
.site-header .search-panel .search-form { width:100%; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:25px; padding:13px 24px; border:0; font:600 12px Arial,sans-serif; letter-spacing:2px; cursor:pointer; }
.btn-sage,.cta { background:var(--sage); color:var(--charcoal); }
.cards .card { display:block; min-width:0; }
.card .thumb { aspect-ratio:1.25; background:var(--ivory); overflow:hidden; }
.card .thumb img { height:100%; width:100%; aspect-ratio:auto; object-fit:cover; }
.card .tag { display:inline-block; color:var(--charcoal); }
.card-date { margin-top:12px; font-size:10px; }
.cat-list { list-style:none; padding:0; margin:0; }
.cat-list li { min-width:0; border-right:1px solid #e6e4dd; }
.cat-list li:last-child { border:0; }
.cat-list .category-item { display:block; border:0; }
.about { background-color:var(--charcoal); background-image:none; background-position:center 48%; background-size:cover; }
/* ABOUT heading 「次に欲しいが、ここで見つかる。」(2026-11-04): one line on PC/tablet, two lines on phones
   (break after 「、」). Phrases never break in the middle. */
.about h2 { word-break:keep-all; overflow-wrap:normal; }
@media (min-width:761px) { .about h2 .about-br, .about h2 br.about-br { display:none; } }
.site-footer { border-top:1px solid var(--line); }
.footer-inner { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:16px 28px; }
.fnav { display:flex; flex-wrap:wrap; justify-content:center; gap:12px 24px; font-family:var(--sans); letter-spacing:.04em; }
.sns { display:flex; gap:14px; align-items:center; }
.sns a { display:flex; }
.sns svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.5; }
.copy { margin:0; }
.article-inner { margin-left:auto; margin-right:auto; }
@media(max-width:760px) {
  .site-header .search-panel { top:60px; right:18px; }
  .card .thumb { aspect-ratio:1.16; }
  .card-date { font-size:9px; margin-top:8px; margin-left:6px; }
  .cat-list li:nth-child(3) { border-right:0; }
  .footer-inner { flex-direction:column; gap:20px; }
  .copy { font-size:9px; letter-spacing:2px; }
}

/* Contact form (お問い合わせ). Reuses the search box's input style and the article box; no new colors. */
.contact-form { margin-top: 1.6em; }
.contact-field { margin: 0 0 1.4em; }
.contact-field label { display: block; margin-bottom: 6px; font-weight: 500; }
.contact-required { margin-left: 4px; font-size: 12px; font-weight: 400; color: #555; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  display: block; width: 100%; font: inherit; font-size: 15px; color: var(--charcoal);
  padding: 10px 14px; border: 1px solid var(--stone); background: var(--white); border-radius: 0;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .contact-errors:focus, .contact-result:focus { outline: 2px solid var(--sage-dark); outline-offset: 1px; }
.contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border-color: var(--charcoal); border-width: 2px; }
.contact-error { margin: 6px 0 0; font-size: 13px; font-weight: 500; }
.contact-consent { display: flex; align-items: flex-start; gap: 10px; }
.contact-consent input { flex: none; width: 18px; height: 18px; margin: 4px 0 0; }
.contact-consent label { flex: 1; min-width: 0; margin: 0; font-weight: 400; }
.contact-consent .contact-error { flex-basis: 100%; }
.contact-consent { flex-wrap: wrap; }
.contact-notice, .contact-result, .contact-errors { margin: 0 0 1.4em; }
.contact-notice p, .contact-result p, .contact-errors p { margin: 0; }
.contact-errors ul { margin: 8px 0 0; padding-left: 1.4em; }
.contact-errors-title { font-weight: 700; }
/* Hidden from people (and screen readers); bots that fill every field reveal themselves. */
.contact-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
