:root {
  color-scheme: light;
  --green: #137440;
  --deep-green: #0d5832;
  --yellow: #f5c936;
  --paper: #bda48d;
  --cream: #f7f2ef;
  --brown: #4b2d24;
  --ink: #2c211d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--green);
}

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

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.seo-text {
  display: none;
}

.article-inner {
  width: min(700px, 100%);
  margin: auto;
}

.front-page {
  min-height: 100svh;
  padding: 24px 18px 56px;
  background:
    radial-gradient(circle at 10% 10%, rgba(245, 201, 54, 0.14), transparent 22%),
    linear-gradient(var(--green), var(--green));
}

.front-inner {
  display: grid;
  justify-items: center;
}

.date-image {
  width: min(680px, 100%);
  margin-top: -20px;
}

.catch-image {
  width: min(620px, 96%);
  margin-top: 20px;
}

.front-box,
.disclaimer {
  width: min(760px, 100%);
  margin-top: 76px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 248, 222, 0.96);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.food-box {
  margin-top: 76px;
}

.disclaimer {
  margin-top: 28px;
  color: var(--brown);
  font-size: clamp(0.86rem, 2vw, 1rem);
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}

.section-title-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 45px;
  margin: -6px -6px 0;
  padding: 10px 112px;
  border-radius: 8px;
  background: #ffea88;
}

.sake-title {
  width: min(270px, 100%);
}

.food-title {
  width: min(330px, 100%);
}

.sake-title,
.food-title {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}

.bubble {
  position: absolute;
  z-index: 1;
  top: -63px;
  animation: bubble-sway 2.8s ease-in-out infinite alternate;
}

.kanpai {
  left: -9px;
  width: 104px;
  transform-origin: right bottom;
}

.waiwai {
  right: -9px;
  width: 112px;
  animation-duration: 3.2s;
  animation-direction: alternate-reverse;
  transform-origin: left bottom;
}

@keyframes bubble-sway {
  from {
    transform: rotate(-8deg);
  }

  to {
    transform: rotate(8deg);
  }
}

.sake-lists {
  margin-top: 14px;
}

.sake-lists picture {
  display: block;
}

.sake-list {
  width: 100%;
}

.food-list {
  width: 100%;
  margin-top: 14px;
}

.back-page {
  padding: 34px 18px 58px;
  background: #c4a792;
}

.back-inner {
  display: grid;
  gap: 26px;
}

.detail-title {
  width: min(700px, 100%);
  margin: 0 auto 2px;
}

.detail-card {
  position: relative;
  min-height: 360px;
  padding: 34px 28px 22px 190px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(247, 242, 239, 0.94);
  box-shadow: 0 14px 34px rgba(74, 48, 36, 0.22);
}

.detail-label {
  position: absolute;
  top: 30px;
  left: 24px;
  width: 132px;
  z-index: 2;
}

.map-label {
  width: 118px;
}

.detail-copy {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.9;
  text-align: left;
}

.detail-copy p {
  margin: 0;
}

.detail-copy p + p {
  margin-top: 0.8em;
}

.detail-visual {
  width: min(620px, 95%);
  margin: 20px auto 0;
}

.detail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 180px;
  margin: 24px auto 0;
  padding: 10px 22px;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.detail-link::after {
  margin-left: 8px;
  content: "→";
}

.detail-link:hover {
  background: var(--deep-green);
  transform: translateY(-2px);
}

.detail-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.closing-note {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 0;
  color: #fff;
  background: var(--green);
  text-align: left;
}

.closing-note p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.9;
}

.ajiwatta {
  width: 100%;
  max-width: 140px;
  justify-self: center;
}

#footer {
  padding: 18px 12px;
  color: #fff;
  background: #137440;
}

.footer-inner {
  width: min(700px, 100%);
  margin: auto;
  text-align: center;
}

.organizer-line,
.request-line p {
  margin: 0;
}

.organizer-line a {
  color: #fff;
}

.organizer-line a:hover,
.organizer-line a:focus-visible {
  color: var(--yellow);
}

.organizer-line {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 1ch;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
  font-size: clamp(0.82rem, 1.7vw, 1rem);
  font-weight: 800;
  line-height: 1.7;
  text-align: left;
}

.organizer-line p {
  display: contents;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.contact-details strong {
  font-weight: 900;
}

.instagram-link {
  width: fit-content;
  margin: 10px auto 0;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  color: var(--yellow);
}

.instagram-icon {
  width: 28px;
  height: 28px;
  display: block;
  fill: none;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.request-line {
  display: grid;
  grid-template-columns: 1fr;
  width: min(700px, 100%);
  margin: 18px auto;
  padding: 18px;
  gap: 4px;
  align-items: center;
  background: rgba(255, 248, 222, 0.96);
}

.request-line strong {
  padding: 4px 10px;
  display: block;
  color: #137440;
  background: var(--yellow);
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  font-weight: 900;
  text-align: center;
}

.request-line p {
  font-size: clamp(0.78rem, 1.45vw, 0.95rem);
  font-weight: 800;
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 720px) {
  .front-page,
  .back-page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .front-box,
  .disclaimer {
    padding: 14px;
  }

  .section-title-row {
    grid-template-columns: minmax(0, 1fr);
    min-height: 45px;
    margin: 0;
    padding: 8px 76px;
  }

  .kanpai,
  .waiwai {
    width: 72px;
  }

  .closing-note {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: 0;
    padding: 24px 18px 20px;
  }

  .detail-label {
    position: relative;
    top: 0;
    left: 0;
    width: 92px;
    margin-bottom: 14px;
  }

  .food-story-label {
    position: relative;
    float: left;
    width: 92px;
    margin: 0 22px 12px 0;
    shape-outside: margin-box;
    shape-margin: 6px;
  }

  .food-story-label + .detail-copy {
    position: static;
  }

  .map-label {
    float: left;
    width: 86px;
    margin: 0 22px 12px 0;
    shape-outside: margin-box;
    shape-margin: 6px;
  }

  .map-label + .detail-copy {
    position: static;
  }

  .detail-copy {
    font-size: 0.95rem;
  }

  .detail-visual {
    width: 100%;
  }

  .closing-note {
    justify-items: start;
  }

  .closing-note .ajiwatta {
    width: 100%;
    max-width: 100px;
    justify-self: center;
  }

  .closing-note p {
    font-size: 0.8rem;
  }

  .request-line {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
