/* ==========================================================
   Foundation
   ========================================================== */
:root{--font-hand:"花とちょうちょ","hanatotyoutyo",cursive;--font-jp:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;--font-display:"Paytone One",var(--font-jp);--font-num:"Inter",var(--font-jp);--color-white:#fff;--color-ink:#000;--color-black:#000;--color-coral:#f24e35;--color-yellow:#f2a935;--color-highlight:#f4d924;--color-cream:#fcf7f0;--color-blue:#005dcb;--color-navy:#1c4084;--color-pale-blue:#f5faff;--color-gray:#d9d9d9;--color-muted:#606060;--color-transparent:#0000;--color-black-80:#000c}

/* Figma準拠で装飾がフレーム外へ出るため、ビューポート幅でクリップする。
   overflow:hidden と違いスクロールコンテナを作らないので sticky / アンカーに影響しない */
html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 100px;
}

body {
  min-width: 320px;
  color: var(--color-ink);
  background: var(--color-cream);
  font-family: var(--font-jp);
  outline-offset: 3px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================
   Layout
   ========================================================== */
.l-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  min-height: 123px;
  pointer-events: none;
}

.l-header__logo {
  display: block;
  width: 72px;
  margin-left: 16px;
  padding-top: 4px;
  pointer-events: auto;
}

.l-header__menu {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-coral);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease;
  pointer-events: auto;
}

.l-header__menu-icon::before,
.l-header__menu-icon::after {
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-white);
  transition: transform 0.3s ease, background-color 0.2s ease;
}

.l-header__menu-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 10px;
  flex: none;
}

.l-header__menu::after {
  position: static;
  right: 0;
  bottom: 18px;
  left: 0;
  color: var(--color-white);
  content: "MENU";
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.4px;
  text-align: center;
}

.l-header__menu-icon::before,
.l-header__menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.l-header__menu-icon::before { top: 0; }
.l-header__menu-icon::after { top: 8px; }

.l-header__menu[aria-expanded="true"] {
  position: fixed;
  z-index: 30;
}

.l-header__menu[aria-expanded="true"]::after {
  content: "CLOSE";
}

.l-header__menu[aria-expanded="true"] .l-header__menu-icon {
  height: 22px;
}

.l-header__menu[aria-expanded="true"] .l-header__menu-icon::before {
  top: 4px;
  transform: translateY(6px) rotate(45deg);
}

.l-header__menu[aria-expanded="true"] .l-header__menu-icon::after {
  top: 12px;
  transform: translateY(-2px) rotate(-45deg);
}

.l-header__drawer {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 20;
  pointer-events: none;
}

.l-header__drawer.is-open {
  pointer-events: auto;
}

.l-header__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.l-header__drawer.is-open .l-header__backdrop {
  opacity: 1;
}

.l-header__nav {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86%, 400px);
  height: 100%;
  padding: 80px 24px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-cream);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.l-header__drawer.is-open .l-header__nav {
  transform: translateX(0);
}

.l-header__nav-title {
  color: var(--color-coral);
  font-family: var(--font-display);
  font-size: clamp(24px, 4.5dvh, 36px);
  line-height: 1.2;
  letter-spacing: 1.8px;
}

.l-header__nav ul {
  margin-top: clamp(8px, 2dvh, 24px);
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.l-header__nav li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.l-header__nav a {
  display: block;
  padding: clamp(4px, 1.1dvh, 10px) 8px;
  font-size: clamp(12px, 2.1dvh, 14px);
  line-height: 1.4;
  font-weight: 500;
}

.l-header__nav a span {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: clamp(16px, 3dvh, 20px);
  line-height: 1.25;
  letter-spacing: 1px;
}

.l-header__menu:focus-visible,
.l-header__nav a:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

body.is-menu-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .l-header__backdrop,
  .l-header__nav,
  .l-header__menu-icon,
  .l-header__menu-icon::before,
  .l-header__menu-icon::after {
    transition: none;
  }
}

.l-header__logo img {
  width: 72px;
  height: auto;
  object-fit: contain;
}

.l-inner {
  width: min(100% - 32px, 1140px);
  margin-inline: auto;
}

/* SP: Figma実測 セクション上余白20px。PCは768px以上で64pxに戻す */
.l-section {
  padding-block: 20px 40px;
}

/* SP: 固定heightは390px以外で中身が溢れるため使わず、内容基準＋paddingで組む。
   各値は390px時にFigmaのセクション高さ（合計6658px）と一致するよう調整 */
.p-story  { position: relative; z-index: 0; padding: 20px 0 64px; }
.p-flow   { position: relative; z-index: 1; padding: 40px 0 56px; }
.p-feature{ padding: 153px 0 134px; }
.p-intern { padding: 103px 0 67px; }
.p-company{ padding: 38px 0 0; }
.p-links  { padding: 39px 0 64px; }

/* SP: Figma実測 390x382。ロゴ(95,48) 問い合わせ枠(16,114) 運営(0,248) 主催(0,292) ©(0,346) */
.l-footer {
  position: relative;
  min-height: 0;
  /* SPの下部固定CTA（60px）に最終行が隠れないよう、その高さ分を確保 */
  padding: 48px 0 calc(84px + env(safe-area-inset-bottom));
  color: var(--color-ink);
  background: var(--color-yellow) url("../images/deco/footer-bg.webp") 31.419% 50% / 175.897% 103.141% no-repeat;
  font-size: 14px;
  line-height: normal;
  text-align: center;
}

.l-footer__logo {
  width: 200px;
  height: 33.75px;
  margin: 0 auto;
}

.l-footer__contact {
  max-width: 358px;
  width: calc(100% - 32px);
  min-height: 132px;
  margin: 32.25px auto 0;
  padding: 12px 0;
  border-radius: 8px;
  background: var(--color-white);
}

