:root {
  --cream: #f7f0e1;
  --cream-deep: #efe4cd;
  --paper: #fffdf7;
  --ink: #2a2823;
  --ink-soft: #5c574c;
  --green: #1f4d3a;
  --orange: #d8742c;
  --orange-deep: #a54a12;
  --orange-soft: #f6dcc0;
  --gray: #cfc6b3;
  --indigo: #23395b;

  --font-round: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif; --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", sans-serif;

  --text-small: 0.875rem;
  --text-body: 1.0625rem;
  --text-h2: 1.75rem;
  --text-h3: 1.5rem;
  --text-name: clamp(2.25rem, 11vw, 2.75rem);

  --gap: 1.25rem;
  --space-near: 2.5rem;
  --space-far: 4.5rem;
  --radius: 28px;
  --radius-tight: 6px;
  --line: 2px;

  --bar-offset: calc(var(--review-bar-height, 0px) + var(--review-note-height, 0px));
  --top-height: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--bar-offset) + var(--top-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-round);
  font-feature-settings: "palt";
  letter-spacing: 0.03em;
  line-height: 1.4;
  word-break: keep-all;
  text-wrap: balance;
  line-break: strict;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 900;
  color: var(--green);
}

p,
li,
dd,
figcaption {
  line-break: strict;
  text-wrap: pretty;
}

p {
  margin: 0;
  max-inline-size: 36em;
}

ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2 * var(--gap), 1080px);
  margin-inline: auto;
}

figcaption {
  font-size: var(--text-small);
  line-height: 1.7;
  color: var(--ink-soft);
}

.top {
  position: sticky;
  top: calc(var(--bar-offset) + 8px);
  z-index: 50;
  width: min(100% - 16px, 1120px);
  margin: 8px auto 0;
}

.top__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  min-height: var(--top-height);
  padding: 6px 8px 6px 10px;
  background: var(--paper);
  border: var(--line) solid var(--green);
  border-radius: 32px;
}

.top__id {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
}

.top__logo {
  flex: none;
  width: 44px;
  height: 44px;
}

.top__title {
  font-family: var(--font-round);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: keep-all;
  color: var(--green);
}

.top__title small,
.foot__name small {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 14px;
  font: 700 0.9375rem/1 var(--font-round);
  color: var(--paper);
  background: var(--green);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.menu-button[hidden] {
  display: none;
}

.menu-button__bars,
.menu-button__bars::before,
.menu-button__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-button__bars {
  position: relative;
}

.menu-button__bars::before,
.menu-button__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-button__bars::before {
  top: -5px;
}

.menu-button__bars::after {
  top: 5px;
}

.menu ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-family: var(--font-round);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--green);
  border-radius: 999px;
}

.menu a:hover {
  background: var(--cream-deep);
}

.menu .menu__join {
  padding: 0 18px;
  color: #fff;
  background: var(--orange-deep);
}

.menu .menu__join:hover {
  background: var(--green);
}

.ideas {
  padding: 2.25rem 0 3.25rem;
  background: var(--cream-deep);
  border-radius: 44px 44px 0 0;
}

.ideas h2 {
  margin-bottom: 1rem;
}

.board > * {
  margin-bottom: 1.5rem;
  break-inside: avoid;
}

.board > :last-child {
  margin-bottom: 0;
}

.note {
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--paper);
  border-radius: var(--radius);
}

.note h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 0.5rem;
  font-size: 1.1875rem;
  font-weight: 900;
  color: var(--green);
}

.note h3 b {
  font-size: 1.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--orange-deep);
}

.note li {
  position: relative;
  padding-left: 1.1em;
  line-height: 1.8;
}

.note li + li {
  margin-top: 0.4rem;
}

.note li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.15em;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
}

.note--1 {
  margin-right: 1rem;
  border: var(--line) solid var(--green);
  border-bottom-left-radius: var(--radius-tight);
}

.note--2 {
  margin-left: 1rem;
  background: var(--orange-soft);
  border-top-right-radius: var(--radius-tight);
}

.note--3 {
  margin-right: 1.5rem;
  border-top-left-radius: var(--radius-tight);
}

.note--4 {
  margin-left: 0.5rem;
  color: var(--cream);
  background: var(--green);
  border-bottom-right-radius: var(--radius-tight);
}

