@charset "utf-8";

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

基本設定

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

:root {
  /* カラー */
  --color-primary-blue: #00aed6;
  --color-primary-orange: #f39b00;
  --color-accent-red: #dd551a;
  --color-accent-orange-light: #fff3d8;
  --color-accent-blue-light: #d1f0f8;
  --color-base-white: #ffffff;
  --color-base-black: #333333;
  /* フォント */
  --font-base: "Noto Sans JP", sans-serif;
  --font-accent: "Zen Maru Gothic", sans-serif;
  /* 余白ルール */
  --section-space-sp: 60px;
  --section-space-pc: 160px;
  --sub-icon-size: 56px;
  --sub-text-size: calc(var(--sub-icon-size) * 20 / 56);
}

html {
  /* iOS Safariでのテキストサイズ自動調整を無効化 */
  -webkit-text-size-adjust: 100%;
  /* その他のブラウザ用 */
  text-size-adjust: 100%;
  /* スマホ時：固定メニューなし */
  scroll-padding-top: 0;
}

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

main {
  width: 100%;
}

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

共通レイアウト

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

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

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

.c-annotation--kome {
  display: block;
  padding-left: 1em;
  text-indent: -1em;
}

/* 表示切り替え */
.u-show-sp {
  display: block;
}
.u-show-pc {
  display: none;
}

/* ------- PCサイズ ------- */

@media (min-width: 768px) {
  html {
    /* PC時：固定メニュー分のオフセット */
    scroll-padding-top: 60px;
  }
  .l-section {
    padding-top: calc(var(--section-space-pc) / 2);
    padding-bottom: calc(var(--section-space-pc) / 2);
  }
  .l-inner {
    padding-right: 40px;
    padding-left: 40px;
  }
  .u-show-sp {
    display: none;
  }
  .u-show-pc {
    /* displayを固定せず、親の性質を邪魔しない「初期値」に戻す */
    display: revert;
  }
}

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

ハンバーガーメニュー

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

/* ハンバーガーボタンの外枠 */
.p-hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  width: 42px;
  height: 64px;
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-hamburger__inner {
  position: relative;
  width: 42px;
  height: 28px;
}

.p-hamburger__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  transition:
    transform 0.3s,
    opacity 0.3s;
  border-radius: 2px;
}

/* 1本目：青 */
.p-hamburger__line:nth-child(1) {
  top: 0;
  background-color: var(--color-primary-blue);
}

/* 2本目：オレンジ */
.p-hamburger__line:nth-child(2) {
  top: 12px; /* 4px + 8px */
  background-color: var(--color-primary-orange);
}

/* 3本目：青 */
.p-hamburger__line:nth-child(3) {
  top: 24px; /* 4px + 8px + 4px + 8px */
  background-color: var(--color-primary-blue);
}

/* --- バツにする --- */

/* 1本目30度回転 */
.js-hamburger.is-active .p-hamburger__line:nth-child(1) {
  transform: translateY(12px) rotate(30deg);
}
/* 2本目を消す */
.js-hamburger.is-active .p-hamburger__line:nth-child(2) {
  opacity: 0;
}
/* 3本目-30度回転 */
.js-hamburger.is-active .p-hamburger__line:nth-child(3) {
  transform: translateY(-12px) rotate(-30deg);
}

/* --- ハンバーガーメニュー --- */
.p-hamburger-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  pointer-events: none;
}

.p-hamburger-menu.is-active {
  pointer-events: auto;
}

/* オーバーレイ（黒い背景） */
.p-hamburger-menu__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.p-hamburger-menu.is-active .p-hamburger-menu__overlay {
  opacity: 1;
}

/* ----- メニューパネル ----- */

.p-hamburger-menu__panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 90%;
  max-width: 400px;
  background-color: var(--color-base-white);
  border-radius: 0 0 0 24px;
  z-index: 2;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 30px 40px 50px;
}

.p-hamburger-menu.is-active .p-hamburger-menu__panel {
  transform: translateX(0);
}

/* ロゴ */
.p-hamburger-menu__logo {
  align-self: flex-start;
  margin-bottom: 40px;
}

.p-hamburger-menu__logo img {
  width: 100px;
  height: auto;
}

/* メニューリスト */
.p-hamburger-menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px;
  margin-top: 20px;
}

.p-hamburger-menu__list > li {
  position: relative;
}

