:root {
  --site-paper: #fbf8f3;
  --site-surface: #ffffff;
  --site-warm: #f5ede2;
  --site-ink: #382f2a;
  --site-muted: #746b64;
  --site-line: #e8dfd5;
  --site-camel: #b77b4f;
  --site-green: #216b55;
  --site-green-pale: #e8f3ed;
  --site-rose: #b94d62;
  --site-rose-pale: #f8e9ec;
  --site-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --site-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
}

html {
  background: var(--site-paper);
  scroll-behavior: smooth;
}

body.site-renewed {
  color: var(--site-ink) !important;
  background:
    radial-gradient(circle at 8% 3%, rgba(226, 191, 151, .13), transparent 25rem),
    var(--site-paper) !important;
  font-family: var(--site-body) !important;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.site-renewed ::selection {
  color: var(--site-ink);
  background: #ead8c5;
}

body.site-renewed :focus-visible {
  outline: 3px solid rgba(33, 107, 85, .35) !important;
  outline-offset: 3px;
}

/* Header */
body.site-renewed > header {
  min-height: 76px;
  padding: .8rem max(1.25rem, calc((100vw - 1120px) / 2)) !important;
  border-bottom: 1px solid rgba(232, 223, 213, .9) !important;
  color: var(--site-ink) !important;
  background: rgba(251, 248, 243, .93) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px);
}

body.site-renewed > header > :first-child {
  margin: 0 !important;
  color: var(--site-ink) !important;
  font-family: var(--site-display) !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
}

body.site-renewed > header > :first-child > a {
  gap: .7rem !important;
  color: var(--site-ink) !important;
  text-shadow: none !important;
}

body.site-renewed > header > :first-child img {
  width: 42px !important;
  height: 42px !important;
  border: 1px solid var(--site-line) !important;
  border-radius: 999px !important;
  background: #fff;
  box-shadow: none !important;
}

body.site-renewed > header > nav {
  gap: .25rem !important;
}

body.site-renewed > header > nav > a {
  min-height: 44px;
  padding: .65rem .9rem !important;
  border: 0 !important;
  border-radius: .75rem !important;
  color: #574d46 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
}

body.site-renewed > header > nav > a:hover {
  color: var(--site-ink) !important;
  background: #f0e8df !important;
}

body.site-renewed > header > nav > a.site-support-link {
  margin-left: .35rem;
  color: #fff !important;
  background: var(--site-rose) !important;
}

body.site-renewed > header > nav > a.site-support-link:hover {
  background: #9d3d50 !important;
}

/* Page frame and headings */
body.site-renewed > main {
  width: min(100% - 40px, 1120px) !important;
  margin: 0 auto !important;
  padding-top: 48px !important;
  padding-bottom: 72px !important;
}

body.site-renewed.page-guide > main,
body.site-renewed.page-contact > main {
  width: min(100% - 40px, 900px) !important;
}

body.site-renewed .site-breadcrumb {
  width: fit-content !important;
  max-width: 100%;
  min-height: 42px;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .7rem !important;
  margin: 0 0 34px !important;
  padding: .55rem .85rem !important;
  border: 1px solid var(--site-line) !important;
  border-radius: 10px !important;
  color: var(--site-muted) !important;
  background: rgba(255, 255, 255, .75) !important;
  box-shadow: none !important;
  font-size: .78rem !important;
  line-height: 1.5;
  backdrop-filter: blur(10px);
}

body.site-renewed .site-breadcrumb a {
  color: var(--site-green) !important;
  font-weight: 600;
}

body.site-renewed .site-page-title {
  margin-bottom: 38px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid #d7c7b8 !important;
  color: var(--site-ink) !important;
  font-family: var(--site-display) !important;
  font-size: clamp(1.85rem, 4vw, 2.7rem) !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  letter-spacing: -.025em;
}

body.site-renewed .site-page-title > span:first-child[aria-hidden="true"],
body.site-renewed .site-page-title > span.site-title-emoji {
  display: none !important;
}

body.site-renewed h1,
body.site-renewed h2,
body.site-renewed h3 {
  color: var(--site-ink);
  font-family: var(--site-display);
  letter-spacing: -.015em;
}

body.site-renewed main p {
  line-height: 1.9;
}

/* Enjoy guide */
body.site-renewed.page-guide > main.guide-main-wide {
  width: min(100% - 40px, 1120px) !important;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3.5rem) !important;
}

.guide-hero-copy {
  position: relative;
  z-index: 1;
}

