@charset "UTF-8";

:root {
  --c-bg-cream: #f8faeb;
  --c-text-navy: #1a3a6c;
  --c-text-light: #6a7c92;
  --c-soai-navy: #4a5c2b;
  --c-soai-orange: #f3981d;
  --c-wave-pink: #fdf5e6;
  --c-wave-blue: #eef5df;
  --c-wave-green: #dcedc8;
  --c-white: #ffffff;
  --c-border: #d2dbb8;
}

body.l-body {
  margin: 0;
  /* Mincho/Serif for a Japanese storybook feel */
  font-family: "Noto Serif JP", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: var(--c-text-navy);
  line-height: 2.2;
  /* Very airy line-height */
  letter-spacing: 0.1em;
  /* Wide elegant tracking */
  
  -webkit-font-smoothing: antialiased;
}

/* Sans-serif for UI elements / specific data to contrast with Serif */
.u-font-sans {
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  letter-spacing: 0.05em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Utilities */
.u-text-center {
  text-align: center;
}

.u-mt-2 {
  margin-top: 1rem;
}

.u-mt-3 {
  margin-top: 2rem;
}

.u-mt-4 {
  margin-top: 4rem;
}

.u-mb-2 {
  margin-bottom: 1rem;
}

.u-mb-3 {
  margin-bottom: 2rem;
}

.u-mb-4 {
  margin-bottom: 4rem;
}

.u-text-small {
  font-size: 0.85rem;
  line-height: 1.8;
}

.u-text-lg {
  font-size: 1.2rem;
}

.u-text-navy {
  color: var(--c-soai-navy);
}

.u-text-orange {
  color: var(--c-soai-orange);
}

/* Title Icon (Bean) */
.u-icon-mame {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.u-icon-mame::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url('../images/ttl-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 768px) {
  .u-hidden-sp {
    display: none;
  }
}

.u-pl-content {
  padding-left: 3rem;
}

@media (max-width: 768px) {
  .u-pl-content {
    padding-left: 3.5rem;
  }
}

/* 募集料理・募集期間のテキストを少し左寄せへ調整 */
.l-section-block--pink .u-pl-content {
  padding-left: 3rem;
}

@media (max-width: 768px) {
  .l-section-block--pink .u-pl-content {
    padding-left: 1.8rem;
  }
}

/*-------------------------------------
  Fonts
--------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Noto+Serif+JP:wght@400;700&display=swap');

/*-------------------------------------
  Layout - Minimal Header
--------------------------------------*/
.l-header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.l-header__logo img {
  height: 45px;
  width: auto;
}

.l-header__nav {
  display: flex;
  gap: 3rem;
  font-size: 0.9rem;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--c-text-navy);
}

.l-header__nav-item {
  position: relative;
  transition: opacity 0.3s;
}

.l-header__nav-item:hover {
  opacity: 0.6;
}

@media (max-width: 1000px) {
  .l-header {
    padding: 1rem;
  }

  .l-header__nav {
    display: none;
  }

  /* Use hamburger menu in real setup */
}

.l-main {
  overflow: hidden;
  position: relative;
}

/*-------------------------------------
  Footer
--------------------------------------*/
.l-footer {
  background-color: var(--c-text-navy);
  color: #fff;
  padding: 6rem 1rem 4rem;
  font-family: "Noto Serif JP", serif;
}

@media (max-width: 768px) {
  .l-footer {
    padding: 3rem 1rem 2rem;
  }
}

.l-footer__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.l-footer__contact {
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .l-footer__contact {
    margin-bottom: 2rem;
  }
}

.l-footer__contact-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--c-soai-orange);
}

.l-footer__contact p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.l-footer__copy {
  font-size: 0.8rem;
  opacity: 0.5;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.1em;
}

/*-------------------------------------
  Components
--------------------------------------*/
/* Elegant Thin Outline / Solid Buttons */
.c-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 3.5rem;
  border-radius: 999px;
  font-family: "Playfair Display", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: pointer;
  background: transparent;
}

/* Navy Solid */
.c-btn--navy {
  background: var(--c-text-navy);
  color: #fff;
  border: 1px solid var(--c-text-navy);
}

.c-btn--navy:hover {
  background: #fff;
  color: var(--c-text-navy);
}

/* Navy Outline */
.c-btn--outline {
  border: 1px solid var(--c-text-navy);
  color: var(--c-text-navy);
}

.c-btn--outline:hover {
  background: var(--c-text-navy);
  color: #fff;
}

/* CTA Button — warm cream/orange (s-about palette) */
.c-btn--cta {
  background: linear-gradient(135deg, #fce4c0 0%, #f5d5a0 50%, #f0c888 100%);
  color: #5d4037;
  border: none;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(243, 152, 29, 0.2);
  margin-top: 2.5rem;
}

.c-btn--cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(243, 152, 29, 0.35);
}

.c-btn--xl {
  padding: 0.9rem 5rem;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .c-btn--xl {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    width: auto;
    min-width: 260px;
    display: inline-flex;
    justify-content: center;
  }
}

/* Clean, Floating White Cards */
.c-card {
  background-color: var(--c-white);
  border-radius: 20px;
  padding: 4rem 3rem;
  box-shadow: 0 20px 50px rgba(26, 58, 108, 0.05);
  /* very soft navy shadow */
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .c-card {
    padding: 2.5rem 1.5rem;
  }
}

.c-card__title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--c-text-navy);
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.c-card__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background-color: var(--c-soai-orange);
}

/* Custom override for colored section cards: remove white "frame" and left-align */
.l-section-block--cream .c-card,
.l-section-block--green .c-card,
.l-section-block--blue .c-card {
  background-color: transparent;
  box-shadow: none;
  padding: 0 0 0 3rem;
  text-align: left;
}

@media (max-width: 768px) {

  .l-section-block--cream .c-card,
  .l-section-block--green .c-card,
  .l-section-block--blue .c-card {
    padding-left: 3.5rem;
  }
}

