:root {
  --mokusa-ivory: #f7f3eb;
  --mokusa-paper: #fffdf8;
  --mokusa-sage: #6f845f;
  --mokusa-sage-dark: #506447;
  --mokusa-sage-pale: #dfe7d8;
  --mokusa-ink: #242626;
  --mokusa-muted: #78756e;
  --mokusa-line: #e7e0d3;
  --mokusa-gold: #c8a04b;
  --mokusa-serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --mokusa-sans: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #eeeae2;
}

body.mokusa-body {
  min-height: 100svh;
  margin: 0;
  color: var(--mokusa-ink);
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), rgba(247, 243, 235, 0.96) 46%, #efe8dc 100%);
  font-family: var(--mokusa-sans);
}

body.admin-bar .mokusa-bottom-nav {
  bottom: 46px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.mokusa-shell {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(247, 243, 235, 0.98) 100%);
  box-shadow: 0 0 0 1px rgba(70, 84, 61, 0.05), 0 24px 80px rgba(46, 46, 42, 0.16);
}

.mokusa-main {
  min-height: 72svh;
  padding: clamp(24px, 7vw, 38px) clamp(16px, 5.6vw, 24px) 32px;
  position: relative;
  z-index: 1;
}

.mokusa-leaf-spray,
.mokusa-leaf-shadow,
.mokusa-symbol-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.mokusa-symbol-bg {
  width: clamp(230px, 72vw, 330px);
  height: clamp(230px, 72vw, 330px);
  right: clamp(-118px, -24vw, -70px);
  top: clamp(110px, 25svh, 190px);
  opacity: 0.22;
  filter: blur(0.2px);
  mix-blend-mode: multiply;
}

.mokusa-leaf-spray {
  width: clamp(170px, 52vw, 220px);
  height: clamp(230px, 70vw, 300px);
  right: clamp(-82px, -18vw, -56px);
  top: clamp(104px, 30vw, 128px);
  opacity: 0.24;
}

.mokusa-leaf-spray::before,
.mokusa-leaf-spray::after {
  content: "";
  position: absolute;
  inset: 0;
}

.mokusa-leaf-spray::before {
  background:
    radial-gradient(ellipse 24px 12px at 62% 13%, rgba(96, 120, 77, 0.55) 0 55%, transparent 58%),
    radial-gradient(ellipse 28px 13px at 48% 24%, rgba(112, 134, 91, 0.5) 0 55%, transparent 58%),
    radial-gradient(ellipse 29px 13px at 73% 34%, rgba(90, 112, 73, 0.48) 0 55%, transparent 58%),
    radial-gradient(ellipse 26px 12px at 41% 45%, rgba(120, 140, 95, 0.45) 0 55%, transparent 58%),
    radial-gradient(ellipse 30px 13px at 67% 58%, rgba(98, 120, 79, 0.46) 0 55%, transparent 58%),
    radial-gradient(ellipse 25px 12px at 33% 70%, rgba(108, 128, 86, 0.38) 0 55%, transparent 58%);
}

.mokusa-leaf-spray::after {
  background:
    linear-gradient(108deg, transparent 0 47%, rgba(101, 91, 72, 0.46) 47.5% 48.5%, transparent 49%),
    linear-gradient(70deg, transparent 0 50%, rgba(101, 91, 72, 0.28) 50.2% 51%, transparent 51.2%);
  transform: rotate(-9deg);
}

