html { scroll-behavior: smooth; }
body {
  background: var(--ym-bg);
  color: var(--ym-text);
  font-family: var(--ym-sans);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
body.ym-lock-scroll { overflow: hidden; }
a { color: var(--ym-primary); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--ym-primary-hover); }
img { height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #2b6ea6; outline-offset: 3px; }
.wrap { width: min(100% - (var(--ym-gutter) * 2), var(--ym-container)); }
.content { margin-top: 0; }
.content-in { display: block; }
.main { background: var(--ym-surface); border: 0; border-radius: 0; padding: clamp(24px, 4vw, 56px); }
.yorimichi-home .content-in { width: 100%; max-width: none; }
.yorimichi-home .main { width: 100%; max-width: none; margin: 0; padding: 0; background: transparent; }
.yorimichi-home #sidebar { display: none; }
.entry-content p { margin-bottom: 1.65em; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header override. */
.ym-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 253, 250, 0.98);
  border-bottom: 1px solid var(--ym-border);
}
.ym-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ym-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ym-ink); text-decoration: none; flex: 0 0 auto; }
.ym-brand:hover { color: var(--ym-ink); }
.ym-brand__icon { width: 46px; height: 46px; object-fit: contain; }
.ym-brand__copy { display: flex; flex-direction: column; line-height: 1.15; }
.ym-brand__copy strong { font-family: var(--ym-serif); font-size: 19px; letter-spacing: .08em; white-space: nowrap; }
.ym-brand__copy small { margin-top: 5px; color: var(--ym-muted); font-size: 9px; letter-spacing: .06em; white-space: nowrap; }
.ym-nav { margin-left: auto; }
.ym-nav__list { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.ym-nav__list a { color: var(--ym-text); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ym-nav__list a:hover { color: var(--ym-primary); }
.ym-nav__list .sub-menu { position: absolute; min-width: 220px; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--ym-border); border-radius: var(--ym-radius-md); box-shadow: var(--ym-shadow); list-style: none; }
.ym-header__actions { display: flex; gap: 4px; }
.ym-icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ym-ink); cursor: pointer; }
.ym-icon-button:hover { background: var(--ym-surface-soft); }
.ym-icon-button > span[aria-hidden] { font-size: 28px; line-height: 1; }
.ym-menu-toggle { display: none; }
.ym-menu-toggle__lines, .ym-menu-toggle__lines::before, .ym-menu-toggle__lines::after { width: 21px; height: 2px; background: currentColor; transition: transform .2s ease; content: ""; display: block; }
.ym-menu-toggle__lines { position: relative; }
.ym-menu-toggle__lines::before { position: absolute; top: -7px; }
.ym-menu-toggle__lines::after { position: absolute; top: 7px; }
.ym-search-panel { padding: 16px var(--ym-gutter); border-top: 1px solid var(--ym-border); background: #fff; }
.ym-search-panel .search-box, .ym-search-panel form { max-width: 720px; margin: 0 auto; }
.ym-search-panel input[type="search"], .ym-search-panel input[type="text"] { min-height: 48px; border: 1px solid var(--ym-border); border-radius: var(--ym-radius-pill); }
.mobile-header-menu-buttons, .mobile-footer-menu-buttons { display: none !important; }

.footer { margin-top: 0; background: #423a35; color: #f7f1eb; }
.footer a { color: #fff; }
.footer-in { padding-top: 42px; padding-bottom: 34px; }
.navi-footer-in > .menu-footer { justify-content: center; gap: 8px; }
.copyright { color: #d8cbc1; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
