/* =========================================================
   村上翔 自己PR（スカイマーク 最終面接）
   落ち着いた雑誌のようなデザイン。
   影や丸いカードは使わず、細い線と余白で区切る。
   前のデザインは style-old.css に残してある。
   ========================================================= */

/* ===== 色と文字（ここを変えると全体が変わる） ===== */
:root {
  /* スカイマークの機体の色 */
  --navy: #1d2378;      /* 濃い青紫 */
  --blue: #2f3090;      /* 青紫（「SKY」の文字・尾翼） */
  --yellow: #f6c400;    /* 黄色（星） */
  --red: #e72644;       /* 赤（翼の先のハート） */

  --paper: #f7f6f2;     /* 背景（少し温かみのある白） */
  --white: #ffffff;
  --ink: #1b1d2b;       /* 文字 */
  --muted: #6b6e7d;     /* 補足の文字 */
  --line: #d9d8d2;      /* 区切りの線 */

  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* 星の形と2色（機体の星のように、左上が濃い金色・右下が明るい黄色） */
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='translate(2.5 0) skewX(-12)' d='M12 1.8l3 7 7.6.6-5.8 5 1.8 7.4L12 17.9l-6.6 3.9 1.8-7.4-5.8-5 7.6-.6z' fill='black'/%3E%3C/svg%3E");
  --star-fill: radial-gradient(ellipse 167% 167% at 143.5% 194.5%, #f8e24c 0 100%, #ebbc40 100%);

  /* ハートの形 */
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.3s-7.6-4.7-10.2-9.4C0 8.6 1.9 4.4 5.9 4.4c2.3 0 3.8 1.3 4.7 2.7.9-1.4 2.4-2.7 4.7-2.7 4 0 5.9 4.2 4.1 7.5C17.8 16.6 12 21.3 12 21.3z' fill='black'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

/* ===== 画面の大きさに合わせて、サイト全体を同じ比率で大きくする =====
   基準は 1440×900 の画面（このとき 1rem＝16px）。
   画面の横幅の 1.111%、縦幅の 1.778% のうち小さいほうを使うので、
   横に長い画面でも縦からはみ出さない。16px より小さくはしない。 */
html {
  /* --user-scale は ＋／－ キーで変える倍率（script.js が入れる。ふだんは 1） */
  font-size: calc(max(16px, min(1.1111vw, 1.7778vh)) * var(--user-scale, 1));
}

html {
  scroll-snap-type: y mandatory;  /* 1画面ずつピタッと止まる */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--gothic);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0; }
img { display: block; }

/* ===== 1画面ぶんの枠 ===== */
.slide {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 3.5rem;
  overflow: hidden;
  scroll-snap-align: start;
}

.slide-inner {
  position: relative;
  z-index: 1;   /* 背景の飛行機より手前 */
  width: 100%;
  max-width: 73.75rem;
}

/* 画面の見出し：「01 ―― 自己紹介」 */
.section-no {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--red);
  font-size: 0.95em;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.section-no::after {
  content: "";
  width: 3rem;
  height: 0.0625rem;
  background: var(--red);
}

h2 {
  margin: 0.375rem 0 2.5rem;
  color: var(--navy);
  font-size: 2.8em;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

/* 写真がまだないときの枠 */
.card-photo {
  position: relative;
  overflow: hidden;
  background: #e9e7e0;
}

.card-photo::before {
  content: "写真";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85em;
}

.card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 写真の見せる位置（class を付けた写真だけ）
   show-top：上の方を見せる ／ show-bottom：下の方を見せる */
.card-photo img.show-top { object-position: center top; }
.card-photo img.show-bottom { object-position: center bottom; }

/* 文のかたまりの途中で改行しない */
.phrase { display: inline-block; }


/* ===== 1. タイトル ===== */
.title-slide {
  padding: 0;
  align-items: flex-end;
  background: var(--navy);
}

.title-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 22, 70, 0.88) 0%, rgba(18, 22, 70, 0.35) 45%, rgba(18, 22, 70, 0) 75%);
}

.title-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 73.75rem;
  padding: 0 3.5rem 11vh;
  color: var(--white);
}

/* 一番上の小さい文字（前に2色の星） */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.95em;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
}

.eyebrow::before {
  content: "";
  width: 2.0em;
  height: 2.0em;
  background: var(--star-fill);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
}

.title-text h1 {
  margin: 0.625rem 0 0.875rem;
  font-size: 5.2em;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.12em;
}

.sub {
  padding-top: 0.875rem;
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.4);
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
}


/* ===== 2. 自己紹介 ===== */
#s2 { background: var(--paper); }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.profile-item .card-photo {
  height: clamp(10rem, 28vh, 17.5rem);
  margin-bottom: 1.125rem;
}

.label {
  color: var(--muted);
  font-size: 0.85em;
  letter-spacing: 0.12em;
}

