@charset "utf-8";

/* =========================================================

基本設定

========================================================= */

:root {
  /* カラー */
  --color-primary-blue: #1a67a3;
  --color-primary-orange: #ed8724;
  --color-primary-orange-light: #f7cf20;
  --color-accent-yellow: #f9d94d;
  --color-base-white: #ffffff;
  --color-base-black: #282828;
  /* フォント */
  --font-base: "Noto Sans JP", sans-serif;
  --font-accent: "Dela Gothic One", sans-serif;
  /* 余白ルール */
  --section-space-sp: 40px;
  --section-space-pc: 160px;
}

html {
  /* iOS Safariでのテキストサイズ自動調整を無効化 */
  -webkit-text-size-adjust: 100%;
  /* その他のブラウザ用 */
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-y: scroll;
}

.u-bg-fixed {
  /* 背景 */
  position: fixed; /* 画面に対して固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1; /* 一番背面に送る */
  background-color: #f5a200;
  background-image: url("../images/bg-mark-mini.svg");
  background-size: 140px;
  background-repeat: repeat;
  background-position: top;
}

body {
  /* フォント */
  font-family: var(--font-base);
  font-weight: 400;
  color: var(--color-base-black);
  background-color: var(--color-base-white);
  line-height: 1.7;
}

main {
  width: 100%;
}

/* =========================================================

共通レイアウト

========================================================= */

.l-section {
  padding-top: calc(var(--section-space-sp) / 2);
  padding-bottom: calc(var(--section-space-sp) / 2);
  scroll-margin-top: 80px;
}

.l-inner {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

/* ---------- サイズ ： 768px以上 ---------- */

@media (min-width: 768px) {
  .l-section {
    scroll-margin-top: 0;
  }
}

/* =========================================================

ヘッダー

========================================================= */

.p-header {
  padding: 10px 0;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-base-white);
}

@media (max-width: 767px) {
  .p-header {
    border-bottom: 3px solid var(--color-primary-blue);
  }
}

.p-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.p-header__logo img {
  height: 55px;
  width: auto;
  display: block;
}

/* ---------- ハンバーガーボタン ---------- */

.p-header__hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 58px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
  padding: 0;
}

.p-header__hamburger-line {
  display: block;
  height: 4px;
  transition: all 0.15s;
}

/* 1本目と3本目 */
.p-header__hamburger-line:nth-child(1),
.p-header__hamburger-line:nth-child(3) {
  width: 36px;
  background-color: var(--color-primary-orange);
}

/* 2本目 */
.p-header__hamburger-line:nth-child(2) {
  width: 58px;
  background-color: var(--color-primary-orange-light);
}

/* メニュー展開時アニメーション */
.js-hamburger.is-open .p-header__hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(30deg);
  width: 39px;
}
.js-hamburger.is-open .p-header__hamburger-line:nth-child(2) {
  opacity: 0;
}
.js-hamburger.is-open .p-header__hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-30deg);
  width: 39px;
}

/* ---------- スマホ用メニューパネル ---------- */

@media (max-width: 767px) {
  .p-header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #dceaf5;
    z-index: 105;
    padding: 80px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s;
    overflow-y: auto;
  }

  .p-header__nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .p-header__nav-logo {
    text-align: center;
    margin-bottom: 40px;
  }

  .p-header__nav-logo img {
    height: auto;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
  }

  .p-header__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-content: start;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .p-header__item {
    display: block;
    height: auto;
  }

  .p-header__item a {
    display: flex;
    background: var(--color-base-white);
    border: 2px solid var(--color-primary-blue);
    border-radius: 10px;
    padding: 10px;
  }

  .p-header__item a img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    vertical-align: bottom;
  }
}

/* ---------- サイズ ： 768px以上 ---------- */

