/*
Theme Name: 余白の旅 (Yohaku no Tabi)
Theme URI: https://yohakunotabi.com
Author: K.V.T
Author URI: https://yohakunotabi.com
Description: 「余白の旅」専用カスタムテーマ。Cafe Borcelle風のマガジンデザイン、和欧混植、レスポンシブ対応（390×844最適化）。
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yohaku
Tags: blog, magazine, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, editor-style
*/

/* =============================================================================
   余白の旅 — カスタムブロックテーマ
   ============================================================================= */

/* ---------- フォント ---------- */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;500;700&family=Playfair+Display:ital,wght@0,500;0,600;1,400;1,500;1,600&family=Zen+Kaku+Gothic+Antique:wght@300;400;500&display=swap');

/* ---------- トークン（theme.jsonと同期） ---------- */
:root{
  --yh-bg:#FAF6F0;
  --yh-bg-alt:#F4ECDF;
  --yh-paper:#FDFBF7;
  --yh-ink:#3B2E24;
  --yh-ink-soft:#6B5D52;
  --yh-line:#D9CCB8;
  --yh-accent:#8B5A2B;
  --yh-accent-deep:#6B4520;
  --yh-gold:#E8C877;
  --yh-teal:#1e3b3b;
  --yh-cream:#e8dccb;
  --yh-highlight:rgba(245,212,120,.55);
  --yh-f-jp-serif:"Shippori Mincho","Noto Serif JP","YuMincho",serif;
  --yh-f-jp-sans:"Zen Kaku Gothic Antique","Noto Sans JP",system-ui,sans-serif;
  --yh-f-latin:"Playfair Display","Cormorant Garamond",serif;
  --yh-f-logo:"Playfair Display","Shippori Mincho",serif;
  --yh-container:1200px;
  --yh-content:720px;
}

/* ---------- リセット・ベース ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;padding:0;
  background:var(--yh-bg);
  color:var(--yh-ink);
  font-family:var(--yh-f-jp-serif);
  font-size:16px;
  line-height:1.9;
  letter-spacing:.02em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--yh-accent);text-decoration:none;transition:color .2s}
a:hover{color:var(--yh-accent-deep)}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;padding:0}

/* 日本語の自然な折り返し */
p,li,dd,blockquote{
  line-break:strict;
  overflow-wrap:break-word;
  word-break:normal;
}

/* 見出し */
h1,h2,h3,h4,h5,h6{
  font-family:var(--yh-f-jp-serif);
  font-weight:500;
  letter-spacing:.04em;
  line-height:1.55;
  margin:0;
  color:var(--yh-ink);
}

/* 斜体はラテンフォントで */
em,i,cite{font-family:var(--yh-f-latin);font-style:italic}

/* WPコアの余白をリセット */
p{margin:0 0 1.2em}
ul,ol{margin:0 0 1.2em;padding-left:1.4em}

/* ============================================================================
   ヘッダー
   ============================================================================ */
