/*
Theme Name: Route Blog
Theme URI:
Author: Route Blog
Description: 「ひとり道楽 徒然飄然」向けのオリジナルWordPressクラシックテーマ
Version: 0.5.74
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: route-blog
*/

/* =========================================================
   Canonical category colors
   ========================================================= */

:root {
    --color-asset: #e6d29a;
    --color-golf: #c3d9c4;
    --color-grape: #d5c3df;
    --color-illustration: #e1c0bc;
    --color-other: #d2d2cf;

}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-link-hover); }
button, input, textarea, select { font: inherit; }

.screen-reader-text { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.container { width: min(calc(100% - 2rem), var(--content-wide)); margin-inline: auto; }
.reading-width { width: min(calc(100% - 2rem), var(--content-reading)); margin-inline: auto; }

.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.site-header__inner { min-height: 72px; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.site-branding__title { margin:0; font-size:1.25rem; line-height:1.3; font-weight:700; }
.site-branding__title a { color:var(--color-text); text-decoration:none; }
.site-branding__description { margin:.2rem 0 0; color:var(--color-muted); font-size:.75rem; }
.menu-toggle { display:none; border:1px solid var(--color-border); background:transparent; color:var(--color-text); border-radius:6px; padding:.4rem .6rem; cursor:pointer; }
.primary-navigation ul { display:flex; align-items:center; gap:1.25rem; list-style:none; margin:0; padding:0; }
.primary-navigation a { color:var(--color-text); text-decoration:none; font-size:.9rem; }
.primary-navigation a:hover { color:var(--color-link); }

.site-main { min-height:60vh; }
.hero { padding: clamp(4rem, 9vw, 7rem) 1rem; text-align:center; border-bottom:1px solid var(--color-border); }
.hero__inner { max-width:760px; margin:auto; }
.hero__eyebrow { margin:0 0 .75rem; color:var(--color-muted); font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; }
.hero h1 { margin:0; font-size:clamp(2rem, 5vw, 3.5rem); line-height:1.3; letter-spacing:.02em; }
.hero p { max-width:620px; margin:1rem auto 0; color:var(--color-muted); }

.section { padding-block: var(--space-7); }
.section__header { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:2rem; border-bottom:1px solid var(--color-border); padding-bottom:.75rem; }
.section__title { margin:0; font-size:1.6rem; line-height:1.4; }
.section__description { margin:.25rem 0 0; color:var(--color-muted); font-size:.9rem; }
.section__more { white-space:nowrap; font-size:.85rem; }

.category-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:1rem; }
.category-card { display:grid; grid-template-columns:112px minmax(0,1fr); min-height:150px; padding:0; overflow:hidden; background:var(--color-surface); border:1px solid var(--color-border); border-left:5px solid var(--category-color, var(--color-accent)); border-radius:var(--radius); text-decoration:none; color:#222; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.category-card:hover { color:#222; transform:translateY(-2px); box-shadow:var(--shadow); }
.category-card__thumbnail { min-height:150px; background:var(--category-color, #ddd); overflow:hidden; }
.category-card__thumbnail img { width:100%; height:100%; object-fit:cover; display:block; }
.category-card__thumbnail--empty { display:grid; place-items:center; color:rgba(34,34,34,.5); font-size:.72rem; }
.category-card__body { min-width:0; padding:1.35rem 1.25rem; display:flex; flex-direction:column; justify-content:center; }
.category-card__label { color:#222; font-size:.72rem; font-weight:700; letter-spacing:.08em; }
.category-card__title { margin:.35rem 0 .45rem; color:#222; font-size:1.3rem; }
.category-card__description { margin:0; color:#555; font-size:.88rem; }
.category-card__arrow { align-self:flex-start; margin-top:.9rem; color:#333; font-size:.82rem; }

.posts-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1rem; }
.post-card { overflow:hidden; background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius); }
.post-card__thumbnail { aspect-ratio:16/9; overflow:hidden; background:#e9e8e2; }
.post-card__thumbnail img { width:100%; height:100%; object-fit:cover; }
.post-card__body { padding:1.25rem; }
.post-card__meta { display:flex; flex-wrap:wrap; gap:.5rem .75rem; align-items:center; margin-bottom:.45rem; color:var(--color-muted); font-size:.75rem; }
.post-card__category { color:var(--category-color, var(--color-link)); font-weight:700; }
.post-card__title { margin:0; font-size:1.05rem; line-height:1.55; }
.post-card__title a { color:var(--color-text); text-decoration:none; }
.post-card__title a:hover { color:var(--color-link); }
.post-card__excerpt { margin:.65rem 0 0; color:var(--color-muted); font-size:.85rem; }

.category-section + .category-section { margin-top:4rem; }
.simple-post-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.simple-post { padding:1.25rem; background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius); }
.simple-post__title { margin:0; font-size:1rem; line-height:1.6; }
.simple-post__title a { color:var(--color-text); text-decoration:none; }
.simple-post__date { margin:.4rem 0 0; color:var(--color-muted); font-size:.75rem; }

.gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.gallery-card { overflow:hidden; border-radius:var(--radius); background:#e9e8e2; }
.gallery-card a { display:block; aspect-ratio:1/1; }
.gallery-card img { width:100%; height:100%; object-fit:cover; }

.entry-header { padding-block:4rem 2rem; }
.entry-title { margin:0; font-size:clamp(2rem,5vw,3rem); line-height:1.4; }
.entry-meta { margin-top:1rem; color:var(--color-muted); font-size:.85rem; }
.entry-content { padding-bottom:5rem; }
.entry-content > * { max-width:var(--content-reading); margin-inline:auto; }
.entry-content > .alignwide { max-width:var(--content-wide); }
.entry-content > .alignfull { max-width:none; width:100%; }
.entry-content h2 { margin-top:3rem; line-height:1.5; }
.entry-content h3 { margin-top:2rem; line-height:1.5; }
.entry-content img { margin-block:1.5rem; }
.entry-content blockquote { margin-block:2rem; padding:1rem 1.25rem; border-left:4px solid var(--color-border); color:var(--color-muted); background:rgba(255,255,255,.55); }

.pagination { display:flex; justify-content:center; gap:.5rem; margin-top:2rem; }
.pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-width:2.4rem; height:2.4rem; padding-inline:.6rem; border:1px solid var(--color-border); border-radius:6px; text-decoration:none; background:var(--color-surface); }
.pagination .current { background:var(--color-text); color:#fff; border-color:var(--color-text); }

.site-footer { margin-top:4rem; padding-block:3rem; border-top:1px solid var(--color-border); background:#eeede8; }
.site-footer__inner { text-align:center; }
.site-footer__title { margin:0; font-weight:700; }
.footer-navigation ul { display:flex; flex-wrap:wrap; justify-content:center; gap:1rem; list-style:none; margin:1rem 0; padding:0; }
.footer-navigation a { color:var(--color-muted); font-size:.85rem; text-decoration:none; }
.site-info { margin:0; color:var(--color-muted); font-size:.75rem; }

@media (max-width: 767px) {
  .container, .reading-width { width:min(calc(100% - 1.5rem), var(--content-wide)); }
  .site-header__inner { min-height:60px; }
  .menu-toggle { display:block; }
  .primary-navigation { display:none; width:100%; }
  .primary-navigation.is-open { display:block; }
  .site-header__inner { flex-wrap:wrap; }
  .primary-navigation ul { flex-direction:column; align-items:stretch; gap:0; padding-bottom:.75rem; }
  .primary-navigation li { border-top:1px solid var(--color-border); }
  .primary-navigation a { display:block; padding:.75rem 0; }
  .hero { padding:4rem 1rem; }
  .section { padding-block:3rem; }
  .section__header { align-items:flex-start; flex-direction:column; }
  .category-grid, .posts-grid, .simple-post-list { grid-template-columns:1fr; }
  .category-card { min-height:160px; }
  .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* 0.2 home two-column / hideaway layout */
.hero{padding:28px 0 48px}.hero-media{overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);box-shadow:var(--shadow)}.hero-media>img{display:block;width:100%;height:330px;object-fit:cover}.hero-placeholder{min-height:330px;display:grid;place-items:center;text-align:center;padding:40px;background:var(--surface-soft)}.hero-placeholder h1{margin:4px 0 10px;font-size:clamp(2rem,5vw,3.4rem)}.hero-placeholder p{color:var(--muted)}.hero-placeholder small{display:block;margin-top:20px;color:var(--muted)}.hero-eyebrow{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase}/* Wide desktop layout: keep the whole main/sidebar group centered. */
.home-layout {
    display: grid;
    width: calc(100% - 2rem);
    max-width: var(--content-wide);
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
    justify-content: center;
}.site-sidebar{position:sticky;top:20px}.sidebar-widget{margin-bottom:22px;padding:20px;border:1px solid var(--border);border-radius:6px;background:var(--surface);box-shadow:var(--shadow)}.sidebar-widget__title{margin:0 0 15px;padding-bottom:8px;border-bottom:1px solid var(--border);font-size:.95rem;letter-spacing:.06em}.profile-image{width:112px;height:112px;margin:0 auto 14px;border-radius:50%;overflow:hidden;background:var(--surface-soft);display:grid;place-items:center;text-align:center;color:var(--muted);font-size:.8rem}.profile-image img{width:100%;height:100%;object-fit:cover}.profile-text{margin:0;font-size:.87rem}.calendar-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.calendar-nav a{text-decoration:none;color:var(--muted)}.calendar-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.75rem}.calendar-table th{color:var(--muted);font-weight:500;padding:3px}.calendar-table td{text-align:center;padding:4px}.calendar-table a{display:inline-grid;place-items:center;min-width:24px;min-height:24px;border-radius:50%;background:var(--surface-soft);color:var(--accent);font-weight:700;text-decoration:none}.sidebar-list{list-style:none;padding:0;margin:0}.sidebar-list li{border-bottom:1px solid var(--border)}.sidebar-list li:last-child{border-bottom:0}.sidebar-list a{display:flex;justify-content:space-between;gap:10px;padding:8px 0;text-decoration:none;font-size:.85rem}.category-card{min-height:150px}.category-card__label{font-size:.7rem;color:var(--category-color);letter-spacing:.12em}.search-form{display:flex;gap:6px}.search-form input{min-width:0;flex:1;padding:8px;border:1px solid var(--border);border-radius:4px}.search-form button{border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:4px;padding:0 10px}@media (min-width: 901px) {
    .home-layout {
        width: min(var(--content-wide), calc(100% - 2rem));
        max-width: var(--content-wide);
        margin-left: auto !important;
        margin-right: auto !important;
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media(max-width:900px){.home-layout{grid-template-columns:1fr}.site-sidebar{position:static}.posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767px){.hero-media>img,.hero-placeholder{height:260px;min-height:260px}.home-layout{gap:0}.posts-grid{grid-template-columns:1fr}.category-grid{grid-template-columns:1fr}.site-sidebar{margin-top:0}.sidebar-widget{margin-bottom:16px}.hero{padding-top:14px}}

/* Long-reading comfort and keyboard accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline:3px solid #536b73; outline-offset:2px; }
.entry-content { color:#222; }
.section__description, .post-card__excerpt, .category-card__description, .profile-text { color:#555; }
@media (max-width:767px) { .category-card { grid-template-columns:88px minmax(0,1fr); min-height:132px; } .category-card__thumbnail { min-height:132px; } .category-card__body { padding:1rem .9rem; } .category-card__title { font-size:1.1rem; } }

/* Sidebar category colors */
.sidebar-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-category-list li {
    margin: 0;
    padding: 0;
}

.sidebar-category-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 5px 7px;
    margin: 0 -7px;
    border-radius: 7px;
    color: #222;
    text-decoration: none;
    transition: background-color .15s ease;
}

.sidebar-category-link:hover {
    background: rgba(0, 0, 0, .025);
}

.category-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--category-color);
}

.category-color-dot--asset-building {
    --category-color: var(--color-asset);
}

.category-color-dot--golf {
    --category-color: var(--color-golf);
}

.category-color-dot--grape-growing {
    --category-color: var(--color-grape);
}

.category-color-dot--illustration {
    --category-color: var(--color-illustration);
}

.category-color-dot--other {
    --category-color: var(--color-other);
}

.sidebar-category-name {
    color: #222;
}

.category-count {
    margin-left: auto;
    color: #666;
    font-size: .85rem;
}

/* =========================================================
   Category archive
   ========================================================= */

.category-archive {
    --category-color: #d2d2cf;
    background: #fbfaf7;
    min-height: 100vh;
}

.category-archive__header {
    padding: 52px 0 34px;
    background: #f7f5ef;
}

.category-archive__title-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.category-archive__dot {
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-top: 13px;
    border-radius: 50%;
    background: var(--category-color);
    box-shadow: 0 0 0 5px color-mix(
        in srgb,
        var(--category-color) 18%,
        transparent
    );
}

.category-archive__eyebrow {
    margin: 0 0 5px;
    color: #777;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
}

.category-archive__title {
    margin: 0;
    color: #222;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.25;
}

.category-archive__description {
    max-width: 650px;
    margin: 10px 0 0;
    color: #555;
    line-height: 1.8;
}

.category-archive__accent {
    height: 3px;
    max-width: 120px;
    margin-top: 28px;
    border-radius: 3px;
    background: var(--category-color);
    opacity: .75;
}

/* =========================================================
   Shared page layout foundation
   v0.5.8
   ========================================================= */
.route-page-layout__container {
    width: min(calc(100% - 2rem), var(--content-wide, 1180px));
    margin-inline: auto;
}

.route-page-layout__container--full {
    width: min(calc(100% - 2rem), 1440px);
}
.route-page-layout__container--portfolio {
    width: min(calc(100% - 2rem), 1600px);
    margin-inline: auto;
}


.route-page-layout__container--sidebar {
    width: min(calc(100% - 2rem), var(--content-wide, 1180px));
}

.route-page-layout {
    display: grid;
    gap: 48px;
    padding-top: 42px;
    padding-bottom: 70px;
}

.route-page-layout--sidebar {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.route-page-layout--full {
    grid-template-columns: minmax(0, 1fr);
}

.route-page-layout__main,
.route-page-layout__sidebar {
    min-width: 0;
}

.category-archive__layout {
    /* Backward-compatible hook for existing theme customizations. */
    margin: 0;
}

.category-archive__main {
    min-width: 0;
}

.category-posts-grid {
    align-items: start;
}

.category-archive__sidebar {
    min-width: 0;
}

.sidebar-category-list li.is-active > .sidebar-category-link {
    background: color-mix(
        in srgb,
        var(--category-color, #d2d2cf) 12%,
        transparent
    );
    font-weight: 600;
}

.category-empty {
    padding: 70px 20px;
    text-align: center;
    color: #666;
    background: #fff;
    border: 1px solid #e8e5dd;
    border-radius: 10px;
}

.category-empty .category-archive__dot {
    width: 11px;
    height: 11px;
    margin: 0 auto 16px;
}

.category-pagination {
    margin-top: 44px;
}

.category-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.category-pagination a,
.category-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 5px 10px;
    color: #222;
    text-decoration: none;
    border: 1px solid #ddd9d0;
    border-radius: 6px;
    background: #fff;
}

.category-pagination .current {
    border-color: var(--category-color);
    background: var(--category-color);
}

@media (max-width: 900px) {
    .route-page-layout--sidebar {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .route-page-layout__sidebar {
        order: 2;
    }

    .route-page-layout__container,
    .route-page-layout__container--sidebar,
    .route-page-layout__container--full,
    .route-page-layout__container--portfolio {
        width: min(calc(100% - 2rem), 1600px);
    }
}

@media (max-width: 640px) {
    .category-archive__header {
        padding: 38px 0 28px;
    }

    .category-archive__title-row {
        gap: 14px;
    }

    .category-archive__dot {
        width: 11px;
        height: 11px;
        flex-basis: 11px;
        margin-top: 10px;
    }

    .route-page-layout {
        padding-top: 28px;
        padding-bottom: 50px;
    }

    .route-page-layout__container,
    .route-page-layout__container--sidebar,
    .route-page-layout__container--full {
        width: min(calc(100% - 1.5rem), var(--content-wide, 1180px));
    }
}

.category-archive__dot {
    box-shadow: 0 0 0 5px rgba(0, 0, 0, .035);
}

@supports (box-shadow: 0 0 0 5px color-mix(in srgb, red 20%, transparent)) {
    .category-archive__dot {
        box-shadow: 0 0 0 5px color-mix(
            in srgb,
            var(--category-color) 18%,
            transparent
        );
    }
}

/* =========================================================
   Search button
   ========================================================= */

.search-form .search-submit,
.search-form input[type="submit"],
.search-form button {
    color: #222;
    background: #f7f6f2;
    border: 1px solid #d8d5cd;
    border-radius: 6px;
    cursor: pointer;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.search-form .search-submit:hover,
.search-form input[type="submit"]:hover,
.search-form button:hover {
    color: #222;
    background: #ebe9e2;
    border-color: #bdb9af;
    cursor: pointer;
}

.search-form .search-submit:focus-visible,
.search-form input[type="submit"]:focus-visible,
.search-form button:focus-visible {
    color: #222;
    outline: 2px solid #aaa;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .04);
}

.search-form .search-submit:active,
.search-form input[type="submit"]:active,
.search-form button:active {
    background: #e2dfd6;
}

/* =========================================================
   Site title
   Main: 徒然飄然 / Sub: ひとり道楽
   ========================================================= */

.site-branding__title {
    margin: 0;
}

.site-branding__title a {
    color: #222;
    text-decoration: none;
}

.site-branding__subtitle {
    margin: 3px 0 0;
    color: #666;
    font-size: .78rem;
    letter-spacing: .08em;
}

/* =========================================================
   Hero slider
   ========================================================= */

.hero-slider {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-slider__track {
    position: relative;
    min-height: clamp(300px, 42vw, 560px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide__image {
    display: block;
    width: 100%;
    height: clamp(300px, 42vw, 560px);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 80px 7% 48px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .48),
        rgba(0, 0, 0, .16) 55%,
        transparent
    );
    pointer-events: none;
}

.hero-overlay__inner {
    max-width: 720px;
    color: #fff;
}

.hero-overlay .hero-eyebrow {
    margin: 0 0 7px;
    color: #fff;
    font-size: .8rem;
    letter-spacing: .16em;
}

.hero-overlay h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.15;
}

.hero-overlay p:last-child {
    margin: 12px 0 0;
    color: #fff;
    line-height: 1.8;
}

.hero-slider__dots {
    position: absolute;
    right: 24px;
    bottom: 22px;
    z-index: 3;
    display: flex;
    gap: 7px;
}

.hero-slider__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
}

.hero-slider__dot:hover {
    background: rgba(255, 255, 255, .75);
}

.hero-slider__dot.is-active {
    background: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

@media (max-width: 640px) {
    .hero-overlay {
        padding: 65px 24px 34px;
    }

    .hero-slider__dots {
        right: 18px;
        bottom: 15px;
    }

    .hero-slider__track,
    .hero-slide__image {
        min-height: 360px;
        height: 360px;
    }
}

/* =========================================================
   Hero text readability
   Black text with a subtle white outline
   ========================================================= */

.hero-overlay__inner,
.hero-overlay .hero-eyebrow,
.hero-overlay h1,
.hero-overlay p {
    color: #111;
    text-shadow:
        -1px -1px 0 rgba(255, 255, 255, .96),
         1px -1px 0 rgba(255, 255, 255, .96),
        -1px  1px 0 rgba(255, 255, 255, .96),
         1px  1px 0 rgba(255, 255, 255, .96);
}

.hero-overlay .hero-eyebrow {
    font-weight: 600;
}

.hero-overlay h1 {
    font-weight: 700;
}

.hero-overlay p:last-child {
    font-weight: 500;
}

/* Category color mapping */
.category-card--asset-building,
.category-archive--asset-building,
.category-color-dot--asset-building { --category-color: var(--color-asset); }

.category-card--golf,
.category-archive--golf,
.category-color-dot--golf { --category-color: var(--color-golf); }

.category-card--grape-growing,
.category-archive--grape-growing,
.category-color-dot--grape-growing { --category-color: var(--color-grape); }

.category-card--illustration,
.category-archive--illustration,
.category-color-dot--illustration { --category-color: var(--color-illustration); }

.category-card--other,
.category-archive--other,
.category-color-dot--other { --category-color: var(--color-other); }

/* =========================================================
   Route Blog visual theme
   Warm, muted colors — no pure white surfaces.
   ========================================================= */

:root {
    --color-bg: #f1eee7;
    --color-surface: #e9e4da;
    --color-surface-soft: #ded8cc;
    --color-border: #c9c1b3;
    --color-text: #292722;
    --color-muted: #68645d;
    --color-link: #4f625c;
    --color-link-hover: #374b46;
    --color-accent: #8b7660;
    --color-shadow: rgba(67, 59, 48, .10);
    --shadow: 0 5px 18px var(--color-shadow);
    --radius: 8px;

    /* Shared layout widths */
    --content-wide: 1180px;
    --content-reading: 860px;
    --space-7: 4rem;
}

/* Main font remains the original readable sans-serif. */
body,
button,
input,
textarea,
select {
    font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background-color: var(--color-bg);
}

/* Only the blog title uses HG教科書体. */
.site-branding__title,
.site-branding__title a {
    font-family: "HG教科書体", "HGS教科書体", "UD デジタル 教科書体",
        "Yu Kyokasho", "Yu Gothic", sans-serif;
}

/* Header: title / description */
.site-header {
    background: #e5dfd3;
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    min-height: auto;
    display: block;
    padding-top: 18px;
}

.site-branding__row {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-branding__titles {
    flex: 0 0 auto;
}

.site-branding__title {
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.2;
}

.site-branding__subtitle {
    margin: 4px 0 0;
    color: var(--color-muted);
    font-size: .78rem;
    letter-spacing: .12em;
}

.site-branding__description {
    margin: 0;
    padding-left: 28px;
    border-left: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: .82rem;
    line-height: 1.7;
}

/* Menu bar directly below the title area. */
.site-header__nav-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    border-top: 1px solid var(--color-border);
}

.primary-navigation {
    margin-top: 0;
    border-top: 0;
    flex: 1 1 auto;
}

.site-header__search {
    flex: 0 0 auto;
}

.site-header__search .search-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-header__search input[type="search"] {
    width: 10rem;
    max-width: 28vw;
    padding: .35rem .55rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface);
}

.site-header__search button {
    padding: .35rem .7rem;
    font-size: .8rem;
}

.primary-navigation ul {
    min-height: 44px;
    gap: 0;
}

.primary-navigation li {
    border-right: 1px solid var(--color-border);
}

.primary-navigation li:first-child {
    border-left: 1px solid var(--color-border);
}

.primary-navigation a {
    display: block;
    padding: 10px 18px;
    color: var(--color-text);
    font-size: .84rem;
    text-decoration: none;
    transition: background-color .15s ease;
}

.primary-navigation a:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, .18);
}

/* Warm translucent panel over Hero image; not pure white. */
.hero-overlay__inner {
    display: inline-block;
    max-width: min(90%, 760px);
    padding: 14px 22px;
    color: #292722;
    background: rgba(239, 233, 220, .78);
    border: 1px solid rgba(190, 180, 165, .65);
    border-radius: 5px;
    box-shadow: 0 4px 14px rgba(48, 42, 34, .08);
}

.hero-overlay .hero-eyebrow,
.hero-overlay h1 {
    color: #292722;
    text-shadow: none;
}

.hero-overlay .hero-eyebrow {
    margin: 0 0 4px;
    font-weight: 600;
}

.hero-overlay h1 {
    margin: 0;
    font-weight: 700;
}

.hero-overlay p:last-child {
    display: none;
}

/* Use the same warm tone for empty-image placeholders. */
.hero-placeholder {
    background: #ded8cc;
    color: var(--color-text);
}

@media (max-width: 767px) {
    .site-header__inner {
        padding-top: 14px;
    }

    .site-branding__row {
        align-items: flex-start;
        gap: 12px;
    }

    .site-branding__description {
        padding-left: 12px;
        font-size: .72rem;
    }

    .site-header__nav-row {
        flex-wrap: wrap;
        margin-top: 12px;
    }

    .site-header__search {
        margin-left: auto;
    }

    .site-header__search input[type="search"] {
        width: 8rem;
        max-width: 46vw;
    }

    .primary-navigation {
        margin-top: 0;
        flex: 1 1 100%;
    }

    .primary-navigation ul {
        min-height: auto;
    }

    .primary-navigation li {
        border-left: 0;
    }

    .primary-navigation li:first-child {
        border-left: 0;
    }

    .primary-navigation a {
        padding: 10px 0;
    }

    .hero-overlay__inner {
        padding: 10px 16px;
    }
}

/* =========================================================
   Primary menu
   Always visible: WordPress menu or theme fallback menu.
   ========================================================= */

.primary-navigation {
    display: block;
    width: 100%;
}

.primary-navigation > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation > ul > li {
    display: block;
    margin: 0;
    padding: 0;
}

.primary-navigation > ul > li > a {
    display: block;
}

/* =========================================================
   Hero typography
   Only Hero text uses HG教科書体.
   ========================================================= */

.hero-overlay__inner,
.hero-overlay .hero-eyebrow,
.hero-overlay h1 {
    font-family: "HG教科書体", "HGS教科書体", "UD デジタル 教科書体",
        "Yu Kyokasho", "Yu Gothic", sans-serif;
}

.hero-overlay__inner {
    color: #292722;
}

.hero-overlay .hero-eyebrow,
.hero-overlay h1 {
    color: #292722;
}

/* Keep the Hero background panel warm and translucent. */
.hero-overlay__inner {
    background: rgba(239, 233, 220, .78);
}

/* =========================================================
   Primary menu category accents
   ========================================================= */

.primary-navigation .route-menu-category-asset-building > a,
.primary-navigation .route-blog-fallback-menu .menu-item:nth-child(2) > a {
    background: rgba(230, 210, 154, .24);
}

.primary-navigation .route-menu-category-golf > a,
.primary-navigation .route-blog-fallback-menu .menu-item:nth-child(3) > a {
    background: rgba(195, 217, 196, .24);
}

.primary-navigation .route-menu-category-grape-growing > a,
.primary-navigation .route-blog-fallback-menu .menu-item:nth-child(4) > a {
    background: rgba(213, 195, 223, .24);
}

.primary-navigation .route-menu-category-illustration > a,
.primary-navigation .route-blog-fallback-menu .menu-item:nth-child(5) > a {
    background: rgba(225, 192, 188, .24);
}

.primary-navigation .route-menu-category-other > a,
.primary-navigation .route-blog-fallback-menu .menu-item:nth-child(6) > a {
    background: rgba(210, 210, 207, .24);
}

.primary-navigation li[class*="route-menu-category-"] > a,
.primary-navigation .route-blog-fallback-menu > li > a {
    border-radius: 5px;
}

.primary-navigation li[class*="route-menu-category-"] > a:hover,
.primary-navigation .route-blog-fallback-menu > li > a:hover {
    background: rgba(0, 0, 0, .045);
}

/* =========================================================
   Illustration portfolio
   ========================================================= */

.portfolio-grid {
    display: grid;
    /* Portfolio archives are full-width. Column count adapts to the available viewport. */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    width: 100%;
}

.portfolio-item {
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.portfolio-item__link {
    display: block;
    color: var(--color-text);
    text-decoration: none;
}

.portfolio-item__link img,
.portfolio-item__placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.portfolio-item__placeholder {
    display: grid;
    place-items: center;
    background: var(--color-surface-soft);
    color: var(--color-muted);
}

.portfolio-item__caption {
    display: block;
    padding: .75rem 1rem;
    font-size: .9rem;
}

.portfolio-item__link:hover .portfolio-item__caption {
    color: var(--color-link);
}

/* =========================================================
   Illustration category warning
   ========================================================= */

.illustration-age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(42, 38, 32, .58);
}

.illustration-age-gate[hidden] {
    display: none;
}

.illustration-gate-open {
    overflow: hidden;
}

.illustration-age-gate__panel {
    width: min(100%, 520px);
    padding: 2rem;
    background: #e9e2d7;
    color: #292722;
    border: 1px solid #c8bdad;
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(42, 38, 32, .22);
}

.illustration-age-gate__eyebrow {
    margin: 0 0 .5rem;
    color: #8a6b62;
    font-size: .75rem;
    letter-spacing: .12em;
    font-weight: 700;
}

.illustration-age-gate__panel h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    line-height: 1.5;
}

.illustration-age-gate__panel p:not(.illustration-age-gate__eyebrow) {
    color: #555049;
    font-size: .9rem;
    line-height: 1.8;
}

.illustration-age-gate__actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-top: 1.5rem;
}

.illustration-age-gate__enter {
    border: 1px solid #8a6b62;
    border-radius: 5px;
    padding: .65rem 1.1rem;
    background: #d7b8ae;
    color: #292722;
    cursor: pointer;
}

.illustration-age-gate__back {
    color: #555049;
    font-size: .85rem;
}

@media (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: .75rem;
    }

    .illustration-age-gate__panel {
        padding: 1.5rem;
    }

    .illustration-age-gate__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   Illustration portfolio v0.4.9
   ========================================================= */
.portfolio-item__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-surface-soft);
}
.portfolio-item__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--portfolio-thumb-position, 50% 50%);
}
.portfolio-item__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.portfolio-item__like-count { color: var(--color-muted); font-size: .8rem; white-space: nowrap; }