.l-footer__contact h2 {
  font-size: 16px;
  line-height: 24px;
}

.l-footer__tel {
  /* 電話番号は行内で折り返さない。文字自体は改変せずASCIIのまま保つ
     （行政案件のため表記の正確性とコピー/機械可読性を優先） */
  white-space: nowrap;
  display: flex;
  height: 24px;
  min-height: 0;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  gap: 5.59px;
}

.l-footer__tel img:first-of-type {
  width: 24px;
  height: 24px;
}

.l-footer__tel img:last-of-type {
  width: 190.817px;
  height: 22.656px;
}

.l-footer__contact p {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 24px;
}

.l-footer__mail {
  display: block;
  width: fit-content;
  margin: 3px auto 0;
  color: var(--color-ink);
  font-size: 12px;
  line-height: 18px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.l-footer > .l-footer__contact + p {
  margin-top: 28px;
  font-size: 12px;
  line-height: 16px;
}

.l-footer > p + p {
  margin-top: 12px;
  font-size: 12px;
  line-height: 17px;
}

.l-footer small {
  display: block;
  margin-top: 37px;
  color: #5c5c5c;
  font-size: 10px;
  line-height: 12px;
}

@media (min-width: 768px) {
  .l-section {
    padding-block: 64px;
  }

  .p-story,
  .p-flow,
  .p-feature,
  .p-intern,
  .p-company,
  .p-links {
    padding-top: 0;
  }

  .p-story__heading {
    margin-bottom: 49px;
  }

  .p-flow {
    height: 715px;
  }

  .l-header__logo {
    margin-left: max(20px, calc((100% - 1312px) / 2));
  }

  .l-section {
    padding-block: 0;
  }

  .l-footer {
    min-height: 421px;
    padding: 56px 20px 120px;
    background-position: 0 62.654%;
    background-size: 100% 196.675%;
  }

  .l-footer__logo {
    width: 240px;
    height: 40.5px;
    margin: 0 auto 32.5px;
  }

  .l-footer__contact {
    max-width: 752px;
    min-height: 150px;
    margin: 0 auto;
    padding: 16px;
  }

  .l-footer__contact h2 {
    font-size: 18px;
    line-height: 1.33;
  }

  .l-footer__tel {
    height: 28px;
    margin-top: 13px;
    gap: 7px;
  }

  .l-footer__tel img:first-of-type {
    width: 28px;
    height: 28px;
  }

  .l-footer__tel img:last-of-type {
    width: 222.62px;
    height: 26.432px;
  }

  .l-footer__contact p {
    margin-top: 7px;
    font-size: 14px;
    line-height: 24px;
  }

  .l-footer__mail {
    margin-top: 3px;
    font-size: 14px;
    line-height: 18px;
  }

  .l-footer > .l-footer__contact + p {
    margin-top: 32px;
    font-size: 14px;
    line-height: 17px;
  }

  .l-footer > p + p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 17px;
  }

  .l-footer small {
    margin-top: 48px;
    font-size: 12px;
    line-height: 14px;
  }
}

/* ==========================================================
   Component
   ========================================================== */
.c-button {
  display: flex;
  width: 240px;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.38;
  text-align: center;
  /* Figma: 内側232x64(r12)に1pxの白線。外側4pxは背景色で塗る
     （currentColorだと文字色=白のためリングが太くなる） */
  box-shadow: inset 0 0 0 4px var(--btn-bg, transparent), inset 0 0 0 5px var(--color-white);
}

/* ヒーロー用。SPは全幅2分割195x60・角丸なし、PCは240x72の角丸。
   Figma実測: 文字は左揃え(左20px)、右端20pxに24pxの矢印アイコン */
.c-button--hero {
  position: relative;
  width: 100%;
  min-height: 60px;
  padding: 4px 34px 4px 12px;
  justify-content: flex-start;
  border-radius: 0;
  font-size: clamp(11px, calc(-2.714px + 4.286vw), 14px);
  line-height: 18px;
  letter-spacing: 0;
  text-align: left;
}

.c-button--hero::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: url("../images/icon/cta-arrow.svg") center / contain no-repeat;
  content: "";
}

.c-button--coral {
  --btn-bg: var(--color-coral);
  background: var(--color-coral);
}

.c-button--yellow {
  --btn-bg: var(--color-yellow);
  background: var(--color-yellow);
}

.p-hero__actions .c-button--yellow {
  white-space: nowrap;
}

.c-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.c-button--yellow:disabled {
  opacity: 1;
}

.c-heading {
  margin-top: -4px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: normal;
  letter-spacing: 2px;
  text-align: center;
}

/* Figma実測: SP 12px/0.6px・PC 14px/0.7px。テキストボックス高は18px */
.c-heading__eyebrow {
  color: var(--color-coral);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.6px;
  text-align: center;
}

@media (min-width: 768px) {
  .c-button--hero {
    width: 240px;
    min-height: 72px;
    padding: 10px 52px 10px 20px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 22px;
  }

  .c-button--hero::after {
    right: 20px;
    width: 24px;
    height: 24px;
    margin-top: -12px;
  }

  .c-heading {
    margin-top: 0;
    font-size: 48px;
    letter-spacing: 2.4px;
  }

  .c-heading__eyebrow {
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0.7px;
  }
}

/* ==========================================================
   Project
   ========================================================== */
.p-hero {
  padding: 0;
}

.p-hero__media {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--color-cream);
}

/* Figma実測: 動画下端に重なる波形（SP 0,588 390x102 / PC -3,677 1445x143） */
.p-hero__media::after {
  position: absolute;
  z-index: 1;
  bottom: calc(670px - min(640px, calc(91.795vw * 640 / 358)));
  left: 0;
  width: 100%;
  height: 102px;
  transform: scaleX(-1);
  background: url("../images/deco/hero-wave-sp.svg") 0 0 / 100% 100% no-repeat;
  content: "";
}

