:root {
  --color-bg: #fbf8f1;
  --color-surface: #fffdf8;
  --color-text: #352d28;
  --color-text-muted: #665c53;
  --color-indigo: #284b63;
  --color-indigo-dark: #1f3b4f;
  --color-wood: #c9a77b;
  --color-wood-light: #eadbc6;
  --color-accent: #d78951;
  --color-noren: #f39a3d;
  --color-noren-dark: #e4792f;
  --color-border: #e7dccb;
  --color-shadow: rgba(53, 45, 40, 0.08);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  background: var(--color-bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(201, 167, 123, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--color-indigo);
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  border-bottom: 1px solid rgba(231, 220, 203, 0.8);
  background: rgba(251, 248, 241, 0.92);
  padding: 14px clamp(18px, 4vw, 56px);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--color-indigo-dark);
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 0;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

.site-nav a {
  position: relative;
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
}

.site-nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 1.1em;
  background: var(--color-border);
  transform: translateY(-50%);
}

.site-nav a:hover {
  color: var(--color-indigo);
}

.menu-button {
  display: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-indigo-dark);
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 7vw, 88px) clamp(18px, 4vw, 56px) clamp(42px, 8vw, 96px);
}

.hero__visual {
  order: 2;
}

.hero__content {
  order: 1;
}

.eyebrow,
.section-label,
.tag,
.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--color-wood-light);
  border-radius: 999px;
  background: #fff8eb;
  color: var(--color-indigo-dark);
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: fit-content;
  margin-bottom: 22px;
  border: 1px solid var(--color-wood-light);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 10px 24px var(--color-shadow);
  padding: 10px 14px;
  color: var(--color-indigo-dark);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.35;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--color-indigo-dark);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--color-text);
  font-size: 1.18rem;
  line-height: 1.55;
  letter-spacing: 0;
}

.hero-copy {
  max-width: none;
  margin-bottom: 18px;
  color: var(--color-indigo-dark);
  font-size: clamp(1.55rem, 2.75vw, 2.45rem);
  font-weight: 800;
  line-height: 1.32;
  white-space: nowrap;
}

.hero-copy span {
  display: block;
}

.hero-text {
  max-width: 39rem;
  color: var(--color-text-muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

.button-row--center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 18px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 8px 22px var(--color-shadow);
}

.button--primary {
  border-color: var(--color-indigo);
  background: var(--color-indigo);
  color: #fff;
}

.button--secondary {
  background: var(--color-surface);
  color: var(--color-indigo-dark);
}

.notice,
.section-note,
.site-footer {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.shop-scene {
  position: relative;
  min-height: clamp(330px, 39vw, 520px);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 14%, rgba(215, 137, 81, 0.13), transparent 30%),
    linear-gradient(180deg, #fffdf8 0%, #f3ebde 100%);
  box-shadow: 0 24px 60px var(--color-shadow);
}

.shop-scene::after {
  content: "";
  position: absolute;
  inset: 20px 8% auto;
  z-index: 1;
  height: 132px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(40, 75, 99, 0.08), rgba(40, 75, 99, 0));
  pointer-events: none;
}

.noren {
  position: absolute;
  inset: 20px 9% auto;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 130px;
  transform-origin: top center;
  animation: norenSway 2.2s ease-out both;
}

.noren span {
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, var(--color-noren) 0%, var(--color-noren-dark) 100%);
  box-shadow: inset 0 -20px 28px rgba(0, 0, 0, 0.1);
}

.noren-label {
  position: absolute;
  left: 12.5%;
  top: 28px;
  z-index: 2;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
  white-space: normal;
  writing-mode: vertical-rl;
}

.noren span:nth-child(2) {
  border-radius: 0 0 10px 7px;
  animation: clothLeft 2.2s ease-out both;
}

.noren span:nth-child(3) {
  border-radius: 0 0 7px 10px;
  animation: clothRight 2.2s ease-out both;
}

.character-wrap {
  position: absolute;
  left: 50%;
  top: 76px;
  z-index: 2;
  width: min(84%, 500px);
  aspect-ratio: 1;
  transform: translateX(-50%);
}

.hero-cat,
.hero-tofu {
  position: absolute;
  object-fit: contain;
  opacity: 0;
}

.hero-cat {
  left: -8%;
  bottom: 1%;
  z-index: 1;
  width: 58%;
  height: 86%;
  transform-origin: 50% 92%;
  animation: catEnter 2.35s 0.52s ease-out forwards;
}

.hero-tofu {
  right: -8%;
  bottom: 0;
  z-index: 2;
  width: 76%;
  height: 82%;
  transform-origin: 52% 86%;
  animation: tofuEnter 2.25s 0.35s ease-out forwards;
}

.small-character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.character-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--color-text-muted);
  text-align: center;
  font-weight: 800;
}

.character-placeholder[hidden] {
  display: none;
}

.speech {
  position: absolute;
  left: 50%;
  bottom: 9%;
  z-index: 3;
  width: min(78%, 320px);
  max-width: none;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  padding: 11px 18px;
  color: var(--color-indigo-dark);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 12px 28px var(--color-shadow);
  opacity: 0;
  transform: translateX(-50%);
  animation: speechIn 0.7s 1.5s ease-out forwards;
}

