/* ベースリセットと変数定義 */
:root {
  --bg-black: #000000;
  --bg-white: #feffff;
  --text-light: #ffffff;
  --text-sub-light: #f0f0f0;
  --text-dark: #000000;
  --text-sub-dark: #222222;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
}

body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  background-color: var(--bg-black);
  color: var(--text-light);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ポスター全体の基準コンテナ（Canva原本 1587x2245 の比率を保つ） */
.poster {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  background-color: var(--bg-black);
  overflow: hidden;
}

/* ================================
   上部：黒背景・タイトル・スマホ
   ================================ */
.top-stage {
  position: relative;
  z-index: 3;
  padding: clamp(24px, 4.2vw, 38px) clamp(16px, 3.8vw, 32px) 0;
  text-align: center;
}

.top-inner {
  width: 100%;
}

.title-block {
  position: relative;
  display: inline-block;
  margin-bottom: clamp(12px, 2.2vw, 20px);
}

.eyebrow {
  margin: 0 0 2px;
  font-size: clamp(0.75rem, 1.65vw, 0.96rem);
  font-weight: 400;
  letter-spacing: 0.326em;
  color: #ffffff;
  text-align: left;
  transform: translateX(-22%);
}

.brand-title {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  margin: 0;
  line-height: 0.96;
}

.brand-en {
  font-family: "Lobster", cursive;
  font-size: clamp(4.6rem, 17.5vw, 9.6rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  color: #feffff;
}

.brand-kana {
  position: absolute;
  top: clamp(6px, 1.4vw, 14px);
  right: 2px;
  font-size: clamp(0.9rem, 2.5vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.326em;
  color: #ffffff;
}

.catchcopy {
  margin: 0 auto clamp(14px, 2.8vw, 26px);
  font-size: clamp(0.98rem, 2.7vw, 1.56rem);
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--text-light);
}

.subcopy {
  margin: 0 auto clamp(20px, 4vw, 34px);
  font-size: clamp(0.78rem, 1.65vw, 0.95rem);
  color: var(--text-sub-light);
  line-height: 1.62;
}

/* スマホ端末と音符（Canva原本の位置関係に合わせる） */
.phone-wrap {
  position: relative;
  width: min(700px, 82%);
  margin-inline: auto;
  z-index: 4;
  perspective: 850px;
  perspective-origin: 50% 72%;
}

/* CSSで描画するスマホ筐体（歪みのない滑らかな角丸フレーム） */
.phone-frame {
  position: relative;
  padding: clamp(8px, 1.45vw, 14px);
  border-radius: clamp(24px, 4.8vw, 42px);
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 16%, #f1f3f5 84%, #d6d9df 100%);
  transform-origin: center bottom;
  transform: rotateX(-14deg);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -3px 5px rgba(0, 0, 0, 0.14),
    0 4px 10px rgba(0, 0, 0, 0.38),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

/* 筐体上部のサイドボタン装飾 */
.phone-frame::before,
.phone-frame::after {
  content: "";
  position: absolute;
  top: -2px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background-color: #e5e7eb;
}

.phone-frame::before {
  right: 24%;
  width: clamp(22px, 4vw, 36px);
}

.phone-frame::after {
  right: 16%;
  width: clamp(22px, 4vw, 36px);
}

.phone-screen {
  border-radius: clamp(17px, 3.4vw, 29px);
  overflow: hidden;
  background-color: #000000;
}

.phone-screen-image {
  width: 100%;
  display: block;
}

/* 音符（原本PNG） */
.note-icon {
  position: absolute;
  pointer-events: none;
  z-index: 5;
}

/* 左上：8分音符（Canva座標: left 6.1%, スマホ上端の少し上） */
.note-left {
  width: clamp(20px, 3.3vw, 28px);
  top: clamp(-52px, -6.5vw, -30px);
  left: 0.5%;
}

/* 右下：連桁8分音符（スマホの右下角の外側に離して配置） */
.note-right {
  width: clamp(24px, 4.4vw, 40px);
  right: calc(-1 * clamp(28px, 5vw, 46px));
  bottom: clamp(-4px, -0.4vw, 2px);
}

/* ================================
   下部：白い台形・落ち影・手・左右要素
   ================================ */
.bottom-stage {
  position: relative;
  z-index: 2;
  /* スマホ底面の角丸に隙間なく潜り込ませる */
  margin-top: clamp(-24px, -2.8vw, -12px);
  padding-top: clamp(24px, 2.8vw, 12px);
  background-color: var(--bg-black);
  color: var(--text-dark);
}

/* Canva原本の白い台形（#eeeeee → #feffff の縦グラデーション） */
.trapezoid-surface {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #eeeeee 0%, #feffff 100%);
  clip-path: polygon(11.5% 0%, 88.5% 0%, 100% 28%, 100% 100%, 0% 100%, 0% 28%);
  pointer-events: none;
}

/* スマホ直下に落ちる影（Canva高解像度PNGの輝度実測値ベース） */
.phone-cast-shadow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(68px, 11vw, 108px);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.24) 0%,
    rgba(0, 0, 0, 0.30) 18%,
    rgba(0, 0, 0, 0.16) 48%,
    rgba(0, 0, 0, 0.04) 78%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* 下部3カラムの一体構図（左：アプリ、中央：手、右：チーム） */
.bottom-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.95fr 1.55fr 1.12fr;
  align-items: end;
  gap: clamp(8px, 1.8vw, 18px);
  padding: clamp(26px, 4.8vw, 48px) clamp(16px, 3.2vw, 30px) 0;
}