/* SP: Figma実測 写真358x640 を (16,28) に配置。
   横幅は画面に追従しつつ、縦長端末・大画面スマートフォンでは
   Figmaの640pxを上限にしてヒーロー外への縦方向のはみ出しを防ぐ */
.p-hero__video {
  position: absolute;
  top: 28px;
  left: 4.103%;
  width: 91.795%;
  /* Figma比率358:640を幅に連動。大画面SPでは640pxを上限にして
     ヒーロー下端からの動画はみ出しを防ぐ */
  height: calc(91.795vw * 640 / 358);
  max-height: 640px;
  aspect-ratio: 358 / 640;
  border-radius: 24px;
  object-fit: cover;
}

.p-hero__copy {
  position: absolute;
  z-index: 2;
  top: calc(28px + min(640px, calc(91.795vw * 640 / 358)) / 2);
  right: 4.103%;
  left: 4.103%;
  transform: translateY(-50%);
  text-align: center;
}

.p-hero__title {
  display: flex;
  justify-content: center;
}

.p-hero__title picture,
.p-hero__title img {
  display: block;
}

.p-hero__title img {
  width: min(268px, 100%);
  height: auto;
}

.p-hero__lead {
  display: flex;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-white);
  font-size: 14px;
  line-height: 1.5;
}

/* SPのFigmaには装飾線が無い（PCのみ） */
.p-hero__lead::before,
.p-hero__lead::after {
  display: none;
  width: 42px;
  height: 3px;
  background: url("../images/hero/lead-line.svg") center / 100% 100% no-repeat;
  content: "";
}