.yh-header{
  background:var(--yh-teal);
  color:var(--yh-cream);
  padding:18px 0;
  border-bottom:1px solid rgba(232,200,119,.18);
}
.yh-header-inner{
  max-width:var(--yh-container);
  margin:0 auto;
  padding:0 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.yh-site-title{
  font-family:var(--yh-f-logo);
  font-size:clamp(1.1rem,1.6vw,1.4rem);
  font-weight:500;
  letter-spacing:.06em;
  color:#f0dbb0;
  margin:0;
  line-height:1.3;
}
.yh-site-title a{color:inherit;text-decoration:none}
.yh-site-title a:hover{color:var(--yh-gold)}

.yh-nav{display:flex;align-items:center;gap:24px}
.yh-nav a{
  font-family:var(--yh-f-jp-sans);
  font-size:.82rem;
  letter-spacing:.14em;
  color:var(--yh-cream);
  border:none;
}
.yh-nav a:hover{color:var(--yh-gold)}

.yh-menu-toggle{
  display:none;
  width:40px;height:40px;
  align-items:center;justify-content:center;
  color:var(--yh-cream);
}
.yh-menu-toggle svg{width:22px;height:22px}

@media (max-width:768px){
  .yh-header-inner{padding:0 16px}
  .yh-menu-toggle{display:inline-flex}
  .yh-nav{
    display:none;
    position:absolute;top:100%;left:0;right:0;
    background:var(--yh-teal);
    padding:18px 24px;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
    border-top:1px solid rgba(232,200,119,.18);
    z-index:100;
  }
  .yh-nav.is-open{display:flex}
}

/* ============================================================================
   フッター
   ============================================================================ */
.yh-footer{
  background:var(--yh-teal);
  color:var(--yh-cream);
  padding:clamp(3rem,6vw,5rem) 24px 2rem;
  margin-top:5rem;
}
.yh-footer-inner{
  max-width:var(--yh-container);
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  grid-template-areas:
    "brand cats pages note"
    "copy  copy copy  copy";
  gap: 2.2rem 2.4rem;
  align-items:start;
}
.yh-footer-brand{ grid-area: brand; }
.yh-footer-col-cats{ grid-area: cats; }
.yh-footer-col-pages{ grid-area: pages; }
.yh-footer-note{ grid-area: note; }
.yh-footer-copyright{ grid-area: copy; }

/* Brand block */
.yh-footer-eyebrow{
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.72rem;
  letter-spacing:.24em;
  color:var(--yh-gold);
  margin:0 0 .6rem;
}
.yh-footer-title{
  font-family:var(--yh-f-jp-mincho);
  font-size:1.35rem;
  letter-spacing:.06em;
  color:var(--yh-cream);
  margin:0 0 .4rem;
  line-height:1.4;
}
.yh-footer-tagline{
  font-family:var(--yh-f-jp-sans);
  font-size:.82rem;
  line-height:1.75;
  letter-spacing:.05em;
  color:rgba(232,220,203,.75);
  margin:0;
}

/* Column heads */
.yh-footer-col-head{
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.7rem;
  letter-spacing:.26em;
  text-transform:uppercase;
  color:var(--yh-gold);
  margin:0 0 .9rem;
  border-bottom:1px solid rgba(200,168,99,.3);
  padding-bottom:.45rem;
}
.yh-footer-col ul,
.yh-footer-nav{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:.55rem;
}
.yh-footer-col a,
.yh-footer-nav a{
  font-family:var(--yh-f-jp-sans);
  font-size:.82rem;
  letter-spacing:.08em;
  color:var(--yh-cream);
  text-decoration:none;
  transition:color .18s ease;
}
.yh-footer-col a:hover,
.yh-footer-nav a:hover{
  color:var(--yh-gold);
}
/* Note block */
.yh-footer-note p{
  font-family:var(--yh-f-jp-sans);
  font-size:.8rem;
  line-height:1.85;
  letter-spacing:.04em;
  color:rgba(232,220,203,.78);
  margin:0 0 .7rem;
}
.yh-footer-note-link{
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.78rem;
  letter-spacing:.1em;
  color:var(--yh-gold);
  text-decoration:none;
  border-bottom:1px solid rgba(200,168,99,.4);
  padding-bottom:2px;
}
.yh-footer-note-link:hover{
  color:var(--yh-cream);
  border-color:var(--yh-cream);
}

/* Copyright row */
.yh-footer-copyright{
  text-align:center;
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.78rem;
  letter-spacing:.1em;
  color:rgba(232,220,203,.6);
  padding-top:1.8rem;
  margin-top:.6rem;
  border-top:1px solid rgba(232,220,203,.15);
}

/* Responsive: tablet */
@media (max-width:900px){
  .yh-footer-inner{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "cats  pages"
      "note  note"
      "copy  copy";
    gap:2rem;
  }
}
/* Responsive: mobile */
@media (max-width:560px){
  .yh-footer{
    padding:3rem 20px 1.5rem;
  }
  .yh-footer-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "cats"
      "pages"
      "note"
      "copy";
    gap:1.8rem;
    text-align:center;
  }
  .yh-footer-col-head{
    display:inline-block;
    border-bottom:1px solid rgba(200,168,99,.3);
    padding-bottom:.35rem;
    margin-bottom:.7rem;
  }
  .yh-footer-col ul,
  .yh-footer-nav{
    align-items:center;
  }
}

/* ============================================================================
   コンテナ
   ============================================================================ */