.guide-hero-kicker {
  margin: 0 0 .5rem;
  color: var(--site-green);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.guide-hero h1 {
  margin: 0;
  color: var(--site-ink);
  font-family: var(--site-display);
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.guide-hero-lead {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--site-muted);
}

.guide-hero-visual {
  display: grid;
  place-items: center;
  min-height: 240px;
  border-radius: 24px;
  background: linear-gradient(145deg, #f7eadb, #fff9f2 62%, #eef6f1);
}

.guide-hero-visual img {
  width: min(100%, 310px);
  height: auto;
}

.guide-section {
  margin-top: clamp(2.6rem, 6vw, 4.5rem);
}

.guide-section-heading {
  max-width: 46rem;
  margin-bottom: 1.4rem;
}

.guide-section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 900;
  line-height: 1.45;
}

.guide-section-heading p {
  margin: .65rem 0 0;
  color: var(--site-muted);
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.guide-link-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--site-line);
  border-radius: 18px;
  color: var(--site-ink);
  background: rgba(255, 255, 255, .9);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.guide-link-card:hover {
  border-color: #b9d1c5;
  box-shadow: 0 14px 34px rgba(45, 72, 60, .08);
  transform: translateY(-3px);
}

.guide-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--site-green);
  background: var(--site-green-pale);
  font-size: 1.35rem;
}

.guide-link-card:nth-child(2n) .guide-card-icon {
  color: #8d5b38;
  background: #f6eade;
}

