/* =========================================================
   Happou Concept Shell
   WordPress fixed-page content reader
========================================================= */

:root {
  --happou-shell-bg: #f4ede2;
  --happou-shell-paper: #f8f2e8;
  --happou-shell-ink: #2d241d;
  --happou-shell-muted: #60564c;
  --happou-shell-line: rgba(45, 36, 29, 0.14);
  --happou-shell-accent: #6e4b2e;
  --happou-shell-shadow: 0 24px 60px rgba(35, 28, 20, 0.12);
  --happou-shell-serif: "Noto Serif JP", "Yu Mincho", serif;
  --happou-shell-sans: "Noto Serif JP", "Yu Mincho", serif;
  --happou-shell-pad: clamp(20px, 4vw, 72px);
}

html,
body.happou-shell-body {
  margin: 0;
  padding: 0;
  background: var(--happou-shell-bg);
  color: var(--happou-shell-ink);
}

.happou-shell-body *,
.happou-shell-body *::before,
.happou-shell-body *::after {
  box-sizing: border-box;
}

.happou-shell-main {
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(255,255,255,0.36), transparent 18%),
    radial-gradient(circle at 88% 72%, rgba(165,130,82,0.08), transparent 16%),
    linear-gradient(180deg, #f6efe4 0%, var(--happou-shell-bg) 100%);
}

.happou-shell-hero,
.happou-shell-content {
  position: relative;
  isolation: isolate;
}

.happou-shell-hero::before,
.happou-shell-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 24%, rgba(0,0,0,0.035) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 18%, rgba(0,0,0,0.02) 0 1px, transparent 2px),
    radial-gradient(circle at 16% 84%, rgba(0,0,0,0.03) 0 1px, transparent 2px);
  background-size: 320px 240px, 420px 300px, 360px 280px;
  mix-blend-mode: multiply;
  opacity: 0.55;
  z-index: 0;
}

.happou-shell-hero {
  padding: clamp(72px, 12vw, 140px) 0 clamp(28px, 4vw, 48px);
}

.happou-shell-hero__bg-word {
  position: absolute;
  left: clamp(8px, 1.8vw, 24px);
  top: clamp(24px, 4vw, 60px);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--happou-shell-sans);
  font-size: clamp(4rem, 10vw, 8.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: rgba(134, 112, 84, 0.10);
  pointer-events: none;
  z-index: 0;
}

.happou-shell-hero__inner,
.happou-shell-content__inner {
  width: 100%;
  padding-inline: var(--happou-shell-pad);
  position: relative;
  z-index: 1;
}

.happou-shell-hero__eyebrow {
  margin: 0;
  font-family: var(--happou-shell-sans);
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  color: var(--happou-shell-accent);
}

.happou-shell-hero__title {
  margin: 18px 0 0;
  font-family: var(--happou-shell-serif);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.36;
  letter-spacing: 0.12em;
  text-wrap: balance;
}

.happou-shell-content {
  padding: clamp(18px, 4vw, 42px) 0 clamp(64px, 8vw, 120px);
}

.happou-shell-content__body {
  width: 100%;
  background: rgba(248, 242, 232, 0.58);
  box-shadow: var(--happou-shell-shadow);
  padding: clamp(24px, 4vw, 56px);
  backdrop-filter: blur(2px);
}

.happou-shell-content__body,
.happou-shell-content__body p,
.happou-shell-content__body li,
.happou-shell-content__body dd {
  font-family: var(--happou-shell-serif);
  color: var(--happou-shell-muted);
  font-size: 1rem;
  line-height: 2.05;
  letter-spacing: 0.05em;
}

.happou-shell-content__body h1,
.happou-shell-content__body h2,
.happou-shell-content__body h3,
.happou-shell-content__body h4 {
  color: var(--happou-shell-ink);
  font-family: var(--happou-shell-serif);
  line-height: 1.55;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
}

.happou-shell-content__body h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.happou-shell-content__body h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: 48px;
  padding-top: 8px;
}

.happou-shell-content__body h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  margin-top: 32px;
}

.happou-shell-content__body h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--happou-shell-accent);
  margin-bottom: 18px;
}

.happou-shell-content__body p + p {
  margin-top: 1em;
}

.happou-shell-content__body ul,
.happou-shell-content__body ol {
  margin: 1.2em 0 0;
  padding-left: 1.4em;
}

.happou-shell-content__body li + li {
  margin-top: 0.4em;
}

.happou-shell-content__body a {
  color: var(--happou-shell-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.happou-shell-content__body img {
  display: block;
  max-width: 100%;
  height: auto;
}

.happou-shell-content__body figure {
  margin: 32px 0;
}

.happou-shell-content__body .wp-block-image img,
.happou-shell-content__body figure img {
  width: 100%;
  box-shadow: var(--happou-shell-shadow);
}

.happou-shell-content__body .wp-block-columns {
  gap: 24px;
}

.happou-shell-content__body blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 2px solid var(--happou-shell-accent);
  background: rgba(255, 255, 255, 0.34);
}

@media (max-width: 767px) {
  .happou-shell-hero {
    padding: 88px 0 18px;
  }

  .happou-shell-hero__bg-word {
    display: none;
  }

  .happou-shell-hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: 0.08em;
  }

  .happou-shell-content__body {
    padding: 20px 16px 28px;
  }

  .happou-shell-content__body,
  .happou-shell-content__body p,
  .happou-shell-content__body li,
  .happou-shell-content__body dd {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .happou-shell-content__body .wp-block-columns {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .happou-shell-body * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
