/* ============================================================
   04_IEO — /ieo_p2b/  page-specific styles
   ============================================================ */

/* hero styles: assets/css/style.css の .wp-hero(共通)を使用 */

/* ---------- overview ----------
   Figma 02_ieo / ieo-overview:
   左カラム = ラベル+見出し+バッジ+本文(764px幅)、右カラム = ネットワーク図(698x454) */
.ieo-overview { position: relative; padding-bottom: 0; }
.ov-grid {
  display: grid;
  grid-template-columns: minmax(0, 764px) minmax(0, 698px);
  justify-content: space-between;
  gap: 58px;
  align-items: center;
}
.ov-visual { justify-self: end; width: 100%; max-width: 698px; }
.ov-visual img { display: block; width: 100%; height: auto; }
.ov-head { position: relative; }
.ov-title {
  font-size: 52px; font-weight: 900; line-height: 1.25;
  color: var(--c-text); margin-top: 10px;
}
.ov-badge {
  display: inline-flex; align-items: center;
  margin-top: 22px; padding: 7px 16px;
  border-radius: 5px;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--ff-en);
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  /* Figma: 208 x 30(テキスト16px + 上下パディング7px) */
  line-height: 16px;
}
.ov-body { max-width: 764px; margin-top: 40px; display: grid; gap: 24px; }
.ov-body p { font-size: 14px; line-height: 1.75; color: var(--c-text-2); }
.ov-rule { max-width: 764px; margin: 40px 0 0; border: 0; border-top: 1px solid #ddd; }
.ov-note { max-width: 764px; margin-top: 24px; font-size: 11px; line-height: 1.9; color: #686868; }

/* ---------- Toobit 上場(全幅グレー帯) ----------
   Figma 02_ieo / Group 202: 1920 x 699 の全幅帯。
   端末画像は帯の下辺で切れ、右カラムは帯上端から 166px の位置から始まる */
.toobit-band {
  margin-top: 72px;
  background: var(--c-bg-soft);
  overflow: hidden;          /* 端末画像の下端を帯でトリミング */
}
.toobit-band__inner {
  /* コンテンツ幅 1400px を上限に中央寄せ */
  max-width: calc(1400px + var(--pad-x) * 2);
  margin-inline: auto;
  padding: 90px var(--pad-x) 0;
  display: grid;
  grid-template-columns: 582px minmax(0, 1fr);
  gap: 129px;
  align-items: start;
}
/* 端末画像: 582 x 609 の枠でトリミング(元画像は 705 x 745) */
.toobit-band__phone {
  width: 582px; max-width: 100%;
  aspect-ratio: 582 / 609;
  overflow: hidden;
}
.toobit-band__phone img { display: block; width: 100%; height: auto; }
/* 右カラム: 帯上端 + 166px = padding-top 90 + 76 */
.toobit-band__info { padding-top: 76px; }
.toobit-logo { display: flex; align-items: center; }
.toobit-logo img { display: block; width: auto; height: 87px; }
.toobit-desc {
  margin-top: 47px;
  max-width: 490px;
  font-size: 13px; line-height: 20px; color: var(--c-text-2);
}
.toobit-dl {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28.7px;
  color: #2a64fb; font-size: 13px; font-weight: 700; line-height: 20px;
}
.toobit-dl .chev { width: 12px; height: 7px; }
/* ストアバッジ(App Store + Google Play の1枚画像 / 表示サイズ 570 x 95) */
.store-badges { margin-top: 10px; width: 570px; max-width: 100%; }
.store-badges img { display: block; width: 100%; height: auto; }
.toobit-trade {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 60px;
  color: var(--c-primary); font-size: 13px; font-weight: 700; line-height: 20px;
}
.toobit-trade .arw { font-family: var(--ff-en); letter-spacing: -.08em; }

/* ---------- schedule ---------- */
.sched-lead { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--c-text-2); }
.sched-lead a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.sched-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: stretch;
}
.sched-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: var(--r-md);
  padding: 38px 48px 34px;
}
.sched-card h3 { font-size: 24px; font-weight: 700; color: var(--c-text); }