.yh-container{
  max-width:var(--yh-container);
  margin:0 auto;
  padding:0 24px;
}
.yh-content-container{
  max-width:var(--yh-content);
  margin:0 auto;
  padding:0 24px;
}
@media (max-width:520px){
  .yh-container,.yh-content-container{padding:0 16px}
}

/* ============================================================================
   HOME — マガジン目次
   ============================================================================ */
.yh-home{
  padding:clamp(3rem,6vw,5rem) 0;
  counter-reset:yh-toc 0;
}
.yh-home-eyebrow{
  text-align:center;
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.85rem;
  letter-spacing:.4em;
  color:var(--yh-ink-soft);
  margin-bottom:1.2rem;
}
.yh-home-title{
  text-align:center;
  font-family:var(--yh-f-jp-serif);
  font-weight:500;
  font-size:clamp(1.6rem,3vw,2.4rem);
  letter-spacing:.1em;
  line-height:1.5;
  margin:0 auto 3rem;
  width:fit-content;
  padding:.25em .4em;
  background-image:linear-gradient(transparent 62%,var(--yh-highlight) 62%,var(--yh-highlight) 92%,transparent 92%);
}

.yh-home-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(2.4rem,4vw,3.8rem) clamp(1.4rem,2.5vw,2.6rem);
  max-width:var(--yh-container);
  margin:0 auto;
}
@media (max-width:900px){
  .yh-home-grid{grid-template-columns:repeat(2,1fr);gap:2.4rem 1.6rem}
}
@media (max-width:560px){
  .yh-home-grid{grid-template-columns:1fr;gap:2.6rem}
}

.yh-card{
  counter-increment:yh-toc 1;
  display:flex;
  flex-direction:column;
  position:relative;
}
.yh-card-number{
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-weight:500;
  font-size:1.7rem;
  color:var(--yh-accent);
  text-align:center;
  letter-spacing:.04em;
  line-height:1;
  margin-bottom:.9rem;
}
.yh-card-number::before{content:counter(yh-toc,decimal-leading-zero)}
.yh-card-thumb{
  aspect-ratio:4/3;
  overflow:hidden;
  margin-bottom:1rem;
  background:var(--yh-paper);
  border-radius:2px;
}
.yh-card-thumb img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .6s;
}
.yh-card:hover .yh-card-thumb img{transform:scale(1.04)}
.yh-card-category{
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.72rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--yh-accent);
  margin-bottom:.4rem;
}
.yh-card-title{
  font-family:var(--yh-f-jp-serif);
  font-size:1.05rem;
  font-weight:500;
  line-height:1.65;
  letter-spacing:.03em;
  margin:0 0 .6rem;
}
.yh-card-title a{color:var(--yh-ink);border:none}
.yh-card-title a:hover{color:var(--yh-accent)}
.yh-card-excerpt{
  font-size:.85rem;
  line-height:1.85;
  color:var(--yh-ink-soft);
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0 0 1rem;
}
.yh-card-readmore{
  margin-top:auto;
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.78rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--yh-accent);
  border-bottom:1px solid var(--yh-accent);
  padding-bottom:2px;
  align-self:flex-start;
}
.yh-card-readmore:hover{color:var(--yh-accent-deep);border-bottom-color:var(--yh-accent-deep)}
.yh-card-readmore::after{content:" ›"}

.yh-home-end{
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.8rem;
  letter-spacing:.4em;
  color:var(--yh-ink-soft);
  text-align:center;
  padding-top:2.5rem;
  margin:4rem auto 0;
  max-width:var(--yh-container);
  border-top:1px solid var(--yh-line);
}

/* ============================================================================
   SINGLE — 記事ページ
   ============================================================================ */
.yh-single{
  padding:clamp(2rem,4vw,3rem) 0 3rem;
}
.yh-single-thumb{
  max-width:1100px;
  margin:0 auto 1.6rem;
  overflow:hidden;
}
.yh-single-thumb img{
  width:100%;height:auto;
  max-height:54vh;
  object-fit:cover;
}
@media (max-width:768px){
  .yh-single-thumb img{max-height:40vh}
}
@media (max-width:420px){
  .yh-single-thumb img{max-height:32vh}
}

