/* ==========================================================================
   ABOUT PAGE (about.html) 専用スタイル
   デザインデータ(ABOUTpage.psd / 2514px幅)に忠実な配置。

   ■ 寸法の考え方
   デザインの1px = var(--u)。--u = (コンテナ幅 / 2514)。
   「calc(N * var(--u))」のNに、PSD上のpx値をそのまま入れてある。
   → 画面幅(スマホ〜PC、最大1200px)に合わせて全体が相似形で拡縮する。
   ■ フォント: PSDのMinion系(Web非搭載) → Crimson Pro で代替
   ■ PSD上のフォントサイズは実寸が表記の約2.083倍。
   ========================================================================== */

.about-page {
  background: #212121;
  color: #f8daff;
  font-family: "Crimson Pro", "Times New Roman", serif;
}

.ab-frame {
  width: min(100%, 1200px);
  margin-inline: auto;
  container-type: inline-size;
}

.ab-canvas {
  --u: calc(100cqw / 2514);
  position: relative;
  height: calc((4400 + var(--dy)) * var(--u));
  overflow: hidden;
  background: #212121;
}

.ab-canvas a {
  color: inherit;
  text-decoration: none;
}

.ab-canvas img {
  display: block;
}

/* ---- 絶対配置の共通指定 ---- */
.ab-portrait,
.ab-title,
.ab-heart,
.ab-desc,
.ab-wings,
.ab-profile,
.ab-fangs,
.ab-table,
.ab-rule,
.ab-about-note,
.ab-b,
.ab-copy,
.ab-home {
  position: absolute;
  margin: 0;
}

/* ---- メインビジュアル (x113,y79 830x1203 / 角丸込みの画像) ---- */
.ab-portrait {
  left: calc(113 * var(--u));
  top: calc(79 * var(--u));
  width: calc(830 * var(--u));
  height: calc(1203 * var(--u));
}

/* ---- タイトル板 (x1005,y78 1112x592) ---- */
.ab-title {
  left: calc(1005 * var(--u));
  top: calc(78 * var(--u));
  width: calc(1112 * var(--u));
  height: calc(592 * var(--u));
}

.ab-title img {
  width: 100%;
  height: 100%;
}

/* ---- JP / EN ハート (x2214, y126 / y334, 166x166) ---- */
.ab-heart {
  left: calc(2214 * var(--u));
  width: calc(166 * var(--u));
  height: calc(166 * var(--u));
  transition: transform 0.2s, filter 0.2s;
}

.ab-heart-jp { top: calc(126 * var(--u)); }
.ab-heart-en { top: calc(334 * var(--u)); }

.ab-heart img {
  width: 100%;
  height: 100%;
}

.ab-heart:hover,
.ab-heart:focus-visible {
  transform: scale(1.06);
  filter: brightness(1.25);
}

/* ---- 説明文 (x1034,y772 / Minion 23pt→約48px / 行送り66.8) ---- */
.ab-desc {
  left: calc(1034 * var(--u));
  top: calc(759 * var(--u));
  width: calc(1450 * var(--u));
  font-size: calc(47.6 * var(--u));
  line-height: calc(66.8 * var(--u));
  color: #f8daff;
  white-space: nowrap;
}

.ab-desc p {
  margin: 0;
}

.ab-desc p.gap {
  margin-top: calc(66.8 * var(--u));
}

.ab-desc a,
.ab-desc .nolink {
  font-style: italic;
  font-weight: 500;
}


.ab-desc .indent {
  display: inline-block;
  padding-left: calc(168 * var(--u));
}

/* ---- 羽根 (GIF 113x60 を約2.07倍) ---- */
.ab-wings {
  left: calc(2107 * var(--u));
  top: calc(1088 * var(--u));
  width: calc(234 * var(--u));
  height: calc(124 * var(--u));
  image-rendering: pixelated;
}