/* 各メニュー項目 */
.p-hamburger-menu__list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.p-hamburger-menu__list li a img:not(.p-hamburger-menu__icon) {
  height: 21px;
  width: auto;
  display: block;
}

.p-hamburger-menu__accordion-btn img {
  height: 21px;
  width: auto;
  display: block;
}

/* アコーディオンボタン */
.p-hamburger-menu__accordion-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: flex-end;
}

/* ＋マークの作成 */
.p-hamburger-menu__plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.p-hamburger-menu__plus::before,
.p-hamburger-menu__plus::after {
  content: "";
  position: absolute;
  background-color: var(--color-primary-blue);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.p-hamburger-menu__plus::before {
  width: 18px;
  height: 3px;
}
.p-hamburger-menu__plus::after {
  width: 3px;
  height: 18px;
  transition: transform 0.3s;
}

/* ＋からーにする */
.js-hamburger-accordion.is-open .p-hamburger-menu__plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* ----- サブメニューの初期状態 ----- */

.p-hamburger-menu__sub-list {
  display: none;
  list-style: none;
  padding: 20px 20px 0 0;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

.js-hamburger-accordion.is-open .p-hamburger-menu__sub-list {
  display: flex;
}

.p-hamburger-menu__sub-list img:not(.p-hamburger-menu__icon) {
  height: 19px !important;
  width: auto;
}

.p-hamburger-menu__icon {
  height: 21px;
  width: auto;
  display: block;
}

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

PCサイズのヘッダーメニュー

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

.p-header-nav-pc {
  position: static;
  width: 100%;
  background-color: transparent;
  transition:
    background-color 0.3s ease,
    padding 0.3s ease,
    border-radius 0.3s ease,
    box-shadow 0.3s ease;
}

/* 固定化したとき */
.p-header-nav-pc.is-fixed {
  position: fixed;
  top: 20px;
  right: 30px;
  width: auto;
  z-index: 999;
  background-color: white;
  border-radius: 50px;
  padding: 10px 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.p-header-nav-pc__list {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 64px;
  height: 50px;
  list-style: none;
}

.p-header-nav-pc__list > li {
  position: relative;
  display: flex;
  align-items: center;
  line-height: 0;
}

.p-header-nav-pc__list > li a {
  display: block;
  transition: opacity 0.3s;
}

.p-header-nav-pc__list > li a:hover {
  opacity: 0.7;
}

.p-header-nav-pc__list > li a img {
  height: 20px;
  width: auto;
  display: block;
}

/* 区切り線 */
.p-header-nav-pc__list > li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -30px;
  width: 3px;
  height: 18px;
  background-color: var(--color-primary-blue);
  pointer-events: none;
}

#submember {
  scroll-margin-top: 70px;
}

/* --- ホバーサブメニュー --- */

.has-child {
  position: relative;
}

.p-header-nav-pc__sub {
  position: absolute;
  top: calc(100% + 15px); /*出現する高さ */
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.9);
  background-color: var(--color-primary-blue);
  border-radius: 100vh;
  padding: 0 40px;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  transform-origin: center top;
}

/* ホバーで表示 */
.has-child:hover .p-header-nav-pc__sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* 吹き出しの三角形（位置を微調整） */
.p-header-nav-pc__sub::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--color-primary-blue);
}

/* 中身の横並び設定 */
.p-header-nav-pc__sub-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* 各メニュー項目（アイコン＋テキスト） */
.p-header-nav-pc__sub-item {
  display: flex !important;
  align-items: center;
  height: auto;
  text-decoration: none;
  padding: 0;
  gap: 12px;
}

.p-header-nav-pc__sub-icon {
  height: var(--sub-icon-size);
  width: auto;
  display: block;
  object-fit: contain;
}

.p-header-nav-pc__sub-text {
  display: block;
  width: auto;
  align-self: center;
  line-height: 1;
  height: auto;
  max-height: var(--sub-text-max-height);
  object-fit: contain;
}

.p-header-nav-pc__sub-item > img.p-header-nav-pc__sub-icon {
  height: var(--sub-icon-size) !important;
  width: auto !important;
  display: block !important;
}
.p-header-nav-pc__sub-item > img.p-header-nav-pc__sub-text {
  max-height: var(--sub-text-size) !important;
  height: auto !important;
  width: auto !important;
  display: block !important;
  align-self: center !important;
}

