/*
 * Yadolist (yadolist.blog) — brand layer. Loaded after assets/css/core.css.
 * 生成り (kinari) paper, 墨 ink, 弁柄 (bengara) accent, Shippori Mincho headings (500/700),
 * the system sans for body text, ruled lines and generous space.
 * Brand classes: .yd-*. The article page (body text, hp-* / mp-* components, 湯の情報 box)
 * is styled in article.css, enqueued by header.php on singular pages only.
 */

:root {
    --bg:        #f6f1e7;   /* 生成り */
    --bg-alt:    #ede5d6;
    --paper:     #fbf8f2;
    --beige:     #ede5d6;
    --kinari:    #e6dccb;
    --text:      #2a2521;   /* 墨 */
    --text-mid:  #574e46;
    --text-low:  #6b6158;   /* ≥ 4.8:1 on every background used here */
    --ai:        #8a3b28;   /* core accent token → 弁柄 */
    --ai-light:  #a4553f;
    --line:      #d9cebb;
    --max:       1120px;
    --yd-accent: #8a3b28;
    --yd-moss:   #4b5a3a;
    --yd-ink:    #2a2521;
    --font-display: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', 'Noto Serif CJK JP', serif;
    --font-body:    -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Noto Sans CJK JP', 'Yu Gothic', 'YuGothic', Meiryo, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
    background: var(--bg); color: var(--text);
    font-family: var(--font-body); font-weight: 400;
    font-size: 16px; line-height: 1.9; letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}
a:hover { color: var(--yd-accent); }
:focus-visible { outline: 2px solid var(--yd-accent); outline-offset: 2px; }

.yd-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .yd-wrap { padding: 0 16px; } }

.yd-skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--yd-ink); color: var(--bg); padding: 8px 14px; }
.yd-skip:focus { left: 8px; color: var(--bg); }

/* ---------- Header ---------- */
.yd-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.yd-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 16px; }
.yd-logo { display: inline-flex; align-items: center; gap: 14px; color: var(--text); min-width: 0; }
.yd-logo:hover { color: var(--text); }
.yd-logo__seal {
    flex: none; display: grid; place-items: center; width: 38px; height: 38px;
    background: var(--yd-accent); color: #fff; border-radius: 3px;
    font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1;
}
.yd-logo__text { display: flex; flex-direction: column; min-width: 0; }
.yd-logo__name { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: 0.14em; line-height: 1.15; }
.yd-logo__tag { font-size: 11px; letter-spacing: 0.24em; color: var(--text-mid); line-height: 1.6; white-space: nowrap; }

.yd-search { position: relative; flex: none; }
.yd-search > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
    padding: 7px 12px; border: 1px solid var(--line); border-radius: 2px;
    font-size: 13px; letter-spacing: 0.12em; color: var(--text-mid); background: var(--paper);
}
.yd-search > summary::-webkit-details-marker { display: none; }
.yd-search > summary:hover, .yd-search[open] > summary { border-color: var(--yd-accent); color: var(--yd-accent); }
.yd-search__icon { position: relative; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; }
.yd-search__icon::after { content: ''; position: absolute; width: 6px; height: 1.5px; background: currentColor; right: -5px; bottom: -3px; transform: rotate(45deg); }
.yd-search__form {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
    display: flex; gap: 6px; width: min(380px, calc(100vw - 32px));
    padding: 10px; background: var(--paper); border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(42, 37, 33, 0.12);
}
.yd-search__form input, .yd-searchbox input {
    flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 8px 12px;
    border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 2px;
}
.yd-search__form button, .yd-searchbox button {
    flex: none; font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: 0.15em;
    padding: 0 18px; border: 0; border-radius: 2px; background: var(--yd-ink); color: var(--bg); cursor: pointer;
}
.yd-search__form button:hover, .yd-searchbox button:hover { background: var(--yd-accent); }