/* Section Titles (Background Image version: ttl-bg.png / Wavy Icon version) */
.c-bg-title {
  text-align: left;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #5d4037;
  /* Dark mushroom brown for an "organic" feel like the image */
  margin: 0;
  position: absolute;
  /* Protrude from frame */
  top: -30px;
  left: -20px;
  z-index: 10;

  /* Background styling: matching the wavy blue cloud in the image */
  background-image: url('../images/ttl-bg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;

  /* Box sizing */
  width: 420px;
  min-width: auto;
  max-width: none;
  min-height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5.5rem;
  /* Space for the icon */
  padding-right: 2rem;
  padding-bottom: 5px;

  /* Text Shadow for "募集期間" look (white outline) */
  text-shadow:
    2px 2px 0 #fff, -2px -2px 0 #fff,
    2px -2px 0 #fff, -2px 2px 0 #fff,
    0 2px 0 #fff, 0 -2px 0 #fff,
    2px 0 0 #fff, -2px 0 0 #fff;

  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

/* Bean Icon inside title */

@media (max-width: 768px) {
  .c-bg-title {
    font-size: 1.2rem;
    min-height: 60px;
    top: -25px;
    left: -10px;
    padding-left: 4.5rem;
  }

  .c-bg-title::before {
    width: 45px;
    height: 45px;
    left: 8px;
  }
}

/* Content Frame for sections with protruding titles */
.p-section-frame {
  background-color: var(--c-white);
  border-radius: 25px;
  padding: 5rem 4rem 4rem;
  /* Top padding is larger to accommodate the title */
  position: relative;
  margin-top: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
}

.p-section-frame--transparent {
  background-color: transparent !important;
  box-shadow: none !important;
  /* Keep the padding to maintain layout */
}

@media (max-width: 768px) {
  .p-section-frame {
    padding: 4rem 1.5rem 2.5rem;
    margin-top: 2rem;
  }
}

/* Definition Lists */
.c-def-list dt {
  font-weight: 700;
  color: var(--c-text-navy);
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.c-def-list dd {
  margin: 0 0 2rem 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--c-border);
}

.c-def-list dd:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .c-def-list__row {
    display: flex;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--c-border);
  }

  .c-def-list__row:last-child {
    border-bottom: none;
  }

  .c-def-list dt {
    width: 150px;
    margin-bottom: 0;
    padding-right: 2rem;
    border-bottom: none;
    flex-shrink: 0;
    padding-top: 0.3rem;
  }

  .c-def-list dd {
    flex: 1;
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
}

/* Numbered List */
.c-list-num {
  padding-left: 2rem;
  counter-reset: numList;
  list-style-type: none;
}

.c-list-num>li {
  position: relative;
  margin-bottom: 1rem;
}

.c-list-num>li::before {
  counter-increment: numList;
  content: counter(numList) ".";
  position: absolute;
  left: -2rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--c-soai-orange);
  font-size: 1.1rem;
}

/* Dot List */
.c-list-dot {
  padding-left: 1.5rem;
}

.c-list-dot>li {
  margin-bottom: 0.8rem;
  position: relative;
}

.c-list-dot>li::marker {
  color: var(--c-text-light);
}

.l-section-block {
  position: relative;
  width: 100%;
  padding: 80px 0;
  z-index: 1;
}

/* Wave SVGs applied as masks or pseudo-elements to colored blocks */
.l-section-block__wave-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* SVG shapes for top/bottom waves */
.c-huge-wave {
  position: absolute;
  width: 120%;
  left: -10%;
  height: 80px;
}

.c-huge-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.c-huge-wave--top {
  top: 0;
  transform: translateY(-100%);
  /* Ensure it doesn't block clicks */
  pointer-events: none;
}

.c-huge-wave--bottom {
  bottom: -1px;
}

/* Block Colors */
.l-section-block--pink {
  background-color: #ffffff;
}

.l-section-block--pink .shape-fill {
  fill: #ffffff;
}

.l-section-block--blue {
  background-color: var(--c-wave-blue);
}

.l-section-block--blue .shape-fill {
  fill: var(--c-wave-blue);
}

.l-section-block--cream {
  background-color: var(--c-bg-cream);
}

.l-section-block--cream .shape-fill {
  fill: var(--c-bg-cream);
}

.l-section-block--green {
  background-color: var(--c-wave-green);
}

.l-section-block--green .shape-fill {
  fill: var(--c-wave-green);
}