.yh-single-header{
  max-width:var(--yh-content);
  margin:1.4rem auto 1.2rem;
  padding:0 24px;
  text-align:center;
}
.yh-single-category{
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.72rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--yh-accent);
  margin-bottom:.8rem;
}
.yh-single-category a{color:inherit;border:none}
.yh-single-eyebrow{
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.78rem;
  letter-spacing:.3em;
  color:var(--yh-accent);
  margin-bottom:.6rem;
}
.yh-single-eyebrow::before{content:"── "}
.yh-single-eyebrow::after{content:" ──"}
.yh-single-title{
  font-family:var(--yh-f-jp-serif);
  font-weight:500;
  font-size:clamp(1.4rem,2.6vw,2rem);
  line-height:1.55;
  letter-spacing:.03em;
  color:var(--yh-ink);
  margin:0 0 1rem;
}
.yh-single-meta{
  font-family:var(--yh-f-jp-sans);
  font-size:.74rem;
  letter-spacing:.14em;
  color:var(--yh-ink-soft);
}
.yh-single-meta a{color:inherit;border:none}

.yh-single-content{
  max-width:var(--yh-content);
  margin:0 auto;
  padding:0 24px;
}
.yh-single-content p{
  font-size:16px;
  line-height:2;
  letter-spacing:.03em;
  color:var(--yh-ink);
  margin:0 0 1.6em;
}
.yh-single-content > p:first-of-type::first-letter{
  font-family:var(--yh-f-latin);
  font-weight:500;
  float:left;
  font-size:3.8em;
  line-height:1;
  padding:.08em .12em 0 0;
  color:var(--yh-accent-deep);
}
.yh-single-content h2{
  font-family:var(--yh-f-jp-serif);
  font-weight:700;
  font-size:1.3rem;
  line-height:1.6;
  margin:2.6em 0 1em;
  padding:0 6px;
  display:inline-block;
  background-image:linear-gradient(transparent 62%,var(--yh-highlight) 62%,var(--yh-highlight) 92%,transparent 92%);
}
.yh-single-content h2::before{
  content:"Chapter";
  display:block;
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.9rem;
  color:var(--yh-accent);
  font-weight:500;
  letter-spacing:.14em;
  margin-bottom:.3em;
}
.yh-single-content h3{
  font-family:var(--yh-f-jp-serif);
  font-weight:500;
  font-size:1.08rem;
  margin:2em 0 .8em;
  padding-left:12px;
  border-left:3px solid var(--yh-accent);
  line-height:1.65;
}
.yh-single-content hr{
  border:none;
  height:6px;
  margin:3em auto;
  max-width:120px;
  position:relative;
}
.yh-single-content hr::before,.yh-single-content hr::after{
  content:"";position:absolute;left:0;right:0;height:1px;background:var(--yh-ink-soft);
}
.yh-single-content hr::before{top:1px}
.yh-single-content hr::after{bottom:1px}
.yh-single-content blockquote{
  background:var(--yh-paper);
  border-left:4px solid var(--yh-accent);
  padding:16px 22px;
  margin:1.8em 0;
  color:var(--yh-ink-soft);
  font-size:.95em;
  border-radius:0 2px 2px 0;
}
.yh-single-content figure,.yh-single-content .wp-block-image{margin:2em auto}
.yh-single-content img{border-radius:2px;box-shadow:0 10px 24px -18px rgba(59,46,36,.35)}
.yh-single-content figcaption{
  font-family:var(--yh-f-jp-sans);
  font-size:.78rem;
  color:var(--yh-ink-soft);
  text-align:center;
  margin-top:.6em;
  letter-spacing:.06em;
}
.yh-single-content ul li::marker,.yh-single-content ol li::marker{color:var(--yh-accent)}

/* Mobile readability */
@media (max-width:768px){
  .yh-single-content{padding:0 20px}
  .yh-single-content p{font-size:15.5px;line-height:1.95}
  .yh-single-content h2{font-size:1.15rem;margin:2.2em 0 .8em}
  .yh-single-content h3{font-size:1rem}
  .yh-single-content > p:first-of-type::first-letter{font-size:3em}
  .yh-single-header{padding:0 20px;margin:1rem auto .8rem}
}
@media (max-width:520px){
  .yh-single-content{padding:0 18px}
  .yh-single-content p{font-size:15px;margin-bottom:1.4em}
  .yh-single-title{font-size:1.3rem;line-height:1.55}
  .yh-single-eyebrow{font-size:.72rem;letter-spacing:.25em}
  .yh-single-category{font-size:.68rem;letter-spacing:.22em}
}
@media (max-width:420px){
  .yh-single-content{padding:0 16px}
  .yh-single-content > p:first-of-type::first-letter{font-size:2.6em}
  .yh-single-title{font-size:1.2rem}
}