/* 左カラム：アプリ起動ボタン＋QRコード */
.app-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: clamp(18px, 3vw, 28px);
}

.app-heading {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}

.down-triangle {
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 15px solid var(--text-dark);
  margin-bottom: 12px;
}

/* アプリ起動ボタン（ボーダーレス・ソリッドブラック） */
.launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  margin-bottom: 12px;
  border-radius: 999px;
  background-color: #111111;
  color: #ffffff;
  font-size: clamp(0.8rem, 1.45vw, 0.92rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.launch-button:hover {
  background-color: #262626;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.launch-button:active {
  transform: scale(0.97);
}

.launch-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.qr-wrap {
  width: clamp(96px, 17vw, 146px);
}

.qr-image {
  width: 100%;
  height: auto;
  display: block;
}

/* 中央カラム：手のイラスト（最下端まで突き抜ける） */
.hand-column {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: end;
}

.hand-image {
  width: min(350px, 100%);
  display: block;
}

/* 右カラム：■開発チーム（白地直置き＆写真右上配置） */
.team-column {
  padding-bottom: clamp(20px, 3.6vw, 34px);
}

.team-heading {
  margin: 0 0 10px;
  font-size: clamp(0.75rem, 1.45vw, 0.9rem);
  font-weight: 700;
  color: var(--text-dark);
}

.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.6vw, 22px);
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.member-head {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: clamp(12px, 2.2vw, 20px);
}

.member-name {
  margin: 0;
  font-size: clamp(0.95rem, 1.95vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

.member-photo {
  width: clamp(60px, 10.2vw, 84px);
  height: clamp(60px, 10.2vw, 84px);
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.member-detail {
  margin: 0;
  font-size: clamp(0.66rem, 1.25vw, 0.78rem);
  line-height: 1.42;
  color: var(--text-sub-dark);
}

/* トースト通知 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 50;
  background-color: #111111;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

/* ================================
   レスポンシブ調整（スマートフォン幅）
   ================================ */
@media (max-width: 640px) {
  .note-left {
    top: -34px;
    left: 0;
  }

  .trapezoid-surface {
    clip-path: polygon(8% 0%, 92% 0%, 100% 18%, 100% 100%, 0% 100%, 0% 18%);
  }

  .bottom-content {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hand hand"
      "app team";
    align-items: start;
    gap: 24px 16px;
    padding: 24px 20px 36px;
  }

  .hand-column {
    grid-area: hand;
  }

  .hand-image {
    width: min(240px, 68%);
  }

  .app-column {
    grid-area: app;
    padding-bottom: 0;
  }

  .team-column {
    grid-area: team;
    padding-bottom: 0;
  }

  .toast {
    width: calc(100% - 32px);
    text-align: center;
    white-space: normal;
  }
}

/* 極小幅スマートフォンではアプリとチームを縦並び */
@media (max-width: 440px) {
  .bottom-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hand"
      "app"
      "team";
    gap: 28px;
  }

  .team-column {
    width: fit-content;
    margin-inline: auto;
  }
}