/*-------------------------------------
  Main Visual (MV) — Immersive, Airy
--------------------------------------*/
.p-mv {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 1rem 100px;
  overflow: hidden;
  background-image: url('../images/bg-main.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* Floating Elements behind MV */
.p-mv__bg-art {
  display: none;
  /* Hide abstract shapes since we have a main background image */
}

.p-mv__inner {
  max-width: 900px;
  width: 100%;
  position: relative;
  z-index: 2;
  text-align: center;
}

.p-mv__subtitle {
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  margin-bottom: 2rem;
  display: block;
}

.p-mv__title {
  font-family: "Playfair Display", serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-soai-navy);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.p-mv__logo {
  width: 100%;
  max-width: 900px;
  /* Increased from 700px for a more prominent centered MV */
  margin: 0 auto 2rem;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
  /* Add soft shadow to separate from background */
  position: relative;
  z-index: 5;
}

/* Floating Side Images in MV */
.p-mv__floating-photos {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  /* Behind the MV */
}

.p-mv__photo {
  position: absolute;
}

.p-mv__photo img {
  width: 100%;
  height: auto;
}

/* Position scattered photos — responsive across all breakpoints */

/* Float animations */
@keyframes floatSide1 {
  0% {
    transform: translateY(-50%) translateX(0);
  }

  100% {
    transform: translateY(-55%) translateX(10px);
  }
}

@keyframes floatSide2 {
  0% {
    transform: translateY(-50%) translateX(0);
  }

  100% {
    transform: translateY(-45%) translateX(-10px);
  }
}

/* === Default / Large Desktop (1920px+) === */
.p-mv__photo--side1 {
  top: 45%;
  left: 10%;
  transform: translateY(-50%);
  width: 16vw;
  max-width: 280px;
  animation: floatSide1 8s ease-in-out infinite alternate;
}

.p-mv__photo--side2 {
  top: 55%;
  right: 5%;
  transform: translateY(-50%);
  width: 14vw;
  max-width: 230px;
  animation: floatSide2 9s ease-in-out infinite alternate-reverse;
}

/* === Laptop (1025px ~ 1439px) === */
@media screen and (max-width: 1439px) {
  .p-mv__photo--side1 {
    left: 3%;
    width: 18vw;
    max-width: 220px;
  }

  .p-mv__photo--side2 {
    right: 3%;
    width: 15vw;
    max-width: 190px;
  }
}

/* === Tablet landscape / Small laptop (768px ~ 1024px) === */
@media screen and (max-width: 1024px) {
  .p-mv__photo--side1 {
    top: 51%;
    left: 2%;
    width: 20vw;
    max-width: 170px;
  }

  .p-mv__photo--side2 {
    top: 80%;
    right: 2%;
    width: 17vw;
    max-width: 150px;
  }
}

/* === Smartphone (~ 767px) === */
@media screen and (max-width: 767px) {
  .p-mv__photo--side1 {
    top: 50%;
    left: 0;
    width: 20vw;
    max-width: 85px;
    opacity: 0.6;
    animation: floatSide1 8s ease-in-out infinite alternate;
  }

  .p-mv__photo--side2 {
    bottom: 5%;
    right: 5%;
    width: 18vw;
    max-width: 75px;
    opacity: 0.6;
    animation: floatSide2 9s ease-in-out infinite alternate-reverse;
  }
}

.p-mv__lead {
  font-size: 1.2rem;
  line-height: 2.4;
  letter-spacing: 0.15em;
}

.p-mv__date-wrap {
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  padding: 1.5rem 3rem;
  border-radius: 16px;
  border: 1px solid var(--c-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: inline-block;
}

.p-mv__date-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-soai-orange);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.p-mv__date-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-text-navy);
  letter-spacing: 0.1em;
}

.p-mv__scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Playfair Display", serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--c-text-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scrollFade 3s infinite ease-in-out;
}

.p-mv__scroll::after {
  content: "";
  width: 1px;
  height: 60px;
  background-color: var(--c-text-navy);
  margin-top: 1rem;
}

@keyframes scrollFade {

  0%,
  100% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
  }
}

/* Date banner image */
.p-mv__date {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 500px;
  margin: 4rem auto 0;
  border-radius: 12px;
  overflow: hidden;
}

.p-mv__date img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .p-mv {
    padding: 70px 1rem 90px;
  }

  .p-mv__title {
    font-size: 3.5rem;
  }

  .p-mv__subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .p-mv__date {
    max-width: 70%;
    margin-top: 1.5rem;
  }
}

/*-------------------------------------
  Sections Specifics
--------------------------------------*/
.p-section__inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

/* About Overlay Card */
.p-about {
  margin-top: -80px;
  /* Pull it slightly into the hero or wave above */
}

/* Outline Grid */
.p-outline__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.p-outline__photos {
  position: relative;
}

.p-photo-frame {
  background: var(--c-white);
  padding: 10px;
  padding-bottom: 40px;
  /* Polaroid/Gallery style */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--c-border);
}

.p-photo-frame--1 {
  transform: rotate(-2deg);
  position: relative;
  z-index: 2;
}

.p-photo-frame--2 {
  transform: rotate(4deg);
  position: absolute;
  top: 30%;
  left: 20%;
  width: 90%;
  z-index: 1;
}

@media (max-width: 800px) {
  .p-outline__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .p-photo-frame--2 {
    position: relative;
    top: -30px;
    left: auto;
    transform: rotate(1deg);
  }
}

/* Flow (Elegant Steps) */
.p-flow__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.p-flow__step {
  width: 100%;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  padding: 2.5rem;
  text-align: center;
  position: relative;
}

.p-flow__step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px dashed var(--c-border);
  pointer-events: none;
}

.p-flow__step-num {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--c-soai-orange);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.p-flow__step-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.p-flow__arrow {
  width: 1px;
  height: 40px;
  background-color: var(--c-text-navy);
}

/* Notice Accordion */
.p-notice {
  text-align: center;
}

.p-notice__toggle {
  background: none;
  border: none;
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  color: var(--c-text-navy);
  border-bottom: 1px solid var(--c-text-navy);
  padding-bottom: 0.3rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .p-notice__toggle {
    font-size: 0.72rem;
    gap: 0.5rem;
    letter-spacing: 0.05em;
  }
}

.p-notice__toggle-icon {
  font-size: 0.8rem;
  transition: transform 0.4s;
}

.p-notice__toggle[aria-expanded="true"] .p-notice__toggle-icon {
  transform: rotate(-180deg);
}

.p-notice__content {
  text-align: left;
  margin-top: 3rem;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--c-border);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.p-notice__content[hidden] {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 3rem;
  margin-top: 0;
  border: none;
}

.p-notice__content.is-open {
  max-height: none;
  opacity: 1;
  padding: 3rem;
  margin-top: 3rem;
  border: 1px solid var(--c-border);
}

@media (max-width: 768px) {
  .p-notice__content.is-open {
    padding: 2rem 1.5rem;
  }
}

/* Entry Section */
.p-entry {
  text-align: center;
  padding: 6rem 0;
}

.p-entry .c-btn--cta {
  margin-top: 3rem;
}

/*-------------------------------------
  Animations
--------------------------------------*/
.js-fade-up {
  opacity: 0;
  transform: translateY(40px) var(--js-fade-transform, );
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0) var(--js-fade-transform, );
}