.value {
  margin: 0.125rem 0 0.375rem;
  color: var(--navy);
  font-size: 1.75em;
  font-weight: 900;
  line-height: 1.35;
}

.note {
  color: var(--muted);
  font-size: 0.95em;
}

/* 自分を一言で表すと… */
.message {
  margin-top: 3rem;
  padding-top: 1.375rem;
  border-top: 0.0625rem solid var(--line);
  color: var(--navy);
  font-family: var(--mincho);
  font-size: 1.6em;
  font-weight: 700;
}


/* 題名の横の小さい文字（「大学・専攻」など） */
.h2-sub {
  margin-left: 1.125rem;
  color: var(--muted);
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.1em;
  vertical-align: middle;
}

/* ----- 自己紹介 ①：大学・専攻 ----- */
.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);  /* 左7：右3 */
  gap: 3rem;
  align-items: stretch;   /* 右の写真を左の内容と同じ高さにする */
}

/* キャンパスの写真（右側）：切らずに写真全体を表示する */
.intro-photo {
  align-self: center;
  background: transparent;
}

.intro-photo img {
  position: static;
  width: 100%;
  height: auto;
  max-height: 68vh;      /* 画面からはみ出さないように */
  object-fit: contain;   /* 縦横の比率を変えずに全体を見せる */
}

/* 写真がまだないときは、枠の大きさを確保する */
.intro-photo:not(:has(img)) {
  min-height: 22.5rem;
  background: #e9e7e0;
}

/* 名前と所属 */
.intro-head {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.0625rem solid var(--line);
}

.intro-name {
  color: var(--navy);
  font-size: 2.6em;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.12em;
}

.intro-affiliation {
  margin-top: 0.375rem;
  font-size: 1.2em;
  font-weight: 700;
}

.intro-grade {
  color: var(--muted);
}

/* 専攻と研究：左に画像、右に説明 */
.major {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.major-photo {
  height: clamp(10rem, 30vh, 18.75rem);
}

.major-label {
  margin-top: 1.125rem;
}

.major-theme {
  margin-top: 0.25rem;
  color: var(--navy);
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.6;
}

/* ----- 自己紹介 ②：出身・活動・趣味 ----- */
#s2b { background: var(--white); }
#s2b .profile-item .card-photo { height: clamp(9.375rem, 32vh, 20rem); }
#s2b .value { font-size: 1.5em; }


/* ===== 3. 実績 ===== */
#s3 { background: var(--paper); }      /* 実績①：成績・活動・資格 */
#s3b { background: var(--white); }     /* 実績②：海外派遣 */

/* いちばん目立たせる実績（ラトビア派遣） */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 写真と文字を半分ずつ */
  min-height: 58vh;
  background: var(--navy);
  color: var(--white);
}

.feature-photo {
  position: relative;
  min-height: 12.5rem;
}

.feature-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.25rem;
}

.feature-tag {
  color: var(--yellow);
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 教授推薦の一文（数字の行のすぐ上） */
.feature-reco {
  margin-top: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--yellow);
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.feature-reco::before {
  content: "";
  width: 1.75rem;
  height: 0.0625rem;
  background: var(--yellow);
}

.feature-num {
  margin: 0.75rem 0 0.375rem;
  font-size: 2em;
  font-weight: 900;
  line-height: 1.3;
}

.feature-num span {
  font-size: 2em;
  color: var(--yellow);
  margin: 0 0.25rem;
  line-height: 1;
}

.feature-title {
  margin-bottom: 1.125rem;
  font-size: 1.2em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.feature-note {
  padding-top: 1.125rem;
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05em;
  line-height: 1.85;
}

/* 3つの実績 */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.stat .card-photo {
  height: clamp(13.75rem, 46vh, 30rem);   /* 写真を大きく（画面の高さの46%） */
  margin-bottom: 1.125rem;
}

/* 実績の写真は、3枚とも同じ形（横4：縦3）にそろえる
   はみ出す部分は切り取る。見せる位置は index.html の class="show-top" などで変えられる */
.stat .card-photo {
  height: auto;
  aspect-ratio: 4 / 3;
}

.stat .card-photo img {
  object-fit: cover;
}

/* 写真の右上にメダルのような2色の星 */
.stat {
  position: relative;
}

.stat::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--star-fill);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
  filter: drop-shadow(0 0.125rem 0.25rem rgba(0, 0, 0, 0.35));
  transform: rotate(-12deg);
}

.stat-num {
  color: var(--navy);
  font-size: 1.15em;
  font-weight: 900;
  line-height: 1.2;
}

.stat-num span {
  font-size: 2.6em;
  margin: 0 0.1875rem;
  letter-spacing: -0.02em;
}

.stat-label {
  margin: 0.375rem 0 0.25rem;
  font-weight: 700;
  line-height: 1.5;
}

.stat-note {
  color: var(--muted);
  font-size: 0.88em;
  line-height: 1.65;
}


/* ===== 4. スカイマークへの想い ===== */
#s4 { background: var(--paper); }