.p-hero__actions {
  position: fixed;
  z-index: 9;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

/* SP: 390px時のFigma配置を維持。広いSPで人物が拡大して
   高さ720pxのKVから下にはみ出さないよう、幅を167pxで止める。 */
.p-hero__people {
  position: absolute;
  z-index: 3;
  top: 433px;
  left: 59.744%;
  width: min(42.821%, 167px);
  aspect-ratio: 167 / 245;
  pointer-events: none;
  display: block;
  height: auto;
}

.p-hero__person,
.p-hero__illust-a,
.p-hero__illust-b {
  position: absolute;
}

/* Figma実測: SP (257.2, 433) 109.49x245 / PC (125, 454) 181x405。
   余白のない書き出しに差し替えたため object-fit の補正は不要 */
.p-hero__person {
  left: 24px;
  top: 0;
  width: 109.49px;
  height: 245px;
  /* Figma 2028:922: 人物元画像を横149.17%、左-25.41%で枠内に表示。 */
  background: url("../images/hero/illust-person-original.webp") 51.677852% 0 / 149.17% 100% no-repeat;
}

.p-hero__illust-a {
  left: 0;
  top: 184px;
  width: 42px;
  height: 42px;
}

.p-hero__illust-b {
  right: 0;
  top: 165px;
  width: 56px;
  height: 56px;
}

/* SPのFigmaには Scroll Down が無い（PCのみ） */
/* 背景動画の再生/一時停止（WCAG 2.2.2）。デザインを崩さないよう
   フォーカス時のみ可視化し、キーボード・支援技術からは常に到達できる */
.p-hero__videotoggle {
  position: absolute;
  z-index: 3;
  top: 40px;
  left: 16px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.p-hero__videotoggle:focus-visible {
  width: auto;
  height: auto;
  padding: 8px 16px;
  overflow: visible;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-ink);
  clip: auto;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

/* Figma実測: SPには存在しない装飾（PCのみ表示） */
.p-hero__scroll {
  display: none;
  position: absolute;
  z-index: 2;
  top: 359px;
  right: 10px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.6px;
  writing-mode: vertical-rl;
}

@media (min-width: 768px) {
  .p-hero,
  .p-hero__media {
    height: 907px;
  }

  .p-hero__media {
    min-height: 0;
    padding: 50px 64px 119px;
  }

  .l-header__logo {
    width: 124px;
    margin-left: 64px;
    padding-top: 5px;
  }

  .l-header__logo img {
    width: 124px;
    height: 117.58px;
  }

  .l-header__menu {
    top: 24px;
    right: 64px;
    width: 80px;
    height: 80px;
  }

  .l-header__nav {
    padding: 112px 32px calc(24px + env(safe-area-inset-bottom));
  }

  .l-header__nav-title {
    font-size: 40px;
  }

  .l-header__nav ul {
    margin-top: 28px;
  }

  .l-header__nav a {
    padding: 14px 12px;
    font-size: 16px;
    line-height: 1.5;
  }

  .l-header__nav a span {
    margin-bottom: 4px;
    font-size: 24px;
    line-height: 1.25;
  }

  .l-header__menu::after {
    bottom: 24px;
  }

  .p-hero__video {
    position: relative;
    z-index: 0;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 738px;
    max-height: none;
    min-height: 0;
    border-radius: 24px;
    object-fit: cover;
    object-position: center;
  }

  .p-hero__lead::before,
  .p-hero__lead::after {
    display: block;
  }

  .p-hero__scroll {
    display: flex;
  }

  .p-hero__media::after {
    z-index: 2;
    bottom: 87px;
    left: 0;
    width: 100%;
    height: 143px;
    background-image: url("../images/deco/hero-wave-pc.svg");
  }

  .p-hero__copy {
    inset: 366px 20px auto;
    transform: none;
  }

  .p-hero__lead {
    margin-top: 14px;
    gap: 12px;
    font-size: 24px;
  }

  .p-hero__lead::before,
  .p-hero__lead::after {
    width: 100px;
    height: 5px;
  }

  .p-hero__actions {
    position: fixed;
    z-index: 9;
    right: 64px;
    bottom: 32px;
    left: auto;
    display: flex;
    flex-direction: row;
    gap: 16px;
  }

  .p-hero__actions .c-button--yellow {
    cursor: pointer;
  }

  .p-hero__people {
    top: auto;
    bottom: 48px;
    left: 5.903%;
    width: 19.097%;
    aspect-ratio: 275 / 405;
    height: auto;
  }

  .p-hero__person {
    left: 40px;
    top: auto;
    bottom: 0;
    width: 181px;
    height: 405px;
  }

  .p-hero__illust-a {
    left: 0;
    top: auto;
    bottom: 32px;
    width: 69px;
    height: 69px;
  }

  .p-hero__illust-b {
    right: 0;
    top: auto;
    bottom: 77px;
    width: 92px;
    height: 92px;
  }

  .p-hero__scroll {
    top: 359px;
    right: 22px;
  }
}

.p-story__heading,
.p-flow__heading,
.p-feature__heading,
.p-intern__heading,
.p-company__heading {
  position: relative;
}

.p-story__heading::before,
.p-flow__heading::before,
.p-feature__heading::before,
.p-intern__heading::before,
.p-company__heading::before {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 59px;
  height: 32px;
  transform: translateX(-50%);
  background: url("../images/deco/rays-heading-v2.webp") center / contain no-repeat;
  content: "";
}

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

/* Figma 2024:1606: 回転後の背景領域は x20/y680、698×1037。
   レイアウトの高さを変えず、Stories の背面へ配置する。 */
.p-story::before {
  position: absolute;
  z-index: 0;
  top: -40px;
  left: 5.128205%;
  width: 178.974359%;
  aspect-ratio: 698 / 1037;
  background: url("../images/deco/story-bg-sp.svg") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.p-story > .l-inner {
  position: relative;
  z-index: 1;
}

.p-story__list {
  display: grid;
  gap: 20px;
}

.p-story__item {
  position: relative;
  /* 画像の高さに追従し、SPの左右paddingで下部に空白を作らない。 */
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 24px;
}

/* カード全体を既存の動画ボタンのクリック領域にする。 */
.p-story__item:focus-within {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

.p-story__item::before,
.p-story__copy {
  pointer-events: none;
}

.p-story__link::before {
  position: absolute;
  inset: -1000px;
  content: "";
}

/* Figma装飾: キラキラ。SP 16x20.8 / PC 23x29.9。カードごとに位置が微妙に異なる */
.p-story__item::before {
  position: absolute;
  z-index: 2;
  top: 108px;
  left: 83.799%;
  width: 16px;
  height: 20.81px;
  background: url("../images/deco/sparkle.svg") center / contain no-repeat;
  content: "";
}

.p-story__item:nth-child(2)::before {
  top: 107px;
  left: 294px;
}

.p-story__item:nth-child(3)::before {
  top: 108px;
  left: 297px;
}

/* Figma実測: カード下部だけに敷かれた矩形（SP 358x142 / PC 364x200）に
   rgba(0,0,0,0) → rgba(0,0,0,0.8) のグラデーション。全高に広げると濃くなりすぎる */
.p-story__item > picture::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 142px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  content: "";
  pointer-events: none;
}

.p-story__item > picture {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 358 / 224;
  overflow: hidden;
  border-radius: 24px;
}

.p-story__item > picture img {
  position: absolute;
  max-width: none;
  object-fit: fill;
}

/* SP: Figma実測 マスク358x224 に対する画像サイズ・オフセットを%換算 */
.p-story__item:nth-child(1) > picture img {
  top: -26.786%;
  left: -19.832%;
  width: 119.832%;
  height: 127.679%;
}

.p-story__item:nth-child(2) > picture img {
  top: -20.536%;
  left: -5.307%;
  width: 112.849%;
  height: 120.536%;
}

.p-story__item:nth-child(3) > picture img {
  top: -12.5%;
  left: -10.056%;
  width: 113.408%;
  height: 120.982%;
}

.p-story__copy {
  z-index: 2;
  position: absolute;
  top: auto;
  right: 16px;
  bottom: 58px;
  left: 16px;
  width: calc(100% - 32px);
  margin-inline: auto;
}

.p-story__copy {
  display: flex;
  justify-content: center;
}

.p-story__copy picture,
.p-story__copy img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Figma: ボタン内に再生アイコン14x14（テキストの右12px） */
.p-story__link::after {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 12px;
  background: url("../images/icon/play.svg") center / contain no-repeat;
  content: "";
  vertical-align: middle;
}

.p-story__link {
  position: absolute;
  z-index: 2;
  right: 21px;
  bottom: 16px;
  left: 21px;
  height: 32px;
  padding: 4px;
  border: 1px solid var(--color-white);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.7px;
  text-align: center;
  cursor: pointer;
}

.p-video-modal {
  width: min(calc(100% - 32px), 960px);
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.p-video-modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.p-video-modal__inner {
  position: relative;
}

.p-video-modal__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--color-black);
  object-fit: contain;
}

.p-video-modal__close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  background: var(--color-coral);
  cursor: pointer;
}

.p-video-modal__close::before,
.p-video-modal__close::after {
  position: absolute;
  top: 17px;
  left: 8px;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  content: "";
}

.p-video-modal__close::before { transform: rotate(45deg); }
.p-video-modal__close::after { transform: rotate(-45deg); }

.p-video-modal__close:focus-visible,
.p-story__link:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .p-story {
    height: 721px;
  }

  /* Figma 2028:481: SVG原寸1458.15×824.476、原点229.92/798、回転4.73度。 */
  .p-story::before {
    top: -109px;
    left: 15.966644%;
    width: 101.260417%;
    aspect-ratio: 1458.15 / 824.476;
    transform: rotate(4.73deg);
    transform-origin: top left;
    background-image: url("../images/deco/story-bg-pc.svg");
  }

  .p-story__heading {
    margin-bottom: 49px;
  }

  .p-story__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .p-story__item {
    aspect-ratio: 364 / 430;
  }

  .p-story__item > picture::after {
    height: 200px;
  }

  .p-story__item > picture {
    width: 100%;
    height: auto;
    aspect-ratio: 364 / 430;
  }

  .p-story__item::before {
    top: 260px;
    left: 325px;
    width: 23px;
    height: 29.91px;
  }

  .p-story__item:nth-child(2)::before {
    top: 223px;
    left: 332px;
  }

  .p-story__item:nth-child(3)::before {
    top: 260px;
    left: 325px;
  }

  /* Figma実測: 本文下端からボタン上端まで7px。
     下端基準にすることでPC幅が狭い場合も本文とボタンの間隔を維持する */
  .p-story__copy {
    top: auto;
    right: 0;
    bottom: 63px;
    left: 0;
    width: 100%;
    margin-bottom: 8px;
  }

  .p-story__link {
    right: 24px;
    bottom: 24px;
    left: 24px;
  }

  /* Figma実測のトリミングをマスク(364x430)基準の%で指定し、幅可変でも比率を保つ */
  .p-story__item:nth-child(1) > picture img {
    top: -17.442%;
    left: -79.67%;
    width: 226.099%;
    height: 127.442%;
  }

  .p-story__item:nth-child(2) > picture img {
    top: -22.093%;
    left: -58.242%;
    width: 216.484%;
    height: 122.093%;
  }

  .p-story__item:nth-child(3) > picture img {
    top: -8.605%;
    left: -61.538%;
    width: 207.418%;
    height: 116.977%;
  }
}

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