/* Container override for pink block */
#rules.l-section-block--pink {
  background-image: url('../images/bg-main.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 0 0 100px;
  overflow: hidden;
}

/* Top Wave - Masks the c-bg-cream gap */
.p-rules-wave-top {
  position: relative;
  width: 100%;
  z-index: 1;
  margin-top: -1px;
  line-height: 0;
}

.p-rules-wave-top svg {
  width: 100%;
  height: 120px;
  display: block;
}

/* Organic Blob Background */
.p-rules-blob {
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.p-rules-blob svg {
  width: 100%;
  height: 100%;
}

/* Floating Bean Images */
.p-rules-bean {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
  mix-blend-mode: multiply;
}

.p-rules-bean--1 {
  width: 55px;
  top: 15%;
  left: 8%;
  transform: rotate(-20deg);
  animation: beanFloat1 10s ease-in-out infinite alternate;
}

.p-rules-bean--2 {
  width: 45px;
  top: 65%;
  left: 5%;
  transform: rotate(15deg);
  animation: beanFloat2 12s ease-in-out infinite alternate-reverse;
}

.p-rules-bean--3 {
  width: 50px;
  top: 20%;
  right: 6%;
  transform: rotate(-10deg);
  animation: beanFloat1 14s ease-in-out infinite alternate;
}

.p-rules-bean--4 {
  width: 40px;
  top: 75%;
  right: 10%;
  transform: rotate(25deg);
  animation: beanFloat2 11s ease-in-out infinite alternate-reverse;
}

.p-rules-bean--5 {
  width: 35px;
  top: 50%;
  right: 3%;
  transform: rotate(-30deg);
  animation: beanFloat1 13s ease-in-out infinite alternate;
  opacity: 0.5;
}

@keyframes beanFloat1 {
  0% {
    transform: rotate(-20deg) translateY(0) translateX(0);
  }

  100% {
    transform: rotate(-15deg) translateY(-12px) translateX(8px);
  }
}

@keyframes beanFloat2 {
  0% {
    transform: rotate(15deg) translateY(0) translateX(0);
  }

  100% {
    transform: rotate(20deg) translateY(10px) translateX(-6px);
  }
}

/* Floating Clouds */
.p-rules-cloud {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.p-rules-cloud--1 {
  top: 12%;
  right: 18%;
  animation: cloudFloat1 12s ease-in-out infinite alternate;
}

.p-rules-cloud--2 {
  top: 25%;
  right: 8%;
  animation: cloudFloat2 15s ease-in-out infinite alternate-reverse;
}

.p-rules-cloud--3 {
  top: 8%;
  left: 12%;
  animation: cloudFloat1 18s ease-in-out infinite alternate;
}

@keyframes cloudFloat1 {
  0% {
    transform: translateX(0) translateY(0);
  }

  100% {
    transform: translateX(20px) translateY(-8px);
  }
}

@keyframes cloudFloat2 {
  0% {
    transform: translateX(0) translateY(0);
  }

  100% {
    transform: translateX(-15px) translateY(10px);
  }
}

/* Section Heading — "About The Competition" */
.p-rules-heading {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 20px 1.5rem 30px;
}

.p-rules-heading__en {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #5d4037;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.p-rules-heading__ja {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #c4744a;
  letter-spacing: 0.2em;
  position: relative;
}

/* Small decorative leaf icon after Japanese subtitle */
.p-rules-heading__ja::after {
  content: "\1F33F";
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 1.1rem;
}

/* 2-Column Content Layout */
.p-rules-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Left: Main bean image */
.p-rules-content__image {
  flex: 0 0 35%;
  max-width: 340px;
  position: relative;
  z-index: 3;
  margin-right: -40px;
}

.p-rules-main-beans {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.1));
  animation: mainBeansFloat 6s ease-in-out infinite alternate;
  mix-blend-mode: multiply;
}

@keyframes mainBeansFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-10px) rotate(2deg);
  }
}

/* Right: White Oval Card */
.p-rules-content__card {
  flex: 1;
  max-width: 640px;
}

.p-rules-card {
  background: #ffffff;
  border-radius: 50% / 10%;
  padding: 5rem 5rem 4.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
  position: relative;
  min-height: 420px;
}

/* Card inner section frames — no extra background */
.p-section-frame--in-card {
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  padding: 3.5rem 2rem 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Dashed divider between the two items */
.p-rules-card__divider {
  border: none;
  border-top: 2px dashed #c4744a;
  width: 80%;
  margin: 0 auto;
  opacity: 0.4;
}

/* Override pl-content inside card */
#rules .p-section-frame--in-card .u-pl-content {
  padding-left: 3rem;
}

/* Responsive */
@media (max-width: 900px) {
  .p-rules-content {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .p-rules-content__image {
    flex: none;
    max-width: 200px;
    margin-right: 0;
    margin-bottom: -40px;
  }

  .p-rules-content__card {
    max-width: 100%;
  }

  .p-rules-card {
    border-radius: 40px;
    padding: 4rem 2rem 3rem;
  }

  .p-section-frame--in-card {
    padding: 3rem 1rem 1.5rem;
  }

  #rules .p-section-frame--in-card .u-pl-content {
    padding-left: 1.8rem;
  }

  .p-rules-cloud--1,
  .p-rules-cloud--3 {
    display: none;
  }

  /* Reduce bean sizes on mobile */
  .p-rules-bean--1 {
    width: 35px;
  }

  .p-rules-bean--2 {
    width: 30px;
  }

  .p-rules-bean--3 {
    width: 32px;
  }

  .p-rules-bean--4 {
    width: 28px;
  }

  .p-rules-bean--5 {
    display: none;
  }

  .p-rules-wave-top svg {
    height: 60px;
  }
}

/*-------------------------------------
  Simple Layout — Plain information only
--------------------------------------*/
.l-simple {
  max-width: 820px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

.l-simple__section {
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--c-border);
}