.big-message {
  max-width: 30em;
  margin-bottom: 3rem;
  color: var(--navy);
  font-family: var(--mincho);
  font-size: 2.2em;
  font-weight: 700;
  line-height: 1.55;
}

/* 3つの柱：縦の線で区切る */
.thought-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.0625rem solid var(--line);
}

.thought {
  padding: 1.625rem 1.75rem 0.5rem;
  border-left: 0.0625rem solid var(--line);
}

.thought:first-child {
  padding-left: 0;
  border-left: none;
}

.thought-no {
  color: var(--red);
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.thought-title {
  margin: 0.5rem 0 0.875rem;
  color: var(--navy);
  font-size: 1.3em;
  font-weight: 900;
  line-height: 1.5;
}

.thought-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.thought-points li {
  position: relative;
  padding-left: 1.25rem;
  margin-top: 0.375rem;
}

.thought-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 0.625rem;
  height: 0.0625rem;
  background: var(--ink);
}


/* ===== 5. 締め ===== */
.closing-slide {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.closing-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 1.875rem;
}

/* 翼の先の赤いハート（ゆっくり、控えめにドキドキ） */
.closing-heart {
  width: 2.5rem;
  height: 2.3125rem;
  background: var(--red);
  -webkit-mask: var(--heart) center / contain no-repeat;
  mask: var(--heart) center / contain no-repeat;
  animation: heartbeat 2.4s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  10% { transform: scale(1.1); }
  20% { transform: scale(1); }
  30% { transform: scale(1.06); }
}

/* ハートの両側でキラキラする2色の星 */
.closing-mark {
  align-items: center;
  gap: 1.125rem;
}

.closing-star {
  width: 1.875rem;
  height: 1.875rem;
  background: var(--star-fill);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
  animation: twinkle 2.4s ease-in-out infinite;
}

.closing-star:last-child {
  animation-delay: 1.2s;
}

@keyframes twinkle {
  0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.1) rotate(20deg); opacity: 1; }
}

.closing-message {
  margin-bottom: 2.75rem;
  font-family: var(--mincho);
  font-size: 2.2em;
  font-weight: 700;
  line-height: 1.7;
}

.thanks {
  display: inline-block;
  padding-top: 1.125rem;
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.35);
  color: var(--yellow);
  font-size: 1.15em;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.closing-name {
  margin-top: 0.625rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3em;
}