.yd-nav { border-top: 1px solid var(--line); }
.yd-nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; }
.yd-nav li + li { border-left: 1px solid var(--line); }
.yd-nav li { margin: 10px 0; }
.yd-nav a {
    display: block; padding: 2px 30px; font-family: var(--font-display); font-weight: 500;
    font-size: 16px; letter-spacing: 0.24em; color: var(--text); white-space: nowrap;
}
.yd-nav a[aria-current="page"] { color: var(--yd-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
@media (max-width: 640px) {
    .yd-header__bar { padding-top: 14px; padding-bottom: 12px; }
    .yd-logo { gap: 10px; }
    .yd-logo__seal { width: 32px; height: 32px; font-size: 18px; }
    .yd-logo__name { font-size: 21px; letter-spacing: 0.1em; }
    .yd-logo__tag { font-size: 10px; letter-spacing: 0.12em; }
    .yd-search > summary { padding: 7px 9px; }
    .yd-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .yd-nav ul { justify-content: space-between; padding: 0 8px; }
    .yd-nav li { margin: 8px 0; }
    .yd-nav li + li { border-left: 0; }
    .yd-nav a { padding: 4px 6px; font-size: 15px; letter-spacing: 0.08em; }
}

.yd-main { display: block; min-height: 50vh; }

/* ---------- Common pieces ---------- */
.yd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yd-chip {
    display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 11px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
    font-size: 13.5px; line-height: 1.7; color: var(--text);
}
.yd-chip__name { font-family: var(--font-display); font-weight: 500; }
.yd-chip__n { font-size: 11px; color: var(--text-low); font-variant-numeric: tabular-nums; }
.yd-chip:hover { border-color: var(--yd-accent); color: var(--yd-accent); }
.yd-chip--onsen { border-color: #c9b9a0; }

.yd-page { padding-bottom: 64px; }
.yd-empty { text-align: center; padding: 48px 0; color: var(--text-mid); }
.yd-backlink { text-align: center; margin-top: 40px; font-family: var(--font-display); }
.yd-backlink a, .yd-sec__more a { color: var(--yd-accent); }
.yd-backlink a::before, .yd-sec__more a::before { content: ''; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }

/* Archive / hub header */
.yd-archive-head { text-align: center; padding: 36px 0 36px; max-width: 760px; margin: 0 auto; }
.yd-archive-head__label {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: 0.32em; color: var(--yd-accent);
}
.yd-archive-head__label::before, .yd-archive-head__label::after { content: ''; width: 28px; height: 1px; background: currentColor; }
.yd-archive-head__title { font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 1.5; letter-spacing: 0.1em; margin: 14px 0 10px; }
.yd-archive-head__page { font-size: 15px; letter-spacing: 0.1em; color: var(--text-mid); }
.yd-archive-head__pref { font-family: var(--font-display); font-size: 15px; color: var(--text-mid); margin-bottom: 6px; }
.yd-archive-head__pref a { color: var(--yd-accent); border-bottom: 1px solid currentColor; }
.yd-archive-head__desc { font-size: 14.5px; color: var(--text-mid); max-width: 600px; margin: 0 auto; }
.yd-archive-head__intro { text-align: left; font-size: 15px; color: var(--text); max-width: 680px; margin: 18px auto 0; }
.yd-archive-head__intro p + p { margin-top: 1em; }
.yd-archive-head__count { margin-top: 14px; font-size: 12.5px; letter-spacing: 0.14em; color: var(--text-low); }
@media (max-width: 640px) {
    .yd-archive-head { padding: 24px 0 28px; }
    .yd-archive-head__title { font-size: 27px; letter-spacing: 0.06em; }
}

.yd-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin: 0 auto 40px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.yd-tabs a { padding: 4px 14px; font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: 0.16em; color: var(--text); }
.yd-tabs a[aria-current="page"] { color: var(--yd-accent); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.yd-tabs--regions { position: sticky; top: 0; z-index: 5; background: var(--bg); }

/* Pagination (the_posts_pagination / paginate_links) */
.yd-pager { margin: 48px 0 0; text-align: center; }
.yd-pager .nav-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.yd-pager .page-numbers {
    display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
    border: 1px solid var(--line); background: var(--paper);
    font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--text);
}
.yd-pager .page-numbers.current { background: var(--yd-ink); border-color: var(--yd-ink); color: var(--bg); }
.yd-pager .page-numbers.dots { border: 0; background: none; }
.yd-pager a.page-numbers:hover { border-color: var(--yd-accent); color: var(--yd-accent); }
.yd-pager .screen-reader-text { position: absolute; }

/* ---------- Cards ---------- */
.yd-grid { display: grid; gap: 44px 32px; }
.yd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
@media (max-width: 1024px) { .yd-grid--3, .yd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .yd-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

.yd-card { min-width: 0; }
.yd-card__link { display: block; color: var(--text); }
.yd-card__link:hover { color: var(--text); }
.yd-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); margin-bottom: 16px; }
.yd-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .3s; }
.yd-card__link:hover .yd-card__media img { transform: scale(1.03); }
/* Text card (no photo, or a chart PNG): 青海波 on paper, the place set vertically. */
.yd-card__media--text {
    display: grid; place-items: center; border: 1px solid var(--line);
    background-color: var(--paper);
    background-image:
        radial-gradient(circle at 100% 150%, var(--paper) 24%, #e9dfcd 25%, #e9dfcd 28%, var(--paper) 29%, var(--paper) 36%, #e9dfcd 37%, #e9dfcd 40%, transparent 41%),
        radial-gradient(circle at 0 150%, var(--paper) 24%, #e9dfcd 25%, #e9dfcd 28%, var(--paper) 29%, var(--paper) 36%, #e9dfcd 37%, #e9dfcd 40%, transparent 41%),
        radial-gradient(circle at 50% 100%, #e9dfcd 10%, var(--paper) 11%, var(--paper) 23%, #e9dfcd 24%, #e9dfcd 27%, var(--paper) 28%, var(--paper) 35%, #e9dfcd 36%, #e9dfcd 39%, transparent 40%);
    background-size: 56px 28px;
}
.yd-card__vert {
    writing-mode: vertical-rl; max-height: 86%; overflow: hidden;
    font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: 0.3em;
    color: var(--yd-accent); background: var(--paper); padding: 14px 8px; border: 1px solid var(--line);
}
.yd-card__kicker { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 12.5px; letter-spacing: 0.12em; line-height: 1.7; margin-bottom: 6px; }
.yd-card__cat { color: var(--yd-accent); font-family: var(--font-display); font-weight: 500; }
.yd-card__place { color: var(--text-mid); }
.yd-card__place::before { content: '・'; margin-right: 2px; color: var(--text-low); }
.yd-card__cat + .yd-card__place::before { content: ''; margin: 0; }
.yd-card__cat + .yd-card__place { padding-left: 12px; border-left: 1px solid var(--line); }
.yd-card__title { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.65; letter-spacing: 0.04em; }
.yd-card__link:hover .yd-card__title { color: var(--yd-accent); }
.yd-card__dek {
    margin-top: 10px; font-size: 13.5px; line-height: 1.85; color: var(--text-mid);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.yd-card__date { margin-top: 10px; font-size: 12px; letter-spacing: 0.1em; color: var(--text-low); }

/* Feature card: photo with the text on a paper panel. */
.yd-card--lg .yd-card__media { aspect-ratio: 3 / 2; margin-bottom: 0; }
.yd-card--lg .yd-card__body { position: relative; background: var(--bg); margin: -56px 28px 0 0; padding: 22px 26px 0 0; }
.yd-card--lg .yd-card__title { font-size: 25px; line-height: 1.6; }
.yd-card--lg .yd-card__dek { -webkit-line-clamp: 4; font-size: 14.5px; }

/* List rows */
.yd-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .yd-rows { grid-template-columns: minmax(0, 1fr); } }
.yd-card--row { border-bottom: 1px solid var(--line); }
.yd-card--row .yd-card__link { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; padding: 20px 0; align-items: start; }
.yd-card--row .yd-card__media { margin: 0; }
.yd-card--row .yd-card__vert { font-size: 15px; padding: 8px 4px; letter-spacing: 0.2em; }
.yd-card--row .yd-card__title { font-size: 16.5px; }
.yd-card--row .yd-card__date { margin-top: 6px; }
@media (max-width: 640px) {
    .yd-card--row .yd-card__link { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
    .yd-card--lg .yd-card__body { margin: -36px 16px 0 0; padding: 16px 18px 0 0; }
    .yd-card--lg .yd-card__title { font-size: 21px; }
}

/* ---------- Home ---------- */
.yd-hero { padding: 48px 0 64px; }
.yd-hero__grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; align-items: start; }
.yd-hero__words { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 22px; padding-top: 6px; }
.yd-hero__vert {
    writing-mode: vertical-rl; font-family: var(--font-display); font-weight: 500;
    font-size: 30px; letter-spacing: 0.34em; line-height: 1.5; color: var(--text);
    border-left: 1px solid var(--line); padding-left: 18px;
}
.yd-hero__lead { writing-mode: vertical-rl; font-size: 13.5px; letter-spacing: 0.22em; line-height: 2.1; color: var(--text-mid); max-height: 420px; }
.yd-hero__feature { display: block; color: var(--text); }
.yd-hero__feature:hover { color: var(--text); }
.yd-hero__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.yd-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.yd-hero__cap { position: relative; background: var(--bg); margin: -88px 0 0 48px; padding: 28px 32px 0 36px; max-width: 640px; }
.yd-hero__kicker { font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: 0.24em; color: var(--yd-accent); }
.yd-hero__title { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.6; letter-spacing: 0.06em; margin: 10px 0 12px; }
.yd-hero__feature:hover .yd-hero__title { color: var(--yd-accent); }
.yd-hero__date { font-size: 12.5px; letter-spacing: 0.14em; color: var(--text-low); }
@media (max-width: 900px) {
    .yd-hero { padding: 24px 0 40px; }
    .yd-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .yd-hero__words { display: block; padding: 0; }
    .yd-hero__vert { writing-mode: horizontal-tb; border: 0; padding: 0; font-size: 22px; letter-spacing: 0.2em; text-align: center; }
    .yd-hero__lead { writing-mode: horizontal-tb; max-height: none; text-align: center; font-size: 13px; letter-spacing: 0.08em; margin-top: 4px; }
    .yd-hero__lead br { display: none; }
    .yd-hero__img { aspect-ratio: 4 / 3; }
    .yd-hero__cap { margin: -40px 16px 0 0; padding: 18px 18px 0 0; }
    .yd-hero__title { font-size: 22px; }
}

.yd-sec { padding: 72px 0; border-top: 1px solid var(--line); }
.yd-sec--izumi { background: var(--bg-alt); border-top: 0; }
.yd-sec--flat { border-top: 0; padding: 24px 0 0; }
.yd-sec__head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: center; margin-bottom: 36px; }
.yd-sec__no {
    display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--yd-accent); border-radius: 50%;
    font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--yd-accent); line-height: 1;
}
.yd-sec__title { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: 0.14em; line-height: 1.5; }
.yd-sec__title--sm { font-size: 21px; margin-bottom: 20px; text-align: center; }
.yd-sec__lead { grid-column: 2; font-size: 14px; color: var(--text-mid); margin-top: 4px; }
.yd-sec__more { margin-top: 36px; text-align: right; font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: 0.1em; }
@media (max-width: 640px) {
    .yd-sec { padding: 52px 0; }
    .yd-sec__head { column-gap: 12px; margin-bottom: 26px; }
    .yd-sec__no { width: 34px; height: 34px; font-size: 15px; }
    .yd-sec__title { font-size: 22px; letter-spacing: 0.08em; }
    .yd-sec__lead { grid-column: 1 / -1; margin-top: 10px; }
}

/* 温泉地 index */
.yd-oi--compact .yd-oi__region { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 8px 24px; padding: 22px 0; border-top: 1px dotted #cbbfa9; }
.yd-oi--compact .yd-oi__region:last-child { border-bottom: 1px dotted #cbbfa9; }
.yd-oi--compact .yd-oi__rname { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: 0.2em; line-height: 1.6; }
.yd-oi__prefs { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 22px; margin-bottom: 12px; }
.yd-oi__prefs a, .yd-oi__prefs span { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--text); }
.yd-oi__prefs a:hover { color: var(--yd-accent); }
.yd-oi__n { margin-left: 5px; font-family: var(--font-body); font-size: 11.5px; font-weight: 400; color: var(--text-low); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .yd-oi--compact .yd-oi__region { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
    .yd-oi--compact .yd-oi__rname { font-size: 17px; }
    .yd-oi__prefs { gap: 2px 16px; }
}

.yd-oi--full .yd-oi__region { margin-top: 52px; }
.yd-oi--full .yd-oi__rname {
    display: flex; align-items: center; gap: 18px; margin-bottom: 20px; scroll-margin-top: 72px;
    font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: 0.22em;
}
.yd-oi--full .yd-oi__rname::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.yd-oi__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.yd-oi__pref { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--yd-ink); padding: 18px 20px 20px; }
.yd-oi__pname { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.yd-oi__pname a, .yd-oi__pname > span:first-child { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: 0.12em; color: var(--text); }
.yd-oi__pname a:hover { color: var(--yd-accent); }
.yd-oi__other { margin-top: 12px; font-size: 13px; line-height: 1.9; color: var(--text-mid); }
.yd-oi__other a { color: var(--text-mid); margin-right: 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.yd-oi__other a:hover { color: var(--yd-accent); }
.yd-oi__otherh { display: block; font-size: 11.5px; letter-spacing: 0.2em; color: var(--text-low); }

/* Feature (名旅館) */
.yd-feature { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px 44px; }
.yd-feature .yd-card--lg { grid-row: span 3; }
.yd-feature .yd-card:not(.yd-card--lg) .yd-card__link { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; }
.yd-feature .yd-card:not(.yd-card--lg) .yd-card__media { margin: 0; }
.yd-feature .yd-card:not(.yd-card--lg) .yd-card__dek { display: none; }
.yd-feature .yd-card:not(.yd-card--lg) + .yd-card { border-top: 1px solid var(--line); padding-top: 24px; }
.yd-feature .yd-card:not(.yd-card--lg) .yd-card__title { font-size: 16.5px; }
@media (max-width: 900px) {
    .yd-feature { grid-template-columns: minmax(0, 1fr); }
    .yd-feature .yd-card--lg { grid-row: auto; }
    .yd-feature .yd-card:not(.yd-card--lg) .yd-card__link { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
}

/* Season row on phones: compact rows */
@media (max-width: 640px) {
    .yd-grid--4 { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
    .yd-grid--4 .yd-card { border-bottom: 1px solid var(--line); }
    .yd-grid--4 .yd-card__link { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
    .yd-grid--4 .yd-card__media { margin: 0; }
    .yd-grid--4 .yd-card__dek { display: none; }
    .yd-grid--4 .yd-card__title { font-size: 16px; }
    .yd-grid--4 .yd-card__vert { font-size: 15px; padding: 8px 4px; }
}

/* 泉質ガイド */
.yd-izumi { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; counter-reset: none; }
.yd-izumi__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; padding: 20px 0; border-top: 1px solid #d3c7b2; }
.yd-izumi__no { grid-row: span 3; font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--yd-accent); letter-spacing: 0.08em; padding-top: 4px; }
.yd-izumi__name { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: 0.16em; line-height: 1.5; }
.yd-izumi__desc { font-size: 14px; color: var(--text-mid); margin: 4px 0 6px; }
.yd-izumi__search { justify-self: start; font-size: 13px; color: var(--yd-accent); border-bottom: 1px solid currentColor; line-height: 1.6; }
.yd-izumi__search::before { content: ''; display: inline-block; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.yd-izumi__note { margin-top: 28px; font-size: 12.5px; color: var(--text-mid); }
@media (max-width: 760px) { .yd-izumi { grid-template-columns: minmax(0, 1fr); } }

/* 宿のかたち */
.yd-katachi { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.yd-katachi > li { border-right: 1px solid var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.yd-katachi__item { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 12px 16px; height: 100%; padding: 26px 20px 20px; color: var(--text); background: var(--bg); transition: background .2s; }
.yd-katachi__item:hover { background: var(--paper); color: var(--text); }
.yd-katachi__name { grid-row: span 2; writing-mode: vertical-rl; font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: 0.3em; line-height: 1.2; }
.yd-katachi__item:hover .yd-katachi__name { color: var(--yd-accent); }
.yd-katachi__desc { font-size: 13px; line-height: 1.85; color: var(--text-mid); }
.yd-katachi__n { align-self: end; font-size: 12px; letter-spacing: 0.12em; color: var(--yd-accent); }
@media (max-width: 960px) {
    .yd-katachi { grid-template-columns: minmax(0, 1fr); border-left: 0; }
    .yd-katachi > li { border: 0; border-bottom: 1px solid var(--line); }
    .yd-katachi > li:first-child { border-top: 1px solid var(--line); }
    .yd-katachi__item { grid-template-columns: 6.5em minmax(0, 1fr) auto; grid-template-rows: auto; align-items: baseline; padding: 16px 4px; gap: 4px 14px; }
    .yd-katachi__name { grid-row: auto; writing-mode: horizontal-tb; font-size: 19px; letter-spacing: 0.14em; }
}
@media (max-width: 480px) {
    .yd-katachi__item { grid-template-columns: 5.5em minmax(0, 1fr); }
    .yd-katachi__n { grid-column: 2; }
}

/* ---------- Hub extras ---------- */
.yd-calendar {
    display: grid; gap: 2px; max-width: 680px; margin: 0 auto 40px; padding: 18px 24px;
    background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--yd-accent); color: var(--text);
}
.yd-calendar:hover { color: var(--text); border-color: var(--yd-accent); }
.yd-calendar__label { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.24em; color: var(--yd-accent); }
.yd-calendar__title { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.6; }
.yd-calendar__sub { font-size: 12.5px; color: var(--text-mid); }
.yd-hubnav { max-width: 900px; margin: 0 auto 48px; text-align: center; }
.yd-hubnav .yd-chips { justify-content: center; }
.yd-hubnav__h { font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: 0.2em; color: var(--text-mid); margin-bottom: 12px; }
.yd-hubnav__h--sub { margin-top: 22px; margin-bottom: 4px; font-size: 13px; }
.yd-grid--archive .yd-card--lg { grid-column: 1 / -1; }
.yd-grid--archive .yd-card--lg .yd-card__link { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.yd-grid--archive .yd-card--lg .yd-card__body { margin: 0; padding: 0; background: none; }
@media (max-width: 760px) {
    .yd-grid--archive .yd-card--lg .yd-card__link { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .yd-grid--archive .yd-card--lg .yd-card__body { margin: -36px 16px 0 0; padding: 16px 18px 0 0; background: var(--bg); }
}

/* Search page */
.yd-searchbox { display: flex; gap: 6px; max-width: 480px; margin: 22px auto 0; }
.yd-izumi-note { text-align: left; max-width: 600px; margin: 22px auto 0; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: var(--text-mid); }
.yd-izumi-note__h { font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: 0.14em; color: var(--yd-accent); margin-bottom: 4px; }
.yd-izumi-note__more { margin-top: 6px; font-size: 13px; }
.yd-izumi-note__more a { color: var(--yd-accent); border-bottom: 1px solid currentColor; }

/* ---------- Footer ---------- */
.yd-footer { background: var(--yd-ink); color: #e9e2d4; margin-top: 0; padding: 64px 0 28px; font-size: 13.5px; }
.yd-main + .yd-footer { margin-top: 0; }
.yd-footer a { color: #e9e2d4; }
.yd-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.yd-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.yd-footer__name { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: 0.16em; color: var(--bg); }
.yd-footer__tag { margin-top: 12px; color: #cfc4b1; line-height: 2; }
.yd-footer__h { font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: 0.24em; color: var(--bg); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #4a423b; }
.yd-footer ul { list-style: none; }
.yd-footer li { padding: 3px 0; }
.yd-footer__onsen { columns: 2; column-gap: 16px; }
.yd-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #4a423b; font-size: 12.5px; color: #cfc4b1; letter-spacing: 0.06em; }
.yd-footer__bottom a { color: #e9e2d4; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .yd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .yd-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .yd-footer { padding-top: 48px; } .yd-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- 404 ---------- */
.yd-404 .yd-oi { max-width: 960px; margin: 0 auto; }