.l-simple__section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* c-bg-title inside simple layout: flow-positioned, not absolute */
.l-simple__section {
  position: relative;
  padding-top: 2.5rem;
}

.l-simple .c-bg-title {
  position: relative;
  top: auto;
  left: auto;
  margin-bottom: 1.5rem;
}

.l-simple__section p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 2;
  padding-left: 2rem;
}

.l-simple__section p+p {
  margin-top: 1rem;
}

.l-simple__list {
  padding-left: 2rem;
  margin: 0;
}

.l-simple__list>li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.9;
}

/* CTA button centering inside simple layout */
.l-simple__section .c-btn {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.u-text-light {
  color: var(--c-text-light);
}

@media (max-width: 768px) {
  .l-simple {
    padding: 3rem 1.2rem 3rem;
  }

  .l-simple__section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
  }

  .l-simple__title {
    font-size: 1.15rem;
  }

  .l-simple__section p {
    font-size: 0.9rem;
  }
}

/*-------------------------------------
  Utility Classes (replacing inline styles & <strong>)
--------------------------------------*/
.u-bold {
  font-weight: 700;
}

.u-emphasis {
  font-weight: 700;
  color: var(--c-soai-orange);
}

.u-note {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--c-text-light);
  margin-top: 0.5rem;
}

.u-mt-1 {
  margin-top: 1rem;
}

/* Definition list inside simple layout */
.l-simple__dl {
  margin: 0 0 1rem;
}

.l-simple__dl dt {
  font-weight: 700;
  color: var(--c-text-navy);
  margin-bottom: 0.3rem;
}

.l-simple__dl dt::before {
  content: "【";
}

.l-simple__dl dt::after {
  content: "】";
}

.l-simple__dl dd {
  margin: 0 0 0.5rem;
}

/* Notice accordion arrow */
.p-notice__toggle-arrow {
  color: var(--c-soai-orange);
  margin-right: 0.5rem;
}

/* Notice "other" block */
.p-notice__other {
  margin-top: 1.5rem;
}

.p-notice__other p {
  margin: 0;
}

/* Footer link */
.l-footer__link {
  text-decoration: underline;
}

/*-------------------------------------
  Wave Section Layout — 6-block grouped sections
--------------------------------------*/

/* --- Wave Divider SVG --- */
.l-wave-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}

.l-wave-divider svg {
  display: block;
  width: 100%;
  height: 90px;
}

/* Fix for top/bottom dividers to prevent gaps */
.l-wave-divider--top {
  margin-top: -1px;
}

.l-wave-divider--bottom {
  margin-bottom: -1px;
}

@media (max-width: 768px) {
  .l-wave-divider svg {
    height: 50px;
  }
}

/* --- Base Wave Section --- */
.l-wave-section {
  position: relative;
  width: 100%;
  z-index: 1;
}

.l-wave-section__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}

@media (max-width: 768px) {
  .l-wave-section__inner {
    padding: 1.5rem 1.2rem 2rem;
  }
}

/* --- Individual content blocks within a section (Wave or About) --- */
.l-wave-section__block,
.s-about__block {
  position: relative;
  padding-top: 2.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
}

.l-wave-section__block:last-child,
.s-about__block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* c-bg-title inside wave sections or About section: flow-positioned */
.l-wave-section .c-bg-title,
.s-about .c-bg-title,
.s-about__block .c-bg-title {
  position: relative;
  top: auto;
  left: auto;
  margin-bottom: 1.5rem;
}

/* Paragraph styling inside wave sections or About section blocks */
.l-wave-section__block p,
.s-about__block p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 2;
  padding-left: 2rem;
  text-align: left;
}

.l-wave-section__block p+p {
  margin-top: 1rem;
}

/* Lists inside wave sections */
.l-wave-section__block .l-simple__list {
  padding-left: 2rem;
  margin: 0;
}

.l-wave-section__block .l-simple__list>li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.9;
}

/* Definition lists inside wave sections */
.l-wave-section__block .l-simple__dl {
  margin: 0 0 1rem;
  padding-left: 2rem;
}

.l-wave-section__block p + .l-simple__dl {
  margin-top: 1.5rem;
}