/* ===== 右端のページ表示（ハート。今の画面は赤く塗る） ===== */
.dots {
  position: fixed;
  right: 1.375rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dots button {
  width: 1rem;
  height: 0.9375rem;
  padding: 0;
  border: none;
  background: rgba(231, 38, 68, 0.3);
  -webkit-mask: var(--heart) center / contain no-repeat;
  mask: var(--heart) center / contain no-repeat;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.dots button.active {
  background: var(--red);
  transform: scale(1.35);
}


/* ===== 経過時間（T キーで表示） ===== */
.timer {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 10;
  padding: 0.25rem 0.75rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.timer[hidden] { display: none; }
.timer.over { background: var(--red); }  /* 3分を過ぎたら赤 */


/* ===== 背景の飛行機と雲（script.js で各画面に入れる） ===== */
.sky-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --trail-color: rgba(29, 35, 120, 0.18);
  --cloud-color: rgba(29, 35, 120, 0.04);
}

.closing-slide .sky-deco {
  --trail-color: rgba(255, 255, 255, 0.16);
  --cloud-color: rgba(255, 255, 255, 0.05);
}

/* 飛行機と飛行機雲のセット：左下から右上へ横切る */
.flight {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  animation: fly 32s linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes fly {
  from { transform: translate(-60vw, 78vh) rotate(-7deg); }
  to   { transform: translate(110vw, 8vh) rotate(-7deg); }
}

.plane {
  width: clamp(9.375rem, 15vw, 16.25rem);
  height: auto;
  flex-shrink: 0;
  opacity: 0.35;   /* 背景として目立ちすぎないように */
  animation: bob 4s ease-in-out infinite;
}

.closing-slide .plane { opacity: 0.4; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.375rem); }
}

.trail {
  width: 45vw;
  height: 0.125rem;
  margin-right: -0.375rem;
  background: linear-gradient(to right, transparent, var(--trail-color));
}

/* 雲：飛行機と逆向きにゆっくり流れる */
.cloud {
  position: absolute;
  height: 2.875rem;
  border-radius: 2.875rem;
  background: var(--cloud-color);
  animation: drift 70s linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before { width: 4.375rem; height: 4.375rem; left: 1.75rem; top: -2.25rem; }
.cloud::after  { width: 3.125rem; height: 3.125rem; left: 5.375rem; top: -1.5rem; }

.cloud.c1 { width: 12.5rem; top: 14%; left: 70%; }
.cloud.c2 { width: 10rem; top: 62%; left: 20%; animation-duration: 90s; animation-delay: -30s; }
.cloud.c3 { width: 15rem; top: 84%; left: 85%; animation-duration: 110s; animation-delay: -60s; }

@keyframes drift {
  from { transform: translateX(30vw); }
  to   { transform: translateX(-120vw); }
}


/* ===== 画面の高さが低いとき（ノートパソコンなど） ===== */
@media (max-height: 860px) {
  .slide { padding-top: 3rem; padding-bottom: 3rem; }
  h2 { font-size: 2.3em; margin-bottom: 1.75rem; }
  .stat .card-photo { height: auto; }
  .feature { min-height: 54vh; }
  .feature-text { padding: 2rem 2.5rem; }
  .intro-head { margin-bottom: 1.125rem; padding-bottom: 1rem; }
  .intro-photo img { max-height: 62vh; }
  .intro-name { font-size: 2.1em; }
  .major-photo { height: 26vh; }
  #s2b .profile-item .card-photo { height: 27vh; }
  .message { margin-top: 1.875rem; padding-top: 1rem; }
}


/* ===== 画面が狭いとき（スマホなど） ===== */
@media (max-width: 900px) {
  html { scroll-snap-type: none; }
  .slide { padding: 3.5rem 1.25rem; }
  .title-text { padding: 0 1.25rem 9vh; }
  .title-text h1 { font-size: 3.2em; }
  h2 { font-size: 2em; }
  .profile-grid,
  .stats,
  .thought-grid { grid-template-columns: 1fr; gap: 2rem; }
  .feature { grid-template-columns: 1fr; min-height: 0; }
  .feature-photo { min-height: 13.75rem; }
  .feature-text { padding: 1.75rem 1.5rem; }
  .intro-layout,
  .major { grid-template-columns: 1fr; }
  .intro-photo img { max-height: none; }
  .h2-sub { display: block; margin: 0.25rem 0 0; }
  .thought,
  .thought:first-child { padding: 1.25rem 0 0; border-left: none; }
  .thought + .thought { border-top: 0.0625rem solid var(--line); }
  .big-message,
  .closing-message { font-size: 1.5em; }
  .thanks { font-size: 1em; letter-spacing: 0.1em; }
  .dots { display: none; }
}


/* ===== 「動きを減らす」設定の人には止めて表示 ===== */
@media (prefers-reduced-motion: reduce) {
  .flight { animation: none; transform: translate(60vw, 20vh) rotate(-7deg); }
  .plane,
  .cloud,
  .closing-heart,
  .closing-star { animation: none; }
}


/* =========================================================
   写真のデザイン
   角を少しだけ丸め、右下にうすい青紫の板をずらして重ねる。
   写真は見やすさを優先して、横長の枠で大きく見せる。
   ========================================================= */
:root {
  --photo-radius: 0.375rem;          /* 写真の角の丸さ */
  --photo-back: #e1e3f2;        /* 後ろにずらして重ねる板の色 */
  --photo-offset: 0.75rem;         /* 板をずらす量 */
  --photo-style:
    var(--photo-offset) var(--photo-offset) 0 var(--photo-back),
    0 0.375rem 1.125rem rgba(0, 0, 0, 0.12);
}

.major-photo,
#s2b .profile-item .card-photo,
.stat .card-photo,
.intro-photo img {
  border-radius: var(--photo-radius);
  box-shadow: var(--photo-style);
}

/* 自己紹介②・実績①：3枚とも横4：縦3でそろえる */
#s2b .profile-item .card-photo {
  height: auto;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.875rem;
}

.stat .card-photo {
  margin-bottom: 1.875rem;
}

/* 自己紹介①：専攻の画像は元の形（横16：縦9）のまま全体を見せる */
.major-photo {
  height: auto;
  aspect-ratio: 16 / 9;
}

/* キャンパスの写真：板の分だけ右下をあける */
.intro-photo {
  padding: 0 var(--photo-offset) var(--photo-offset) 0;
}

/* 画面の高さが低いとき */
@media (max-height: 860px) {
  #s2b .profile-item .card-photo { height: auto; }
  .major-photo { height: auto; }
}

/* 実績②：ラトビアの写真も同じデザインにする
   紺色のカードの左側に余白をとって写真を置き、角を丸めて右下に板を重ねる */
.feature-photo {
  padding: 0;
}

.feature-photo img {
  top: 2.5rem;
  left: 2.5rem;
  width: calc(100% - 4.25rem - var(--photo-offset));   /* 左40px・右28px＋板の分をあける */
  height: calc(100% - 5rem - var(--photo-offset));  /* 上下40pxずつ＋板の分をあける */
  border-radius: var(--photo-radius);
  box-shadow:
    var(--photo-offset) var(--photo-offset) 0 #454ba6,   /* 紺より少し明るい青紫の板 */
    0 0.5rem 1.375rem rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
  .feature-photo { min-height: 16.25rem; }
  .feature-photo img { top: 1.5rem; left: 1.5rem; width: calc(100% - 3rem - var(--photo-offset)); height: calc(100% - 3rem - var(--photo-offset)); }
}


/* ===== 写真の下の場所の名前 ===== */
.photo-caption {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.875rem;
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.photo-caption::before {
  content: "";
  width: 1.375rem;
  height: 0.0625rem;
  background: currentColor;
}

/* キャンパス：写真と名前のセットを右側の列の真ん中に置く */
.campus-figure {
  align-self: center;
  margin: 0;
}

/* ラトビア：写真の下のあきを広げて、そこに名前を置く */
.feature-photo img {
  top: 2.25rem;
  height: calc(100% - 6rem - var(--photo-offset));
}

.riga-caption {
  position: absolute;
  left: 2.5rem;
  bottom: 1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
  .feature-photo img { height: calc(100% - 5.25rem - var(--photo-offset)); }
  .riga-caption { left: 1.5rem; bottom: 0.75rem; }
}


/* 想い：カードを2枚にしたので、左右半分ずつに並べる */
.thought-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .thought-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   スカイマークへの想い：左に紺のパネル、右に魅力と挑戦
   ========================================================= */
.vision-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3.5rem;
  align-items: stretch;
}

/* 左：目指す姿 */
.vision-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.25rem 3rem;
  background: var(--navy);
  color: var(--white);
}