/* Figma装飾: SP (218,3145) 156x98 / PC (1099,2115) 277x173 */
.p-flow__deco {
  position: absolute;
  top: 1527px;
  left: 55.897%;
  width: 40%;
  height: auto;
  aspect-ratio: 156 / 98;
}

/* Figma装飾: SP (16,4058) 150x120 / PC (64,3304) 256x205。
   Figmaでは下端の波形より手前に描かれるため z-index を上げる */
.p-feature__deco {
  position: absolute;
  z-index: 1;
  /* SPの文章が増えても最終カードに重ならないよう、下部余白を基準にする。 */
  top: auto;
  bottom: 0;
  left: 4.103%;
  width: 38.462%;
  height: auto;
  aspect-ratio: 150 / 120;
}

/* SP: Figma実測 カードは左に38pxインデント（左端は縦タイムライン用の余白）
   カード高256px + gap 12px = 間隔268px。1枚目の後だけ間隔276px */
.p-flow__list {
  position: relative;
  display: grid;
  margin-left: 32px;
  margin-right: 16px;
  gap: 12px;
}

/* Figma実測: x26 の縦タイムライン（SPのみ）。1つ目のドット下端〜5つ目のドット中心 */
.p-flow__list::before {
  position: absolute;
  top: 80px;
  left: -28px;
  width: 1px;
  height: calc(100% - 266px);
  background: #c6c6c6;
  content: "";
}

.p-flow__item:first-child {
  margin-bottom: 8px;
}

.p-flow__item {
  position: relative;
  padding: 0 12px 20px;
}

/* Figma実測: 白カードは画像の上端より60px下から始まる */
.p-flow__item::before {
  position: absolute;
  z-index: 0;
  top: 60px;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 16px;
  background: var(--color-white);
  content: "";
}

/* Figma実測: 20x20のドット（コーラル12px＋40%コーラルのリング4px） */
.p-flow__item::after {
  position: absolute;
  top: 64px;
  left: -34px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-coral);
  box-shadow: 0 0 0 4px rgba(242, 78, 53, 0.4);
  content: "";
}

.p-flow__image,
.p-flow__item b,
.p-flow__item h3,
.p-flow__item p {
  position: relative;
  z-index: 1;
}

.p-flow__image {
  display: flex;
  height: 120px;
  align-items: flex-end;
  justify-content: center;
}

/* SP: Figma実測 step01は150x120、step02〜05は160x120 */
.p-flow__image img {
  width: 160px;
  height: 120px;
  object-fit: contain;
}

.p-flow__item:first-child .p-flow__image img {
  width: 150px;
}

/* Figma実測: 「Step」16px と 数字20px が空白なしで並ぶ */
.p-flow__item b span {
  font-size: 20px;
  line-height: 24px;
}

.p-flow__item b {
  display: block;
  margin-top: 8px;
  height: 24px;
  color: var(--color-coral);
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  text-transform: uppercase;
}

.p-flow__item h3 {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}

.p-flow__item p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .p-flow {
    height: 715px;
    padding-top: 0;
  }

  .p-flow__heading {
    margin-bottom: 50px;
  }

  .p-flow__list {
    grid-template-columns: repeat(5, 1fr);
    margin-left: 0;
    margin-right: 0;
    gap: 22.5px;
  }

  .p-flow__item:first-child {
    margin-bottom: 0;
  }

  /* Figma実測(PC): 画像118 → +12 でStep行130、h3 162、本文 204、カード下端290 */
  .p-flow__item b {
    margin-top: 12px;
  }

  .p-flow__item h3 {
    margin-top: 8px;
    font-size: clamp(16px, calc(11.429px + 0.595vw), 20px);
  }

  .p-flow__item p {
    margin-top: 12px;
    font-size: clamp(11px, calc(7.571px + 0.446vw), 14px);
  }

  .p-flow__item {
    padding-bottom: 23px;
  }

  .p-flow__deco {
    top: 487px;
    left: 76.319%;
    width: 19.236%;
    aspect-ratio: 277 / 173;
    height: auto;
  }

  .p-flow__item {
    min-height: 290px;
  }

  .p-flow__list::before,
  .p-flow__item::after {
    display: none;
  }

  .p-flow__item::before {
    top: 58px;
  }
}