/* CTA button centering */
.l-wave-section__block .c-btn {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Notice centering */
.l-wave-section__block .p-notice {
  text-align: center;
}

@media (max-width: 768px) {

  .l-wave-section__block,
  .s-about__block {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .l-wave-section__block p,
  .s-about__block p {
    font-size: 0.9rem;
  }
}

/* --- Section Color Themes ---
   Each section has a unique class for easy per-section customization.
   Colored sections get a background; "transparent" sections inherit body bg.
*/

/* Section 1: 募集する料理 + 募集期間 */
.s-boshu {
  --section-bg: #f5ebe0;
  background-color: var(--section-bg);
}

/* Section 2: 協賛 (body bg = white) */
.s-kyosan {
  background-color: #fff;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

/* Section 3: 応募対象者 + 応募方法 */
.s-oubo {
  --section-bg: #eef5df;
  background-color: var(--section-bg);
}

/* Section 4: 審査関連 (green background) */
.s-shinsa {
  --section-bg: #eef5df;
  background-color: var(--section-bg);
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

/* Section 5: 表彰 + 審査基準 */
.s-hyosho {
  --section-bg: #faeae0;
  background-color: var(--section-bg);
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

/* Section 6: 注意事項 + 申込フォーム (body bg) */
.s-entry {
  --section-bg: transparent;
  background-color: var(--section-bg);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

/* --- Awards Component --- */
.p-awards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.p-awards__item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.p-awards__medal {
  width: 100px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.p-awards__label {
  margin: 0 !important;
  padding-left: 0 !important;
  font-weight: 700;
  font-size: 1rem;
  color: #5d4037;
}

.p-awards__prize {
  margin: 0 !important;
  padding-left: 0 !important;
  font-size: 1.2rem;
  color: var(--c-primary);
  font-weight: 700;
}

.p-awards__item--other {
  margin-top: 0.5rem;
  padding-left: 2rem;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .p-awards__item {
    gap: 1rem;
  }

  .p-awards__medal {
    width: 60px;
  }

  .p-awards__prize {
    font-size: 1.1rem;
  }
}

/* --- Timeline Component --- */
.p-timeline {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px dashed var(--c-border);
}

.p-timeline__heading {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.p-timeline__ja {
  display: inline-block;
  font-family: var(--font-family-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-text-navy);
  position: relative;
  padding: 0 50px;
  animation: p-timeline-shine 1.5s ease-out forwards;
}

.p-timeline__ja::before,
.p-timeline__ja::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-soai-orange), transparent);
}

.p-timeline__ja::before {
  left: 0;
}

.p-timeline__ja::after {
  right: 0;
}

@keyframes p-timeline-shine {
  from {
    letter-spacing: 0.2em;
    opacity: 0;
  }

  to {
    letter-spacing: 0.1em;
    opacity: 1;
  }
}

.p-timeline__list {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.p-timeline__list::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--c-soai-navy), var(--c-soai-orange));
  border-radius: 3px;
  opacity: 0.6;
}

.p-timeline__step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
}

.p-timeline__step:last-child {
  margin-bottom: 0;
}

.p-timeline__step-number {
  flex: 0 0 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--c-soai-navy), #6b8e23);
  color: #fff;
  font-family: var(--font-family-sans);
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.p-timeline__step--goal .p-timeline__step-number {
  background: linear-gradient(135deg, var(--c-soai-orange), #ffb74d);
  font-size: 1rem;
}

.p-timeline__step-content h4 {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--c-text-navy);
}

.p-timeline__step-content p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--c-text-navy);
  opacity: 0.85;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  .p-timeline {
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .p-timeline__heading {
    margin-bottom: 2rem;
  }

  .p-timeline__ja {
    font-size: 1.4rem;
    padding: 0 40px;
  }

  .p-timeline__ja::before,
  .p-timeline__ja::after {
    width: 30px;
  }

  .p-timeline__list::before {
    left: 17px;
  }

  .p-timeline__step {
    gap: 15px;
    margin-bottom: 24px;
  }

  .p-timeline__step-number {
    flex: 0 0 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .p-timeline__step--goal .p-timeline__step-number {
    font-size: 0.9rem;
  }
}

/*-------------------------------------
  About The Competition — s-about
  Flashy bean-themed transition section
--------------------------------------*/
.s-about {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  padding: 6rem 0 0;
  background: linear-gradient(180deg,
      var(--c-bg-cream) 0%,
      #fef9f0 30%,
      #fff8e8 60%,
      #fdf5e6 100%);
  text-align: center;
}

/* ── Floating Bean Photos ── */
.s-about__beans {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.s-about__bean {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 8px 20px rgba(93, 64, 55, 0.15));
}

.s-about__bean--1 {
  width: 110px;
  height: 110px;
  top: 8%;
  left: 5%;
  opacity: 0.75;
  animation: beanDrift1 12s ease-in-out infinite alternate;
}

.s-about__bean--2 {
  width: 70px;
  height: 70px;
  top: 15%;
  right: 8%;
  opacity: 0.65;
  animation: beanDrift2 10s ease-in-out infinite alternate-reverse;
}

.s-about__bean--3 {
  width: 90px;
  height: 90px;
  top: 55%;
  left: 3%;
  opacity: 0.55;
  animation: beanDrift3 14s ease-in-out infinite alternate;
}

.s-about__bean--4 {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 4%;
  opacity: 0.6;
  animation: beanDrift1 11s ease-in-out infinite alternate-reverse;
}

.s-about__bean--5 {
  width: 55px;
  height: 55px;
  top: 35%;
  left: 12%;
  opacity: 0.45;
  animation: beanDrift2 13s ease-in-out infinite alternate;
}

.s-about__bean--6 {
  width: 65px;
  height: 65px;
  top: 40%;
  right: 12%;
  opacity: 0.5;
  animation: beanDrift3 9s ease-in-out infinite alternate-reverse;
}

@keyframes beanDrift1 {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }

  100% {
    transform: translateY(-18px) translateX(12px) rotate(15deg);
  }
}

@keyframes beanDrift2 {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }

  100% {
    transform: translateY(14px) translateX(-10px) rotate(-12deg);
  }
}

@keyframes beanDrift3 {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }

  100% {
    transform: translateY(-12px) translateX(-8px) rotate(10deg);
  }
}

/* ── Decorative circles ── */
.s-about__deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.s-about__deco-circle {
  position: absolute;
}

.s-about__deco-circle--1 {
  width: 350px;
  height: 350px;
  top: -60px;
  right: -80px;
  animation: circleRotate 40s linear infinite;
}

.s-about__deco-circle--2 {
  width: 280px;
  height: 280px;
  bottom: 20px;
  left: -60px;
  animation: circleRotate 55s linear infinite reverse;
}

.s-about__deco-circle--3 {
  width: 180px;
  height: 180px;
  top: 40%;
  right: 15%;
  animation: circleRotate 35s linear infinite;
}

@keyframes circleRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ── Inner content ── */
.s-about__inner {
  overflow: hidden;
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

/* ── Heading ── */
.s-about__heading {
  margin-bottom: 3rem;
}

.s-about__heading-en {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #5d4037;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-shadow:
    3px 3px 0 rgba(243, 152, 29, 0.12),
    -1px -1px 0 rgba(255, 255, 255, 0.8);
}

.s-about__heading-ja {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #c4744a;
  letter-spacing: 0.25em;
  position: relative;
  padding: 0.4rem 1.5rem;
}

.s-about__heading-ja::before,
.s-about__heading-ja::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #f3981d, transparent);
}