.vision-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--yellow);
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.vision-label::after {
  content: "";
  width: 2.5rem;
  height: 0.0625rem;
  background: var(--yellow);
}

.vision-panel .big-message {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  color: var(--white);
  font-size: 2.1em;
  line-height: 1.75;
}

/* 「データと数理モデル」に黄色いマーカー */
.big-message .key {
  background: linear-gradient(transparent 64%, rgba(246, 196, 0, 0.55) 64%);
}

/* パネルの右下にうすく大きな星 */
.vision-panel::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -3.125rem;
  width: 16.25rem;
  height: 16.25rem;
  background: var(--star-fill);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
  opacity: 0.14;
  transform: rotate(-12deg);
}

/* 右：魅力と挑戦を縦に並べ、左に大きな白抜きの番号 */
.vision-layout .thought-grid {
  grid-template-columns: 1fr;
  align-content: center;
  border-top: none;
  counter-reset: pillar;
}

.vision-layout .thought,
.vision-layout .thought:first-child {
  counter-increment: pillar;
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  column-gap: 0.5rem;
  padding: 1.875rem 0;
  border-left: none;
  border-top: 0.0625rem solid var(--line);
}

.vision-layout .thought:last-child {
  border-bottom: 0.0625rem solid var(--line);
}

.vision-layout .thought::before {
  content: counter(pillar, decimal-leading-zero);
  grid-row: 1 / span 3;
  color: transparent;
  -webkit-text-stroke: 0.0938rem var(--navy);
  font-size: 2.8em;
  font-weight: 900;
  line-height: 1;
}

.vision-layout .thought > * {
  grid-column: 2;
}

.vision-layout .thought-title {
  font-size: 1.35em;
}

/* 画面が狭いとき */
@media (max-width: 900px) {
  .vision-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .vision-panel { padding: 2rem 1.5rem; }
  .vision-panel .big-message { font-size: 1.5em; }
  .vision-layout .thought,
  .vision-layout .thought:first-child { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .vision-layout .thought::before { font-size: 2em; }
}


/* =========================================================
   横に広い画面（モニター・プロジェクターなど）への対応
   ・内容の横幅を、画面の横幅の80%まで広げて左右の余白を減らす
   ・写真は縦に大きくなりすぎないよう、画面の高さで上限を付ける
   （ノートパソコン 1440×900 では今までと同じ見た目）
   ========================================================= */
.slide-inner {
  max-width: max(73.75rem, 80vw);
}

.title-text {
  max-width: max(73.75rem, 80vw);
}

.stat .card-photo,
#s2b .profile-item .card-photo {
  max-height: 31vh;
}

.major-photo {
  max-height: 26vh;
}

/* ===== 表示の大きさを変えたときのお知らせ（左下に少しだけ出る） ===== */
.scale-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 20;
  transform: translateX(-50%);
  padding: 0.4rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.scale-toast.show {
  opacity: 1;
}

/* 実績の星（メダル）は、写真の大きさが変わっても写真の右上に付くようにする */
.stat::after {
  content: none;
}

.stat .card-photo::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--star-fill);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
  filter: drop-shadow(0 0.125rem 0.25rem rgba(0, 0, 0, 0.35));
  transform: rotate(-12deg);
}


/* =========================================================
   自己紹介②：「自分を一言で」を紺のカードの真ん中に大きく
   ========================================================= */