@media (min-width: 768px) {
  .p-header {
    position: static;
    background: transparent;
    padding: 24px 0;
  }

  .p-header__container {
    display: flex;
    align-items: center;
    border: 6px solid var(--color-primary-blue);
    border-radius: 38px;
    background-color: var(--color-base-white);
    overflow: hidden;
  }

  .p-header__logo {
    padding: 16px 20px;
    flex: 0 0 25%;
    max-width: 250px;
    min-width: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .p-header__logo img {
    width: 100%;
    height: auto;
    max-width: none;
  }

  .p-header__hamburger {
    display: none;
  }

  .p-header__nav {
    flex-grow: 1;
    border-left: 6px solid var(--color-primary-blue);
    display: flex;
    align-items: center;
    min-width: 0;
    height: auto;
  }

  .p-header__list {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding: 18px;
    height: 100%;
  }

  .p-header__item {
    flex: 1;
    display: flex;
  }

  .p-header__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-primary-blue);
    border-radius: 10px;
    flex: 1;
    padding: 10px 5px;
    transition: background-color 0.3s;
  }

  .p-header__item a:hover {
    background-color: #dceaf5;
  }

  .p-header__item a img {
    max-width: 100%;
    height: auto;
  }
}

/* =========================================================

ヒーローセクション

========================================================= */

.p-hero__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- 左側：メインキャラ ---------- */

.p-hero__image-wrapper {
  background-color: var(--color-primary-orange);
  border: 4px solid var(--color-primary-blue);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 10 / 9;
}

.p-hero__image-wrapper img {
  max-width: 84%;
  height: auto;
  object-fit: contain;
}

.p-hero__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- 右側：SNSとYouTube ---------- */

.p-hero__sns a,
.p-hero__video a {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--color-primary-blue);
  border-radius: 20px;
  background-color: var(--color-base-white);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 484 / 288;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.p-hero__sns a img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.p-hero__video a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.p-hero__sns a:hover,
.p-hero__video a:hover {
  transform: scale(0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* ---------- YouTube再生アイコンのデザイン ---------- */

.p-hero__video a {
  position: relative;
}

.p-hero__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
}

/* 円の中の三角形 */
.p-hero__play-icon::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 0 13px 20px;
  border-color: transparent transparent transparent var(--color-base-white);
  margin-left: 4px;
}

/* スマホでは小さく */
@media (max-width: 767px) {
  .p-hero__play-icon {
    width: 50px;
    height: 50px;
  }
  .p-hero__play-icon::after {
    border-width: 10px 0 10px 16px;
    margin-left: 4px;
  }
}

/* ---------- サイズ ： 768px以上 ---------- */

@media (min-width: 768px) {
  .p-hero__image-wrapper {
    border: 6px solid var(--color-primary-blue);
  }
  .p-hero__sns a,
  .p-hero__video a {
    border: 6px solid var(--color-primary-blue);
  }
  .p-hero__grid {
    display: grid;
    grid-template-columns: 6.9fr 4.84fr;
    gap: 24px;
    align-items: stretch;
  }
  .p-hero__image-wrapper {
    border-radius: 38px;
    aspect-ratio: 690 / 600;
  }
  .p-hero__side {
    gap: 24px;
    height: 100%;
  }
  .p-hero__sns,
  .p-hero__video {
    flex: 1;
  }
  .p-hero__sns a,
  .p-hero__video a {
    border-radius: 38px;
    aspect-ratio: auto;
    height: 100%;
  }
}

/* =========================================================

共通：囲み枠デザイン（l-container-box）

========================================================= */

.l-container-box {
  position: relative;
  background-color: var(--color-base-white);
  border: 4px solid var(--color-primary-blue);
  border-radius: 24px;
  padding: 40px 20px;
  width: 100%;
}

/* 円の共通スタイル */
.l-container-box__dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 4px solid var(--color-primary-blue);
  border-radius: 50%;
  background-color: var(--color-base-white);
}
/* それぞれ円の位置 */
.l-container-box__dot--top-left {
  top: 8px;
  left: 8px;
}
.l-container-box__dot--top-right {
  top: 8px;
  right: 8px;
}
.l-container-box__dot--bottom-left {
  bottom: 8px;
  left: 8px;
}
.l-container-box__dot--bottom-right {
  bottom: 8px;
  right: 8px;
}