.guide-link-card h2,
.guide-link-card h3 {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.guide-link-card p {
  margin: .6rem 0 1rem;
  color: var(--site-muted);
  font-size: .92rem;
}

.guide-card-link {
  margin-top: auto;
  color: var(--site-green);
  font-size: .9rem;
  font-weight: 800;
}

.guide-note {
  padding: 1.35rem 1.5rem;
  border: 1px solid #eadfd3;
  border-radius: 16px;
  color: #554b44;
  background: #faf6f1;
}

.guide-note strong {
  color: var(--site-ink);
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pattern-card {
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 18px;
  background: #fff;
}

.pattern-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .86;
  padding: 1rem 1rem 0;
  background: linear-gradient(145deg, #f7efe6, #fffaf5);
}

.pattern-card:nth-child(3n + 2) .pattern-visual {
  background: linear-gradient(145deg, #eef6f1, #fbfdfc);
}

.pattern-card:nth-child(3n) .pattern-visual {
  background: linear-gradient(145deg, #f9edf0, #fffafa);
}

.pattern-visual img {
  width: min(100%, 250px);
  height: 100%;
  object-fit: contain;
}

.pattern-copy {
  padding: 1.2rem 1.25rem 1.35rem;
}

.pattern-copy h2,
.pattern-copy h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.pattern-copy p {
  margin: .55rem 0 0;
  color: var(--site-muted);
  font-size: .88rem;
}

.guide-step-list {
  display: grid;
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-step {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.4rem;
  border: 1px solid var(--site-line);
  border-radius: 16px;
  background: #fff;
  counter-increment: guide-step;
}

.guide-step::before {
  position: absolute;
  top: 1.15rem;
  left: 1.2rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--site-green);
  content: counter(guide-step);
  font-weight: 800;
}

.guide-step h2,
.guide-step h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
}

.guide-step p {
  margin: .35rem 0 0;
  color: var(--site-muted);
  font-size: .92rem;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.signal-card {
  padding: 1.35rem;
  border: 1px solid var(--site-line);
  border-radius: 16px;
  background: #fff;
}

.signal-card[data-tone="relaxed"] {
  border-color: #cfe2d8;
  background: #f2f8f4;
}

.signal-card[data-tone="watch"] {
  border-color: #eadfd3;
  background: #faf6f1;
}

.signal-card[data-tone="stop"] {
  border-color: #efd8de;
  background: #fcf5f6;
}

.signal-card h2,
.signal-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
}

.signal-card ul {
  display: grid;
  gap: .45rem;
  margin: .8rem 0 0;
  padding-left: 1.15rem;
  color: #5f554e;
  font-size: .9rem;
  line-height: 1.75;
}

.signal-observation {
  margin: .8rem 0 0;
  color: #5f554e;
  font-size: .9rem;
  line-height: 1.75;
}

.signal-action {
  margin: 1rem 0 0;
  padding-top: .85rem;
  border-top: 1px solid rgba(92, 64, 51, .16);
  line-height: 1.75;
}

.signal-action strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--site-ink);
}

.signal-section-note {
  margin: .9rem 0 0;
  color: var(--site-muted);
  font-size: .88rem;
  line-height: 1.7;
}

.guide-reference-list {
  display: grid;
  gap: .55rem;
  margin: .8rem 0 0;
  padding-left: 1.2rem;
  font-size: .82rem;
  line-height: 1.7;
}

.guide-reference-list a {
  color: var(--site-green);
  font-weight: 700;
  text-underline-offset: 3px;
}

.guide-article-note {
  margin-top: 1.4rem;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid #ddd5cd;
  color: #746b64;
  font-size: .82rem;
  line-height: 1.75;
}

.guide-article-note h2 {
  margin: 0 0 .3rem;
  color: #5f554e;
  font-size: .9rem;
  font-weight: 800;
}

.guide-article-note p {
  margin: 0;
}

.guide-article-note details {
  margin-top: .45rem;
}

.guide-article-note summary {
  width: fit-content;
  color: var(--site-green);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-article-note .guide-reference-list {
  margin-top: .6rem;
  font-size: .78rem;
}

.guide-cta {
  margin-top: clamp(2.8rem, 6vw, 4.5rem);
  padding: clamp(1.5rem, 5vw, 2.8rem);
  border-radius: 20px;
  color: #fff;
  background: var(--site-ink);
}

.guide-cta h2 {
  margin: 0;
  color: #fff !important;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
}

.guide-cta p {
  margin: .7rem 0 0;
  color: #f1e8df;
}

.guide-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.25rem;
}

.guide-cta-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.guide-cta-actions a:first-child {
  border-color: #fff;
  color: var(--site-ink);
  background: #fff;
}

/* Cards and information panels */
body.site-renewed main .rounded-3xl {
  border-radius: 18px !important;
}

body.site-renewed main .rounded-2xl {
  border-radius: 12px !important;
}

body.site-renewed main .shadow-sm,
body.site-renewed main .shadow-md {
  box-shadow: 0 7px 22px rgba(65, 47, 34, .05) !important;
}

body.site-renewed .site-content-panel {
  border-color: var(--site-line) !important;
  background-color: rgba(255, 255, 255, .88) !important;
  box-shadow: none !important;
}

body.site-renewed .site-content-panel.bg-emerald-50\/60,
body.site-renewed .site-content-panel.bg-emerald-50\/70,
body.site-renewed .site-content-panel.bg-emerald-50\/80 {
  border-color: #cfe2d8 !important;
  background-color: #f2f8f4 !important;
}

body.site-renewed .site-content-panel.bg-rose-50\/50,
body.site-renewed .site-content-panel.bg-rose-50\/60,
body.site-renewed .site-content-panel.bg-rose-50\/70 {
  border-color: #efd8de !important;
  background-color: #fcf5f6 !important;
}

body.site-renewed .site-content-panel.bg-orange-50\/60,
body.site-renewed .site-content-panel.bg-orange-50\/70,
body.site-renewed .site-content-panel.bg-orange-50\/80 {
  border-color: #eadfd3 !important;
  background-color: #faf6f1 !important;
}

body.site-renewed .site-store-list {
  gap: 0 !important;
}

body.site-renewed .site-store-card {
  margin-bottom: 14px !important;
  border: 1px solid var(--site-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.site-renewed .site-store-card:hover {
  border-color: #c9ddcf !important;
  box-shadow: 0 10px 28px rgba(45, 72, 60, .07) !important;
}

body.site-renewed .site-store-card > div {
  gap: 1rem !important;
  padding: 1.7rem 1.8rem !important;
}

body.site-renewed .site-store-card h2,
body.site-renewed .site-store-card h3 {
  color: var(--site-ink) !important;
  font-size: clamp(1.18rem, 2.3vw, 1.45rem) !important;
  line-height: 1.5 !important;
}

body.site-renewed .site-store-card a[href^="http"] {
  border-radius: 10px !important;
}

body.site-renewed main a[class*="bg-emerald-"],
body.site-renewed main a[class*="bg-cat-camel"],
body.site-renewed main button[class*="bg-emerald-"] {
  border-radius: 10px !important;
  box-shadow: none !important;
}

body.site-renewed main a[class*="bg-rose-"] {
  border-radius: 10px !important;
  box-shadow: none !important;
}

body.site-renewed main a.text-emerald-700,
body.site-renewed main a.text-emerald-800,
body.site-renewed main a.text-emerald-600 {
  color: var(--site-green) !important;
  text-underline-offset: 4px;
}

body.site-renewed main a.text-rose-700,
body.site-renewed main a.text-rose-600 {
  color: var(--site-rose) !important;
}

/* Forms */
body.site-renewed input,
body.site-renewed select,
body.site-renewed textarea {
  border-color: #d9d0c7 !important;
  border-radius: 10px !important;
  color: var(--site-ink) !important;
  background-color: #fff !important;
  box-shadow: none !important;
}

body.site-renewed input:focus,
body.site-renewed select:focus,
body.site-renewed textarea:focus {
  border-color: #85ad9b !important;
  box-shadow: 0 0 0 3px rgba(33, 107, 85, .11) !important;
}

/* Footer */
body.site-renewed > footer {
  position: relative;
  margin-top: 0 !important;
  padding: 2.3rem max(1.25rem, calc((100vw - 1120px) / 2)) !important;
  border-top: 1px solid var(--site-line) !important;
  color: var(--site-ink) !important;
  background: #f4eee6 !important;
  box-shadow: none !important;
  font-family: var(--site-body) !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
}

body.site-renewed > footer::before,
body.site-renewed > footer > .absolute {
  display: none !important;
}

body.site-renewed > footer > div:not(.absolute) {
  position: relative;
  z-index: 1;
}

body.site-renewed > footer a {
  color: #5c524b !important;
  text-underline-offset: 4px;
}

/* Mobile navigation generated by main.js */
body.site-renewed .site-mobile-menu {
  display: none;
  position: relative;
}

body.site-renewed .site-mobile-menu summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: .55rem .8rem !important;
  border: 1px solid var(--site-line) !important;
  border-radius: 10px !important;
  color: var(--site-ink) !important;
  background: #fff !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
}

body.site-renewed .site-mobile-panel {
  overflow: hidden;
  padding: .55rem !important;
  border: 1px solid var(--site-line);
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 45px rgba(71, 51, 36, .14) !important;
}

body.site-renewed .site-mobile-panel a {
  min-height: 44px;
  display: flex !important;
  align-items: center;
  padding: .65rem .85rem !important;
  border-radius: 9px !important;
  color: #574d46 !important;
  background: transparent !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
}

body.site-renewed .site-mobile-panel a.site-support-link {
  color: var(--site-rose) !important;
  background: var(--site-rose-pale) !important;
}

@media (max-width: 639px) {
  body.site-renewed > header {
    min-height: 68px !important;
    padding: .7rem 1rem !important;
  }

  body.site-renewed > header > :first-child {
    font-size: 1.08rem !important;
  }

  body.site-renewed > header > :first-child img {
    width: 38px !important;
    height: 38px !important;
  }

  body.site-renewed .site-desktop-nav {
    display: none !important;
  }

  body.site-renewed .site-mobile-menu {
    display: block;
  }

  body.site-renewed .site-mobile-panel {
    position: absolute;
    top: calc(100% + .6rem);
    right: 0;
    width: min(280px, calc(100vw - 32px));
  }

  body.site-renewed > main,
  body.site-renewed.page-guide > main,
  body.site-renewed.page-contact > main {
    width: min(100% - 28px, 1120px) !important;
    padding: 30px 0 52px !important;
  }

  body.site-renewed .site-breadcrumb {
    width: 100% !important;
    margin-bottom: 26px !important;
    padding: .65rem .75rem !important;
    border-radius: 10px !important;
    white-space: normal !important;
  }

  body.site-renewed .site-page-title {
    margin-bottom: 28px !important;
    padding-bottom: 16px !important;
    font-size: clamp(1.65rem, 8vw, 2.2rem) !important;
    line-height: 1.45 !important;
  }

  body.site-renewed .site-content-panel {
    padding: 1.25rem !important;
  }

  body.site-renewed .site-store-card > div {
    gap: .9rem !important;
    padding: 1.35rem !important;
  }

  body.site-renewed .site-store-card h2,
  body.site-renewed .site-store-card h3 {
    overflow-wrap: anywhere;
  }

  body.site-renewed > footer {
    padding: 2rem 1rem !important;
    line-height: 1.8;
  }

  .guide-hero {
    grid-template-columns: 1fr;
    padding: 1.35rem !important;
  }

  .guide-hero-visual {
    min-height: 190px;
  }

  .guide-hero-visual img {
    width: min(72vw, 250px);
  }

  .guide-card-grid,
  .pattern-grid,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .guide-link-card {
    min-height: 0;
  }

  .pattern-visual {
    aspect-ratio: 1 / .78;
  }

  .guide-step {
    padding: 4.2rem 1.15rem 1.2rem;
  }

  .guide-step::before {
    top: 1rem;
    left: 1.15rem;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .pattern-grid,
  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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