/* ============================================================================
   記事末尾ブロック (CTA / 関連記事 / サービス)
   ============================================================================ */
.yh-post-footer{
  max-width:var(--yh-content);
  margin:3rem auto 0;
  padding:0 24px;
}
@media (max-width:768px){.yh-post-footer{padding:0 20px}}
@media (max-width:520px){.yh-post-footer{padding:0 18px}}

.yh-related{margin-bottom:2rem}
.yh-related-eyebrow{
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.72rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--yh-accent);
  margin-bottom:.5rem;
}
.yh-related-heading{
  font-family:var(--yh-f-jp-serif);
  font-size:1.15rem;
  font-weight:500;
  margin-bottom:1.2rem;
}
.yh-related-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
}
@media (max-width:768px){.yh-related-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.yh-related-grid{grid-template-columns:1fr;gap:1rem}}

.yh-related-card{
  background:var(--yh-paper);
  border-radius:4px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  transition:transform .3s,box-shadow .3s;
  text-decoration:none;
  color:var(--yh-ink);
  display:block;
}
.yh-related-card:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(0,0,0,.12);
  color:var(--yh-accent);
}
.yh-related-card-thumb{
  aspect-ratio:16/10;
  background:var(--yh-bg-alt) center/cover no-repeat;
}
.yh-related-card-title{
  padding:12px 14px;
  font-family:var(--yh-f-jp-serif);
  font-size:.88rem;
  line-height:1.6;
  font-weight:500;
}

.yh-cta-booking{
  background:linear-gradient(135deg,#3c3228 0%,#5a4a3a 100%);
  border-radius:10px;
  padding:32px 24px;
  text-align:center;
  color:#fff;
  margin:2.5rem 0;
}
.yh-cta-booking p.yh-cta-booking-eyebrow,
p.yh-cta-booking-eyebrow{
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.72rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:rgba(255,255,255,.75);
  margin:0 0 .6rem;
  line-height:1.4;
}
.yh-cta-booking h3.yh-cta-booking-heading,
h3.yh-cta-booking-heading{
  font-family:var(--yh-f-jp-serif);
  font-size:1.15rem;
  font-weight:600;
  color:#fff;
  margin:0 0 1.2rem;
  letter-spacing:.04em;
  line-height:1.5;
}
.yh-cta-booking-button{
  display:inline-block;
  padding:14px 36px;
  background:#fff;
  color:var(--yh-ink);
  font-family:var(--yh-f-jp-serif);
  font-weight:700;
  font-size:1rem;
  letter-spacing:.06em;
  border-radius:50px;
  box-shadow:0 4px 16px rgba(0,0,0,.2);
  transition:transform .3s,box-shadow .3s;
  text-decoration:none;
  white-space:nowrap;
}
.yh-cta-booking-button:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 22px rgba(0,0,0,.3);
  color:var(--yh-accent-deep);
}
.yh-cta-booking p.yh-cta-booking-note,
p.yh-cta-booking-note{
  margin:.8rem 0 0;
  font-size:.72rem;
  color:rgba(255,255,255,.65);
  line-height:1.5;
}
@media (max-width:520px){
  .yh-cta-booking{padding:26px 18px}
  .yh-cta-booking-button{padding:12px 24px;font-size:.92rem;letter-spacing:.04em}
}

.yh-service-banner{
  margin:2rem 0 0;
  padding:18px 22px;
  border-left:3px solid var(--yh-line);
  background:var(--yh-paper);
  font-size:.82rem;
  line-height:1.8;
  color:var(--yh-ink-soft);
}
.yh-service-banner strong{
  display:inline-block;
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.72rem;
  letter-spacing:.16em;
  color:var(--yh-accent);
  margin-right:10px;
}
.yh-service-banner a{
  color:var(--yh-ink);
  text-decoration:underline;
  text-decoration-color:var(--yh-line);
  text-underline-offset:3px;
  font-weight:500;
}