/* --- 1151px以上：現状の楕円デザインを維持 --- */

@media (min-width: 1151px) {
  .p-header-nav-pc.is-fixed {
    position: fixed;
    top: 20px;
    right: 30px;
    width: auto;
    z-index: 999;
    background-color: white;
    border-radius: 50px;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
}

/* --- 769pxから1150pxまで：横いっぱいの白帯で右寄せ --- */

@media (max-width: 1150px) and (min-width: 769px) {
  .p-header-nav-pc.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: var(--color-base-white);
    border-radius: 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  .p-header-nav-pc.is-fixed .p-header-nav-pc__list {
    justify-content: flex-end;
    gap: 28px;
    padding-right: 0;
    height: 60px;
  }
  .p-header-nav-pc.is-fixed .p-header-nav-pc__list > li::after {
    display: none;
  }
  .p-header-nav-pc.is-fixed .p-header-nav-pc__list > li a img {
    height: 16px;
  }

  /* 募集ホバー */
  .p-header-nav-pc.is-fixed .p-header-nav-pc__sub {
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    padding: 0 30px;
    border-radius: 100vh;
  }
  .p-header-nav-pc.is-fixed .has-child:hover .p-header-nav-pc__sub {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  .p-header-nav-pc.is-fixed .p-header-nav-pc__sub-inner {
    gap: 20px;
  }
  .p-header-nav-pc.is-fixed
    .p-header-nav-pc__sub-item
    > img.p-header-nav-pc__sub-icon {
    height: 36px !important;
    width: auto !important;
  }
  .p-header-nav-pc.is-fixed
    .p-header-nav-pc__sub-item
    > img.p-header-nav-pc__sub-text {
    max-height: 14px !important;
    width: auto !important;
  }
}

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

ヘッダー

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

.l-header {
  position: relative;
  width: 100%;
}

.l-header__logo,
.p-hamburger {
  pointer-events: auto;
}

.p-hero-video {
  width: 100%;
  height: 100vw;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}

.p-hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.l-header__logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  width: 100px;
  height: auto;
  opacity: 1;
  transform: translateX(0px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  pointer-events: auto;
}

.l-header__logo.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.l-header__logo.is-hidden {
  opacity: 0;
  transform: translateX(-20px);
  pointer-events: none;
}

/* ------- PCサイズ ------- */

@media (min-width: 768px) {
  .l-header__logo {
    width: 128px;
  }
  .p-hamburger {
    display: none;
  }
  .p-hero-video {
    height: 56.25vw; /* 16:9 */
  }
}

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

ぱちぱちヒーロー部とは？

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

.p-about__block + .p-about__block {
  margin-top: 56px;
}

.p-about__title {
  width: 100%;
  text-align: center;
  margin-bottom: 24px;
}

.p-about__title img {
  height: clamp(1.75rem, 1.161rem + 2.42vw, 3.125rem); /* 28px-50px */
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

.p-about__body p {
  font-family: var(--font-accent);
  margin-bottom: 1.5em;
  font-size: clamp(1rem, 0.946rem + 0.22vw, 1.125rem); /* 16px-18px */
  font-weight: 500;
}

.c-icon-inline {
  display: inline-block;
  height: 1.6em;
  width: auto;
  vertical-align: middle;
  margin: 0 0.1em;
  transform: translateY(-0.1em);
}

/* ------ なみなみブルー ------ */
.u-deco-wave-blue {
  display: inline;
  padding-bottom: 0.15em;
  /* ゆるやかな波 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath d='M0 3.5c2 0 3-3 5-3s3 3 5 3 3-3 5-3 3 3 5 3' fill='none' stroke='%2300aed6' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 20px 4px;
}

/* ------ なみなみオレンジ ------ */
.u-deco-wave-orange {
  display: inline;
  padding-bottom: 0.15em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath d='M0 3.5c2 0 3-3 5-3s3 3 5 3 3-3 5-3 3 3 5 3' fill='none' stroke='%23f39b00' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 20px 4px;
}

.u-text-highlight-orange {
  background-color: var(--color-primary-orange);
  color: var(--color-base-white);
  padding: 0.25em 0;
  margin: 0 0.3em;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  line-height: 1.2;
}

/* ------ 演劇ネットワークぱちぱちとは？ ------ */

/* 付箋本体 */
.p-about__note {
  position: relative;
  background-color: var(--color-primary-orange);
  color: var(--color-base-white);
  border-radius: 4px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 30px),
    calc(100% - 30px) 100%,
    0 100%
  );
  display: flex;
  flex-direction: column;
  padding: 24px;
  margin: 32px 0 0;
  overflow: visible;
}

/* 折れ目 */
.p-about__note::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  background-color: var(--color-primary-orange);
  border-left: 2px solid var(--color-base-white);
  border-top: 2px solid var(--color-base-white);
  border-radius: 4px 0 0 0;
  clip-path: polygon(0 0, 100% 0, 0 100%); /* 三角形に切り抜き */
  z-index: 2;
}

.p-about__note-title {
  order: 1;
  font-size: clamp(1.063rem, 0.875rem + 0.77vw, 1.5rem); /* 17px-24px */
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
}

.p-about__note-text {
  order: 2;
  font-size: clamp(0.938rem, 0.911rem + 0.11vw, 1rem); /* 15px-16px */
  text-align: left;
  margin-bottom: 16px;
}

.p-about__note-btn {
  order: 3;
  align-self: center;
  display: inline-block;
  background-color: var(--color-base-white);
  color: var(--color-base-black);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--color-base-black);
  font-size: clamp(0.875rem, 0.848rem + 0.11vw, 0.938rem); /* 14px-15px */
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.p-about__note-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ------- PCサイズ ------- */

@media (min-width: 768px) {
  .p-about__block {
    text-align: center;
  }
  .p-about__block + .p-about__block {
    margin-top: 100px;
  }
  .p-about__title img {
    margin-bottom: 40px;
  }
  /* 演劇ネットワークぱちぱちとは？ */
  .p-about__note {
    margin: 60px auto 0;
    padding: 30px 50px;
    /* ボタンを右上に配置 */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  .p-about__note-title {
    order: 1;
    text-align: left;
    margin-bottom: 8px;
    width: auto;
  }
  .p-about__note-btn {
    order: 2;
    padding: 6px 24px;
    margin-bottom: 8px;
  }
  .p-about__note-text {
    order: 3;
    width: 100%;
    margin-bottom: 0;
  }
}

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

所属するヒーローたち

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

/* ------ ヒーロー ------ */

.p-hero {
  margin-top: 32px;
  background-color: var(--color-accent-blue-light);
  margin-bottom: 24px;
}

.p-hero__title {
  width: 100%;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 1px;
}

.p-hero__title img {
  height: clamp(1.75rem, 1.161rem + 2.42vw, 3.125rem); /* 28px-50px */
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

.p-hero__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.p-hero__card {
  background-color: var(--color-base-white);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- カード上部 --- */
.p-hero__card-upper {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.p-hero__card-img-unit {
  flex-shrink: 0;
  width: 100%;
}

.p-hero__card-img {
  background-color: var(--color-accent-orange-light);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 0.65;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.p-hero__card-img img {
  width: auto;
  height: 90%;
  object-fit: contain;
}

/* --- 公式サイトはこちら --- */
.p-hero__card-link {
  display: block;
  margin-top: 16px;
  background-color: var(--color-primary-blue);
  color: var(--color-base-white);
  font-size: clamp(1rem, 0.893rem + 0.44vw, 1.25rem); /* 16px-20px */
  font-weight: bold;
  padding: 8px 4px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.p-hero__card-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.p-hero__card-info {
  flex: 1;
}

.p-hero__card-name {
  font-size: clamp(1.313rem, 1.098rem + 0.88vw, 1.813rem); /* 21px-29px */
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
}

.p-hero__card-desc {
  font-size: clamp(0.938rem, 0.911rem + 0.11vw, 1rem); /* 15px-16px */
}

/* --- カード下部 --- */
.p-hero__card-lower {
  background-color: var(--color-primary-orange);
  padding: 20px;
  color: var(--color-base-white);
  flex-shrink: 0;
}

.p-hero__card-data-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.p-hero__card-data-row:last-child {
  margin-bottom: 0;
}

.p-hero__card-data-row dt {
  flex-shrink: 0;
  background-color: var(--color-accent-red);
  padding: 2px;
  border-radius: 50px;
  height: fit-content;
  width: 8em;
  text-align: center;
  font-size: 0.8rem;
}

.p-hero__card-data-row dd {
  flex: 1;
}

.p-hero__card-img-unit.is-full .p-hero__card-img {
  background-color: transparent;
  padding: 0;
}

.p-hero__card-img-unit.is-full .p-hero__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ------ ヒーロー募集中 ------ */

.p-hero__recruit {
  margin-top: 28px;
}

.p-hero__recruit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.p-hero__recruit-item {
  background-color: var(--color-base-white);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* グレーのシルエット部分 */
.p-hero__recruit-img {
  background-color: #d9d9d9;
  aspect-ratio: 1 / 0.6;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 13%;
}

.p-hero__recruit-img img {
  width: auto;
  height: 90%;
  object-fit: contain;
}

.p-hero__recruit-label {
  background-color: var(--color-primary-blue);
  color: var(--color-base-white);
  font-size: clamp(0.938rem, 0.777rem + 0.66vw, 1.313rem); /* 15px-21px */
  font-weight: bold;
  text-align: center;
  padding: 8px 4px;
  margin: 0;
}

/* ------- PCサイズ ------- */

@media (min-width: 830px) {
  .p-hero__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px 20px;
  }
  .p-hero__card {
    width: calc(50% - 10px);
  }
  .p-hero__card-upper {
    flex-direction: row;
    padding: 30px;
    gap: 24px;
  }
  .p-hero__card-img-unit {
    width: 163px;
  }
  .p-hero__card-img {
    aspect-ratio: 163 / 190;
    padding: 10%;
  }
  .p-hero__card-link {
    font-size: 0.75rem;
    padding: 8px 4px;
    border-radius: 4px;
  }
  .p-hero__card-name {
    text-align: left;
  }
  .p-hero__card-img-unit.is-full .p-hero__card-img img {
    object-position: center;
  }
  .p-hero__recruit-list {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

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

部員になる / サブ部員になる

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

.p-member__title {
  text-align: center;
  margin-bottom: 20px;
}

.p-member__title img {
  height: clamp(1.75rem, 1.161rem + 2.42vw, 3.125rem);
  width: auto;
  margin: 0 auto 12px;
}

.p-member__subtitle {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-primary-blue);
  border-bottom: 2px solid var(--color-primary-blue);
  display: inline-block;
}

.p-member__lead {
  margin: 0 auto 24px;
  font-size: clamp(0.938rem, 0.911rem + 0.11vw, 1rem); /* 15px-16px */
}

/* チャット */
.p-member__chat-container {
  background-color: var(--color-accent-orange-light);
  border-radius: 10px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.p-member + .p-member .p-member__chat-container {
  margin-top: 24px;
}

.p-member__chat-row.is-answer + .p-member__chat-row.is-question {
  margin-top: 14px;
}

.p-member__chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.p-member__chat-icon {
  flex-shrink: 0;
  width: 40px;
}

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

/* 吹き出しの共通土台 */
.p-member__chat-bubble {
  position: relative;
  padding: 16px 20px;
  border-radius: 24px;
  max-width: 85%;
  display: flex;
  align-items: center;
  min-height: 50px;
  font-size: clamp(0.938rem, 0.911rem + 0.11vw, 1rem); /* 15px-16px */
  text-align: left;
}

/* しっぽの共通 */
.p-member__chat-bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* --- 質問（オレンジ / 左しっぽ） --- */
.is-question {
  justify-content: flex-start;
}

.is-question .p-member__chat-bubble {
  background-color: var(--color-primary-orange);
  color: var(--color-base-white);
}

.is-question .p-member__chat-bubble::before {
  left: -12px;
  background-image: url("../images/sb-orange.svg");
}

/* --- 回答（水色 / 右しっぽ） --- */
.is-answer {
  justify-content: flex-end;
}

.is-answer .p-member__chat-bubble {
  background-color: var(--color-primary-blue);
  color: var(--color-base-white);
}

.is-answer .p-member__chat-bubble::before {
  right: -12px;
  background-image: url("../images/sb-blue.svg");
}

/* --- 矢印とボタン --- */

.p-member__arrow {
  position: relative;
  display: block;
  margin: 0 auto 16px;
  width: 60px;
  height: 42px;
}

.p-member__arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--color-base-black);
}

.p-member__arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 28px;
  height: 28px;
  border-right: 2px solid var(--color-base-black);
  border-bottom: 2px solid var(--color-base-black);
  transform: translateX(-50%) rotate(45deg) translate(-2px, -2px);
}

.p-member__btn {
  display: inline-block;
  background-color: var(--color-base-white) !important;
  color: var(--color-base-black);
  border: 1px solid var(--color-base-black);
  padding: 6px 28px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 8px 6px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

@media (hover: hover) {
  .p-member__btn:hover {
    transform: translateY(-2px);
    box-shadow: 10px 8px 0 rgba(0, 0, 0, 0.15);
    opacity: 0.9;
  }
}

/* ------- PCサイズ ------- */

@media (min-width: 768px) {
  .p-member__chat-container {
    padding: 60px 100px;
  }
  .p-member__chat-row {
    gap: 20px;
  }
  .p-member__chat-icon {
    width: 50px;
  }
  .p-member__chat-bubble {
    max-width: 70%;
    padding: 20px 30px;
  }
  .is-answer .p-member__chat-bubble {
    padding: 20px 30px;
  }
  .p-member__lead {
    text-align: center;
  }
  .p-member + .p-member {
    padding-top: 0;
    margin-top: 24px;
  }
}

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

お問い合わせ

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

.p-contact {
  background-color: var(--color-accent-blue-light);
  margin-top: 30px;
}

/* ------ タイトル ------ */

.p-contact__title {
  width: 100%;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 24px;
}

.p-contact__title img {
  height: clamp(1.75rem, 1.161rem + 2.42vw, 3.125rem); /* 28px-50px */
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

.p-contact__content {
  max-width: 860px;
  margin: 0 auto;
}

.p-contact__lead {
  font-size: clamp(0.938rem, 0.911rem + 0.11vw, 1rem); /* 15px-16px */
  margin-bottom: 8px;
}

.p-contact__note {
  font-size: clamp(0.813rem, 0.786rem + 0.11vw, 0.875rem); /* 13px-14px */
  margin-bottom: 38px;
}

/* フォーム項目 */
.p-contact__item {
  margin-bottom: 24px;
}

.p-contact__item.is-contact {
  margin-bottom: 10px;
}

.p-contact__item label,
.p-contact__label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: clamp(0.938rem, 0.911rem + 0.11vw, 1rem); /* 15px-16px */
}

.p-contact__item input[type="text"],
.p-contact__item input[type="email"],
.p-contact__item textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: var(--color-base-white);
  font-family: inherit;
  resize: vertical;
}

.p-contact__radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.p-contact__radio {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.p-contact__radio input {
  display: none;
}

.p-contact__radio-text {
  position: relative;
  padding-left: 34px;
  font-weight: 400;
  display: flex;
  align-items: center;
  min-height: 28px;
}

/* 白い丸 */
.p-contact__radio-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-color: var(--color-base-white);
  border-radius: 50%;
  border: 2px solid transparent; /* 未選択時は枠線なし */
  transition: border-color 0.2s;
}

.p-contact__radio input:checked + .p-contact__radio-text::before {
  border-color: var(--color-primary-blue);
}

.p-contact__radio-text::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--color-primary-blue);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.p-contact__radio input:checked + .p-contact__radio-text::after {
  opacity: 1;
}

.p-contact__radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* 送信ボタン */
.p-contact__submit {
  text-align: center;
  margin-top: 24px;
  width: 100%;
  margin-bottom: 24px;
}

.p-contact__submit button {
  background-color: var(--color-primary-blue);
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition:
    transform 0.2s,
    opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.p-contact__submit button img {
  height: 24px;
  width: auto;
  display: block;
}

.p-contact__submit button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ------- PCサイズ ------- */

@media (min-width: 768px) {
  .p-contact {
    margin-top: 40px;
  }
  .p-contact__radio-group {
    flex-direction: row;
    gap: 32px;
  }
  .p-contact__radio-group {
    gap: 32px;
  }
  .p-contact__submit button {
    max-width: 200px;
  }
}

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

フッター

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

.l-footer {
  background-color: var(--color-primary-blue);
  padding: 60px 0 20px;
  color: var(--color-base-white);
  text-align: center;
}

/* ナビゲーション */
.l-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin-bottom: 20px;
  font-size: clamp(0.875rem, 0.848rem + 0.11vw, 0.938rem); /* 14px-15px */
  line-height: 2.4;
  gap: 16px;
  flex-wrap: wrap;
}

.l-footer__nav li {
  font-weight: bold;
  position: relative;
}

.l-footer__nav .is-sub a {
  font-weight: normal;
}

.l-footer__nav a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

.l-footer__nav-group .nav-item {
  position: relative;
  padding: 0 12px;
}

.l-footer__nav-group {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.l-footer__nav a:hover {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.l-footer__nav-group .nav-item:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -2px;
  font-weight: normal;
  opacity: 0.8;
}

/* 運営元テキスト */
.l-footer__sub-text {
  font-size: clamp(0.875rem, 0.848rem + 0.11vw, 0.938rem); /* 14px-15px */
  margin-bottom: 30px;
}

/* ロゴ */
.l-footer__logo {
  width: 180px;
  margin: 0 auto 40px;
}

.l-footer__logo img {
  width: 100%;
  height: auto;
}

/* 初期状態 */
.l-footer__logo.u-fade-up {
  opacity: 0;
  transform: scale(0.8) translateY(10px); /* 少し小さく、少し下に */
  filter: blur(4px); /* 少しぼかしておくと「ぽわっと」感アップ */
  transition:
    opacity 1.2s ease-out,
    transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    filter 1.2s ease-out;
  pointer-events: none;
}

/* アニメーション実行時 */
.l-footer__logo.u-fade-up.is-animated {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.l-footer__logo a {
  display: inline-block;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

@media (hover: hover) {
  .l-footer__logo.u-fade-up.is-animated a:hover {
    opacity: 0.9;
    transform: translateY(-2px) scale(1);
  }
}

/* コピーライト */
.l-footer__copyright {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ------- PCサイズ ------- */
@media (min-width: 768px) {
  .l-footer {
    padding: 80px 0 30px;
  }
  .l-footer__nav {
    flex-direction: row;
    gap: 0 32px; /* 余白が効いてない？？ */
  }
  .l-footer__nav-group {
    padding: 0;
  }
  .l-footer__nav-group .nav-item:first-child {
    padding-left: 0;
  }
  .l-footer__nav-group .nav-item:last-child {
    padding-right: 0;
  }
  .l-footer__logo {
    width: 280px;
  }
}

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

トップへ戻るボタン

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

.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-orange);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 100;
}

.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);
  }
}

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

アニメーション

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

/* --- スクロールフェードイン --- */

.u-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s,
    transform 0.8s;
  pointer-events: none;
}

.u-fade-up.is-animated {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.p-about__body.u-fade-up,
.p-hero__list.u-fade-up,
.p-hero__recruit.u-fade-up,
.p-member__lead.u-fade-up,
.p-member__chat-container.u-fade-up,
.p-member__lead.u-fade-up,
.p-member__chat-container.u-fade-up,
.p-contact__lead.u-fade-up,
.p-contact__note.c-annotation--kome.u-fade-up,
.p-contact__form.u-fade-up {
  transition-delay: 0.18s;
  transition-duration: 0.8s;
}

/* --- メニュータイトル --- */

@keyframes seesaw-once {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg); /* 右に少し下がる */
  }
  50% {
    transform: rotate(-3deg); /* 左に少し下がる */
  }
  75% {
    transform: rotate(1deg); /* 少し戻る */
  }
  100% {
    transform: rotate(0deg); /* 真っ直ぐに戻る */
  }
}

.p-hamburger-menu__list li a:hover img,
.p-header-nav-pc__list li a:hover img {
  transform-origin: center;
  animation: seesaw-once 0.5s ease-in-out forwards;
}

/* ------- Q & A ------- */

/* チャット中身の初期状態 */
.p-member__chat-row .p-member__chat-icon,
.p-member__chat-row .p-member__chat-bubble {
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.6s ease-out;
}

/* 吹き出し：左右から */
.p-member__chat-row.is-question .p-member__chat-bubble {
  transform: translateX(-20px);
}
.p-member__chat-row.is-answer .p-member__chat-bubble {
  transform: translateX(20px);
}

/* 監視に引っかかったとき */
/* 最初にアイコン */
.p-member__chat-row.is-animated .p-member__chat-icon {
  opacity: 1;
  transform: scale(1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1); /* 少し弾む */
  transition-delay: 0s;
}

/* 吹き出し遅れて出る */
.p-member__chat-row.is-animated .p-member__chat-bubble {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.15s;
}

/* 最後に出現 */
.p-member__footer {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  pointer-events: none;
}

.p-member__footer.is-animated {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
