/* 既存ヘッダーを含まない、ファーストビュー専用スタイル。 */
@font-face {
  font-family: "Nurista Noto Sans JP";
  src: url("fonts/NotoSansJP-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
.ns-hero {
  --ns-header-height: 0px;
  --ns-bottom-height: 0px; /* 固定フッターを残す場合は、その高さを指定 */
  --ns-ink: #171717;
  --ns-yellow: #ffce19;
  --ns-teal: #00aa9c;
  --ns-room: calc(100svh - var(--ns-header-height) - var(--ns-bottom-height));
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ns-ink);
  background: #fffaf0;
  font-family: "Nurista Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
  font-weight: 700;
  -webkit-text-size-adjust: 100%;
  text-align: left;
}
.ns-hero *, .ns-hero *::before, .ns-hero *::after { box-sizing: border-box; }
.ns-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 42%;
  height: 32%;
  right: -14%;
  bottom: -23%;
  border-radius: 50%;
  background: #ffe078;
  transform: rotate(-18deg);
  box-shadow: -55px -14px 0 #ffea9d;
  pointer-events: none;
}
.ns-hero .ns-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  min-height: var(--ns-room);
  margin: 0 auto;
  padding: clamp(24px, 4svh, 56px) clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  grid-template-rows: auto auto auto;
  grid-template-areas: "copy media" "metrics media" "actions media";
  gap: clamp(18px, 3svh, 36px) clamp(24px, 3vw, 48px);
  align-content: center;
  align-items: center;
}
.ns-hero .ns-hero__copy { grid-area: copy; min-width: 0; }
.ns-hero .ns-hero__eyebrow { margin: 0 0 clamp(16px, 2.5svh, 30px); font-size: clamp(14px, 1.5vw, 20px); line-height: 1.5; }
.ns-hero__eyebrow > span { display: inline-block; padding: 8px 18px; border-radius: 5px; background: var(--ns-yellow); transform: rotate(-2deg); }
.ns-hero .ns-hero__title { margin: 0; padding: 0; border: 0; background: none; color: var(--ns-ink); font-size: clamp(30px, 4.8vw, 68px); line-height: 1.34; letter-spacing: -.045em; font-weight: 900; }
.ns-hero__title > span { display: block; white-space: nowrap; }
.ns-hero__title mark { position: relative; z-index: 0; padding: 0; color: inherit; background: none; }
.ns-hero__title .ns-hero__3d { display: inline-block; font-size: 1.28em; line-height: 1; transform: skewX(-9deg); margin-right: .02em; }
.ns-hero__title mark::after { content: ""; position: absolute; z-index: -1; left: -3%; right: -2%; bottom: .01em; height: .19em; background: var(--ns-yellow); border-radius: 20px; transform: rotate(-3deg); }
.ns-hero .ns-hero__description { margin: 18px 0 0; font-size: clamp(12px, 1.15vw, 16px); line-height: 1.8; }
.ns-hero .ns-hero__metrics { grid-area: metrics; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 2px; }
.ns-hero .ns-hero__metric { list-style: none; margin: 0; padding: 10px 3px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border-top: 4px solid #ffca0a; border-radius: 10px; box-shadow: 0 3px 7px #0000000d; line-height: 1.4; }
.ns-hero__metric-label, .ns-hero__metric-note { display: block; font-size: clamp(11px, 1.15vw, 15px); white-space: nowrap; }
.ns-hero__metric-value { display: block; font-size: clamp(27px, 3.1vw, 44px); line-height: 1.4; letter-spacing: -.055em; font-weight: 900; white-space: nowrap; }
.ns-hero__metric-value > span { font-size: .57em; letter-spacing: -.04em; }
.ns-hero .ns-hero__media { grid-area: media; position: relative; width: 100%; aspect-ratio: 16 / 10; min-width: 0; background: #e9e2d5; border-radius: 24px; box-shadow: 10px 10px 0 var(--ns-yellow); overflow: hidden; }
.ns-hero .ns-hero__video { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: inherit; }
.ns-hero .ns-hero__media-fallback { position: absolute; inset: 0; margin: 0; padding: 24px; align-items: center; justify-content: center; text-align: center; background: #e9e2d5; }
.ns-hero__media-fallback:not([hidden]) { display: flex; }
.ns-hero .ns-hero__actions { grid-area: actions; display: flex; gap: 14px; flex-wrap: wrap; }
.ns-hero .ns-hero__button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex: 1 1 200px; min-height: 56px; padding: 12px 16px; border: 2px solid var(--ns-teal); border-radius: 16px; text-decoration: none; font-size: clamp(13px, 1.3vw, 18px); font-weight: 800; line-height: 1.5; white-space: nowrap; transition: background .15s ease; }
.ns-hero .ns-hero__button--primary { color: #fff; background: var(--ns-teal); }
.ns-hero .ns-hero__button--secondary { color: #008a7e; background: #fff; }
.ns-hero__button > span { font-size: 1.5em; line-height: 1; }
.ns-hero .ns-hero__button:hover { background: #007c73; color: #fff; }
.ns-hero .ns-hero__button:focus-visible { outline: 3px solid #173d69; outline-offset: 4px; }
.ns-hero__confetti { position: absolute; width: 12px; height: 28px; pointer-events: none; z-index: 0; }
.ns-hero__confetti--one { top: 7%; right: 5%; background: #8cddd6; transform: rotate(30deg); }
.ns-hero__confetti--two { bottom: 12%; right: 6%; background: #fa8cad; transform: rotate(-50deg); }
.ns-hero__confetti--three { bottom: 4%; left: 2%; background: #ffcf16; transform: rotate(25deg); }
@media (min-width: 1100px) {
  .ns-hero .ns-hero__button { flex-basis: 0; }
}
/* 横向き・高さの小さいPCでも、説明と数字を優先して収める。 */
@media (min-width: 768px) and (max-height: 700px) {
  .ns-hero .ns-hero__inner { padding-block: 18px; row-gap: 16px; }
  .ns-hero .ns-hero__title { font-size: clamp(28px, 6.8svh, 48px); line-height: 1.3; }
  .ns-hero .ns-hero__eyebrow { margin-bottom: 12px; }
  .ns-hero .ns-hero__description { margin-top: 10px; }
  .ns-hero .ns-hero__metric { padding-block: 6px; }
  .ns-hero__metric-value { font-size: 32px; }
  .ns-hero .ns-hero__button { min-height: 46px; padding-block: 8px; }
  .ns-hero .ns-hero__media { max-height: max(150px, calc(var(--ns-room) - 48px)); }
}
@media (max-width: 767px) {
  .ns-hero .ns-hero__inner {
    max-width: 560px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, auto) auto;
    grid-template-areas: "copy" "metrics" "media" "actions";
    gap: clamp(12px, 2svh, 20px);
    padding: clamp(16px, 3svh, 28px) 20px 22px;
  }
  .ns-hero .ns-hero__eyebrow { font-size: clamp(12px, 3.6vw, 16px); margin-bottom: 14px; }
  .ns-hero__eyebrow > span { padding: 6px 12px; }
  .ns-hero .ns-hero__title { font-size: clamp(28px, 9.6vw, 48px); line-height: 1.28; letter-spacing: -.045em; }
  .ns-hero .ns-hero__description { display: none; }
  .ns-hero .ns-hero__metric { padding: 8px 2px; border-top-width: 3px; }
  .ns-hero__metric-label, .ns-hero__metric-note { font-size: clamp(10px, 2.8vw, 13px); }
  .ns-hero__metric-value { font-size: clamp(25px, 7vw, 36px); }
  .ns-hero .ns-hero__media { aspect-ratio: 16 / 9; border-radius: 16px; box-shadow: 5px 5px 0 var(--ns-yellow); max-height: max(90px, calc(var(--ns-room) - 405px)); }
  .ns-hero .ns-hero__actions { display: grid; gap: 8px; }
  .ns-hero .ns-hero__button { min-height: 48px; padding: 10px 14px; font-size: 16px; border-radius: 13px; }
  .ns-hero .ns-hero__button--secondary { border: 0; min-height: 36px; padding: 4px 10px; background: transparent; color: #008a7e; }
}
@media (max-width: 767px) and (max-height: 650px) {
  .ns-hero .ns-hero__inner { padding: 14px 16px 16px; gap: 10px; }
  .ns-hero .ns-hero__eyebrow { margin-bottom: 10px; }
  .ns-hero .ns-hero__title { font-size: clamp(28px, 9.2vw, 40px); line-height: 1.25; }
  .ns-hero .ns-hero__metric { padding-block: 5px; }
  .ns-hero__metric-value { font-size: 27px; }
  .ns-hero .ns-hero__media { max-height: max(72px, calc(var(--ns-room) - 335px)); }
}
@media (prefers-reduced-motion: reduce) {
  .ns-hero .ns-hero__button { transition: none; }
}
.ns-hero .ns-hero__video-logo {
  position: absolute;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);
  width: 28%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}