/* ============================================================================
   ページ送り
   ============================================================================ */
.yh-pagination,
ul.page-numbers{
  display:flex;flex-wrap:wrap;
  justify-content:center;
  gap:.5rem;
  margin:3rem auto 0;
  max-width:var(--yh-container);
  padding:0 24px;
  direction:ltr;
  list-style:none;
}
ul.page-numbers li{margin:0;padding:0;list-style:none}
.yh-pagination a,.yh-pagination span,
ul.page-numbers a,ul.page-numbers span{
  display:inline-flex;
  align-items:center;justify-content:center;
  min-width:42px;height:42px;
  padding:0 .9rem;
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.95rem;
  color:var(--yh-ink);
  border:1px solid rgba(139,90,43,.35);
  border-radius:999px;
  background:transparent;
  text-decoration:none;
  transition:all .2s;
}
.yh-pagination a:hover,
ul.page-numbers a:hover{background:var(--yh-accent);color:#fff;border-color:var(--yh-accent)}
.yh-pagination .current,
ul.page-numbers .current{background:var(--yh-teal);color:var(--yh-gold);border-color:var(--yh-teal)}
.yh-pagination .dots,
ul.page-numbers .dots{border:none;background:none;min-width:auto}
.yh-pagination .prev,.yh-pagination .next,
ul.page-numbers .prev,ul.page-numbers .next{
  font-family:var(--yh-f-jp-serif);
  font-style:normal;
  letter-spacing:.1em;
}
@media (max-width:520px){
  .yh-pagination,ul.page-numbers{gap:.35rem}
  .yh-pagination a,.yh-pagination span,
  ul.page-numbers a,ul.page-numbers span{min-width:36px;height:36px;font-size:.85rem;padding:0 .6rem}
}

/* Single post prev/next navigation */
.yh-post-nav{
  display:flex;
  justify-content:space-between;
  align-items:stretch;
  gap:16px;
  max-width:var(--yh-content);
  margin:3rem auto 0;
  padding:0 24px;
}
.yh-post-nav-item{
  flex:1;
  padding:16px 20px;
  background:var(--yh-paper);
  border:1px solid var(--yh-line);
  border-radius:4px;
  text-decoration:none;
  color:var(--yh-ink);
  font-size:.88rem;
  line-height:1.5;
  transition:all .2s;
}
.yh-post-nav-item:hover{background:var(--yh-bg-alt);color:var(--yh-accent)}
.yh-post-nav-item .label{
  display:block;
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:.72rem;
  letter-spacing:.18em;
  color:var(--yh-accent);
  margin-bottom:.4rem;
}
.yh-post-nav-item.next{text-align:right}
@media (max-width:520px){
  .yh-post-nav{flex-direction:column;gap:10px;padding:0 18px}
  .yh-post-nav-item.next{text-align:left}
}

/* ============================================================================
   表紙オーバーレイ (ホーム1ページ目・サイト訪問時のエントランス演出)
   ============================================================================ */
body.yh-has-cover{overflow-x:hidden}
body.yh-has-cover::before{
  content:"";
  position:fixed;inset:0;
  z-index:9998;
  background:
    radial-gradient(ellipse at 72% 22%,rgba(217,142,72,.22),transparent 58%),
    radial-gradient(ellipse at 20% 80%,rgba(60,34,18,.35),transparent 60%),
    linear-gradient(168deg,#0e0907,#2b1a10 45%,#3e2817);
  transform-origin:0 50%;
  backface-visibility:hidden;
  animation:yhCoverFlip 1.8s 1.2s cubic-bezier(.72,.06,.22,1) forwards;
  pointer-events:none;
}
body.yh-has-cover::after{
  content:"";
  position:fixed;inset:0;
  z-index:9999;
  background-image:var(--yh-cover-image);
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
  transform-origin:0 50%;
  backface-visibility:hidden;
  pointer-events:none;
  animation:yhCoverFlip 1.8s 1.2s cubic-bezier(.72,.06,.22,1) forwards;
}
@media (max-width:900px){
  body.yh-has-cover::after{background-size:cover}
}
@keyframes yhCoverFlip{
  0%{transform:perspective(2400px) rotateY(0);opacity:1}
  55%{transform:perspective(2400px) rotateY(-120deg);opacity:.85}
  100%{transform:perspective(2400px) rotateY(-180deg);opacity:0;visibility:hidden;pointer-events:none}
}
@media (prefers-reduced-motion:reduce){
  body.yh-has-cover::before,body.yh-has-cover::after{
    animation:yhFade .8s 1s ease forwards!important
  }
  @keyframes yhFade{to{opacity:0;visibility:hidden;pointer-events:none}}
}

/* ============================================================================
   戻るボタン
   ============================================================================ */
#yohaku-to-top{
  position:fixed;right:20px;bottom:20px;
  width:52px;height:52px;
  border-radius:50%;
  background:var(--yh-teal);
  color:#fff;
  border:2px solid rgba(255,255,255,.9);
  display:flex;
  flex-direction:column;
  align-items:center;justify-content:center;
  opacity:0;pointer-events:none;
  transform:translateY(10px);
  transition:opacity .5s,transform .5s,background .2s;
  z-index:99999;
  box-shadow:0 6px 20px rgba(0,0,0,.3);
}
#yohaku-to-top.is-visible{
  opacity:1;pointer-events:auto;transform:translateY(0);
}
#yohaku-to-top:hover{background:var(--yh-accent);transform:translateY(-3px)}
#yohaku-to-top svg{
  width:18px;height:18px;
  fill:none;stroke:#fff;
  stroke-width:2.5;
  stroke-linecap:round;stroke-linejoin:round;
}
#yohaku-to-top .label{
  font-size:9px;
  letter-spacing:.1em;
  font-weight:600;
  line-height:1;
  margin-top:2px;
  font-family:system-ui,sans-serif;
}
@media (max-width:520px){
  #yohaku-to-top{right:14px;bottom:14px;width:46px;height:46px}
}