.s-about__heading-ja::before {
  right: 100%;
  margin-right: 0.3rem;
  background: linear-gradient(270deg, #f3981d, transparent);
}

.s-about__heading-ja::after {
  left: 100%;
  margin-left: 0.3rem;
}

/* ── Card ── */
.s-about__card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 3px;
  margin-bottom: 4rem;
  box-shadow:
    0 20px 60px rgba(93, 64, 55, 0.08),
    0 0 0 1px rgba(243, 152, 29, 0.12);
  position: relative;
}

/* Orange gradient border effect */
.s-about__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 3px;
  background: linear-gradient(135deg, #f3981d 0%, #ffd085 30%, #f3981d 50%, #ffd085 70%, #f3981d 100%);
  background-size: 200% 200%;
  animation: borderShimmer 4s ease-in-out infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes borderShimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.s-about__card-inner {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 3.5rem 3rem;
}

/* ── Text ── */
.s-about__text {
  font-size: 1.05rem;
  line-height: 2.4;
  color: var(--c-text-navy);
  margin: 0 0 1.5rem;
  letter-spacing: 0.12em;
}

.s-about__text:last-child {
  margin-bottom: 0;
}

.s-about__text--accent {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.s-about__highlight {
  color: var(--c-soai-orange);
  position: relative;
  display: inline;
}

.s-about__highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 8px;
  background: rgba(243, 152, 29, 0.15);
  border-radius: 4px;
  z-index: -1;
}

/* ── Bottom wave ── */
.s-about__wave-bottom {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
  z-index: 2;
}

.s-about__wave-bottom svg {
  display: block;
  width: 100%;
  height: 90px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .s-about {
    padding: 4rem 0 0;
  }

  .s-about__inner {
    overflow: hidden;
    padding: 0 1.2rem 3rem;
  }

  .s-about__card {
    margin-bottom: 2rem;
  }

  .s-about__card-inner {
    padding: 2.5rem 1.5rem;
  }

  .s-about__text {
    font-size: 0.95rem;
    line-height: 2.2;
  }

  .s-about__text--accent {
    font-size: 1.05rem;
  }

  .s-about__bean--1 {
    width: 70px;
    height: 70px;
    top: 3%;
    left: 2%;
  }

  .s-about__bean--2 {
    width: 50px;
    height: 50px;
  }

  .s-about__bean--3 {
    width: 55px;
    height: 55px;
  }

  .s-about__bean--4 {
    width: 50px;
    height: 50px;
  }

  .s-about__bean--5 {
    display: none;
  }

  .s-about__bean--6 {
    display: none;
  }

  .s-about__deco-circle--1 {
    width: 200px;
    height: 200px;
  }

  .s-about__deco-circle--2 {
    width: 160px;
    height: 160px;
  }

  .s-about__deco-circle--3 {
    display: none;
  }

  .s-about__heading-ja::before,
  .s-about__heading-ja::after {
    width: 25px;
  }

  .s-about__wave-bottom svg {
    height: 50px;
  }
}

/* Mobile: left-align hero lead & about card text */
@media (max-width: 767px) {
  .s-about__card-inner {
    text-align: left;
  }
}

/*-------------------------------------
  Sponsor logos (s-kyosan)
--------------------------------------*/
.p-sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.p-sponsor-logos__item {
  flex: 0 0 auto;
}

.p-sponsor-logos__img {
  display: block;
  max-width: 180px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .p-sponsor-logos {
    gap: 2rem;
  }

  .p-sponsor-logos__img {
    max-width: 140px;
    max-height: 60px;
  }
}

/*-------------------------------------
  s-about__heading inside wave sections
  — shared heading component overrides
--------------------------------------*/
.l-wave-section .s-about__heading {
  margin-bottom: 1rem;
  padding-top: 1rem;
  text-align: center;
}

.l-wave-section .s-about__heading-en {}

.l-wave-section .s-about__heading-ja {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

@media (max-width: 768px) {
  .l-wave-section .s-about__heading {
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
  }

  .l-wave-section .s-about__heading-en {}

  .l-wave-section .s-about__heading-ja {
    font-size: 0.8rem;
  }
}

/*-------------------------------------
  Last Year — s-lastyear
  Scattered photo gallery section
--------------------------------------*/
.s-lastyear {
  background-color: #fef9f0;
}

.s-lastyear__gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0.5rem 0;
}

/* Top row: items 1 & 2 side by side */
.s-lastyear__top-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

/* Individual photo items */
.s-lastyear__item {
  position: relative;
}

/* Item 1: tilted left — cooking scene */
.s-lastyear__item--1 {
  transform: rotate(-3deg);
  flex: 1;
  max-width: 520px;
  z-index: 2;
}

/* Item 2: tilted right — award ceremony */
.s-lastyear__item--2 {
  transform: rotate(2deg);
  flex: 1;
  max-width: 520px;
  margin-top: 2rem;
  z-index: 3;
}

/* Item 3: centered bottom — grand prix */
.s-lastyear__item--3 {
  width: 60%;
  text-align: center;
  z-index: 4;
  margin-top: -1rem;
}

/* Photo frame — Polaroid style */
.s-lastyear__photo {
  background: #fff;
  padding: 10px;
  padding-bottom: 15px;
  border-radius: 6px;
  box-shadow:
    0 8px 30px rgba(93, 64, 55, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.s-lastyear__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

/* Circle variant for the parfait/winner photo */
.s-lastyear__photo--circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 8px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow:
    0 10px 35px rgba(93, 64, 55, 0.12),
    0 0 0 3px rgba(243, 152, 29, 0.2);
}

.s-lastyear__photo--circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Label — ribbon style, overlaid on photo */
.s-lastyear__label {
  position: absolute;
  top: -10px;
  left: -8px;
  z-index: 5;
  display: inline-block;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #5d4037;
  background: linear-gradient(135deg, #fce4c0, #f0cc8a);
  padding: 0.3rem 1.2rem 0.3rem 0.8rem;
  border-radius: 4px 4px 12px 0;
  box-shadow: 0 3px 10px rgba(243, 152, 29, 0.2);
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* Ribbon tail */
.s-lastyear__label::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 0;
  border-left: 8px solid #d4a86a;
  border-bottom: 6px solid transparent;
}

/* Grand prix medal image */
.s-lastyear__medal {
  position: absolute;
  top: -55px;
  left: -5px;
  width: 150px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 4px 12px rgba(232, 168, 32, 0.35));
}

/* Caption for winner dish */
.s-lastyear__caption {
  margin-top: 1.2rem;
}

.s-lastyear__caption-title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-soai-orange);
  letter-spacing: 0.1em;
  margin: 0;
  line-height: 1.6;
}

