/* Article pages only. Search forms and the shared portal menu keep their styles. */
.article-product[data-regional-product] { position: relative; }
.article-product[data-regional-product] .favorite-btn { z-index: 2; }
:is(.furusato-reading, .furusato-articles) { background: #f7f8f5; }
:is(.furusato-reading, .furusato-articles) a:focus-visible,
:is(.furusato-reading, .furusato-articles) button:focus-visible,
.article-table-scroll:focus-visible, .article-product-rail:focus-visible {
  outline: 3px solid #1f7a5a; outline-offset: 4px;
}
:is(.furusato-reading, .furusato-articles) :is(.article-page, .article-index-page) { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 64px; }
:is(.furusato-reading, .furusato-articles) :is(.article-page, .article-index-page) { background: transparent; border: 0; border-radius: 0; box-shadow: none; font-family: inherit; }
:is(.furusato-reading, .furusato-articles) .logo { flex-shrink: 0; white-space: nowrap; }
:is(.furusato-reading, .furusato-articles) .header-container { width: min(1380px, calc(100% - 120px)); }
:is(.furusato-reading, .furusato-articles) .nav-link { white-space: nowrap; padding-inline: 8px; }
.article-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: #53625a; font-size: .82rem; line-height: 1.8; margin-bottom: 28px; }
.article-breadcrumbs a, .article-meta a { text-decoration: underline; text-underline-offset: 3px; }
.article-breadcrumbs [aria-current="page"] { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.article-detail-grid { display: grid; grid-template-columns: minmax(0, 820px) minmax(0, 260px); gap: 48px; align-items: start; }
.article-main, .article-prose { min-width: 0; }
.article-heading { margin-bottom: 20px; }
.article-heading h1 { margin: 0; color: #18372b; font-size: clamp(1.75rem, 2.8vw, 2.4rem); line-height: 1.5; font-weight: 800; overflow-wrap: break-word; word-break: auto-phrase; text-wrap: balance; }
.article-heading > p { color: #43564b; font-size: 1.02rem; line-height: 1.9; margin: 16px 0 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: #53625a; font-size: .78rem; line-height: 1.8; margin-top: 16px; }
.article-heading > .article-disclosure { font-size: .8rem; margin-top: 12px; color: #53625a; }
.article-prose { color: #24362c; font-size: 1.0625rem; line-height: 1.95; background: #fff; border: 1px solid #e1e7e1; border-radius: 10px; padding: 32px; overflow-wrap: break-word; }
.article-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin: 0 0 28px; }
.article-prose :where(h2, h3, h4) { color: #18372b; font-weight: 800; line-height: 1.65; scroll-margin-top: 100px; word-break: auto-phrase; }
.article-prose :where(h2) { margin: 2.4rem 0 1rem; padding-bottom: .55rem; border-bottom: 2px solid #c5d9cb; font-size: clamp(1.3rem, 2vw, 1.5rem); }
.article-prose :where(h3) { margin: 1.9rem 0 .75rem; font-size: 1.18rem; }
.article-prose :where(h4) { margin: 1.5rem 0 .75rem; font-size: 1.06rem; }
.article-prose :where(p, ul, ol, blockquote) { margin: 1rem 0; }
.article-prose :where(ul, ol) { padding-left: 1.6em; }
.article-prose :where(li + li) { margin-top: .5rem; }
.article-prose :where(a) { color: #12533d; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-prose :where(a:hover) { text-decoration-thickness: 2px; }
.article-prose :where(strong, u, mark, .highlight) { color: inherit; font-weight: 800; background: none; text-decoration-line: underline; text-decoration-color: #ffda33; text-decoration-thickness: .22em; text-underline-offset: .08em; text-decoration-skip-ink: none; }
.article-prose :where(blockquote) { background: #f2f5f1; border: 0; border-radius: 6px; padding: 16px 20px; font-size: .95rem; }
.article-prose :where(blockquote p) { margin: .5rem 0; }
.article-prose :where(blockquote p:first-child) { margin-top: 0; }
.article-prose :where(blockquote p:last-child) { margin-bottom: 0; }
.article-prose .mdx-note { border: 0; background: #f2f5f1; color: inherit !important; font-weight: 500; }
.article-prose .mdx-cta { background: #f2f5f1; border: 0; text-align: left; padding: 18px; }
.article-prose :is(.article-cta, .combo-card-link) { text-decoration: none; color: #fff; box-shadow: none; }
.article-prose .article-cta { background: #12533d; }
.article-prose .article-cta:hover { background: #0c422f; }
.article-prose .mdx-combo-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-prose .mdx-combo-option { padding: 14px; }
.article-prose .mdx-combo-option p { font-size: .9rem; margin: 8px 0; }
.article-toc { border-radius: 6px; background: #edf3ee; padding: 14px 18px; margin: 24px 0; font-size: .92rem; }
.article-toc .article-toc-title { margin: 0 0 12px; font-weight: 800; font-size: 1rem; }
.article-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; padding-left: 1.5em; margin: 0; }
.article-toc li { margin: 0; line-height: 1.7; }
.article-toc a { text-decoration: none; font-weight: 700; }
.article-toc a:hover { text-decoration: underline; }
.article-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; margin: 24px 0; border: 1px solid #dce5df; border-radius: 6px; }
.article-prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; line-height: 1.75; }
.article-prose th, .article-prose td { padding: 12px 14px; border: 0; border-bottom: 1px solid #dce5df; text-align: left; vertical-align: top; min-width: 100px; white-space: normal; }
.article-prose th { background: #edf3ee; font-weight: 800; color: #18372b; }
.article-prose td { background: #fff; }
.article-prose tr:last-child td { border-bottom: 0; }
.article-prose tbody tr:nth-child(even) td { background: #f8faf7; }
.article-related { padding-top: 8px; }
.article-related h2 { margin: 0 0 16px; font-size: 1rem; color: #18372b; }
.article-related ul { list-style: none; margin: 0; padding: 0; }
.article-related li + li { margin-top: 22px; }
.article-related li a { display: grid; gap: 10px; font-size: .9rem; line-height: 1.8; font-weight: 700; }
.article-related img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; }
.article-related-all { display: inline-block; margin-top: 24px; color: #12533d; text-decoration: underline; text-underline-offset: 3px; }
.article-end-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; font-size: .9rem; }
.article-end-nav a { color: #12533d; text-decoration: underline; text-underline-offset: 3px; }
.article-products { margin: 28px 0; }
.article-product-controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.article-product-controls[hidden] { display: none; }
.article-product-controls button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #bdcabe; border-radius: 6px; background: #fff; color: #12533d; cursor: pointer; }
.article-product-controls button:disabled { opacity: .4; cursor: default; }
.article-product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; max-width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; padding: 3px 3px 12px; }
.article-prose .article-product { display: flex; flex-direction: column; min-width: 0; border: 1px solid #dce5df; border-radius: 6px; overflow: hidden; background: #fff; color: #24362c; text-decoration: none; scroll-snap-align: start; }
.article-product:hover { border-color: #1f7a5a; }
.article-product img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 10px; }
.article-product-info { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 12px; }
.article-product-store { font-size: .75rem; line-height: 1.6; color: #53625a; }
.article-product-name { font-size: .88rem; font-weight: 700; line-height: 1.7; }
.article-product-note { font-size: .78rem; line-height: 1.7; color: #53625a; }
.article-product-link { font-size: .78rem; line-height: 1.7; font-weight: 700; color: #12533d; margin-top: auto; padding-top: 8px; }
.article-index-page .article-heading { max-width: 900px; }
.article-beginners { background: #edf3ee; padding: 22px 26px; border-radius: 8px; margin: 28px 0; }
.article-beginners h2 { margin: 0 0 12px; font-size: 1.2rem; color: #18372b; }
.article-beginners ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding-left: 1.5em; font-size: .94rem; line-height: 1.85; }
.article-beginners a:hover { text-decoration: underline; }
.article-topic-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 36px; }
.article-topic-nav a { border: 1px solid #bdcabe; border-radius: 6px; padding: 10px 14px; color: #12533d; background: #fff; font-size: .9rem; font-weight: 700; }
.article-topic-nav span { color: #53625a; margin-left: 4px; }
.article-topic { scroll-margin-top: 100px; margin: 36px 0 48px; }
.article-topic > h2 { color: #18372b; font-size: 1.4rem; margin: 0 0 20px; }
.article-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-index-card { border: 1px solid #e1e7e1; border-radius: 8px; overflow: hidden; background: #fff; }
.article-index-card:hover { border-color: #1f7a5a; }
.article-index-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article-index-card > div { padding: 18px; }
.article-index-card h3 { font-size: 1.04rem; line-height: 1.8; margin: 0; color: #18372b; }
.article-index-card p { font-size: .9rem; line-height: 1.85; color: #43564b; margin: 10px 0 14px; }
.article-index-card time { font-size: .78rem; color: #53625a; }
@media (max-width: 1250px) {
  :is(.furusato-reading, .furusato-articles) .desktop-nav { display: none; }
}
@media (max-width: 1000px) {
  .article-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .article-related ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .article-related li + li { margin: 0; }
  .article-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :is(.furusato-reading, .furusato-articles) .header-container { width: calc(100% - 32px); }
  :is(.furusato-reading, .furusato-articles) :is(.article-page, .article-index-page) { width: calc(100% - 32px); padding-top: 20px; }
  .article-breadcrumbs { margin-bottom: 20px; }
  .article-heading h1 { font-size: 1.65rem; }
  .article-heading > p { font-size: .98rem; }
  .article-prose { border: 0; border-radius: 0; margin-inline: -16px; padding: 22px 16px; font-size: 1rem; }
  .article-toc { padding: 18px; }
  .article-toc ol { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .article-prose .mdx-combo-options, .article-index-grid, .article-beginners ol { grid-template-columns: minmax(0, 1fr); }
  .article-product-rail { grid-auto-columns: 78%; }
  .article-product-info { padding: 14px; }
  .article-product-name { font-size: .95rem; }
  .article-product img { max-height: 230px; }
  .article-related ul { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .article-related li a { grid-template-columns: 100px minmax(0, 1fr); align-items: start; }
  .article-beginners { padding: 20px; }
  .article-beginners ol { gap: 12px; }
  .article-index-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 14px; background: transparent; border: 0; border-radius: 0; }
  .article-index-card img { border-radius: 5px; margin-top: 5px; }
  .article-index-card > div { padding: 0; }
  .article-index-card h3 { font-size: 1rem; }
  .article-index-card p { margin: 6px 0; font-size: .84rem; }
  .article-topic-nav { gap: 8px; }
  .article-topic-nav a { padding: 9px 10px; font-size: .84rem; }
}

.article-index-page [hidden]{display:none!important}
.article-search{margin:24px 0;padding:0}
.article-search label{display:block;font-weight:700;margin-bottom:8px}
.article-search-row{display:flex;gap:10px}
.article-search input{flex:1;min-width:0;border:1px solid #becfc5;border-radius:8px;padding:12px;font:inherit;background:#fff;min-height:44px}
.article-search button{border:1px solid #becfc5;border-radius:8px;background:#fff;color:#165440;padding:10px 14px;font:inherit;cursor:pointer;min-height:44px}
.article-search input:focus-visible,.article-search button:focus-visible{outline:3px solid #287a59;outline-offset:2px}
#article-search-status,.article-search-empty{font-size:14px;line-height:1.8}

/* The answer comes before navigation; reference material stays at the end. */
.article-summary { margin: 0 0 20px; padding: 18px 22px; border: 1px solid #c8d8cd; border-radius: 8px; background: #f1f7ee; }
.article-summary > p { margin: 0 0 10px; color: #18372b; font-size: 1.05rem; }
.article-summary strong { background: none; text-decoration: none; }
.article-summary ul { margin: 0; padding-left: 1.3em; }
.article-summary li { padding-left: 3px; }
.article-summary li::marker { color: #1f7a5a; }
.article-toc summary { cursor: pointer; font-weight: 800; color: #18543f; min-height: 28px; }
.article-toc details[open] summary { margin-bottom: 14px; }
.article-prose table.article-table-compact { min-width: 0; }
.article-prose table.article-combination-table { width: max-content; min-width: 100%; }
.article-combination-table :is(th, td) { white-space: nowrap; min-width: max-content; }
.article-combination-table tr[data-href] { cursor: pointer; }
.article-combination-table tr[data-href]:is(:hover, :focus-within) td { background: #e8f3ec; }
.article-combination-table a { font-weight: 700; }
.article-prose .combo-card-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 6px; background: #176349; font-size: .98rem; font-weight: 800; line-height: 1.5; }
.article-prose .combo-card-link:hover { background: #104b37; }
.article-prose :is(a.combo-card-link, .article-product) strong { background: none; text-decoration: none; }
.article-references { margin-top: 40px; padding-top: 8px; font-size: .88rem; overflow-wrap: anywhere; color: #526259; }
.article-references h2 { font-size: 1.1rem; }
.article-references li + li { margin-top: 8px; }
.article-reference-anchor { display: block; scroll-margin-top: 100px; }
.article-related { position: sticky; top: 92px; }
.article-cover { aspect-ratio: 3 / 1; max-height: 220px; margin: 0 0 20px; }
.article-product img { padding: 2px; max-height: 140px; }
.article-product-info { gap: 7px; padding: 12px; }
.article-product-name { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.article-product-link { margin-top: 0; padding-top: 2px; }
.article-product-price { font-size: 1.05rem; font-weight: 800; color: #b9462e; }
.article-combination { margin: 32px 0; }
.article-combination .article-products { margin: 12px 0; }
.article-combination h3 { margin-bottom: 12px; }
@media (max-width:1000px) { .article-related { position: static; } }
@media (max-width:600px) {
 .article-summary { padding: 16px; }
 .article-prose { line-height: 1.9; padding-top: 16px; }
 .article-prose :where(h2) { margin-top: 2rem; }
 .article-prose table { font-size: .9rem; }
 .article-prose th, .article-prose td { padding: 10px 12px; }
 .article-product-rail { grid-auto-columns: 100%; }
 .article-prose .article-product { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
 .article-product img { width: 96px; height: 112px; max-height: none; padding: 2px; }
 .article-product-info { padding: 10px; }
 .article-product-name { font-size: .9rem; }
}