.mokusa-leaf-shadow {
  width: clamp(210px, 64vw, 280px);
  height: clamp(270px, 82vw, 360px);
  top: clamp(132px, 37vw, 156px);
  right: clamp(-8px, 4vw, 18px);
  opacity: 0.08;
  filter: blur(5px);
  background:
    radial-gradient(ellipse 32px 14px at 36% 20%, #596b4a 0 58%, transparent 60%),
    radial-gradient(ellipse 42px 16px at 58% 36%, #596b4a 0 58%, transparent 60%),
    radial-gradient(ellipse 35px 14px at 44% 55%, #596b4a 0 58%, transparent 60%),
    radial-gradient(ellipse 50px 18px at 76% 68%, #596b4a 0 58%, transparent 60%);
}

.mokusa-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.mokusa-logo {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(8px, 2.8vw, 12px);
}

.mokusa-logo__mark {
  width: clamp(40px, 12vw, 48px);
  height: clamp(40px, 12vw, 48px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--mokusa-paper);
  box-shadow: 0 6px 18px rgba(80, 100, 71, 0.1);
  outline: 1px solid rgba(200, 160, 75, 0.25);
}

.mokusa-logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mokusa-logo__text,
.mokusa-footer__brand {
  font-family: var(--mokusa-serif);
  letter-spacing: 0.2em;
  color: var(--mokusa-sage-dark);
}

.mokusa-logo__text {
  font-size: clamp(20px, 6.2vw, 26px);
  white-space: nowrap;
}

.mokusa-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.mokusa-header__home {
  display: none;
  color: var(--mokusa-sage-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.mokusa-menu-button {
  width: 46px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--mokusa-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.mokusa-menu-button span {
  width: 30px;
  height: 1px;
  background: currentColor;
}

.mokusa-menu-button small {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.mokusa-drawer {
  position: relative;
  z-index: 3;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(231, 224, 211, 0.8);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 16px 36px rgba(80, 100, 71, 0.12);
}

.mokusa-drawer a {
  display: block;
  padding: 11px 4px;
  color: var(--mokusa-sage-dark);
  font-family: var(--mokusa-serif);
  letter-spacing: 0.08em;
}

.mokusa-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  overflow-x: auto;
  color: var(--mokusa-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  scrollbar-width: none;
}

.mokusa-breadcrumb::-webkit-scrollbar {
  display: none;
}

.mokusa-breadcrumb a {
  color: var(--mokusa-sage-dark);
}

.mokusa-breadcrumb span {
  flex: 0 0 auto;
}

.mokusa-archive-hero {
  margin-top: clamp(42px, 12vw, 56px);
  position: relative;
  z-index: 1;
}

.mokusa-eyebrow {
  margin: 0 0 12px;
  color: var(--mokusa-sage);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.mokusa-archive-hero h1,
.mokusa-single__header h1,
.mokusa-related h2,
.mokusa-empty h1,
.mokusa-empty h2 {
  margin: 0;
  color: var(--mokusa-ink);
  font-family: var(--mokusa-serif);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.mokusa-archive-hero h1 {
  font-size: clamp(34px, 10vw, 40px);
}

.mokusa-archive-hero p,
.mokusa-archive-description {
  margin: 18px 0 0;
  color: var(--mokusa-ink);
  font-family: var(--mokusa-serif);
  font-size: clamp(14px, 4.2vw, 16px);
  line-height: 1.85;
  letter-spacing: 0.1em;
}

.mokusa-featured {
  margin-top: clamp(24px, 7vw, 32px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(80, 100, 71, 0.12);
  border: 1px solid rgba(231, 224, 211, 0.55);
  backdrop-filter: blur(12px);
}

.mokusa-featured__link {
  display: grid;
  grid-template-columns: minmax(118px, 42%) 1fr;
  gap: clamp(10px, 3.5vw, 16px);
  padding: 10px;
}

.mokusa-featured__image,
.mokusa-card__thumb,
.mokusa-single__eyecatch {
  overflow: hidden;
  background: linear-gradient(135deg, #b9c7a4, #fff7e8 52%, #708863);
}

.mokusa-featured__image {
  min-height: clamp(126px, 38vw, 148px);
  border-radius: 12px;
}

.mokusa-featured__image img,
.mokusa-card__thumb img,
.mokusa-single__eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mokusa-placeholder-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  position: relative;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(116deg, transparent 0 45%, rgba(255, 255, 255, 0.28) 46% 51%, transparent 52%),
    linear-gradient(135deg, #b9c7a4, #fff7e8 52%, #708863);
}

.mokusa-placeholder-image::before,
.mokusa-placeholder-image::after {
  content: "";
  position: absolute;
  background: rgba(80, 100, 71, 0.42);
}

.mokusa-placeholder-image::before {
  bottom: 18px;
  left: 26px;
  width: 1px;
  height: 86px;
  transform: rotate(24deg);
}

.mokusa-placeholder-image::after {
  bottom: 58px;
  left: 38px;
  width: 58px;
  height: 26px;
  border-radius: 100% 0;
  transform: rotate(-22deg);
}

.mokusa-featured__body {
  min-width: 0;
  padding: clamp(7px, 2.6vw, 12px) 4px clamp(7px, 2.6vw, 12px) 0;
}

.mokusa-featured__category,
.mokusa-card__category,
.mokusa-single__category {
  color: var(--mokusa-sage);
  font-size: clamp(11px, 3.4vw, 13px);
  letter-spacing: 0.1em;
}

.mokusa-featured__category::before,
.mokusa-card__category::before,
.mokusa-single__category::before {
  content: "葉";
  margin-right: 0.45em;
}

.mokusa-featured h2 {
  margin: 8px 0 0;
  color: var(--mokusa-ink);
  font-family: var(--mokusa-serif);
  font-size: clamp(18px, 5.6vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.mokusa-featured p:not(.mokusa-featured__category) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--mokusa-ink);
  font-size: clamp(11px, 3.4vw, 13px);
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.mokusa-featured time {
  display: block;
  margin-top: 10px;
  color: var(--mokusa-muted);
  font-size: clamp(11px, 3.4vw, 13px);
  letter-spacing: 0.06em;
}

.mokusa-chips {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding-bottom: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mokusa-chips::-webkit-scrollbar {
  display: none;
}

.mokusa-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(111, 132, 95, 0.45);
  border-radius: 999px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--mokusa-sage-dark);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.mokusa-chip.is-active {
  border-color: var(--mokusa-sage);
  background: var(--mokusa-sage);
  color: #fff;
}

.mokusa-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.mokusa-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(231, 224, 211, 0.55);
  box-shadow: 0 8px 24px rgba(71, 79, 59, 0.08);
}

.mokusa-card__link {
  display: grid;
  grid-template-columns: clamp(88px, 29vw, 116px) 1fr 16px;
  align-items: center;
  gap: clamp(8px, 3vw, 12px);
  padding: 8px;
}

.mokusa-card__thumb {
  width: clamp(88px, 29vw, 116px);
  height: clamp(78px, 24vw, 92px);
  border-radius: 10px;
}

.mokusa-card__body {
  min-width: 0;
}

.mokusa-card__category {
  margin: 0;
  font-size: clamp(10px, 3.1vw, 12px);
}

.mokusa-card__title {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--mokusa-ink);
  font-family: var(--mokusa-serif);
  font-size: clamp(15px, 4.6vw, 18px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mokusa-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--mokusa-ink);
  font-size: clamp(10px, 3.1vw, 12px);
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.mokusa-card__date {
  display: block;
  margin-top: 3px;
  color: var(--mokusa-muted);
  font-size: clamp(10px, 3.1vw, 12px);
  letter-spacing: 0.06em;
  text-align: right;
}

.mokusa-card__arrow {
  color: var(--mokusa-ink);
  font-family: var(--mokusa-serif);
  font-size: 28px;
  line-height: 1;
}

.mokusa-pagination {
  margin-top: 24px;
  color: var(--mokusa-sage-dark);
  text-align: center;
}

.mokusa-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mokusa-pagination a,
.mokusa-pagination span {
  min-width: 34px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.mokusa-pagination .current {
  background: var(--mokusa-sage);
  color: #fff;
}

.mokusa-single__header {
  margin-top: 42px;
}

.mokusa-single__category {
  display: inline-block;
  margin-bottom: 18px;
}

.mokusa-single__header h1 {
  font-size: clamp(30px, 8.5vw, 38px);
  line-height: 1.55;
}

.mokusa-single__header time {
  display: block;
  margin-top: 18px;
  color: var(--mokusa-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.mokusa-single__eyecatch {
  min-height: 220px;
  margin-top: 28px;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(80, 100, 71, 0.12);
}

.mokusa-content {
  margin-top: 34px;
  color: var(--mokusa-ink);
  font-family: var(--mokusa-serif);
  font-size: 17px;
  line-height: 2.05;
  letter-spacing: 0.05em;
}

.mokusa-content > *:first-child {
  margin-top: 0;
}

.mokusa-content p {
  margin: 1.35em 0;
}

.mokusa-content h2,
.mokusa-content h3,
.mokusa-content h4 {
  margin: 2.5em 0 0.9em;
  color: var(--mokusa-ink);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.08em;
}

.mokusa-content h2 {
  padding-left: 14px;
  border-left: 3px solid var(--mokusa-sage);
  font-size: 26px;
}

.mokusa-content h3 {
  font-size: 22px;
}

.mokusa-content ul,
.mokusa-content ol {
  padding-left: 1.35em;
}

.mokusa-content blockquote {
  margin: 2em 0;
  padding: 18px 20px;
  border-left: 3px solid var(--mokusa-gold);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.mokusa-content img {
  border-radius: 18px;
}

.mokusa-cta {
  margin: 42px 0 0;
  padding: 28px 22px;
  border: 1px solid rgba(231, 224, 211, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  box-shadow: 0 18px 50px rgba(80, 100, 71, 0.12);
}

.mokusa-cta p {
  margin: 0;
  color: var(--mokusa-ink);
  font-family: var(--mokusa-serif);
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.mokusa-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--mokusa-sage);
  color: #fff;
  letter-spacing: 0.08em;
}

.mokusa-related {
  margin-top: 42px;
}

.mokusa-related h2 {
  font-size: 27px;
}

.mokusa-empty {
  margin: 34px 0;
  padding: 28px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.mokusa-empty--large {
  margin-top: 80px;
}

.mokusa-empty h1,
.mokusa-empty h2 {
  font-size: 27px;
  line-height: 1.55;
}

.mokusa-empty p {
  color: var(--mokusa-muted);
  line-height: 1.8;
}

.mokusa-text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--mokusa-sage-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.mokusa-footer {
  padding: 28px 24px 118px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.mokusa-footer__brand {
  margin: 0;
  font-size: 24px;
}

.mokusa-footer__copy {
  margin: 12px 0 0;
  color: var(--mokusa-ink);
  font-family: var(--mokusa-serif);
  letter-spacing: 0.1em;
}

.mokusa-footer__operator {
  margin: 12px 0 0;
  color: var(--mokusa-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.mokusa-footer__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--mokusa-sage-dark);
  font-size: 13px;
}

.mokusa-bottom-nav {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 30;
  width: min(calc(100% - 20px), 390px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 4px;
  padding: clamp(10px, 3vw, 12px) clamp(10px, 4vw, 20px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 35px rgba(40, 42, 36, 0.12);
  backdrop-filter: blur(18px);
}

.mokusa-bottom-nav a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--mokusa-ink);
  font-size: clamp(10px, 3.1vw, 12px);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mokusa-bottom-nav a.is-active {
  color: var(--mokusa-sage);
}

.mokusa-bottom-nav__breath {
  margin-top: -38px;
  color: #fff !important;
}

.mokusa-bottom-nav__breath .mokusa-breath-lines {
  width: clamp(66px, 20vw, 78px);
  height: clamp(66px, 20vw, 78px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mokusa-sage);
  box-shadow: 0 18px 50px rgba(80, 100, 71, 0.22);
}

.mokusa-bottom-nav__breath .mokusa-breath-lines::before {
  content: "";
  width: 42px;
  height: 26px;
  color: #fff;
  background:
    radial-gradient(44px 13px at 17px 7px, transparent 44%, currentColor 46% 51%, transparent 53%),
    radial-gradient(44px 13px at 27px 15px, transparent 44%, currentColor 46% 51%, transparent 53%);
}

.mokusa-nav-icon {
  width: clamp(24px, 7vw, 28px);
  height: clamp(24px, 7vw, 28px);
  position: relative;
  display: block;
}

.mokusa-nav-icon::before,
.mokusa-nav-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid currentColor;
}

.mokusa-nav-icon--home::before {
  border-width: 0 2px 2px;
  transform: translateY(7px);
}

.mokusa-nav-icon--home::after {
  inset: 3px 6px 12px;
  border-width: 2px 2px 0 0;
  transform: rotate(-45deg);
}

.mokusa-nav-icon--search::before {
  inset: 3px 7px 8px 3px;
  border-radius: 50%;
}

.mokusa-nav-icon--search::after {
  inset: auto 2px 3px auto;
  width: 9px;
  height: 2px;
  border: 0;
  background: currentColor;
  transform: rotate(45deg);
}

.mokusa-nav-icon--book::before {
  inset: 4px;
  border-radius: 2px;
  border-width: 0 0 0 8px;
  box-shadow: 11px 0 0 currentColor;
}

.mokusa-nav-icon--user::before {
  inset: 3px 8px 12px;
  border-radius: 50%;
}

.mokusa-nav-icon--user::after {
  inset: 15px 4px 2px;
  border-radius: 50% 50% 0 0;
}

@media (min-width: 640px) {
  body.mokusa-body {
    padding: 24px 0;
  }

  .mokusa-shell {
    min-height: calc(100dvh - 48px);
    border-radius: 34px;
  }

  .mokusa-header__home {
    display: inline-block;
  }

  .mokusa-main {
    padding-left: 32px;
    padding-right: 32px;
  }
}