.p-feature {
  position: relative;
}

/* 波形背景。1440px固定＋translateX(-50%)だと1440px未満の幅で横にはみ出し、
   それを抑えるための overflow-x:clip がChromiumの描画不具合を招いていた。
   100%幅にすることでクリップ自体を不要にする */
/* Figma実測: 白背景は上端が波形のひとつの図形（SP 0,3152 390x985 / PC 0,2109 1440x1334） */
.p-feature::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 100%;
  background: url("../images/deco/wave-top-sp.svg") 0 0 / 100% 100% no-repeat;
  content: "";
}

/* Figma実測: 下端の波形（SP 0,4062 390x93 / PC 0,3312 1440x140）。左右反転 */
.p-feature::after {
  position: absolute;
  right: 0;
  bottom: -18px;
  left: 0;
  height: 93px;
  transform: scaleX(-1);
  background: url("../images/deco/wave-bottom-sp.svg?v=20260916-2") 0 0 / 100% 100% no-repeat;
  content: "";
}

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

/* Figma実測: 音符 SP (54,3250) 21x29 / PC (500,2277) 45x63 */
.p-feature__heading::after {
  position: absolute;
  top: -55px;
  left: 38px;
  width: 21px;
  height: 29px;
  background: url("../images/deco/note-regenerated.webp") center / contain no-repeat;
  content: "";
}

.p-feature__list {
  display: grid;
  gap: 24px;
}

/* SP: Figma実測 サムネ140x92 + 8px + テキスト210px の2カラム（358px基準の%） */
.p-feature__item {
  position: relative;
  display: grid;
  grid-template-columns: 39.106% 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: start;
}

.p-feature__item > picture {
  grid-row: 1 / span 2;
  grid-column: 1;
}

/* Figma実測(SP): 1枚目のサムネのみ見出しより2px下げ（グループ高さ94px） */
@media (max-width: 767px) {
  .p-feature__item:nth-child(1) > picture {
    margin-top: 2px;
  }
}

.p-feature__item > h3 {
  grid-row: 1;
  grid-column: 2;
}

.p-feature__item > p {
  grid-row: 2;
  grid-column: 2;
}

.p-feature__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 140 / 92;
  border-radius: 12px;
  object-fit: cover;
}







/* 足跡を右端から少しはみ出させ、rootのoverflow-x:clipで横スクロールを防ぐ。 */
.p-feature__footprint {
  display: block;
  position: absolute;
  z-index: 1;
  top: auto;
  bottom: 24px;
  left: auto;
  right: -8px;
  width: 70px;
  height: auto;
  aspect-ratio: 157 / 171;
}

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

/* SP: Figma実測 番号は左端に独立配置、見出し本文は幅179px（=210-31）。
   inlineのままだと折り返し位置がFigmaとずれる */
.p-feature__item h3 {
  position: relative;
  margin-top: 0;
  padding-left: 31px;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.8px;
}

.p-feature__item h3 span {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-coral);
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.p-feature__item p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.6px;
}

@media (min-width: 768px) {
  .p-feature {
    height: 1196px;
    padding-top: 1px;
  }

  .p-feature::before {
    top: -234px;
    height: 1334px;
    background-image: url("../images/deco/wave-top.svg");
  }

  .p-feature::after {
    bottom: 87px;
    height: 140px;
    background-image: url("../images/deco/wave-bottom.svg");
  }

  .p-story__heading::before,
  .p-flow__heading::before,
  .p-feature__heading::before,
  .p-intern__heading::before,
  .p-company__heading::before {
    top: -55px;
    width: 76px;
    height: 41px;
  }

  .p-feature__heading {
    margin-bottom: 48px;
  }

  /* Figma実測(PC): 音符 (500,2277) 45x63 */
  .p-feature__heading::after {
    top: -66px;
    left: calc(50% - 220px);
    width: 45px;
    height: 63px;
  }

  .p-feature__list {
    grid-template-columns: repeat(6, 1fr);
    column-gap: 24px;
    row-gap: 49px;
  }

  .p-feature__item {
    display: block;
    grid-column: span 2;
  }

  .p-feature__item img {
    width: 100%;
    height: auto;
    aspect-ratio: 364 / 239;
    border-radius: 24px;
  }


  /* Figma実測: 見出し行は36px。内包する32pxの番号spanが行高を48pxへ押し上げ、
     カード高が363px→371pxになり2段目が28pxずれていたため固定値で抑える */
  /* Figma実測(PC): 24px / 行送り28px（画素解析で行間28pxを確認） */
  .p-feature__item h3 {
    margin-top: 24px;
    font-size: clamp(16px, calc(6.857px + 1.19vw), 24px);
    line-height: 1.167;
    letter-spacing: 1.2px;
  }

  .p-feature__item p {
    line-height: 1.75;
  }

  .p-feature__item h3 span {
    position: static;
    margin-right: clamp(6px, calc(3.714px + 0.298vw), 8px);
    font-size: clamp(22px, calc(10.571px + 1.488vw), 32px);
    line-height: 0;
  }

  /* Figma実測: 番号は別ノードで、見出しは2行目も番号の右（+54px）から始まる */
  .p-feature__item h3 {
    padding-left: clamp(39px, calc(21.857px + 2.232vw), 54px);
    text-indent: clamp(-54px, calc(-21.857px - 2.232vw), -39px);
  }

  .p-feature__item p {
    margin-top: 14px;
    font-size: clamp(12px, calc(7.429px + 0.595vw), 16px);
    line-height: 1.75;
    letter-spacing: 0.8px;
  }

  .p-feature__item:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .p-feature__item:nth-child(5) {
    grid-column: 4 / span 2;
  }

  /* PC: Figma実測 step01は148x118、step02〜05は157x118 */
  .p-flow__image {
    height: 118px;
  }

  .p-flow__image img {
    width: min(157px, 100%);
    height: auto;
    aspect-ratio: 157 / 118;
  }

  .p-flow__item:first-child .p-flow__image img {
    width: min(148px, 100%);
    aspect-ratio: 148 / 118;
  }

  .p-feature__deco {
    top: 961px;
    bottom: auto;
    left: 4.444%;
    width: 17.778%;
    aspect-ratio: 256 / 205;
    height: auto;
  }

  /* PCでは画像サイズに合わせて16pxだけ右端へ出す。 */
  .p-feature__footprint {
    top: 719px;
    bottom: auto;
    right: -16px;
    left: auto;
    width: 140px;
    aspect-ratio: 157 / 171;
  }
}

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

