@layer page {
  /* ===== Hero ===== */
  .p-hero {position: relative; overflow: clip;}
  .p-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url("/images/top/main_bg.webp");
    background-repeat: repeat;
    background-size: cover;
    background-position: center;
    opacity: 1;
  }
  .p-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(80px, 10vw, 120px) 0;
  }
  .p-hero__card {
    background: #fff;
    border-radius: 24px;
    padding: clamp(20px, 4.5vw, 48px) clamp(20px, 5vw, 64px);
    width: fit-content;
    margin: 0 auto;
    border: clamp(4px, 1vw, 10px) solid #69AB1C;
  }
  .p-hero__logo {display: block; width: clamp(300px, 50vw, 640px); margin: 0 auto;}
  .p-hero__tagline {
    margin: clamp(20px, 4vw, 30px) auto 0;
    width: max-content;
    max-width: 100%;
    font-family: "WDXL Lubrifont JP N", sans-serif;
    font-weight: 400;
    color: #2AA346;
    letter-spacing: .08em;
    font-size: clamp(14px, 2.3vw, 24px);
    line-height: 1.6;
    position: relative;
    padding: 6px clamp(8px, 2.3vw, 16px);
    border-top: 2px solid #2AA346;
    border-bottom: 2px solid #2AA346;
    text-align: center;
  }
  .p-hero__person {position: absolute; margin: 0; bottom: 0; z-index: 1;}
  .p-hero__person-img {display: block; width: auto; height: clamp(115px, 22vw, 308px); object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,.16));}
  .p-hero__person--left  {left: 50%; transform: translateX(calc(-50% - clamp(140px, 28vw, 350px)));}
  .p-hero__person--right {left: 50%; transform: translateX(calc(-50% + clamp(140px, 28vw, 370px)));}

  /* ===== About ===== */
  .p-about {padding: 100px 0 40px;}
  .p-about__row {display: flex; align-items: center; gap: clamp(20px, 6vw, 50px);}
  .p-about__media {margin-left: calc(50% - 53vw); flex: 1; max-width: none; overflow: hidden;}
  .p-about__media img {display: block; width: 100%; height: auto; object-fit: cover;}
  .p-about__body {flex: 1; min-width: 0; padding: 60px 0; background: url("/images/top/about_bg.svg") no-repeat center center; background-size: 80%;}
  .p-about__title {
    margin: 0 0 clamp(20px, 3vw, 40px);
    font-family: "WDXL Lubrifont JP N", system-ui, sans-serif;
    font-weight: 400;
    letter-spacing: .04em;
    color: #2AA346;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.4;
    text-align: center;
  }
  .p-about__title--small {font-size: clamp(24px, 2.5vw, 32px);}
  .p-about__text {font-size: clamp(14px, 1.4vw, 16px)}
  @media (max-width: 640px) {
    .p-about__row{flex-direction: column;}
    .p-about__media{margin-left: 0; flex-basis: auto; width: 50%; margin-inline: auto;}
    .p-about__body{width: 100%; flex: 1 1 auto; padding: 0; background-size: contain;}
    .p-about__title{text-align: center;}
    .p-about {padding: 40px 0;}
    .p-about__body {line-height: 1.9;}
  }

  /* ===== Gift ===== */
  .p-gift {
    background: url(/images/top/gift_bg.webp) no-repeat top center;
    background-size: cover;
    padding: 60px 0;
  }
  .p-gift__panel {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.16);
    padding: 25px 20px 20px;
    max-width: 720px;
    margin: 0 auto;
  }
  .p-gift__panel::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -1px;
    width: clamp(80px, 20vw, 114px);
    aspect-ratio: 114 / 120;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background: url(/images/top/gift_ribbon01.webp) no-repeat center / contain;
    z-index: 1;
  }

  .p-gift__panel::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: -1px;
    width: clamp(80px, 20vw, 114px);
    aspect-ratio: 114 / 120;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background: url(/images/top/gift_ribbon02.webp) no-repeat center / contain;
    z-index: 1;
  }
  .p-gift__head {position: relative; z-index: 2; text-align: center; margin-bottom: 10px;}
  .p-gift__title {margin: 0 auto; width: clamp(200px, 25vw, 338px);}
  .p-gift__title img {width: 100%; height: auto; display: block;}
  .p-gift__lead {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #DE0E0E;
    font-weight: 900;
    line-height: 1.6;
    font-size: clamp(18px, 2vw, 24px);
    margin: 0 0 10px;
  }
  .p-gift__em {font-weight: 700; font-family: "Poppins", sans-serif; font-size: clamp(24px, 4vw, 40px); letter-spacing: .02em;}
  .p-gift__actions {position: relative; z-index: 2; display: flex; justify-content: center;}


  /* ===== Voice ===== */
  .p-voice {background-color: #2AA346; color: #fff; padding: clamp(50px, 10vw, 100px) 0 0;}
  .p-voice__video {display: flex; justify-content: center; align-items: center; margin: 40px auto 60px;}
  .p-voice__video-inner {position: relative; width: 760px; aspect-ratio: 16/9; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.2);}
  .p-voice__video-inner iframe {width: 100%; height: 100%; border: none; display: block;}
  .p-voice__list {display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 40px); align-items: end; margin-top: clamp(20px, 5vw, 40px);}
  .p-voice__item {display: flex; flex-direction: column; justify-content: space-between; height: 100%; text-align: left;}
  .p-voice__balloon {
    flex-grow: 1; position: relative; background: #fff; color: #212121;
    border-radius: 8px; padding: 24px; box-shadow: 0 10px 18px rgba(0,0,0,.16);
    margin-bottom: 20px; display: flex; align-items: center;
  }
  .p-voice__balloon p {margin: 0; line-height: 1.9; font-size: clamp(14px, 1.2vw, 16px);}
  .p-voice__balloon::after {
    content: ""; position: absolute; left: clamp(36px, 10vw, 60px); bottom: -10px; width: 0; height: 0;
    border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid #fff;
    filter: drop-shadow(0 4px 3px rgba(0,0,0,.06));
  }
  .p-voice__meta {display: flex; align-items: center; gap: 14px; margin-top: auto;}
  .p-voice__avatar {width: clamp(80px, 20vw, 132px); height: auto; flex-shrink: 0; overflow: hidden; display: block;}
  .p-voice__avatar img {width: 100%; height: 100%; object-fit: cover; display: block;}
  .p-voice__profile {display: grid; gap: 6px; color: #fff;}
  .p-voice__who {font-size: clamp(12px, 2vw, 16px); font-weight: 700;}
  @media (max-width: 639px) {
    .p-voice__video-inner {width: 100%; max-width: 100%; border-radius: 8px;}
    .p-voice__list {grid-template-columns: 1fr; gap: 0;} 
  }

  /* ===== Related ===== */
  .p-related {background-color: #F2F2F2; padding: clamp(40px, 8vw, 80px) 0;}
  .p-related__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 4vw, 40px);
    margin-top: 40px;
    list-style: none;
    padding: 0;
  }
  .p-related__link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(80px, 8vw, 120px);
    border: 1px solid #212121;
    border-radius: 2px;
    background: #fff;
    transition: all .5s ease;
  }
  .p-related__link:hover {transform: translateY(2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);}
  .p-related__logo {max-width: 200px; width: 80%; height: auto;}
  .p-related__desc {font-size: clamp(12px, 1.6vw, 14px); line-height: 1.6; color: #212121; margin-top: 8px;}

  @media (max-width: 960px) {
    .p-related__list {grid-template-columns: repeat(3, 1fr);}
  }
  @media (max-width: 639px) {
    .p-related__list {grid-template-columns: repeat(2, 1fr);}
  }
}