.timeline { display: flex; margin-top: 40px; position: relative; }
.timeline::before {
  content: "";
  /* 両端を1・3番目の丸の中心（= 全幅の1/6）で止め、丸からはみ出さないようにする */
  position: absolute; top: 23px; left: calc(100% / 6); right: calc(100% / 6);
  height: 2px; background: var(--c-primary-deep);
}
.tl-step { flex: 1; position: relative; text-align: center; padding: 0 4px; }
.tl-step .tl-ic {
  position: relative; z-index: 1;
  width: 48px; height: 48px; margin: 0 auto;
  border-radius: 50%;
  background: var(--c-primary-deep);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.tl-step .tl-name {
  margin-top: 16px;
  font-family: var(--ff-en);
  font-size: 17px; font-weight: 700; color: #1b2547;
}
.tl-step .tl-date {
  margin-top: 10px;
  font-family: var(--ff-en);
  font-size: 10.5px; line-height: 1.8; color: #1b2547;
  white-space: nowrap;
}
.sched-note { margin-top: 30px; font-size: 11px; line-height: 1.7; color: var(--c-text); }

.token-flex { margin-top: 34px; display: flex; gap: 40px; align-items: flex-start; }
.chain-logo { flex-shrink: 0; }
.chain-logo img { display: block; width: 132px; height: auto; }
.token-spec { font-size: 13px; line-height: 1.85; color: var(--c-text); }
.token-spec .sub { display: block; }

/* ---------- solutions ---------- */
/* #solutions へのアンカー遷移時に固定ヘッダーへ隠れないようオフセット */
.solutions { position: relative; overflow: hidden; scroll-margin-top: var(--header-h); }
.wallet-grid {
  position: relative;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 56px;
  align-items: center;
}
.wallet-copy { position: relative; z-index: 2; padding: 48px 0; }
.wallet-rule { display: block; width: 84px; height: 4px; background: var(--c-primary); }
.wallet-title {
  margin-top: 36px;
  font-family: var(--ff-en);
  font-size: 52px; font-weight: 800; letter-spacing: .01em;
  color: var(--c-primary);
}
.wallet-copy > p { margin-top: 28px; font-size: 14.5px; line-height: 2.15; color: var(--c-text-2); letter-spacing: .04em; }
.wallet-btn {
  display: inline-flex; align-items: center; gap: 26px;
  margin-top: 44px;
  height: 58px; padding: 0 34px;
  border-radius: 29px;
  background: var(--c-primary); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: .06em;
  transition: transform .15s, opacity .2s;
}
/* hover の減光は発光エフェクト(style.css)を鈍らせるため行わない */
.wallet-btn:hover { transform: translateY(-1px); }
.wallet-btn .arw { font-family: var(--ff-en); }
/* gap:26px はアイコン〜テキスト間には広すぎるため詰める */
.wallet-btn .ic-wallet { width: 19px; height: 19px; margin-right: -14px; }

/* wallet visual (オレンジ背景 + アプリ画面画像) */
.wallet-phones {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0;
}
.wallet-phones::before {
  content: "";
  position: absolute; left: 50%; top: 54%;
  transform: translate(-50%,-50%);
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffb38a 0%, #f07033 45%, rgba(240,112,51,.15) 72%, transparent 76%);
  opacity: .55;
}
.wallet-phones::after {
  content: "";
  position: absolute; right: 0; top: 0;
  width: 180px; height: 260px;
  background-image: radial-gradient(circle, rgba(235,65,8,.4) 1.4px, transparent 2px);
  background-size: 14px 14px;
}
.wallet-phones__img {
  position: relative; z-index: 2;
  display: block;
  width: 100%; max-width: 560px; height: auto;
}

/* feature cards */
.feature-grid {
  margin-top: 88px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 23px;
  position: relative; z-index: 2;
}
.feature-card {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
  padding: 34px 24px 36px;
  text-align: center;
}
.feature-card .f-ic { height: 92px; display: flex; align-items: center; justify-content: center; }
.feature-card h3 { margin-top: 18px; font-size: 20px; font-weight: 700; color: var(--c-text); }
.feature-card p { margin-top: 14px; font-size: 13px; line-height: 1.85; color: var(--c-text); text-align: center; }

/* ---------- ambassador ---------- */
.ambassador { background: var(--c-bg-soft); }
.amb-grid {
  display: grid;
  grid-template-columns: 528px 1fr;
  gap: 60px;
  align-items: start;
}
.amb-title {
  font-family: var(--ff-en);
  font-size: 38px; font-weight: 800; letter-spacing: .04em;
  color: var(--c-primary);
}
.amb-bar { display: block; width: 90px; height: 3px; background: var(--c-primary); margin-top: 12px; }
.amb-sub { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--c-primary); }
.amb-card {
  margin-top: 34px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 36px 34px 28px;
  box-shadow: var(--shadow-card);
}
.amb-name { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.amb-name .yt { font-family: var(--ff-en); font-size: 24px; font-weight: 700; color: var(--c-text-2); }
.amb-name strong { font-size: 38px; font-weight: 700; color: var(--c-text-2); line-height: 1.2; }
.amb-desc { margin-top: 14px; font-size: 13px; color: var(--c-text-2); }
.amb-links { margin-top: 18px; }
.amb-links li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #ececec;
  font-size: 13px; font-weight: 700; color: var(--c-text-2);
  flex-wrap: wrap;
}
.amb-links .lbl { display: inline-flex; align-items: center; gap: 10px; min-width: 158px; }
.amb-links .yt-ic {
  width: 26px; height: 18px; border-radius: 5px;
  background: #e62117;
  display: inline-flex; align-items: center; justify-content: center;
}
.amb-links .yt-ic::before {
  content: ""; display: block;
  border-style: solid; border-width: 4.5px 0 4.5px 8px;
  border-color: transparent transparent transparent #fff;
}
.amb-links .x-ic2 {
  width: 20px; height: 20px; border-radius: 4px;
  background: #0d0d0e; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-en); font-size: 12px; font-weight: 800;
}
.amb-links .url { font-family: var(--ff-en); font-size: 12.5px; font-weight: 500; color: #6a6ae0; word-break: break-all; border-left: 1px solid #e5e5e5; padding-left: 16px; }
.amb-links .url:hover { text-decoration: underline; opacity: 1; }

/* ambassador banner */
.amb-banner {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  line-height: 0;
}
.amb-banner img { display: block; width: 100%; height: auto; }

/* ---------- partner ---------- */
.partner { padding-bottom: 120px; }
.ptn-label {
  text-align: center;
  font-family: var(--ff-en);
  font-size: 19px; font-weight: 700; letter-spacing: .3em;
  color: var(--c-primary);
}
.ptn-title {
  margin-top: 14px;
  text-align: center;
  font-size: 52px; font-weight: 900; letter-spacing: .06em;
  color: var(--c-navy);
}
.ptn-bar { display: block; width: 104px; height: 3px; background: var(--c-primary); margin: 26px auto 0; }
.ptn-lead { margin-top: 28px; text-align: center; font-size: 14px; line-height: 2; color: var(--c-text-2); }
.ptn-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.ptn-card {
  background: #f7f8f9;
  border-radius: 12px;
  padding: 52px 56px 44px;
  display: flex; flex-direction: column;
}
.ptn-logo { height: 150px; display: flex; align-items: center; justify-content: center; }
.ptn-logo img { display: block; max-width: 220px; max-height: 150px; width: auto; height: auto; object-fit: contain; }
/* ロゴ画像ごとの余白差を吸収して見た目の大きさを揃える */
.ptn-logo--nft img { max-width: 185px; }
.ptn-card h3 { margin-top: 26px; font-size: 17px; font-weight: 700; color: var(--c-text); }
.ptn-card h3::after { content: ""; display: block; width: 46px; height: 2px; background: var(--c-primary); margin-top: 10px; }
.ptn-card p { margin-top: 18px; font-size: 13.5px; line-height: 2.05; color: var(--c-text-2); }
.ptn-link {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; color: var(--c-text);
}
.ptn-card .ptn-link { margin-top: auto; padding-top: 34px; align-self: flex-start; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1240px) {
  .wallet-grid { grid-template-columns: 1fr; gap: 12px; }
  .wallet-copy { padding-bottom: 0; }
  .wallet-phones { max-width: 760px; margin: 0 auto; width: 100%; }
  .amb-grid { grid-template-columns: 1fr; }
  .amb-banner { max-width: 707px; }
  /* overview: 1カラム(見出し+本文 → ネットワーク図) */
  .ov-grid { grid-template-columns: 1fr; gap: 40px; }
  .ov-visual { justify-self: start; }
  /* Toobit帯: 端末画像を右カラムの前に回り込ませず1カラムへ */
  .toobit-band__inner { grid-template-columns: 1fr; gap: 40px; padding: 64px var(--pad-x) 0; }
  .toobit-band__info { padding-top: 0; order: -1; }
  .toobit-band__phone { justify-self: center; }
}
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .sched-grid { grid-template-columns: 1fr; }
  .ptn-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ov-title { font-size: 32px; }
  .toobit-band__inner { padding: 48px var(--pad-x) 0; gap: 32px; }
  .toobit-logo img { height: 60px; }
  .toobit-desc { margin-top: 28px; }
  .toobit-trade { margin-top: 36px; }
  .wallet-title { font-size: 36px; }
  .sched-card { padding: 28px 22px; }
  .ptn-card { padding: 36px 26px; }
  .ptn-title { font-size: 32px; }
  .amb-name strong { font-size: 30px; }
  .feature-grid { margin-top: 56px; }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .timeline { flex-direction: column; gap: 28px; margin-top: 28px; }
  .timeline::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .tl-step { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; text-align: left; }
  .tl-step .tl-ic { margin: 0; grid-row: 1 / 3; }
  .tl-step .tl-name { margin-top: 2px; }
  .tl-step .tl-date { margin-top: 2px; white-space: normal; }
  .token-flex { flex-direction: column; gap: 22px; }
  .wallet-phones { padding: 24px 0; }
  .wallet-phones__img { max-width: 320px; }
  /* 画像に合わせてオレンジの背景も縮小 */
  .wallet-phones::before { width: 380px; height: 380px; }
  .wallet-phones::after { width: 120px; height: 180px; }
  .amb-links .url { border-left: 0; padding-left: 36px; }
}