.p-intern__description,
.p-company__description {
  max-width: 955px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.7px;
  text-align: center;
}

/* しごまるバナーは1枚画像で書き出し。SP 358x181 / PC 1140x320 を picture で出し分け */
.p-intern__banner {
  display: block;
  width: 92%;
  max-width: 717px;
  margin-top: 24px;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.p-intern__banner img {
  transition: transform 0.25s ease;
}

.p-intern__banner:hover,
.p-intern__banner:focus-visible,
.js-reveal-ready .p-intern__banner:hover,
.js-reveal-ready .p-intern__banner:focus-visible,
.js-reveal-ready .p-intern__banner.is-revealed:hover {
  transform: translateY(-4px);
}

.p-intern__banner:hover img,
.p-intern__banner:focus-visible img,
.js-reveal-ready .p-intern__banner:hover img,
.js-reveal-ready .p-intern__banner:focus-visible img,
.js-reveal-ready .p-intern__banner.is-revealed:hover img {
  transform: scale(1.02);
}

.p-intern__banner:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 4px;
}

/* SPは本文を自然に折り返し、SE幅での1文字だけの行を防ぐ。 */
.p-intern__description br {
  display: none;
}

.p-intern__banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 358 / 181;
}

@media (prefers-reduced-motion: reduce) {
  .p-intern__banner,
  .p-intern__banner img {
    transition: none;
  }

  .p-intern__banner:hover,
  .p-intern__banner:focus-visible,
  .js-reveal-ready .p-intern__banner:hover,
  .js-reveal-ready .p-intern__banner:focus-visible,
  .js-reveal-ready .p-intern__banner.is-revealed:hover {
    transform: none;
  }

  .p-intern__banner:hover img,
  .p-intern__banner:focus-visible img,
  .js-reveal-ready .p-intern__banner:hover img,
  .js-reveal-ready .p-intern__banner:focus-visible img,
  .js-reveal-ready .p-intern__banner.is-revealed:hover img {
    transform: none;
  }
}

@media (min-width: 768px) {
  .p-intern {
    height: 695px;
    padding-top: 0;
  }

  .p-intern__description br:not(.u-sp-only) {
    display: inline;
  }

  /* Figma実測(PC): インターン/企業セクションのアイブロウ枠は17px（他は21px） */
  .p-intern .c-heading__eyebrow,
  .p-company .c-heading__eyebrow {
    line-height: 17px;
  }

  .p-intern__banner {
    max-width: 1050px;
    margin-top: 40px;
    border-radius: 24px;
  }

  .p-intern__banner img {
    aspect-ratio: 1140 / 320;
  }
}

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

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

.p-company__filter {
  min-width: 0;
  margin: 32px 0 0;
  padding: 0;
  border: 0;
}

.p-company__filter legend {
  margin-bottom: 20px;
  padding: 0;
  font-weight: 700;
}

.p-company__filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.p-company__filter label {
  position: relative;
  display: inline-flex;
  min-height: 36px;
  padding: 8px 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-coral);
  border-radius: 30px;
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.p-company__filter input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.p-company__filter label:has(input:checked) {
  background: var(--color-coral);
  color: var(--color-white);
}

.p-company__filter label:has(input:focus-visible) {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

.p-company__status {
  margin-top: 16px;
  font-size: 14px;
}

.p-company__item[hidden] {
  display: none;
}

.p-company__item {
  border-radius: 12px;
  background: var(--color-white);
}

.p-company__item summary {
  position: relative;
  display: flex;
  min-height: 56px;
  padding: 16px 40px 16px 12px;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 1px;
  list-style: none;
}

.p-company__item summary span {
  text-decoration: underline;
}

.p-company__item summary span a{
  display: flex;
  align-items: center;
  vertical-align: middle;
}

/* Figma実測: 企業名の右に外部リンクアイコン SP16px（8px空け）/ PC18px（12px空け） */
.p-company__item summary img {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  cursor: pointer;
  flex: none;
}

/* Figma実測: 開閉アイコン SP 12x6（右12px）/ PC 22x10（右24px）。開いている間は上向き */
.p-company__item summary::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 12px;
  height: 6px;
  margin-top: -3px;
  background: url("../images/icon/accordion-arrow.svg") center / contain no-repeat;
  content: "";
}

.p-company__item[open] summary::after {
  transform: scaleY(-1);
}