/* ---- プロフィールボックス (x152,y1358 776幅 / 黒の角丸 / 高さは文章量で伸びる) ---- */
.ab-profile {
  left: calc(152 * var(--u));
  top: calc(1358 * var(--u));
  width: calc(776 * var(--u));
  min-height: calc(920 * var(--u));
  box-sizing: border-box;
  padding: calc(52 * var(--u)) calc(62 * var(--u)) calc(58 * var(--u));
  border-radius: calc(80 * var(--u));
  background: #000000;
  color: #fff2f8;
}

.ab-profile .pf-name {
  margin: 0 0 calc(22 * var(--u));
  font-size: calc(78 * var(--u));
  line-height: 1.1;
  font-style: italic;
  font-weight: 600;
  color: #f8daff;
}

.ab-profile p {
  margin: 0 0 calc(30 * var(--u));
  font-size: calc(36 * var(--u));
  line-height: 1.72;
  letter-spacing: 0.02em;
}

.ab-profile .ja p {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: calc(32 * var(--u));
  line-height: 1.85;
}

.ab-profile .pf-tool {
  margin: calc(40 * var(--u)) 0 0;
  color: #f8daff;
  font-size: calc(33 * var(--u));
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ab-profile .ja .pf-tool {
  font-family: "Crimson Pro", serif;
  font-size: calc(33 * var(--u));
  line-height: 1.6;
}

/* ---- 牙のイラスト (x2212,y2345 204x94) ---- */
.ab-fangs {
  left: calc(2212 * var(--u));
  top: calc((2345 + var(--dy)) * var(--u));
  width: calc(204 * var(--u));
  height: calc(94 * var(--u));
  pointer-events: none;
}

/* ---- リンク表 (x57,y2430 2400x752 / 罫線は黒) ---- */
.ab-table {
  left: calc(57 * var(--u));
  top: calc((2430 + var(--dy)) * var(--u));
  width: calc(2400 * var(--u));
  height: calc(752 * var(--u));
  display: flex;
  flex-direction: column;
  gap: max(1px, calc(3 * var(--u)));
  padding: max(0.5px, calc(1.5 * var(--u)));
  box-sizing: border-box;
  background: #000000;
  font-size: calc(88 * var(--u));
  line-height: 1;
  color: #404040;
  font-weight: 500;
}

.ab-row {
  display: flex;
  gap: max(1px, calc(3 * var(--u)));
  min-height: 0;
}

.ab-row.r1 { height: calc(190 * var(--u)); }
.ab-row.r2 { height: calc(187 * var(--u)); }
.ab-row.r3 { height: calc(187 * var(--u)); }
.ab-row.r4 { height: calc(188 * var(--u)); }

.ab-table .c {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  background: #eac5ef;
  text-align: center;
}

/* 文字はMinion Condensed風にやや縮める */
.ab-table .c span {
  display: inline-block;
  transform: scaleX(0.7);
  white-space: nowrap;
}

.ab-table .lab {
  flex: 0 0 calc(481 * var(--u));
  font-weight: 500;
}

.ab-table .stack {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: max(1px, calc(3 * var(--u)));
  min-width: 0;
}

.ab-table .stack.w2 {
  flex: 1438 1 0;
}

.ab-table .sub {
  display: flex;
  gap: max(1px, calc(3 * var(--u)));
  flex: 1 1 0;
  min-height: 0;
}

.ab-table .req {
  flex: 480 1 0;
}

.ab-table .r4 .c.wide2 { flex: 960 1 0; font-weight: 500; }
.ab-table .r4 .c:nth-child(2),
.ab-table .r4 .c:nth-child(3) { flex: 719 1 0; }

.ab-table a.c:hover,
.ab-table a.c:focus-visible {
  background: #f4dbf7;
}

/* ---- 区切り線 (x53,y3334 2408x15 / 薄紫→水色グラデ) ---- */
.ab-rule {
  left: calc(53 * var(--u));
  top: calc((3334 + var(--dy)) * var(--u));
  width: calc(2408 * var(--u));
  height: calc(15 * var(--u));
  border: 0;
  background: linear-gradient(90deg, #ccd7ff, #61b6bf);
}

/* ---- フッター文言 (x287,y3410 / Minion Italic 24pt) ---- */
.ab-about-note {
  left: calc(287 * var(--u));
  top: calc((3398 + var(--dy)) * var(--u));
  font-size: calc(50 * var(--u));
  line-height: calc(63 * var(--u));
  font-style: italic;
  color: #ffd7e9;
  white-space: nowrap;
}

/* ---- バッジ類 ---- */
.ab-b img {
  width: 100%;
  height: 100%;
}

.ab-b {
  transition: transform 0.2s, filter 0.2s;
}

.ab-b:hover,
.ab-b:focus-visible {
  transform: translateY(calc(-6 * var(--u)));
  filter: brightness(1.12);
}

.ab-b-commtion { left: calc(1235 * var(--u)); top: calc((3440 + var(--dy)) * var(--u)); width: calc(212 * var(--u)); height: calc(166 * var(--u)); }
.ab-b-nnshop   { left: calc(1498 * var(--u)); top: calc((3443 + var(--dy)) * var(--u)); width: calc(346 * var(--u)); height: calc(304 * var(--u)); }
.ab-b-stagram  { left: calc(1901 * var(--u)); top: calc((3439 + var(--dy)) * var(--u)); width: calc(207 * var(--u)); height: calc(238 * var(--u)); }
.ab-b-works    { left: calc(2170 * var(--u)); top: calc((3446 + var(--dy)) * var(--u)); width: calc(245 * var(--u)); height: calc(258 * var(--u)); }

.ab-b-blackpink { left: calc(153 * var(--u)); top: calc((3663 + var(--dy)) * var(--u)); width: calc(266 * var(--u)); height: calc(100 * var(--u)); }
.ab-b-duckie    { left: calc(458 * var(--u)); top: calc((3643 + var(--dy)) * var(--u)); width: calc(249 * var(--u)); height: calc(124 * var(--u)); }
.ab-b-king      { left: calc(748 * var(--u)); top: calc((3652 + var(--dy)) * var(--u)); width: calc(391 * var(--u)); height: calc(112 * var(--u)); }

/* ---- コピー行 (中央 / Minion Roman 24pt) ---- */
.ab-copy {
  left: 0;
  right: 0;
  top: calc((3931 + var(--dy)) * var(--u));
  text-align: center;
  font-size: calc(50 * var(--u));
  line-height: calc(70 * var(--u));
  color: #ffffff;
  white-space: nowrap;
}

.ab-copy strong {
  font-weight: 500;
  color: #e1b2ff;
}

/* ---- home (窓) (x1204,y4122 126x126) ---- */
.ab-home {
  left: calc(1204 * var(--u));
  top: calc((4122 + var(--dy)) * var(--u));
  width: calc(126 * var(--u));
  height: calc(126 * var(--u));
  transition: transform 0.2s;
}

.ab-home img {
  width: 100%;
  height: 100%;
}

.ab-home:hover,
.ab-home:focus-visible {
  transform: scale(1.08);
}

/* ---- 言語切り替え (デフォルトEN / <html lang> を js/about.js が切り替える) ---- */
html[lang="en"] .ja { display: none; }
html[lang="ja"] .en { display: none; }

.ab-heart[aria-pressed="false"] { opacity: 0.55; }
.ab-heart[aria-pressed="true"]  { opacity: 1; }
.ab-heart:hover { opacity: 1; }

/* ---- プロフィールが伸びた分だけ下の要素を押し下げる(--dy はデザイン上のpx数) ---- */
.ab-canvas { --dy: 826; }
html[lang="ja"] .ab-canvas { --dy: 653; }