.s-lastyear__caption-school {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 0.95rem;
  color: #5d4037;
  margin: 0.4rem 0 0;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

/* Decorative sparkles (via pseudo-elements) */
.s-lastyear__item--3::before,
.s-lastyear__item--3::after {
  content: "✦";
  position: absolute;
  color: var(--c-soai-orange);
  font-size: 0.9rem;
  opacity: 0.5;
  animation: sparkle 2s ease-in-out infinite alternate;
}

.s-lastyear__item--3::before {
  top: 5%;
  right: 10%;
}

.s-lastyear__item--3::after {
  bottom: 30%;
  left: 8%;
  animation-delay: 0.8s;
}

@keyframes sparkle {
  0% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  100% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.s-lastyear__summary {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.s-lastyear__text {
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--c-text-navy);
  margin-bottom: 1.5rem;
  letter-spacing: 0.12em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .s-lastyear__top-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .s-lastyear__medal {
    left: -40px;
    width: 120px;
  }

  .s-lastyear__gallery {
    gap: 1.5rem;
  }

  .s-lastyear__item--1,
  .s-lastyear__item--2 {
    max-width: none;
    width: 95%;
    transform: rotate(-1.5deg);
    margin-top: 0;
  }

  .s-lastyear__item--2 {
    transform: rotate(1deg);
  }

  .s-lastyear__item--3 {
    width: 85%;
    margin-top: 40px;
  }

  .s-lastyear__photo--circle {
    width: 220px;
    height: 220px;
  }

  .s-lastyear__summary {
    margin-bottom: 2.5rem;
    padding: 0;
    text-align: left;
  }

  .s-lastyear__text {
    font-size: 0.95rem;
    line-height: 2;
  }
}

/*-------------------------------------
  Decorative One-Point Styles
  (Each image used exactly once)
--------------------------------------*/

/* Base polaroid style for mame-photos as pseudo-elements */
.s-about,
.s-boshu,
.s-shinsa,
.s-hyosho,
.s-entry,
.s-lastyear {
  position: relative;
}

/* Polaroids */
/* Base style for polaroids as actual elements */
.c-bg-deco {
  position: absolute;
  z-index: 1;
  background-size: cover;
  background-position: center;
}

/* Polaroids */
.c-bg-deco--photo01,
.c-bg-deco--photo02,
.c-bg-deco--photo03 {
  background-color: #fff;
  padding: 8px;
  padding-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

/* bg-icons base */
.c-bg-deco--icon01,
.c-bg-deco--icon02,
.c-bg-deco--icon04,
.c-bg-deco--icon05 {
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.7;
}

/* Rules - Icon 01 (Brush/Spatula) & Photo 02 */
.c-bg-deco--icon01 {
  background-image: url("../images/bg-icon01.png");
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 13%;
}

.c-bg-deco--photo02 {
  background-image: url("../images/mame-photo02.png");
  width: 360px;
  height: 220px;
  bottom: 10%;
  right: 5%;
  --js-fade-transform: rotate(4deg);
}

/* Flow - Icon 02 (Whisk) & Photo 03 */
.c-bg-deco--icon02 {
  background-image: url("../images/bg-icon02.png");
  width: 70px;
  height: 70px;
  top: 60px;
  right: 15%;
  --js-fade-transform: rotate(15deg);
}

.c-bg-deco--photo03 {
  background-image: url("../images/lastyear01.png");
  width: 360px;
  height: 220px;
  top: 520px;
  left: 40px;
  --js-fade-transform: rotate(-3deg);
}

/* Hyosho (Awards) - Photo 01 (Wide scene) */
.c-bg-deco--photo01 {
  background-image: url("../images/mame-photo01.png");
  width: 360px;
  height: 220px;
  top: 250px;
  right: 5%;
  --js-fade-transform: rotate(-5deg);
}

/* Last Year - Icon 04 (Red Whisk) */
.c-bg-deco--icon04 {
  background-image: url("../images/bg-icon04.png");
  width: 60px;
  height: 60px;
  top: 0;
  left: 15%;
}

/* Entry - Icon 05 (Yellow Pot) */
.c-bg-deco--icon05 {
  background-image: url("../images/bg-icon05.png");
  width: 80px;
  height: 80px;
  bottom: 100px;
  right: 15%;
  --js-fade-transform: scaleX(-1) rotate(10deg);
}

/* Hide or adjust for laptop and mobile */
@media (max-width: 1440px) {

  .c-bg-deco--photo01,
  .c-bg-deco--photo02,
  .c-bg-deco--photo03 {
    width: 280px;
    height: 170px;
  }

  .c-bg-deco--photo02 {
    right: 5%;
    bottom: 50px;
  }

  .c-bg-deco--photo03 {
    left: 20px;
    top: 50px;
  }

  .c-bg-deco--photo01 {
    left: 2%;
    top: 50px;
    width: 220px;
    height: 140px;
  }
}

@media (max-width: 1200px) {

  .c-bg-deco--photo01,
  .c-bg-deco--photo02,
  .c-bg-deco--photo03 {
    display: none;
  }
}

@media (max-width: 768px) {

  .c-bg-deco--icon01,
  .c-bg-deco--icon02,
  .c-bg-deco--icon04,
  .c-bg-deco--icon05 {
    top: 5px;
    width: 40px;
    height: 40px;
    opacity: 0.3;
  }
}