/* ============================================================================
   404 / 検索結果
   ============================================================================ */
.yh-notfound{
  text-align:center;
  padding:clamp(3rem,8vw,6rem) 24px;
  max-width:640px;
  margin:0 auto;
}
.yh-notfound-big{
  font-family:var(--yh-f-latin);
  font-style:italic;
  font-size:clamp(4rem,15vw,8rem);
  color:var(--yh-accent);
  line-height:1;
  margin-bottom:1rem;
}
.yh-notfound-msg{
  font-size:1rem;
  color:var(--yh-ink-soft);
  margin-bottom:2rem;
}

/* ============================================================================
   検索フォーム
   ============================================================================ */
.yh-search-form{
  display:flex;
  max-width:420px;
  margin:1rem auto;
  gap:8px;
}
.yh-search-form input[type="search"]{
  flex:1;
  padding:10px 16px;
  border:1px solid var(--yh-line);
  border-radius:30px;
  background:var(--yh-paper);
  font-family:inherit;
  font-size:.95rem;
  color:var(--yh-ink);
}
.yh-search-form button{
  padding:10px 22px;
  background:var(--yh-accent);
  color:#fff;
  border-radius:30px;
  font-size:.9rem;
  font-weight:500;
}
.yh-search-form button:hover{background:var(--yh-accent-deep)}

/* ============================================================================
   ユーティリティ
   ============================================================================ */