.speech::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 14px;
  height: 14px;
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  transform: translateX(-50%) rotate(45deg);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.section--tint {
  max-width: none;
  background: rgba(255, 253, 248, 0.62);
}

.section-inner {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding-right: clamp(18px, 4vw, 56px);
  padding-left: clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.section-label) {
  color: var(--color-text-muted);
}

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

.card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.event-card,
.about-panel,
.closing {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 0 16px 40px var(--color-shadow);
}

.info-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
}

.info-card--featured {
  border-color: rgba(215, 137, 81, 0.55);
}

.info-card p,
.event-card p,
.about-panel p {
  color: var(--color-text-muted);
}

.article-thumb {
  width: 100%;
  aspect-ratio: 1280 / 670;
  height: auto;
  margin: 2px 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-wood-light);
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(53, 45, 40, 0.06);
}

.service-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  margin: 2px 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-wood-light);
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(53, 45, 40, 0.06);
}

.card-topline {
  margin-bottom: 16px;
}

.tag {
  border-color: rgba(215, 137, 81, 0.25);
  background: rgba(215, 137, 81, 0.13);
  color: #6b3e20;
}

.tag--wood {
  border-color: var(--color-wood-light);
  background: #f6ecdd;
  color: var(--color-indigo-dark);
}

.card-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  color: var(--color-indigo-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 34px);
  padding: clamp(24px, 5vw, 36px);
}

.event-card__body .button-row,
.event-card__body .button {
  margin-top: 6px;
}

.event-thumb {
  width: 100%;
  aspect-ratio: 1004 / 591;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-wood-light);
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(53, 45, 40, 0.06);
}

.event-date {
  margin: 14px 0 8px;
  font-weight: 800;
}

.status {
  border-color: rgba(215, 137, 81, 0.35);
  background: rgba(215, 137, 81, 0.16);
  color: #6b3e20;
}

.section--about {
  padding-top: 32px;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
}

.small-character {
  width: min(100%, 220px);
  aspect-ratio: 1;
  justify-self: center;
}

.closing {
  max-width: 1000px;
  margin: 0 auto clamp(48px, 7vw, 84px);
  padding: clamp(30px, 6vw, 54px) clamp(18px, 5vw, 54px);
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-indigo-dark);
  color: rgba(255, 255, 255, 0.86);
  padding: 28px clamp(18px, 4vw, 56px);
  text-align: center;
}

.site-footer p {
  margin-bottom: 8px;
}

@keyframes norenSway {
  0% {
    transform: rotate(0deg);
  }
  24% {
    transform: rotate(-1.8deg);
  }
  52% {
    transform: rotate(1.2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes clothLeft {
  0%,
  36% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-7px) rotate(-1deg);
  }
}

@keyframes clothRight {
  0%,
  36% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(7px) rotate(1deg);
  }
}

@keyframes characterEnter {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-34px);
  }
  52% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  66% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  78% {
    transform: translateX(-50%) translateY(8px) rotate(2deg);
  }
  90% {
    transform: translateX(-50%) translateY(2px) rotate(-0.8deg);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes tofuEnter {
  0% {
    opacity: 0;
    transform: translateY(-34px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  66% {
    transform: translateY(0) rotate(0deg);
  }
  79% {
    transform: translateY(8px) rotate(2.2deg);
  }
  91% {
    transform: translateY(2px) rotate(-0.7deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes catEnter {
  0% {
    opacity: 0;
    transform: translateY(-26px);
  }
  52% {
    opacity: 1;
    transform: translateY(0);
  }
  72% {
    transform: translateY(0) rotate(0deg);
  }
  84% {
    transform: translateY(5px) rotate(-1.2deg);
  }
  94% {
    transform: translateY(1px) rotate(0.4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes speechIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 18px;
    top: 62px;
    display: none;
    width: min(320px, calc(100vw - 36px));
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    padding: 12px;
    box-shadow: 0 18px 42px var(--color-shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .site-nav a + a::before {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: 1;
  }

  .hero__content {
    order: 2;
  }

  .shop-scene {
    min-height: 340px;
  }

  .noren {
    height: 112px;
  }

  .character-wrap {
    top: 74px;
    width: min(82%, 390px);
  }

  .card-grid,
  .card-grid--two {
    grid-template-columns: 1fr;
  }

  .event-card,
  .about-panel {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .event-card {
    gap: 18px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 64px;
    padding: 12px 16px;
  }

  .brand {
    max-width: 13rem;
    line-height: 1.45;
  }

  .hero {
    padding-top: 22px;
  }

  .shop-scene {
    min-height: 390px;
  }

  .character-wrap {
    top: 96px;
    width: min(82%, 280px);
  }

  .speech {
    bottom: 8%;
    width: min(78%, 280px);
    padding: 8px 14px;
  }

  .button {
    width: 100%;
  }

  .info-card {
    padding: 20px;
  }
}

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

  .character-wrap,
  .speech,
  .hero-cat,
  .hero-tofu {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .hero-cat,
  .hero-tofu {
    transform: none;
  }

  .speech {
    transform: translateX(-50%);
  }
}