.message-box {
  position: relative;
  overflow: hidden;
  margin-top: 2.25rem;
  padding: 1.5rem 3rem 1.6rem;
  border-radius: var(--photo-radius);
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

/* 右下に、うすく大きな2色の星（想いのパネルと同じ飾り） */
.message-box::before,
.message-box::after {
  content: "";
  position: absolute;
  background: var(--star-fill);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
  transform: rotate(-12deg);
  pointer-events: none;
}

.message-box::before {
  right: -1.5rem;
  bottom: -3.5rem;
  width: 10rem;
  height: 10rem;
  opacity: 0.16;
}

.message-box::after {
  content: none;   /* 左上の星は使わない */
}

/* 「― 自分を一言で表すと ―」 */
.message-label {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.message-label::before,
.message-label::after {
  content: "";
  width: 1.75rem;
  height: 0.0625rem;
  background: var(--yellow);
}

/* 本文（大きな白い明朝体） */
.message-box .message {
  position: relative;
  z-index: 1;
  margin: 0.25rem 0 0;
  padding: 0;
  border: none;
  color: var(--white);
  font-size: 2.3em;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* 「結果を出す」は星と同じ黄色の文字にする */
.message-box .message .key {
  background: none;
  color: #f8e24c;
}

@media (max-width: 900px) {
  .message-box { padding: 1.25rem 1.25rem 1.4rem; }
  .message-label { letter-spacing: 0.15em; }
  .message-box .message { font-size: 1.5em; }
}


/* =========================================================
   自己紹介①：左に名前と専攻、右にキャンパスの写真
   （キャンパスの写真の左下に、専攻の画像を重ねて置く）
   ========================================================= */
.me {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

/* 「PROFILE」の小さい英字 */
.me-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--blue);
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.me-eyebrow::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  background: var(--star-fill);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
}

/* 名前（大きく） */
.me-name {
  margin-top: 0.25rem;
  color: var(--navy);
  font-size: 3.6em;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.14em;
}

.me-school {
  margin-top: 0.75rem;
  color: var(--ink);
  font-size: 1.3em;
  font-weight: 700;
}

.me-dept {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
  color: var(--ink);
  font-size: 1.05em;
  font-weight: 500;
}

/* 「修士1年」の紺の札 */
.me-grade {
  padding: 0.1rem 0.75rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 専攻・学ぶこと・研究：左に項目名、右に内容 */
.me-table {
  margin: 2.25rem 0 0;
  border-top: 0.125rem solid var(--navy);
}

.me-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 0.0625rem solid var(--line);
}

.me-row dt {
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.me-row dd {
  margin: 0;
  color: var(--ink);
}

.me-major {
  color: var(--navy) !important;
  font-size: 1.7em;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

/* 学ぶこと：丸い札にして並べる */
.chip {
  display: inline-block;
  margin: 0.2rem 0.5rem 0.2rem 0;
  padding: 0.15rem 0.9rem;
  border: 0.0625rem solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.95em;
  font-weight: 700;
}

.chip-etc {
  color: var(--muted);
  font-size: 0.9em;
}

/* 右：写真を重ねる場所 */
.me-photos {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.me-campus {
  margin: 0;
}

.me-campus-photo {
  overflow: hidden;
  height: 60vh;
  aspect-ratio: 1155 / 1536;   /* キャンパスの写真の元の形（縦長） */
  border-radius: var(--photo-radius);
  box-shadow: var(--photo-style);
  background: #e9e7e0;
}

.me-campus-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 専攻の画像：キャンパスの写真の左下に重ねる */
.me-sub-photo {
  position: absolute;
  left: 0;
  bottom: 4.25rem;
  width: 52%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0.375rem solid var(--white);
  border-radius: var(--photo-radius);
  box-shadow: 0 0.75rem 1.75rem rgba(29, 35, 120, 0.28);
}

.me-sub-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 画面の高さが低いとき */
@media (max-height: 860px) {
  .me-name { font-size: 3em; }
  .me-table { margin-top: 1.5rem; }
  .me-row { padding: 0.75rem 0; }
  .me-campus-photo { height: 54vh; }
}

/* 画面が狭いとき（スマホなど） */
@media (max-width: 900px) {
  .me { grid-template-columns: 1fr; gap: 2rem; }
  .me-name { font-size: 2.6em; }
  .me-row { grid-template-columns: 5rem minmax(0, 1fr); }
  .me-photos { justify-content: flex-start; }
  .me-campus-photo { height: auto; width: 70%; }
  .me-campus { width: 100%; }
  .me-sub-photo { width: 55%; left: auto; right: 0; bottom: 3rem; }
}


/* =========================================================
   実績②：ラトビアの紺のカードの右下に、うすく大きな星
   ========================================================= */
.feature {
  position: relative;
  overflow: hidden;
}

.feature::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -3.125rem;
  width: 16.25rem;
  height: 16.25rem;
  background: var(--star-fill);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
  opacity: 0.14;
  transform: rotate(-12deg);
  pointer-events: none;
}

.feature-text {
  position: relative;
  z-index: 1;   /* 文字は星より手前 */
}


/* =========================================================
   締め：派手にしない飾り
   ・画面の下に、夜の滑走路（灯りがゆっくり明るくなったり暗くなったり）
   ・右下に、ほかの画面と同じうすく大きな星
   ========================================================= */
.runway {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  width: min(50rem, 88vw);
  transform: translateX(-50%);
  pointer-events: none;
}

.runway svg {
  display: block;
  width: 100%;
  height: auto;
}

.rw-surface { fill: rgba(255, 255, 255, 0.035); }
.rw-edge    { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.rw-center  { fill: rgba(255, 255, 255, 0.22); }

.rw-lights {
  fill: #f8e24c;
  animation: runway-glow 4s ease-in-out infinite;
}

@keyframes runway-glow {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.75; }
}

.closing-slide::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 18rem;
  height: 18rem;
  background: var(--star-fill);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
  opacity: 0.07;
  transform: rotate(-12deg);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .rw-lights { animation: none; opacity: 0.55; }
}


/* =========================================================
   締め：飛行機が滑走路の奥から手前へ走って離陸し、頭の上を飛び越える
   （正面から見た飛行機。16秒でくり返す。速さは「16s」を2か所とも変える）
   ========================================================= */
.closing-slide {
  --rw-h: calc(min(50rem, 88vw) * 0.22);   /* 滑走路の絵の高さ（＝地平線の位置） */
}

.takeoff {
  position: absolute;
  left: 50%;
  bottom: var(--rw-h);
  z-index: 2;                 /* 最後は文字より手前を飛び越える */
  width: 26rem;
  transform: translateX(-50%) scale(0.061);
  transform-origin: center bottom;   /* 車輪の位置を基準に大きくする */
  opacity: 0;
  pointer-events: none;
  animation: takeoff 16s infinite;
}

.takeoff svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* bottom：車輪の高さ（地平線＝滑走路の絵の高さ、0＝画面の下） ／ scale：近いほど大きく */
@keyframes takeoff {
  0%   { bottom: var(--rw-h); transform: translateX(-50%) scale(0.061); opacity: 0; }
  5%   { bottom: var(--rw-h); transform: translateX(-50%) scale(0.061); opacity: 1; }
  12%  { bottom: var(--rw-h); transform: translateX(-50%) scale(0.061); opacity: 1; animation-timing-function: ease-in; }  /* 奥で灯りだけ見えて、走り出す */
  46%  { bottom: calc(var(--rw-h) * 0.55); transform: translateX(-50%) scale(0.48); opacity: 1; animation-timing-function: linear; }
  54%  { bottom: calc(var(--rw-h) * 0.45); transform: translateX(-50%) scale(0.8); opacity: 1; animation-timing-function: ease-in; }   /* ここで浮き上がる */
  59%  { bottom: calc(var(--rw-h) + 18vh); transform: translateX(-50%) scale(1.7); opacity: 1; animation-timing-function: linear; }
  63%  { bottom: 55vh; transform: translateX(-50%) scale(3.6); opacity: 1; }
  66%  { bottom: 95vh; transform: translateX(-50%) scale(6); opacity: 1; }      /* 頭の上を一気に飛び越える */
  68%  { bottom: 105vh; transform: translateX(-50%) scale(6.5); opacity: 0; }
  100% { bottom: 105vh; transform: translateX(-50%) scale(6.5); opacity: 0; }
}

/* 浮き上がってしばらくしたら車輪をしまう */
.takeoff .gear {
  animation: gear-up 16s infinite;
}

@keyframes gear-up {
  0%, 58%   { opacity: 1; }
  63%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .takeoff { animation: none; opacity: 1; bottom: calc(var(--rw-h) * 0.6); transform: translateX(-50%) scale(0.4); }
  .takeoff .gear { animation: none; }
}


/* =========================================================
   締め：浮き上がるときに機首を上げる（離陸の瞬間の写真のように）
   ・機首（胴体の正面と前脚）が上がる（.p-nose）
   ・胴体の下側が縦に長く見えてくる（.p-belly）
   ・尾翼と水平尾翼が主翼より下へ下がる（.p-tail）
   ・空に上がったあと、ほんの少しだけ左右にゆれる
   ========================================================= */
.takeoff .p-nose { animation: pitch-nose 16s infinite; }
.takeoff .p-tail { animation: pitch-tail 16s infinite; }

.takeoff .p-belly {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: pitch-belly 16s infinite;
}

.takeoff svg {
  transform-origin: 50% 70%;
  animation: climb-sway 16s infinite;
}

/* 46%で機首を上げ始め（前脚が浮く）、55%でいちばん上を向く */
@keyframes pitch-nose {
  0%, 46%   { transform: translateY(0); }
  55%, 100% { transform: translateY(-28px); }
}

@keyframes pitch-belly {
  0%, 46%   { transform: scaleY(0); }
  55%, 100% { transform: scaleY(1); }
}

@keyframes pitch-tail {
  0%, 46%   { transform: translateY(0); }
  55%, 100% { transform: translateY(50px); }
}

@keyframes climb-sway {
  0%, 46%   { transform: perspective(700px) rotateX(0deg) rotate(0deg); }
  55%       { transform: perspective(700px) rotateX(22deg) rotate(0deg); }
  59%       { transform: perspective(700px) rotateX(24deg) rotate(-1.5deg); }
  62%       { transform: perspective(700px) rotateX(24deg) rotate(1deg); }
  66%, 100% { transform: perspective(700px) rotateX(24deg) rotate(-0.4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .takeoff .p-nose,
  .takeoff .p-tail,
  .takeoff .p-belly,
  .takeoff svg { animation: none; }
  .takeoff .p-belly { transform: scaleY(0); }
}


/* =========================================================
   締め：機首が上を向いて見えるようにする
   ・操縦席の窓が上の端へ寄って細くなる（下から見上げた見え方）
   ・機首の下側に影が出る
   ・飛行機全体を奥へ傾ける（上の @keyframes climb-sway の rotateX）
   ========================================================= */
.takeoff .p-win,
.takeoff .p-radome {
  transform-box: fill-box;
  transform-origin: 50% 0%;
}

.takeoff .p-win    { animation: pitch-win 16s infinite; }
.takeoff .p-radome { animation: pitch-radome 16s infinite; }
.takeoff .p-chin   { animation: pitch-chin 16s infinite; }

@keyframes pitch-win {
  0%, 46%   { transform: translateY(0) scaleY(1); }
  55%, 100% { transform: translateY(-8px) scaleY(0.4); }
}

@keyframes pitch-radome {
  0%, 46%   { transform: translateY(0) scaleY(1); }
  55%, 100% { transform: translateY(-9px) scaleY(1.15); }
}

@keyframes pitch-chin {
  0%, 46%   { opacity: 0; }
  55%, 100% { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .takeoff .p-win,
  .takeoff .p-radome,
  .takeoff .p-chin { animation: none; }
  .takeoff .p-chin { opacity: 0; }
}


/* =========================================================
   締め：機首を上げるとき、主翼・エンジン・水平尾翼も傾ける
   ・主翼は後ろへ伸びているので、機首が上がると翼の先が下がって見える（.p-wl）
   ・翼の裏側が見えてくる（.p-under）
   ・エンジンは前を向いたまま、後ろ側（胴体部分）が下に伸びて見える（.p-nacelle）
   ・水平尾翼も同じように先が下がる（.p-stab）
   ・右側は左側を鏡にうつしたものなので、ここに1つ書けば両側に効く
   ========================================================= */
.takeoff .p-wl {
  transform-box: view-box;
  transform-origin: 191px 139px;   /* 翼の付け根 */
  animation: pitch-wing 16s infinite;
}

.takeoff .p-under { animation: pitch-chin 16s infinite; }

.takeoff .p-stab {
  transform-box: view-box;
  transform-origin: 200px 112px;
  animation: pitch-stab 16s infinite;
}

.takeoff .p-nacelle {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: pitch-belly 16s infinite;
}

.takeoff .p-intake { animation: pitch-intake 16s infinite; }

/* 翼の先がどれだけ下がるか（数字を大きくすると、もっと下がる） */
@keyframes pitch-wing {
  0%, 46%   { transform: skewY(0deg); }
  55%, 100% { transform: skewY(-7deg); }
}

@keyframes pitch-stab {
  0%, 46%   { transform: skewY(0deg); }
  55%, 100% { transform: skewY(-6deg); }
}

@keyframes pitch-intake {
  0%, 46%   { transform: translateY(0); }
  55%, 100% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .takeoff .p-wl,
  .takeoff .p-under,
  .takeoff .p-stab,
  .takeoff .p-nacelle,
  .takeoff .p-intake { animation: none; }
  .takeoff .p-under { opacity: 0; }
  .takeoff .p-nacelle { transform: scaleY(0); }
}


/* =========================================================
   実績②（ラトビア）と想いの紺パネルも、写真やカードと同じように角を丸くする
   （丸さは上の --photo-radius で、ほかの画面とそろえて変わる）
   ========================================================= */
.feature,
.vision-panel {
  border-radius: var(--photo-radius);
}


/* =========================================================
   締め：最後の画面に来たときに、飛行機が離陸を始める
   ・画面に来るまでは動かさない（飛行機は見えない）
   ・来たら最初から1回だけ離陸する（script.js が .takeoff-go を付ける）
   ・ほかの画面へ行って戻ってくると、もう一度最初から離陸する
   ・何度もくり返したいときは、下の 1 を infinite にする
   ========================================================= */
.closing-slide:not(.takeoff-go) .takeoff,
.closing-slide:not(.takeoff-go) .takeoff * {
  animation: none;
}

.closing-slide.takeoff-go .takeoff,
.closing-slide.takeoff-go .takeoff * {
  animation-iteration-count: 1;
}