.screen-reader-text{
  border:0;clip-path:inset(50%);
  height:1px;margin:-1px;overflow:hidden;
  padding:0;position:absolute;width:1px;word-wrap:normal!important;
}
.yh-skip-link:focus{
  position:fixed;left:1rem;top:1rem;z-index:9999;
  padding:.6em 1em;background:var(--yh-ink);color:var(--yh-paper);
  text-decoration:none;border-radius:2px;clip-path:none;width:auto;height:auto;
}
img.is-loaded{animation:yhImgFade .45s ease both}
@keyframes yhImgFade{from{opacity:0;transform:scale(1.01)}to{opacity:1;transform:scale(1)}}
.alignwide{max-width:1000px;margin-left:auto;margin-right:auto}
.alignfull{max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.aligncenter{margin-left:auto;margin-right:auto;text-align:center}

/* ============================================================================
   SEOサブタイトル (記事本文冒頭の補助見出し + リード)
   ============================================================================ */
.yh-single-content h3.yh-seo-subtitle,
.yh-single-content .yh-seo-subtitle{
  font-family:var(--yh-f-jp-serif);
  font-size:1.02rem;
  font-weight:500;
  line-height:1.75;
  letter-spacing:.04em;
  color:var(--yh-accent);
  margin:1.5em 0 .6em;
  padding:0 0 .5em;
  border-bottom:1px dotted rgba(180,80,40,.35);
  background:none;
}
.yh-single-content .yh-seo-subtitle::before{
  content:"── ";
  color:var(--yh-gold);
  letter-spacing:-.1em;
}
.yh-single-content p.yh-seo-lede,
.yh-single-content .yh-seo-lede{
  font-family:var(--yh-f-jp-sans);
  font-size:.92rem;
  line-height:2;
  letter-spacing:.04em;
  color:rgba(59,46,36,.85);
  margin:0 0 2em;
  padding:0;
}
/* ドロップキャップが yh-seo-lede に適用されないように打ち消し */
.yh-single-content > p.yh-seo-lede:first-of-type::first-letter{
  float:none;
  font-size:1em;
  line-height:inherit;
  font-family:inherit;
  color:inherit;
  padding:0;
  margin:0;
}

/* ============================================================================
   モバイル微調整パッチ (320–420px) — QA: 17項目対応
   ============================================================================ */

/* 1. Safari ホームバー干渉回避 */
#yohaku-to-top{bottom:calc(20px + env(safe-area-inset-bottom,0px))}
@media (max-width:520px){
  #yohaku-to-top{
    bottom:calc(14px + env(safe-area-inset-bottom,0px));
    right:calc(14px + env(safe-area-inset-right,0px));
  }
}
.yh-footer{padding-bottom:calc(2rem + env(safe-area-inset-bottom,0px))}

/* 2. 見出しハイライトの折返し対策 */
.yh-single-content h2,
.yh-home-title{
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}

/* 3. Single アイキャッチの左右余白 (端貼り防止) */
@media (max-width:560px){
  .yh-single-thumb{margin-left:16px;margin-right:16px}
}

/* 4. CTA ボタン: 狭幅で折返し許可 & 余白圧縮 */
@media (max-width:420px){
  .yh-cta-booking{padding:22px 16px;margin:2rem 0}
  .yh-cta-booking-button{
    white-space:normal;line-height:1.4;
    padding:12px 18px;font-size:.86rem;letter-spacing:.02em;
    max-width:100%;
  }
  .yh-cta-booking h3.yh-cta-booking-heading,
  h3.yh-cta-booking-heading{font-size:1.02rem}
}

/* 5. 本文引用の横パディング圧縮 */
@media (max-width:420px){
  .yh-single-content blockquote{padding:14px 16px;font-size:.92em;margin:1.5em 0}
}

/* 6. Single タイトル & ドロップキャップの微調整 */
@media (max-width:420px){
  .yh-single-title{font-size:1.15rem;line-height:1.5;letter-spacing:.02em}
  .yh-single-content > p:first-of-type::first-letter{font-size:2.4em;padding:.06em .1em 0 0}
}

/* 7. Pagination を 380px 以下でコンパクト */
@media (max-width:380px){
  .yh-pagination a,.yh-pagination span,
  ul.page-numbers a,ul.page-numbers span{
    min-width:32px;height:32px;font-size:.8rem;padding:0 .45rem;
  }
}

/* 8. Post nav 狭幅対応 */
@media (max-width:420px){
  .yh-post-nav-item{padding:14px 16px;font-size:.82rem}
}

/* 9. Service banner 狭幅対応 */
@media (max-width:420px){
  .yh-service-banner{padding:14px 16px;font-size:.8rem}
  .yh-service-banner strong{display:block;margin:0 0 4px}
}

/* 10. Admin-bar時の戻るボタン高 */
body.admin-bar #yohaku-to-top{bottom:calc(14px + env(safe-area-inset-bottom,0px))}

/* 11. SEOサブタイトルのモバイル */
@media (max-width:420px){
  .yh-single-content h3.yh-seo-subtitle,
  .yh-single-content .yh-seo-subtitle{font-size:.95rem;line-height:1.7}
  .yh-single-content p.yh-seo-lede,
  .yh-single-content .yh-seo-lede{font-size:.86rem;line-height:1.85}
}