.note--4 h3 {
  color: #fff;
}

.note--4 h3 b {
  color: var(--orange-soft);
}

.note--5 {
  margin-right: 0.5rem;
  border: var(--line) solid var(--orange);
  border-top-right-radius: var(--radius-tight);
}

.snow h3 {
  margin: 0.5rem 0 1rem;
  font-size: var(--text-h3);
  font-weight: 900;
  color: var(--green);
}

.snow__photo {
  margin-bottom: 1.25rem;
}

.snow__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) var(--radius) var(--radius-tight);
}

.snow__photo figcaption {
  margin-top: 6px;
}

.steps {
  padding: var(--space-far) 0 var(--space-near);
}

.steps__grid {
  display: grid;
  gap: 1.25rem;
}

.faq {
  padding: var(--space-near) 0 var(--space-far);
}

.faq__grid {
  display: grid;
  gap: 1.5rem;
}

.faq__items {
  display: grid;
  gap: 2.25rem;
}

.ask {
  position: relative;
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.4rem 1.1rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--green);
  background: var(--paper);
  border: var(--line) solid var(--green);
  border-radius: var(--radius) var(--radius) var(--radius) var(--radius-tight);
}

.pair {
  display: grid;
  justify-items: start;
  margin-bottom: 0.9rem;
  font-family: var(--font-round);
  font-weight: 700;
  line-height: 1.5;
}

.pair li {
  position: relative;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--ink-soft);
  border-radius: 14px;
}

.pair li + li {
  margin-top: 22px;
}

.pair li + li::before {
  content: "";
  position: absolute;
  left: 24px;
  bottom: calc(100% + 1.5px);
  width: 1.5px;
  height: 22px;
  background: var(--ink-soft);
}

.pair small {
  font-size: var(--text-small);
  font-weight: 500;
}

.join {
  padding-bottom: var(--space-far);
}

.join .wrap {
  padding: 2.25rem 1.25rem 2rem;
  background: var(--orange-soft);
  border-radius: var(--radius) var(--radius) var(--radius-tight) var(--radius);
}

.join h2 {
  margin-bottom: 1.25rem;
}

.foot {
  padding: 2.5rem 0 3rem;
  font-size: 0.9375rem;
  color: var(--cream);
  background: var(--green);
  border-radius: 44px 44px 0 0;
}

.foot__grid {
  display: grid;
  gap: 1.25rem;
}

.foot__name {
  font-family: var(--font-round);
  font-size: 1.25rem;
  font-weight: 700;
}

.foot__link {
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  min-height: 48px;
  text-underline-offset: 4px;
}

.foot__credits {
  margin-top: 0.75rem;
}

.foot__credits summary {
  display: inline-block;
  min-height: 48px;
  padding: 0 16px;
  line-height: 46px;
  border: 1px solid var(--cream);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.foot__credits summary::-webkit-details-marker {
  display: none;
}

.foot__credits summary::after {
  content: "＋";
  margin-left: 8px;
}

.foot__credits[open] summary::after {
  content: "－";
}

.foot__credits ul {
  margin-top: 0.75rem;
}

.foot :focus-visible {
  outline-color: var(--cream);
}

@media (max-width: 359px) {
  :root {
    --gap: 0.75rem;
  }
}

@media (max-width: 899px) {
  .has-menu-button .menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    padding: 10px;
    background: var(--paper);
    border: var(--line) solid var(--green);
    border-radius: var(--radius);
  }

  .has-menu-button .menu[data-open] {
    display: block;
  }

  .has-menu-button .menu ul {
    display: grid;
    gap: 2px;
  }

  .has-menu-button .menu a {
    min-height: 48px;
    padding: 0 16px;
    font-size: 1.0625rem;
  }

  .has-menu-button .menu .menu__join {
    justify-content: center;
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .menu a,
  .menu-button {
    transition: transform 150ms ease-out, opacity 150ms ease-out;
  }

  .menu a:active,
  .menu-button:active {
    transform: scale(0.97);
  }
}

@media print {
  .top {
    position: static;
  }
}

body { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, figcaption, dd { text-wrap: pretty; }
input, textarea, select { word-break: normal; overflow-wrap: normal; }