/* ---------- サイズ ： 768px以上 ---------- */

@media (min-width: 768px) {
  .l-container-box {
    border: 6px solid var(--color-primary-blue);
    border-radius: 38px;
    padding: 60px 80px;
  }
  .l-container-box__dot {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 6px solid var(--color-primary-blue);
  }
  /* それぞれ円の位置 */
  .l-container-box__dot--top-left {
    top: 16px;
    left: 16px;
  }
  .l-container-box__dot--top-right {
    top: 16px;
    right: 16px;
  }
  .l-container-box__dot--bottom-left {
    bottom: 16px;
    left: 16px;
  }
  .l-container-box__dot--bottom-right {
    bottom: 16px;
    right: 16px;
  }
}

/* =========================================================

多摩ニュータウンマンについて

========================================================= */

.p-profile__title {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}
.p-profile__title img {
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  height: auto;
}

.p-profile__lead {
  font-family: var(--font-accent);
  font-size: clamp(1.25rem, 0.708rem + 2.22vw, 2.375rem); /* 20px-38px */
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.3;
}

.p-profile__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.p-profile__char {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.p-profile__char img {
  width: 90%;
  max-width: 280px;
  height: auto;
  transform: translateX(8px);
}

.p-profile__text {
  font-size: clamp(1rem, 0.789rem + 0.86vw, 1.438rem); /* 16px-23px */
  text-align: center;
  line-height: 1.8;
  font-weight: bold;
}

/* ---------- サイズ ： 768px以上 ---------- */

@media (min-width: 768px) {
  .p-profile__title img {
    max-width: 90%;
  }
  .l-container-box {
    padding: 60px 80px;
  }
  .p-profile__lead {
    text-indent: -2em;
    margin-bottom: 38px;
  }
  .p-profile__content {
    flex-direction: row; /* 横並び */
    justify-content: center;
    align-items: center;
    gap: 30px;
  }
  .p-profile__char {
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .p-profile__char img {
    width: 100%;
  }
}

/* =========================================================

多摩ニュータウンってどこ？

========================================================= */

.c-section-title {
  font-family: "Dela Gothic One", sans-serif;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
  display: block;
}

/* タイトル ： 大 */
.c-section-title__main {
  display: inline-block;
  font-size: clamp(1.875rem, 0.972rem + 3.7vw, 3.75rem); /* 30px-60px */
  vertical-align: baseline;
  line-height: 1;
}

/* タイトル ： 小 */
.c-section-title__sub {
  display: inline-block;
  font-size: clamp(1.25rem, 0.678rem + 2.35vw, 2.438rem); /* 20px-39px */
  margin-left: 0.2em;
  vertical-align: baseline;
}

/* ルビ */
.u-ruby-container {
  position: relative;
  display: inline-block;
}
.u-ruby-text {
  position: absolute;
  left: 50%;
  top: -0.6em;
  transform: translateX(-50%);
  font-size: 0.35em;
  line-height: 0.5;
  white-space: nowrap;
  letter-spacing: 1.2em;
  text-indent: 1.2em;
}

/* ---------- 画像とテキスト ---------- */

.p-where-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.p-where-image {
  max-width: 500px;
  line-height: 0;
  margin-left: auto;
  margin-right: auto;
}

.p-where-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.p-where-text {
  font-size: clamp(0.938rem, 0.907rem + 0.12vw, 1rem); /* 15px-16px */
  text-align: left;
}

.p-where-text p + p {
  margin-top: 1.5em;
}

/* ---------- サイズ ： 768px以上 ---------- */

@media (min-width: 768px) {
  .c-section-title {
    margin-bottom: 50px;
  }

  .c-section-title__main {
    display: inline-block;
  }

  .p-where-image {
    max-width: 650px;
  }
}

/* ---------- サイズ：1024px以上 ---------- */

@media (min-width: 1024px) {
  .p-where-content {
    flex-direction: row; /* ここで初めて横並びにする */
    gap: 40px;
    align-items: center;
  }

  .p-where-image {
    flex: 0.9;
    max-width: 500px; /* 横並びの時は少し絞る */
  }

  .p-where-text {
    flex: 1.3;
  }
}

/* =========================================================

誕生のきっかけ

========================================================= */

/* ルビ幅微調整 */
.u-ruby-text--trigger {
  letter-spacing: 0.05em;
  text-indent: 0.05em;
}

.p-trigger-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* テキスト */
.p-trigger-main-text {
  font-size: clamp(0.938rem, 0.907rem + 0.12vw, 1rem); /* 15px-16px */
  order: 1;
}

.p-trigger-main-text p + p {
  margin-top: 1.2em;
}

/* プロフィールカード */
.p-trigger-profile {
  background-color: var(--color-accent-yellow);
  border-radius: 18px;
  padding: 18px 24px 24px;
  order: 2;
}

.p-trigger-profile__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.p-trigger-profile__label {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.p-trigger-profile__label::before,
.p-trigger-profile__label::after {
  content: "";
  width: 20px;
  height: 2px;
  background-color: var(--color-base-black);
}

.p-trigger-profile__name {
  font-size: 0.8rem;
  margin-bottom: 12px;
  line-height: 1.2;
}

.p-trigger-profile__name span {
  font-size: 1.5rem;
  font-family: var(--font-accent);
}

.p-trigger-profile__image {
  width: 100%;
  height: auto;
  max-width: 220px;
  margin-bottom: 15px;
  display: block;
}

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

.p-trigger-profile__desc {
  font-size: clamp(0.875rem, 0.845rem + 0.12vw, 0.938rem); /* 14px-16px */
  line-height: 1.6;
  text-align: left;
}

/* ---------- サイズ ： 768px以上（タブレット・PC共通） ---------- */

@media (min-width: 768px) {
  .p-trigger-content {
    /* ここを縦並び(column)にしておく */
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .p-trigger-main-text {
    width: 100%;
    max-width: 800px; /* 読みやすい幅に制限 */
  }

  .p-trigger-profile {
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 600px; /* カードが広がりすぎないように */
  }

  .p-trigger-profile__inner {
    /* 990pxまではgridを使わず、中央揃えの縦並びにする */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .p-trigger-profile__image {
    max-width: 280px; /* スマホより少し大きく */
    margin: 20px 0;
  }
}

/* ---------- サイズ ： 991px以上（PC：ここから横・グリッド並び） ---------- */
@media (min-width: 991px) {
  .p-trigger-content {
    flex-direction: row; /* メインテキストとカードを横並びに */
    align-items: flex-start;
  }

  .p-trigger-main-text {
    flex: 1.1;
  }

  .p-trigger-profile {
    flex: 0.9;
  }

  .p-trigger-profile__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    text-align: center;
  }

  /* グリッドの配置設定 */
  .p-trigger-profile__header-text {
    grid-column: 1 / 2;
  }

  .p-trigger-profile__image {
    grid-column: 2 / 3;
    max-width: none;
    margin: 0;
  }

  .p-trigger-profile__desc {
    grid-column: 1 / 3;
    margin-top: 15px;
  }
}

/* =========================================================

誕生への道のり

========================================================= */

.p-way-content {
  text-align: center;
}

.p-way-image {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 0;
}

.p-way-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  padding-bottom: 10px;
}

.p-way-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 38px;
  background-color: var(--color-accent-yellow);
  border: 1px solid var(--color-primary-blue);
  border-radius: 18px;
  font-family: var(--font-accent);
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  transition: all 0.3s ease;
}

.p-way-note {
  margin-top: 18px;
  font-size: 0.875rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.p-way-button-wrapper {
  display: inline-block;
  animation: periodic-action 3.5s ease-in-out infinite;
  transform-origin: bottom center;
}

.p-way-action {
  margin-top: 16px;
  text-align: center;
}

.p-way-button:hover {
  background-color: var(--color-accent-yellow);
  transform: translateY(-5px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* ---------- サイズ ： 768px以上 ---------- */

@media (min-width: 768px) {
  .p-way-note {
    font-size: 1rem;
    text-align: center;
  }
  .p-way-action {
    margin-top: 30px;
  }
  .p-way-button {
    font-size: 1.875rem;
    padding: 12px 40px;
    border: 2px solid var(--color-primary-blue);
  }
}

/* =========================================================

キャラクター図鑑

========================================================= */

.p-character-lead {
  font-family: var(--font-base);
  font-size: 0.9375rem;
  text-align: left;
  margin-bottom: 24px;
}

.p-character-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 15px;
  align-items: start;
}

.p-character-item:first-child,
.p-character-item--arrow,
.p-character-item--circle {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 auto;
}

.p-character-item:first-child .p-character-card {
  position: relative;
}

.p-character-item:first-child .p-character-card__image {
  width: 88%;
  margin-left: auto;
  margin-right: -0.2px;
  position: relative;
  z-index: 1;
}

.p-character-item:first-child .p-character-card__logo {
  width: 80%;
  margin: -50px auto 0;
  position: relative;
  z-index: 2;
}

.p-character-item--arrow img {
  width: 67%;
  margin: 0 auto;
}

.p-character-item--circle {
  margin-top: -10px;
  margin-bottom: -18px;
}

.p-character-logo-circle {
  width: 140px;
  margin: 0 auto;
}

.p-character-card__image {
  margin-bottom: 10px;
  padding: 10px;
  overflow: visible;
}

.p-character-card__image img {
  width: 100%;
  height: auto;
  display: block;
  transition:
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.6s ease;
  will-change: transform;
}

.p-character-card__name {
  font-family: var(--font-accent);
  font-size: clamp(1.125rem, 0.975rem + 0.62vw, 1.438rem); /* 18px-23px */
  margin-bottom: 2px;
  line-height: 1.2;
  display: block;
  width: fit-content;
  margin-inline: auto;
  text-wrap: balance;
  text-align: center;
}

/* ルビ */
.u-ruby-container--character {
  position: relative;
  display: inline-block;
  line-height: 1.2;
}

.u-ruby-text--character {
  position: absolute;
  left: 50%;
  top: -1em;
  transform: translateX(-50%);
  font-family: var(--font-base);
  font-size: 0.75rem;
  font-weight: normal;
  white-space: nowrap;
  line-height: 1;
}

/* キャプション */
.p-character-card__desc {
  font-size: clamp(0.906rem, 0.861rem + 0.19vw, 1rem);
  line-height: 1.5;
}

/* 多摩ニュータウンマン */
.p-character-item:nth-child(1) .p-character-card__image img {
  filter: drop-shadow(0 0 2px rgba(240, 160, 34, 1))
    drop-shadow(0 0 2px rgba(240, 160, 34, 1));
}

/* 3. サエギロー */
.p-character-item:nth-child(3) .p-character-card__image img {
  filter: drop-shadow(0 0 2px rgba(113, 0, 255, 1))
    drop-shadow(0 0 2px rgba(113, 0, 255, 1));
}

/* 4. ダメメ */
.p-character-item:nth-child(4) .p-character-card__image img {
  filter: drop-shadow(0 0 2px rgba(179, 179, 179, 1))
    drop-shadow(0 0 2px rgba(179, 179, 179, 1));
}

/* オクトーレマスク */
.p-character-item:nth-child(6) .p-character-card__image img {
  filter: drop-shadow(0 0 2px rgba(1, 1, 191, 1))
    drop-shadow(0 0 2px rgba(1, 1, 191, 1));
}

/* 桑都仮面とまゆちゃん */
.p-character-item:nth-child(7) .p-character-card__image img,
.p-character-item:nth-child(8) .p-character-card__image img {
  filter: drop-shadow(0 0 2px rgba(41, 125, 0, 1))
    drop-shadow(0 0 2px rgba(41, 125, 0, 1));
}

.p-character-item:nth-child(1) .p-character-card__image,
.p-character-item:nth-child(3) .p-character-card__image,
.p-character-item:nth-child(4) .p-character-card__image {
  cursor: pointer;
}

/* ---------- サイズ ： 768px以上 ---------- */

@media (min-width: 768px) {
  .p-character-lead {
    font-family: var(--font-accent);
    font-size: 1.75rem;
    margin-bottom: 56px;
    text-align: center;
  }

  .p-character-grid {
    display: grid;
    /* 均等4列 */
    grid-template-columns: repeat(4, 1fr);
    gap: 60px 40px;
    align-items: start;
  }

  /* 全体のぶち抜きをリセット */
  .p-character-item {
    grid-column: auto;
    width: 100%;
    margin: 0;
  }

  /* ヒーロー：少し大きく */
  .p-character-item:first-child {
    grid-column: 1 / 2;
    width: 125%;
    z-index: 2;
  }

  /* 矢印を右寄せ */
  .p-character-item--arrow {
    grid-column: 2 / 3;
    width: 75%;
    margin-left: auto;
    margin-right: 0;
    align-self: center;
    text-align: right;
  }

  /* 円を右上に */
  .p-character-item--circle {
    width: 80%;
    margin-left: auto;
    margin-right: -24px;
    align-self: start;
    text-align: right;
  }
  .p-character-item--circle .p-character-card__image {
    padding-right: 0;
    margin-right: 0;
  }
  .p-character-item--circle img {
    margin-left: auto;
  }

  .p-character-item:first-child .p-character-card__image,
  .p-character-item:first-child .p-character-card__logo {
    width: 100%;
    left: 0;
  }

  .p-character-item--arrow img,
  .p-character-logo-circle img {
    width: 100%;
    height: auto;
  }

  .p-character-card__name {
    margin-top: 15px;
    width: 100%;
  }
}

/* ---------- 768px〜1000px ---------- */

@media (min-width: 768px) and (max-width: 1000px) {
  .p-character-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 12px;
  }

  .p-character-item:first-child {
    width: 100%;
    transform: scale(1.1);
    transform-origin: left center;
  }

  .p-character-item--circle {
    width: 90%;
    margin-right: 0;
    transform: scale(0.9);
  }
}

/* =========================================================

お問い合わせ

========================================================= */

.p-contact-box {
  font-family: var(--font-accent);
}

.p-contact-header {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-contact-header__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.p-contact-header__en {
  display: block;
  font-size: 2.0625rem;
  line-height: 1;
  margin-bottom: 5px;
}

.p-contact-header__jp {
  font-size: 1.125rem;
  line-height: 1;
}

.p-contact-header__text {
  font-family: var(--font-base);
  margin-top: 12px;
  font-size: 0.9375rem;
  text-align: left;
  width: fit-content;
  line-height: 1.4;
}

.p-contact-link {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  gap: 24px;
}

/* スマホのみ吹き出し */
.p-contact-balloon {
  position: relative;
  background-color: var(--color-base-white);
  border: 3px solid var(--color-primary-blue);
  border-radius: 12px;
  padding: 12px 24px;
  text-align: center;
  box-shadow: 0 4px 0 var(--color-primary-blue);
}

/* 吹き出し三角 */
.p-contact-balloon::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 10px 0 10px;
  border-color: var(--color-primary-blue) transparent transparent transparent;
}

.p-contact-balloon__text {
  font-size: 1.0625rem;
  line-height: 1.4;
  white-space: nowrap;
}

.p-contact-image {
  width: 100%;
  max-width: 230px;
}

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

/* ---------- サイズ ： 768px以上 ---------- */

@media (min-width: 768px) {
  .p-contact-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
  }

  .p-contact-header__title {
    margin-bottom: 0;
  }

  .p-contact-header__en {
    font-size: 3rem !important;
  }

  .p-contact-header__text {
    font-size: 1.1875rem;
    text-align: center;
    width: auto;
    margin-top: 0;
  }

  .p-contact-link {
    flex-direction: column;
    gap: 20px;
  }

  .p-contact-balloon__text {
    font-size: 1.5rem;
    text-align: center;
  }
}

/* ---------- サイズ：1024px以上 ---------- */

@media (min-width: 1024px) {
  .p-contact-header {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 60px;
    width: 100%;
    max-width: none;
  }

  .p-contact-header__title {
    flex-shrink: 0;
  }

  .p-contact-header__en {
    font-size: 3.75rem !important;
  }

  .p-contact-header__text {
    font-family: var(--font-accent);
    text-align: left;
    font-size: 1.75rem;
    max-width: 700px;
    margin: 0;
  }

  .p-contact-link {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }

  .p-contact-balloon {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 10px 24px;
    border-radius: 12px;
    order: 2;
    transition:
      transform 0.4s ease,
      background-color 0.4s ease;
  }

  .p-contact-balloon::after {
    display: none;
  }

  .p-contact-balloon__text {
    font-size: 2.25rem;
    text-align: left;
  }

  .p-contact-image {
    max-width: 280px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

.p-contact-image img {
  width: 100%;
  height: auto;
  display: block;
  animation: periodic-action 4s ease-in-out infinite;
  transform-origin: bottom center;
}

.p-contact-link:hover .p-contact-balloon {
  transform: translateY(-15px);
  background-color: var(--color-accent-yellow);
}

/* =========================================================

フッター

========================================================= */

.l-footer {
  padding: 24px 0;
  background-color: var(--color-primary-blue);
  width: 100%;
}

.l-footer__copyright {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--color-base-white);
}

@media (min-width: 768px) {
  .l-footer {
    padding: 38px 0;
  }
  .l-footer__copyright {
    font-size: 0.875rem;
  }
}

/* =========================================================

トップへ戻るボタン

========================================================= */

.p-page-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-blue);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 100;
}

.p-page-top.is-footer-visible {
  bottom: 80px;
}

.p-page-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.p-page-top__icon {
  width: 13px;
  height: 13px;
  border-top: 3px solid var(--color-base-white);
  border-right: 3px solid var(--color-base-white);
  transform: rotate(-45deg);
  margin-top: 4px;
}

@media (hover: hover) {
  .p-page-top:hover {
    transform: translateY(-5px);
  }
}

/* ---------- サイズ ： 768px以上 ---------- */

@media (min-width: 768px) {
  .p-page-top.is-footer-visible {
    bottom: 110px;
  }
}

/* =========================================================

Utility

========================================================= */

/* PCのみ表示 */
@media (max-width: 767px) {
  .u-desktop-only {
    display: none !important;
  }
}

/* スマホのみ表示 */
@media (min-width: 768px) {
  .u-mobile-only {
    display: none !important;
  }
}

/* =========================================================

キャラクター詳細

========================================================= */

/* モーダル全体 */
.p-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

/* 表示時 */
.p-modal.is-open {
  display: flex;
}

/* 背景 */
.p-modal__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

/* 白い箱 */
.p-modal__content {
  position: relative;
  background: var(--color-base-white);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 20px;
  padding: 18px;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* 内側の青枠線 */
.p-modal__inner {
  border: 4px solid var(--color-primary-blue);
  border-radius: 14px;
  padding: 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 閉じるボタン */
.p-modal__close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: var(--color-primary-blue);
  border: 3px solid var(--color-base-white);
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-modal__close-btn::before,
.p-modal__close-btn::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 3px;
  background: var(--color-base-white);
  border-radius: 2px;
}
.p-modal__close-btn::before {
  transform: rotate(45deg);
}
.p-modal__close-btn::after {
  transform: rotate(-45deg);
}

.p-modal__title {
  font-family: var(--font-accent);
  color: var(--color-primary-blue);
  text-align: center;
  font-size: clamp(1.25rem, 0.708rem + 2.22vw, 2.375rem); /* 20px-38px */
  margin-bottom: 20px;
  line-height: 1.2;
}

.p-modal__layout {
  display: flex;
  flex-direction: column; /* スマホは縦 */
  gap: 20px;
}

.p-modal__main-img img {
  width: 90%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  display: block;
}

.p-modal__text-area {
  font-size: clamp(0.938rem, 0.817rem + 0.49vw, 1.188rem); /* 15px-19px */
}

/* PCのみキャラクター */
.p-modal__sub-img {
  display: none;
}

/* ---------- サイズ ： 768px以上 ---------- */

@media (min-width: 768px) {
  .p-modal__inner {
    padding: 28px 50px;
    position: relative;
  }

  .p-modal__layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    position: relative;
  }

  .p-modal__title {
    margin-bottom: 32px;
  }

  .p-modal__main-img {
    flex: 0 0 40.5%;
  }

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

  .p-modal__text-area {
    flex: 1;
    position: static;
    padding-bottom: 0;
  }

  .p-modal__sub-img {
    display: block;
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 180px;
    pointer-events: none;
    z-index: 5;
  }
}

/* =========================================================

アニメーション

========================================================= */

/* ボヨーン */
@keyframes boyon {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* キラーン① */
@keyframes kiraan {
  0%,
  70% {
    left: -130%;
  }
  95% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}

/* キラーン② */
@keyframes kiraan-instant {
  0% {
    left: -130%;
  }
  100% {
    left: 130%;
  }
}

/* プルプル */
@keyframes periodic-action {
  0%,
  60% {
    transform: scale(1) rotate(0deg);
  }
  65% {
    transform: scale(1.1) rotate(4deg);
  }
  70% {
    transform: scale(1.1) rotate(-3deg);
  }
  75% {
    transform: scale(1.05) rotate(2deg);
  }
  80% {
    transform: scale(1.02) rotate(-1deg);
  }
  85% {
    transform: scale(1.01) rotate(0.5deg);
  }
  90%,
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* --- ふわふわ --- */
@keyframes fuwafuwa {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* --- 共通ルール --- */

.u-boyon,
.js-scroll-trigger > span,
.js-scroll-trigger > h2,
.js-scroll-trigger > div {
  display: inline-block;
  opacity: 0;
  transform: scale(0);
}

.is-animated .u-boyon,
.js-scroll-trigger.is-animated > span,
.js-scroll-trigger.is-animated > h2,
.js-scroll-trigger.is-animated > div {
  animation: boyon 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.u-kiraan,
.p-header__list .p-header__item a,
.u-kiraan-infinite,
.p-way-button {
  position: relative;
  overflow: hidden;
}

.u-kiraan::before,
.p-header__list .p-header__item a::before,
.u-kiraan-infinite::before,
.p-way-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 48px;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 1;
}

/* ホバーでキラーン */
.p-header__list .p-header__item a:hover::before {
  animation: kiraan-instant 0.5s linear forwards;
}

/* 常にキラーン */
.u-kiraan-infinite::before {
  animation: kiraan 3.5s linear infinite;
}

/* キャラクターの動き */
.p-character-item:nth-child(1) .p-character-card__image {
  animation: fuwafuwa 3s ease-in-out infinite;
}
.p-character-item:nth-child(3) .p-character-card__image {
  animation: fuwafuwa 3.4s ease-in-out infinite;
  animation-delay: -0.8s;
}
.p-character-item:nth-child(4) .p-character-card__image {
  animation: fuwafuwa 2.8s ease-in-out infinite;
  animation-delay: -1.5s;
}

.p-character-item:nth-child(1) .p-character-card__image:hover img,
.p-character-item:nth-child(3) .p-character-card__image:hover img,
.p-character-item:nth-child(4) .p-character-card__image:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* --- SNSとYouTubeのホバー --- */

.p-hero__sns a::before,
.p-hero__video a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 46px;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 1;
}

.p-hero__sns a:hover::before,
.p-hero__video a:hover::before {
  animation: kiraan-instant 0.8s linear forwards;
}

.p-hero__sns a:hover,
.p-hero__video a:hover {
  transform: scale(0.95);
}