/* Full artwork viewing page */
.portfolio-single { background: var(--color-bg); }
.portfolio-viewer { min-height: 100vh; }
.portfolio-viewer__topbar {
    position: sticky; top: 0; z-index: 5;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .8rem 1.25rem;
    background: rgba(241,238,231,.92); border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
}
.portfolio-viewer__back { color: var(--color-text); text-decoration: none; font-size: .85rem; }
.portfolio-viewer__title-mini { color: var(--color-muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-viewer__stage {
    min-height: calc(100vh - 52px);
    display: grid; place-items: center;
    padding: 2rem;
    background: #2f2c28;
}
.portfolio-viewer__figure { margin: 0; width: 100%; height: calc(100vh - 116px); display: grid; place-items: center; }
.portfolio-viewer__image { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.portfolio-viewer__empty { color: #e9e4da; }
.portfolio-viewer__info { padding-block: 2.5rem 3.5rem; }
.portfolio-viewer__heading-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.portfolio-viewer__eyebrow { margin: 0 0 .35rem; color: var(--color-illustration, #a97873); font-size: .72rem; letter-spacing: .12em; font-weight: 700; }
.portfolio-viewer__title { margin: 0; color: var(--color-text); font-size: clamp(1.5rem, 3vw, 2.2rem); }
.portfolio-viewer__description { margin-top: 1.75rem; }
.portfolio-like {
    display: inline-flex; align-items: center; gap: .45rem;
    min-width: 82px; justify-content: center; padding: .7rem .95rem;
    border: 1px solid var(--color-border); border-radius: 999px;
    background: var(--color-surface); color: var(--color-text); cursor: pointer;
}
.portfolio-like:hover { border-color: var(--color-illustration, #a97873); }
.portfolio-like__heart { font-size: 1.25rem; line-height: 1; }
.portfolio-like.is-liked .portfolio-like__heart { color: #a45f59; }
.portfolio-comments { padding-bottom: 4rem; }
.portfolio-comments .comments-area { max-width: var(--content-reading); margin-inline: auto; }
.portfolio-comments .comment-list { padding-left: 0; list-style: none; }
.portfolio-comments .comment { padding: 1rem 0; border-top: 1px solid var(--color-border); }
.portfolio-comments .comment-form-comment textarea { width: 100%; min-height: 150px; }

@media (max-width: 767px) {
    .portfolio-viewer__stage { min-height: calc(100vh - 50px); padding: .75rem; }
    .portfolio-viewer__figure { height: calc(100vh - 82px); }
    .portfolio-viewer__info { padding-block: 2rem 2.5rem; }
    .portfolio-viewer__heading-row { align-items: flex-start; }
    .portfolio-like { min-width: 68px; padding: .6rem .8rem; }
}
.route-portfolio-range label { display:block; margin-bottom:.25rem; }
.route-portfolio-range input[type="range"] { width:100%; }
.portfolio-comments .comments-title { margin: 0 0 1.5rem; font-size: 1.25rem; }
.portfolio-comments .comment-meta { color: var(--color-muted); font-size: .8rem; }
.portfolio-comments .comment-content { line-height: 1.8; }
.portfolio-comments .comment-form p { margin: 0 0 1rem; }
.portfolio-comments .comment-form label { display:block; margin-bottom:.35rem; font-weight:600; }
.portfolio-comments .comment-form input[type="text"],
.portfolio-comments .comment-form input[type="email"],
.portfolio-comments .comment-form input[type="url"],
.portfolio-comments .comment-form textarea { box-sizing:border-box; width:100%; padding:.7rem .8rem; border:1px solid var(--color-border); border-radius:6px; background:var(--color-surface); color:var(--color-text); }
.portfolio-comments .comment-form .submit { border:1px solid var(--color-border); border-radius:6px; padding:.7rem 1rem; background:var(--color-surface); color:var(--color-text); cursor:pointer; }
.portfolio-comments .comment-form .submit:hover { border-color:var(--color-illustration, #a97873); }

/* Illustration category content notice */
.illustration-notice[hidden] { display: none !important; }
html.illustration-notice-open, body.illustration-notice-open { overflow: hidden; }
.illustration-notice { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 1.25rem; }
.illustration-notice__backdrop { position: absolute; inset: 0; background: rgba(34,32,29,.62); backdrop-filter: blur(4px); }
.illustration-notice__dialog { position: relative; width: min(680px,100%); max-height: min(88vh,760px); overflow: auto; padding: clamp(1.5rem,4vw,2.5rem); border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface); color: var(--color-text); box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.illustration-notice__eyebrow { margin-bottom: .45rem; color: var(--color-illustration,#a97873); font-size: .72rem; font-weight: 700; letter-spacing: .14em; }
.illustration-notice__title { margin: 0; font-size: clamp(1.35rem,3vw,1.8rem); line-height: 1.5; }
.illustration-notice__body { margin-top: 1.25rem; line-height: 1.85; }
.illustration-notice__body p { margin: 0 0 1rem; }
.illustration-notice__body ul { margin: 0 0 1rem; padding-left: 1.35rem; }
.illustration-notice__body li + li { margin-top: .65rem; }
.illustration-notice__copyright { padding: .9rem 1rem; border-radius: 10px; background: rgba(169,120,115,.08); font-size: .9rem; }
.illustration-notice__button { width: 100%; margin-top: .5rem; padding: .85rem 1rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-text); font: inherit; font-weight: 700; cursor: pointer; }
.illustration-notice__button:hover { border-color: var(--color-illustration,#a97873); }
@media (max-width:767px) { .illustration-notice { padding: .75rem; } .illustration-notice__dialog { border-radius: 14px; } }

/* Portfolio artwork page: normal blog article layout */
.portfolio-single--full .portfolio-article {
    max-width: 1280px;
}

.portfolio-single--full .portfolio-article__description .wp-block-image,
.portfolio-single--full .portfolio-article__description .wp-block-gallery,
.portfolio-single--full .portfolio-article__description .wp-block-gallery.has-nested-images {
    max-width: 1280px;
}

.portfolio-article {
    max-width: var(--content-reading, 860px);
    margin-inline: auto;
    padding-block: clamp(2rem, 5vw, 4rem) 3rem;
}
.portfolio-article__header { margin-bottom: 1.75rem; }
.portfolio-article__eyebrow { margin: 0 0 .4rem; color: var(--color-illustration, #a97873); font-size: .72rem; letter-spacing: .12em; font-weight: 700; }
.portfolio-article__title { margin: 0; color: var(--color-text); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.5; }
.portfolio-article__image { margin: 0 0 1.25rem; padding: clamp(.5rem, 1.5vw, 1rem); border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface); box-shadow: 0 2px 10px rgba(0,0,0,.04); text-align: center; }
.portfolio-article__image-img { display: block; width: 100%; max-height: 80vh; height: auto; margin-inline: auto; object-fit: contain; border-radius: 8px; }
.portfolio-article__actions { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.portfolio-back-link {
    margin-right: auto;
    color: var(--color-muted);
    font-size: .85rem;
    text-decoration: none;
}
.portfolio-back-link:hover { color: var(--color-link); }
.portfolio-article__description { line-height: 1.9; }
@media (max-width: 767px) {
    .portfolio-article { padding-block: 1.75rem 2.5rem; }
    .portfolio-article__image { padding: .5rem; border-radius: 10px; }
    .portfolio-article__image-img { max-height: none; }
    .portfolio-article__actions { justify-content: flex-start; }
}

/* Portfolio single: images are managed in the post content. */
.portfolio-article__description .wp-block-image,
.portfolio-article__description .wp-block-gallery,
.portfolio-article__description .wp-block-gallery.has-nested-images {
    margin-top: 1.75rem;
    margin-bottom: 1.75rem;
}

.portfolio-article__description .wp-block-image img,
.portfolio-article__description .wp-block-gallery img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.portfolio-article__description .wp-block-gallery {
    gap: 1rem;
}

.portfolio-article__description .wp-block-gallery figure.wp-block-image {
    margin: 0;
}

.portfolio-article__description .wp-block-gallery figcaption,
.portfolio-article__description .wp-element-caption {
    color: var(--color-muted);
    font-size: .85rem;
    line-height: 1.6;
}

/* v0.4.17 portfolio series icon */
.route-portfolio-series-icon {
    position: relative;
    display: inline-block;
    width: 1.45rem;
    height: 1.2rem;
    color: var(--color-muted);
    vertical-align: middle;
    flex: 0 0 auto;
}
.route-portfolio-series-icon::before,
.route-portfolio-series-icon::after,
.route-portfolio-series-icon span {
    content: "";
    position: absolute;
    width: .78rem;
    height: .58rem;
    border: 1px solid currentColor;
    border-radius: 2px;
    background: rgba(255,255,255,.88);
}
.route-portfolio-series-icon::before { left: .05rem; top: .02rem; }
.route-portfolio-series-icon::after { left: .28rem; top: .24rem; }
.route-portfolio-series-icon span:first-child { left: .18rem; top: .12rem; }
.route-portfolio-series-icon span:last-child { display:none; }

.portfolio-item__series-icon {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 3;
    padding: .22rem .3rem;
    border-radius: .45rem;
    background: rgba(255,255,255,.82);
    box-shadow: 0 1px 5px rgba(0,0,0,.08);
}
.portfolio-item__meta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    flex: 0 0 auto;
}
.route-portfolio-single-icon {
    color: var(--color-muted);
    font-size: 1rem;
}

/* Monthly-report pattern styling */
.route-blog-report-heading {
    margin-top: 2.2rem;
    padding: .45rem .7rem;
    border-left: 4px solid #b9a66a;
    background: rgba(185,166,106,.10);
    border-radius: 0 .45rem .45rem 0;
}
.route-blog-report-image img { border-radius: 8px; }
.route-blog-asset-heading {
    border-left-color: #b9a66a;
    background: rgba(185,166,106,.10);
}
.route-blog-golf-heading {
    border-left-color: var(--color-golf);
    background: color-mix(in srgb, var(--color-golf) 18%, transparent);
}
.route-blog-grape-heading {
    border-left-color: var(--color-grape);
    background: color-mix(in srgb, var(--color-grape) 18%, transparent);
}

/* v0.4.19: portfolio series count */
.portfolio-item__image-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:2.2em;
  padding:.1em .45em;
  border:1px solid var(--color-border);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:var(--color-muted);
  font-size:.72rem;
  line-height:1.4;
}

/* v0.4.20 portfolio editor sidebar */
.route-blog-portfolio-settings__preview {
    margin: 8px 0 12px;
}
.route-blog-portfolio-settings__label {
    margin: 0 0 8px;
    font-weight: 600;
}
.route-blog-portfolio-settings__preview-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.12);
    margin-bottom: 12px;
}

/* v0.4.22 portfolio lightbox */
.route-portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 70px;
  background: rgba(0,0,0,.88);
}
.route-portfolio-lightbox.is-open { display: flex; }
.route-portfolio-lightbox__figure {
  margin: 0;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.route-portfolio-lightbox__image {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.route-portfolio-lightbox button {
  position: fixed;
  z-index: 2;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
}
.route-portfolio-lightbox__close {
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  font-size: 28px;
}
.route-portfolio-lightbox__prev,
.route-portfolio-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 72px;
  font-size: 48px;
  line-height: 1;
}
.route-portfolio-lightbox__prev { left: 18px; }
.route-portfolio-lightbox__next { right: 18px; }
.route-portfolio-lightbox__counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(0,0,0,.45);
  padding: 5px 10px;
  border-radius: 999px;
}
.route-portfolio-lightbox-open { overflow: hidden; }
@media (max-width: 700px) {
  .route-portfolio-lightbox { padding: 30px 46px; }
  .route-portfolio-lightbox__prev,
  .route-portfolio-lightbox__next { width: 42px; height: 58px; font-size: 38px; }
}

/* v0.4.25 restored v0.4.19-style live thumbnail preview */
.route-blog-portfolio-settings__live-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    margin: 0 0 10px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 4px;
    background: #f3f1ed;
}
.route-blog-portfolio-settings__live-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    transition: background-position .08s linear;
}
.route-blog-portfolio-settings__hint {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.5;
    opacity: .72;
}
.route-blog-portfolio-settings__label {
    margin-bottom: 8px;
    font-weight: 600;
}

/* =========================================================
   Category sidebar system - v0.5.1
   ========================================================= */
.category-sidebar-widget__body { font-size: .87rem; }
.category-sidebar-widget__body p { margin: 0 0 .8em; }
.category-sidebar-widget__body p:last-child { margin-bottom: 0; }
.category-sidebar-widget__image { display:block; width:100%; height:auto; border-radius:6px; }
.category-sidebar-widget__caption { margin-top:10px; color:#555; }
.category-sidebar-widget__empty { color:#666; }
.category-sidebar-recent-posts li a { align-items: baseline; }
.category-sidebar-recent-posts li a span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.category-sidebar-recent-posts time { flex:0 0 auto; color:#777; font-size:.72rem; }
.category-sidebar-widget--html .category-sidebar-widget__body > :first-child { margin-top:0; }
.category-sidebar-widget--html .category-sidebar-widget__body > :last-child { margin-bottom:0; }



/* =========================================================
   Golf category sidebar
   ========================================================= */
.golf-score-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}.golf-score-summary>div{padding:10px 6px;text-align:center;background:var(--surface-soft);border:1px solid var(--border);border-radius:5px}.golf-score-summary strong{display:block;font-size:1.2rem;line-height:1.2}.golf-score-summary span{display:block;margin-top:3px;color:var(--muted);font-size:.7rem}.golf-score-chart{margin-top:8px;color:var(--accent)}.golf-score-chart svg{display:block;width:100%;height:150px;overflow:visible}.golf-score-chart__labels{display:flex;justify-content:space-between;color:var(--muted);font-size:.68rem;gap:8px} .golf-score-chart svg{overflow:visible}.golf-score-chart .chart-grid-line,.asset-history-chart .chart-grid-line{stroke:var(--border);stroke-width:1;vector-effect:non-scaling-stroke}.golf-score-chart .chart-axis-label,.asset-history-chart .chart-axis-label{fill:var(--muted);font-size:8px}.golf-score-chart .chart-axis-title{fill:var(--muted);font-size:8px}.golf-score-chart__legend{display:flex;justify-content:flex-end;gap:10px;margin-top:2px;color:var(--muted);font-size:.65rem;line-height:1.2}.golf-score-chart__labels span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.golf-round-list li{border-bottom:1px solid var(--border)}.golf-round-list li:last-child{border-bottom:0}.golf-round-list li a,.golf-round-list li:not(:has(a)){display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;text-decoration:none}.golf-round-list li span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem}.golf-round-list li time{color:var(--muted)}.golf-round-list__course-data{margin-left:.35em;color:var(--muted)}.golf-round-list li strong{flex:0 0 auto;font-size:.95rem}.golf-clubs-list p{margin:0;padding:5px 0;border-bottom:1px solid var(--border);font-size:.8rem;line-height:1.35}.golf-clubs-list p:last-child{border-bottom:0}.category-sidebar-widget__body p{line-height:1.5}.asset-fire-countdown{text-align:center;padding:4px 0 2px}.asset-fire-countdown strong{font-size:2rem;line-height:1;font-variant-numeric:tabular-nums}.asset-fire-countdown span{margin-left:4px;font-size:.8rem}.asset-fire-target{margin:7px 0 0;text-align:center;color:var(--muted);font-size:.75rem}.asset-history-chart{margin-top:4px;color:var(--accent)}.asset-history-chart__canvas{display:block;width:100%;height:auto;min-height:240px}.asset-tradingview-widget{margin-top:10px;overflow:hidden;border:1px solid var(--border);border-radius:4px;background:var(--surface-soft)}.asset-tradingview-widget:first-of-type{margin-top:0}.asset-sidebar-widget__note{margin:8px 0 0;color:var(--muted);font-size:.68rem;line-height:1.4}

/* v0.5.16: asset index tabs */
.asset-index-tabs__nav{display:flex;gap:4px;overflow-x:auto;margin-bottom:8px;padding:2px 1px 3px;scrollbar-width:thin}.asset-index-tab{flex:0 0 auto;border:1px solid var(--border);background:var(--surface-soft);color:var(--text);border-radius:4px;padding:5px 7px;font-size:.68rem;line-height:1.2;cursor:pointer}.asset-index-tab:hover{background:var(--surface)}.asset-index-tab.is-active{background:var(--surface);font-weight:700;border-color:var(--accent)}.asset-index-tab:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.asset-index-tab-panel[hidden]{display:none}.asset-index-tab-panel{min-width:0}.asset-tradingview-widget{margin-top:0}.asset-sidebar-widget--indices .asset-sidebar-widget__note{margin-top:6px}.asset-history-chart__labels{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:.68rem}.asset-history-chart__labels span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.golf-round-list li a,.golf-round-list li:not(:has(a)){line-height:1.2}.golf-clubs-list p{line-height:1.25}

/* v0.5.16 — Grape sidebar: shared workflow and variety presentation */
.grape-sidebar-widget .sidebar-widget__title { margin-bottom: .65rem; }
.grape-variety-tabs__nav,
.grape-task-panels__grid {
    display: grid;
    gap: .35rem;
}
.grape-variety-tabs__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grape-variety-tab,
.grape-task-panel {
    appearance: none;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(255,255,255,.45);
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
    font: inherit;
}
.grape-variety-tab {
    min-width: 0;
    padding: .42rem .18rem;
    font-size: .68rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.grape-variety-tab.is-active,
.grape-task-panel.is-active {
    background: rgba(117,98,116,.10);
    border-color: rgba(117,98,116,.45);
}
.grape-variety-tab:focus-visible,
.grape-task-panel:focus-visible {
    outline: 2px solid rgba(117,98,116,.55);
    outline-offset: 1px;
}
.grape-variety-panel { padding-top: .65rem; }
.grape-variety-panel__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,.28);
}
.grape-variety-panel__text { margin-top: .65rem; }
.grape-variety-panel__text h3 { margin: 0 0 .25rem; font-size: .95rem; }
.grape-variety-panel__text p { margin: 0; line-height: 1.4; font-size: .79rem; }
.grape-task-panels__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grape-task-panel {
    min-width: 0;
    min-height: 58px;
    padding: .42rem .2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.grape-task-panel__icon { font-size: 1.2rem; line-height: 1.15; }
.grape-task-panel__name {
    margin-top: .15rem;
    font-size: .68rem;
    line-height: 1.2;
    text-align: center;
}
.grape-task-current { margin: .35rem 0 .55rem; font-size: .78rem; line-height: 1.3; }
.grape-task-panels__details {
    margin-top: .55rem;
    padding: .62rem .7rem;
    border-radius: 8px;
    background: rgba(117,98,116,.06);
}
.grape-task-detail strong { display: block; font-size: .86rem; margin-bottom: .2rem; }
.grape-task-detail div,
.grape-task-detail p { margin: 0; font-size: .77rem; line-height: 1.4; }
.grape-task-detail[hidden],
.grape-variety-panel[hidden] { display: none; }

/* Contact form */
.route-contact-form-wrap{max-width:720px}.route-contact-form__notice{margin:0 0 18px;padding:12px 14px;border:1px solid var(--border);border-radius:6px;background:var(--surface-soft);line-height:1.6}.route-contact-form__notice--success{border-color:var(--accent)}.route-contact-form__notice--error{border-color:var(--border)}.route-contact-form__field{margin:0 0 16px}.route-contact-form__field label{display:block;font-weight:700;font-size:.9rem;margin-bottom:6px}.route-contact-form__field label span{font-weight:400}.route-contact-form__field input,.route-contact-form__field select,.route-contact-form__field textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #918b82;border-radius:5px;background:#fffdf8;color:var(--text);padding:10px 11px;font:inherit;box-shadow:inset 0 1px 2px rgba(0,0,0,.05)}.route-contact-form__field textarea{resize:vertical;min-height:180px}.route-contact-form__field input:focus,.route-contact-form__field select:focus,.route-contact-form__field textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:#81796e;background:#fffdf8}.route-contact-form__actions{margin:20px 0 0}/* Contact submit button shares the site's search-button appearance. */
.route-contact-form__actions button {
    color: #222;
    background: #f7f6f2;
    border: 1px solid #d8d5cd;
    border-radius: 6px;
    padding: .35rem .7rem;
    font: inherit;
    font-size: .8rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.route-contact-form__actions button:hover {
    color: #222;
    background: #ebe9e2;
    border-color: #bdb9af;
}
.route-contact-form__actions button:focus-visible {
    color: #222;
    outline: 2px solid #aaa;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .04);
}
.route-contact-form__actions button:active {
    background: #e2dfd6;
}.route-contact-form__honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* Contact link in the category sidebar. */
.category-color-dot--contact{background:var(--accent);}
.sidebar-category-list__contact{margin-top:2px;}
.sidebar-category-link--contact{font-weight:600;}

/* Privacy policy */
.route-privacy-policy__updated{margin-top:2rem;font-size:.82rem;color:var(--muted);}
.site-footer__privacy{margin:.35rem 0 0;font-size:.82rem;}
.site-footer__privacy a{text-decoration:underline;text-underline-offset:2px;}

.site-footer__version{margin-left:8px;color:var(--muted);font-size:.72rem;white-space:nowrap}


/* =========================================================
   Flexible reusable table pattern
   ========================================================= */
.route-blog-flex-table {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-reading, 860px);
  margin: 1.6rem auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.route-blog-flex-table table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--table-border, #e5d9b9);
  border-radius: 12px;
  overflow: hidden;
  background: var(--table-bg, #fffdf8);
  color: var(--table-text, #39362e);
}

.route-blog-flex-table th,
.route-blog-flex-table td {
  padding: .85rem .95rem;
  border: 0;
  border-right: 1px solid var(--table-border, #e5d9b9);
  border-bottom: 1px solid var(--table-border, #e5d9b9);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.route-blog-flex-table tr > *:last-child {
  border-right: 0;
}

.route-blog-flex-table tbody tr:last-child > * {
  border-bottom: 0;
}

.route-blog-flex-table thead th {
  background: var(--table-head-bg, #ead9a4);
  color: var(--table-head-text, #39362e);
  font-weight: 700;
  text-align: center;
}

/* 先頭の項目列。ブロック側のセル背景色指定があればそちらを優先。 */
.route-blog-flex-table tbody td:first-child {
  background: var(--table-item-bg, #f8f3e3);
  color: var(--table-item-text, #39362e);
  font-weight: 600;
}

.route-blog-flex-table tbody tr:nth-child(even) td:not(:first-child) {
  background: var(--table-stripe-bg, #fbf8ef);
}

/* 任意の列色指定用。例：class="is-item-column-blue" をテーブルに付与 */
.route-blog-flex-table.is-item-column-blue {
  --table-item-bg: #e8f0f7;
  --table-item-text: #30485d;
}

.route-blog-flex-table.is-item-column-green {
  --table-item-bg: #e8f1e7;
  --table-item-text: #35513a;
}

.route-blog-flex-table.is-item-column-purple {
  --table-item-bg: #eee8f5;
  --table-item-text: #514064;
}

.route-blog-flex-table.is-item-column-gray {
  --table-item-bg: #eeeeeb;
  --table-item-text: #4d4d47;
}

@media (max-width: 720px) {
  .route-blog-flex-table table {
    min-width: 520px;
  }

  .route-blog-flex-table th,
  .route-blog-flex-table td {
    padding: .7rem .75rem;
    font-size: .9rem;
  }
}

/* Grape dialogue patterns — single speech container */
.route-blog-grape-dialogue { width:100%; max-width:var(--content-reading); margin:1.25rem auto; padding:.8rem; align-items:flex-start !important; gap:1rem; border:1px solid rgba(111,83,128,.35); border-radius:1rem; background:transparent; box-sizing:border-box; flex-wrap:nowrap !important; }
.route-blog-grape-dialogue .wp-block-column { min-width:0; align-self:flex-start !important; }
.route-blog-grape-dialogue .wp-block-column:first-child,.route-blog-grape-dialogue .wp-block-column:last-child { flex:0 0 clamp(4.5rem,16%,6rem) !important; width:auto !important; }
.route-blog-grape-dialogue .wp-block-column:has(.route-blog-grape-dialogue__speech) { flex:1 1 0% !important; width:auto !important; min-width:0 !important; }
.route-blog-grape-dialogue__image { width:100%; max-width:6rem; margin:0 auto .25rem; aspect-ratio:1/1; }
.route-blog-grape-dialogue__image img { display:block; width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:10px; }
.route-blog-grape-dialogue__name { display:block !important; margin:0 !important; text-align:center !important; font-size:.78rem !important; line-height:1.35 !important; font-weight:600 !important; color:var(--color-text) !important; background:transparent !important; overflow-wrap:anywhere; }
.route-blog-grape-dialogue__speech { display:block !important; width:100%; min-width:0; margin:0 !important; padding:.65rem .9rem !important; border:1px solid rgba(111,83,128,.22); border-radius:1rem; background:#fff !important; background-image:none !important; color:var(--color-text,#333) !important; line-height:1.55 !important; box-sizing:border-box; overflow-wrap:anywhere; white-space:normal !important; }
.route-blog-grape-dialogue__speech > .wp-block-paragraph, .route-blog-grape-dialogue__speech > p { margin:0 !important; padding:0 !important; border:0 !important; background:transparent !important; color:inherit !important; line-height:inherit !important; white-space:normal !important; overflow-wrap:anywhere; }
.route-blog-grape-dialogue__speech * { color:inherit !important; line-height:inherit !important; }
.route-blog-grape-dialogue__speech * { background:transparent !important; }
@media (max-width:781px) { .route-blog-grape-dialogue { flex-direction:row !important; flex-wrap:nowrap !important; gap:.7rem; padding:.6rem; } .route-blog-grape-dialogue .wp-block-column { width:auto !important; } .route-blog-grape-dialogue .wp-block-column:first-child,.route-blog-grape-dialogue .wp-block-column:last-child { flex:0 0 4.5rem !important; max-width:4.5rem !important; } .route-blog-grape-dialogue .wp-block-column:has(.route-blog-grape-dialogue__speech) { flex:1 1 0% !important; min-width:0 !important; max-width:none !important; } .route-blog-grape-dialogue__image { max-width:4.5rem; } }


/* v0.5.71 — Use desktop right-side whitespace for wider category sidebars.
   Keep the article column at its existing width and anchor the layout to its
   previous left edge; only the sidebar gains the additional space. */
@media (min-width: 1200px) {
    .route-page-layout__container--sidebar {
        width: min(
            calc(100% - max(2rem, (100% - var(--content-wide, 1180px)) / 2 + 1rem)),
            calc(var(--content-wide, 1180px) + 240px)
        );
        max-width: calc(var(--content-wide, 1180px) + 240px);
        margin-left: max(1rem, calc((100% - var(--content-wide, 1180px)) / 2));
        margin-right: 1rem;
    }

    .route-page-layout--sidebar {
        grid-template-columns: minmax(0, calc(var(--content-wide, 1180px) - 280px - 48px)) minmax(280px, 1fr);
    }

    .route-page-layout__sidebar {
        min-width: 0;
        max-width: 520px;
        width: 100%;
        justify-self: stretch;
    }
}