.p-company__body {
  display: grid;
  gap: 16px;
  margin: 0 12px;
  max-height: 0;
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid var(--color-gray);
  opacity: 0;
  transform: translateY(-8px);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.6px;
  transition: max-height 0.32s ease, opacity 0.24s ease, transform 0.32s ease;
}

.p-company__item[open] .p-company__body {
  max-height: 1600px;
  opacity: 1;
  transform: none;
}

.p-company__item.is-accordion-closing .p-company__body {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
}

@media (prefers-reduced-motion: reduce) {
  .p-company__body {
    transition: none;
    transform: none;
  }
}

.p-company__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  max-width: 300px;
  gap: 8px;
}

/* 掲載写真の比率が違っても同じ枠へ中央トリミングする。 */
.p-company__photos img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 12px;
}

/* 既存のspanラッパーに画像を挿入する実装にも対応。 */
.p-company__photos span:has(img) {
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.p-company__industry {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

/* クラスをまだ付けていない、業種名＋説明文の既存マークアップにも適用。 */
.p-company__body > div:last-child > p:first-child:has(+ p) {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.p-company__photos span {
  display: flex;
  min-height: 134px;
  padding: 8px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-gray);
  font-size: 14px;
  line-height: 28px;
  letter-spacing: 0.7px;
  text-align: center;
}

.p-company__tags {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.p-company__tags li {
  padding: 2px 9px;
  border: 1px solid var(--color-coral);
  border-radius: 100px;
  color: var(--color-coral);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.6px;
}

@media (min-width: 768px) {
  .p-company {
    padding-top: 0;
  }

  .p-intern__description,
  .p-company__description {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.8px;
  }

  .p-company__description {
    max-width: 704px;
  }

  .p-company__body {
    grid-template-columns: 300px 1fr;
    gap: 32px;
    margin: 0 24px;
    padding: 24px 0;
  }

  /* Figma実測(PC): 写真枠 146x120（SPは163x134） */
  .p-company__photos span {
    min-height: 120px;
  }

  .p-company__photos span:has(img) {
    min-height: 0;
  }

  .p-company__item summary {
    min-height: 78px;
    padding: 24px 52px 24px 24px;
    font-size: 20px;
  }

  .p-company__item summary img {
    width: 18px;
    height: 18px;
    margin-left: 12px;
  }

  .p-company__item summary::after {
    right: 24px;
    width: 22px;
    height: 10px;
    margin-top: -5px;
  }

  .p-company__list {
    margin-top: 40px;
    gap: 24px;
  }

  .p-company__body {
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.7px;
  }

  .p-company__tags {
    margin-top: 20px;
  }
}

.p-links__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 10px;
}

.p-links__link {
  display: block;
  width: 100%;
  max-width: 200px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.p-links__link:hover,
.p-links__link:focus-visible {
  transform: translateY(-3px);
}

.p-links__link:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

.p-links__link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
}

@media (prefers-reduced-motion: reduce) {
  .p-links__link {
    transition: none;
  }

  .p-links__link:hover,
  .p-links__link:focus-visible {
    transform: none;
  }
}

@media (min-width: 768px) {
  .p-links {
    min-height: 202px;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .p-links__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
  }

  .p-links__link {
    border-radius: 12px;
  }
}

@media (min-width: 768px) {
  .p-intern__heading,
  .p-company__heading { margin-bottom: 48px; }
  .p-hero__title img {
    width: min(843px, calc(100vw - 40px));
  }

  .p-story__copy picture {
    max-width: calc(100% - 32px);
  }
}

/* ==========================================================
   Utility
   ========================================================== */
/* ------------------------------------------------------------------
   スクロール表示アニメーション
   ・初期状態を隠すのは JS が html に .js-reveal-ready を付けたときだけ。
     JS 無効・エラー時はコンテンツが必ず見える（プログレッシブエンハンス）
   ・静止後の状態は transform/opacity とも初期値に戻るため、
     Figma との一致（レイアウト実測値）には一切影響しない
   ・prefers-reduced-motion: reduce では動かさず即表示（WCAG 2.3.3）
   ------------------------------------------------------------------ */
.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}

.js-reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 767px) {
  /* SPの表示アニメーション対象は左右にゆとりを持たせる */
  .js-reveal-ready [data-reveal].is-revealed {
    padding-inline: 8px;
  }
  .js-reveal-ready [data-reveal].is-revealed.p-flow__item,
  .js-reveal-ready [data-reveal].is-revealed.p-feature__item,
  .js-reveal-ready [data-reveal].is-revealed.p-company__item {
    padding-inline: 20px;
  }
  .p-story__item,
  .js-reveal-ready [data-reveal].is-revealed.p-story__item {
    padding: 0;
  }
}

/* カード類は少しずつ時間差をつける（最大0.32秒で頭打ち） */
.p-story__item:nth-child(2),
.p-flow__item:nth-child(2),
.p-feature__item:nth-child(2),
.p-company__item:nth-child(2),
.p-links__list li:nth-child(2) {
  --reveal-delay: 0.08s;
}

.p-story__item:nth-child(3),
.p-flow__item:nth-child(3),
.p-feature__item:nth-child(3),
.p-company__item:nth-child(3),
.p-links__list li:nth-child(3) {
  --reveal-delay: 0.16s;
}

.p-flow__item:nth-child(4),
.p-feature__item:nth-child(4),
.p-company__item:nth-child(4),
.p-links__list li:nth-child(4) {
  --reveal-delay: 0.24s;
}

.p-flow__item:nth-child(n + 5),
.p-feature__item:nth-child(n + 5),
.p-company__item:nth-child(n + 5) {
  --reveal-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.u-pc-only {
  display: none;
}

.u-sp-only {
  display: inline;
}

@media (min-width: 768px) {
  .u-pc-only {
    display: inline;
  }

  .u-sp-only {
    display: none;
  }
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
