/* ==========================================================
   horikoshi-yuki.com — design tokens & base
   ========================================================== */
:root {
  /* color */
  --paper: #eef5fc;        /* カラム内の地色（明るい淡青） */
  --stage: #f0e6d1;        /* カラム外＝砂浜。中央の水色（海）と対比 */
  --card: #ffffff;         /* カード面 */
  --ink: #182b45;          /* 本文・見出し */
  --muted: #5c7089;        /* サブテキスト */
  --blue: #2e5e9e;         /* プライマリ */
  --sky: #c4d6e8;          /* 罫線・装飾 */
  --night: #14142b;        /* マジシャンの夜 */
  --night-2: #232345;
  --violet: #8f7cf0;       /* 夜のアクセント */
  --moon: #e9e6ff;         /* 夜の中の文字色 */
  --coral: #ff8b6b;        /* ハワイのアクセント（花・貝） */
  --teal: #2fb6c4;         /* 海の青緑 */
  --sand: #f0e6d1;         /* 砂浜 */

  /* type */
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Outfit", "Avenir Next", "Helvetica Neue", sans-serif;

  /* shape */
  --radius: 18px;
  --shadow: 0 2px 12px rgba(24, 43, 69, 0.06);
  --shadow-hover: 0 10px 28px rgba(24, 43, 69, 0.12);

  /* layout */
  --column: 430px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  background:
    radial-gradient(circle 560px at 12% 8%, rgba(255, 214, 140, 0.32), transparent 68%),
    radial-gradient(rgba(193, 165, 120, 0.28) 1.5px, transparent 1.7px),
    radial-gradient(rgba(168, 138, 92, 0.16) 1px, transparent 1.2px),
    var(--stage);
  background-size: auto, 20px 20px, 13px 13px, auto;
  background-position: 0 0, 0 0, 7px 9px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ==========================================================
   stage: 中央430pxカラム + PC左右固定パネル
   ========================================================== */
.column {
  max-width: var(--column);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--paper);
  box-shadow: 0 0 44px rgba(24, 43, 69, 0.08);
  position: relative;
}
.magician-shortcut {
  position: fixed;
  top: 36px;
  right: 44px;
  z-index: 11;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
  text-decoration: none;
  border-bottom: 1px solid var(--sky);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.magician-shortcut span {
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.magician-shortcut:hover { color: var(--coral); border-color: var(--coral); }
.secret-toast {
  position: fixed;
  right: 50%;
  bottom: 28px;
  z-index: 40;
  width: min(390px, calc(100vw - 40px));
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(24, 43, 69, 0.22);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
  translate: 50% 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, translate 0.28s ease;
}
.secret-toast.is-visible { opacity: 1; translate: 50% 0; }
.side { display: none; }

@media (min-width: 1000px) {
  .side {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    width: calc((100vw - var(--column)) / 2);
    padding: 40px 44px;
    z-index: 10;
    pointer-events: none;
  }
  .side a, .side button { pointer-events: auto; }

  .side-left {
    left: 0;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
  }
  .side-right {
    right: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
  }
}

@media (max-width: 999px) {
  .magician-shortcut { display: none; }
}

/* 左パネル：横組みワードマーク */
.side-logo { display: block; text-decoration: none; line-height: 1.05; }
.side-logo__mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.site-apostrophe {
  display: inline-block;
  margin: 0 -0.02em;
  color: var(--coral);
  font-family: Arial, sans-serif;
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  transform: translateY(-0.05em);
}
.side-tag {
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 右パネル：ナビ */
.side-nav { list-style: none; text-align: right; }
.side-nav li + li { margin-top: 24px; }
.side-nav a {
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
  position: relative;
}
/* hoverで貝殻が「選択中」を示す */
.nav-shell {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  width: 24px;
  height: auto;
  opacity: 0;
  transform: translateY(-50%) translateX(8px) rotate(-8deg);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}
.side-nav a:hover .nav-shell {
  opacity: 1;
  transform: translateY(-50%) translateX(0) rotate(0deg);
}
.side-nav .en {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.side-nav .jp {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.side-nav a:hover .en { color: var(--ink); }

/* ==========================================================
   モバイルヘッダー + メニューオーバーレイ
   ========================================================== */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 22px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(8px);
}
.mobile-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.menu-btn {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--card);
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--blue);
  box-shadow: var(--shadow);
  cursor: pointer;
}
@media (min-width: 1000px) {
  .mobile-header { display: none; }
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--ink) 96%, black);
  color: var(--paper);
  display: grid;
  place-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay ul { list-style: none; }
.menu-overlay li + li { margin-top: 30px; }
.menu-overlay a { text-decoration: none; }
.menu-overlay .en {
  display: block;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.menu-overlay .jp {
  display: block;
  font-size: 12px;
  color: var(--sky);
}
.menu-close {
  margin-top: 48px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.16em;
  background: none;
  border: 1px solid var(--muted);
  border-radius: 999px;
  padding: 8px 20px;
  color: var(--paper);
  cursor: pointer;
}

/* ==========================================================
   セクション共通
   ========================================================== */
section { padding: 56px 22px; }

.eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
/* セクション見出しは中央寄せ（カード内ラベルは対象外） */
section > .eyebrow,
section > .heading { text-align: center; }

/* 見出しの上に散らす統一モチーフ（星）。heroは除外 */
section:not(.hero) > .eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 l2.6 8.4 8.4 2.6 -8.4 2.6 -2.6 8.4 -2.6 -8.4 -8.4 -2.6 8.4 -2.6 z' fill='%232e5e9e'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: twinkle 3.2s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.82); opacity: 0.6; }
}
.heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

/* ==========================================================
   波のセクション区切り + 白帯セクション
   ========================================================== */
.wave { line-height: 0; }
.wave svg { width: 100%; height: 34px; display: block; }
.wave--flip svg { transform: scaleY(-1); }
.section-white { background: var(--card); }
.section-white .face-card { box-shadow: 0 4px 18px rgba(24, 43, 69, 0.09); }

/* ==========================================================
   hero: プロフィール型
   ========================================================== */
.hero {
  min-height: 76dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding-bottom: 80px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty {
  from { translate: 0 -8px; }
  to { translate: 0 10px; }
}

/* ==========================================================
   左右余白のあしらい（PCのみ表示）
   ========================================================== */
.margin-deco { display: none; }

@media (min-width: 1000px) {
  .margin-deco {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
  }
  .margin-deco span {
    position: absolute;
    animation: floaty 7s ease-in-out infinite alternate;
  }
  .margin-deco svg, .margin-deco img { width: 100%; height: auto; display: block; }

  /* 左余白：かに / いるか / かもめ（--scroll×係数でスクロール視差） */
  .deco-crab {
    width: 60px;
    left: calc(50% - var(--column) / 2 - 152px);
    top: 14%;
    transform: rotate(-6deg) translateY(calc(var(--scroll, 0px) * -0.04));
    animation-duration: 6s;
    pointer-events: auto;
    cursor: pointer;
  }
  .deco-crab::after {
    content: "＼こんにちは／";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 7px) rotate(6deg);
    opacity: 0;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(24, 43, 69, 0.14);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .deco-crab:hover::after {
    opacity: 1;
    transform: translate(-50%, 0) rotate(6deg);
  }
  .deco-dolphin {
    width: 66px;
    left: calc(50% - var(--column) / 2 - 108px);
    top: 53%;
    transform:
      translateX(var(--dolphin-flee-x, 0px))
      rotate(-4deg)
      translateY(calc(var(--scroll, 0px) * -0.07 + var(--dolphin-flee-y, 0px)));
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    animation-duration: 5.5s;
    animation-direction: alternate-reverse;
  }
  .deco-dolphin.is-secret-trigger {
    pointer-events: auto;
    cursor: pointer;
  }
  .deco-dolphin::after,
  .deco-seagull::after,
  .deco-helm::after,
  .deco-whale::after,
  .deco-shell::after {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 7px) rotate(4deg);
    opacity: 0;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(24, 43, 69, 0.14);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .deco-dolphin::after { content: "＼逃げろー／"; }
  .deco-dolphin.is-fleeing::after {
    opacity: 1;
    transform: translate(-50%, 0) rotate(4deg);
  }
  .deco-seagull {
    width: 72px;
    left: calc(50% - var(--column) / 2 - 180px);
    bottom: 15%;
    transform: rotate(-4deg) translateY(calc(var(--scroll, 0px) * 0.05));
    animation-duration: 8.5s;
    pointer-events: auto;
    cursor: pointer;
  }
  .deco-seagull::after { content: "＼好きなものはカレーです／"; }
  .deco-seagull:hover::after {
    opacity: 1;
    transform: translate(-50%, 0) rotate(4deg);
  }

  /* 右余白：舵 / くじら / 貝殻 */
  .deco-helm {
    width: 56px;
    right: calc(50% - var(--column) / 2 - 150px);
    top: 19%;
    transform: rotate(8deg) translateY(calc(var(--scroll, 0px) * 0.05));
    animation-duration: 7.5s;
    animation-direction: alternate-reverse;
    pointer-events: auto;
    cursor: pointer;
  }
  .deco-helm::after { content: "＼目が回る〜／"; }
  .deco-helm:hover::after,
  .deco-whale:hover::after,
  .deco-shell:hover::after {
    opacity: 1;
    transform: translate(-50%, 0) rotate(4deg);
  }
  .deco-helm:hover img { animation: helm-spin 0.45s linear infinite; }
  @keyframes helm-spin {
    to { transform: rotate(360deg); }
  }
  .deco-whale {
    width: 74px;
    right: calc(50% - var(--column) / 2 - 100px);
    top: 59%;
    transform: translateY(calc(var(--scroll, 0px) * 0.07));
    animation-duration: 6.5s;
    pointer-events: auto;
    cursor: pointer;
  }
  .deco-whale::after { content: "＼AI駆動開発が好きです／"; }
  .deco-shell {
    width: 52px;
    right: calc(50% - var(--column) / 2 - 178px);
    bottom: 19%;
    transform: rotate(-4deg) translateY(calc(var(--scroll, 0px) * -0.04));
    animation-duration: 7s;
    pointer-events: auto;
    cursor: pointer;
  }
  .deco-shell::after { content: "＼泳げます／"; }
}

/* ==========================================================
   スロット目印モード：<body class="show-slots"> で
   「どこに何を置くか」のラベルとガイド枠を表示
   ========================================================== */
.show-slots .deco {
  outline: 2px dashed var(--blue);
  outline-offset: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}
.show-slots .deco::after {
  content: attr(data-slot);
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  padding: 2px 9px;
  border-radius: 999px;
}

.hero-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--stage));
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  position: relative;
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 56% 26%; /* xを増やすと被写体が左に寄る */
}
/* avatarを囲む点線の輪 */
.hero-avatar::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px dashed var(--sky);
  animation: spin 46s linear infinite;
}
.hero-en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero-name {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 4px;
}
.hero-lead {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  max-width: 300px;
}

@media (max-width: 999px) {
  .hero:not(.sub-hero) {
    min-height: auto;
    padding: 38px 22px 36px;
  }
  .hero:not(.sub-hero) .hero-bubble {
    margin-bottom: 14px;
    translate: 0 -6px;
  }
  .hero:not(.sub-hero) .hero-avatar { margin-bottom: 16px; }
  .hero:not(.sub-hero) .hero-name { line-height: 1.35; }
  .hero:not(.sub-hero) .hero-lead {
    margin-top: 14px;
    line-height: 1.75;
  }
  .hero:not(.sub-hero) + .wave svg { height: 26px; }
  #service { padding-top: 44px; }
}
/* ==========================================================
   faces: ふたつの顔カード
   ========================================================== */
.face-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 30px 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.face-card + .face-card { margin-top: 18px; }
.face-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.face-card { position: relative; }
.face-card .eyebrow { margin-bottom: 4px; }
.face-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.face-desc {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.face-more {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
}

/* マジシャンは、夜の海を少し淡くした色合いに */
.face-card--magic {
  position: relative;
  background:
    radial-gradient(1.2px 1.2px at 18% 30%, rgba(255,255,255,0.45) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 85% 62%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.3) 50%, transparent 51%),
    linear-gradient(150deg, #6096b8, #3e7198 70%);
  overflow: hidden;
}
.face-card--magic::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(closest-side, rgba(111, 192, 232, 0.12), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(-6%, -4%); }
  to { transform: translate(8%, 6%); }
}
.face-card--magic > :not(.face-illust) { position: relative; }
.face-card--magic .eyebrow { color: #d2eff7; }
.face-card--magic .face-title { color: #f8fcff; }
.face-card--magic .face-desc { color: #e1eff5; }
.face-card--magic .face-more { color: #d2eff7; }
.face-card--magic:hover {
  box-shadow: 0 14px 36px rgba(16, 38, 63, 0.4);
}

/* ==========================================================
   about
   ========================================================== */
.about-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}
.about-body { font-size: 14px; font-family: var(--font-display); font-weight: 500; }
.about-body p + p { margin-top: 1.1em; }
.about-name { font-size: 1.14em; font-weight: 700; }
.about-photo {
  margin: 0 0 22px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), var(--stage));
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%; /* PCを見せながら時計は隠れる程度に上寄せ */
}
/* ==========================================================
   links / contact / footer
   ========================================================== */
.link-list {
  list-style: none;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.link-list li + li { border-top: 1px solid var(--paper); }
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 18px 22px;
  text-decoration: none;
  transition: background 0.25s ease;
}
.link-list a:hover { background: #f7fafd; }
.link-list .name {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: rgba(45, 116, 183, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link-list .desc { font-size: 12px; color: var(--muted); flex: 1; text-align: right; }
.link-list a:hover .name { color: var(--teal); text-decoration-color: currentColor; }

.contact { text-align: center; }
.contact-lead { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.contact-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 16px 44px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(46, 94, 158, 0.3);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-btn:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24, 43, 69, 0.3);
}
.side-right .secret-start-button {
  display: block;
  width: 118px;
  margin-top: 26px;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px dashed rgba(92, 112, 137, 0.5);
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.side-right .secret-start-button img {
  width: 112px;
  margin-left: auto;
  filter: drop-shadow(0 6px 10px rgba(24, 43, 69, 0.16));
}
.side-right .secret-start-button:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.08);
}
.side-right .secret-start-button[hidden] { display: none !important; }

/* ==========================================================
   秘密のシューティングゲーム
   ========================================================== */
.secret-game[hidden] { display: none; }
.secret-game {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
  color: var(--ink);
  font-family: var(--font-display);
}
.secret-game__hud {
  position: fixed;
  top: 18px;
  right: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(690px, calc(100vw - 48px));
  padding: 12px 16px;
  translate: 50% 0;
  border: 1px solid rgba(46, 94, 158, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 18px rgba(24, 43, 69, 0.13);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.secret-game__hp {
  display: grid;
  flex: 1;
  grid-template-columns: auto minmax(74px, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.secret-game__hp-bar {
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(24, 43, 69, 0.22);
  border-radius: 999px;
  background: rgba(24, 43, 69, 0.1);
}
.secret-game__hp-bar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb149, #f2536e);
  transition: width 0.18s ease;
}
.secret-game__hp--player .secret-game__hp-bar i { background: linear-gradient(90deg, #62c9ea, #2e5e9e); }
.secret-game__hp b { min-width: 3ch; text-align: right; }
.secret-game__return {
  flex: none;
  border: 1px solid rgba(24, 43, 69, 0.34);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: var(--ink);
  font: 700 11px var(--font-display);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.secret-game__return:hover { background: var(--ink); color: #fff; }
.secret-game__tip {
  position: fixed;
  bottom: 26px;
  left: 30px;
  z-index: 60;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.secret-game__player {
  position: fixed;
  top: calc(100vh - 100px);
  left: 50%;
  z-index: 60;
  width: 48px;
  height: 58px;
  translate: -50% 0;
  filter: drop-shadow(0 4px 6px rgba(24, 43, 69, 0.22));
}
.secret-game__player::before {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  border-right: 24px solid transparent;
  border-bottom: 54px solid var(--blue);
  border-left: 24px solid transparent;
  translate: 50% 0;
}
.secret-game__player::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 9px;
  width: 12px;
  height: 30px;
  border-radius: 50% 50% 35% 35%;
  background: var(--sky);
  translate: 50% 0;
}
.secret-game__player span {
  position: absolute;
  right: 50%;
  bottom: -10px;
  width: 10px;
  height: 16px;
  border-radius: 50%;
  background: #ffbd4e;
  translate: 50% 0;
  animation: engine-flame 0.22s ease-in-out infinite alternate;
}
@keyframes engine-flame { to { scale: 0.75 1.3; opacity: 0.65; } }
.secret-game__player-shot,
.secret-game__enemy-card {
  position: fixed;
  z-index: 55;
  pointer-events: none;
}
.secret-game__player-shot {
  width: 6px;
  height: 20px;
  border-radius: 999px;
  background: #ffbd4e;
  box-shadow: 0 0 10px #ffbd4e;
}
.secret-game__enemy-card {
  display: grid;
  width: 30px;
  height: 40px;
  border: 2px solid #e85062;
  border-radius: 5px;
  place-items: center;
  background: #fff;
  box-shadow: 0 3px 8px rgba(24, 43, 69, 0.2);
  color: #e85062;
  font: 700 19px var(--font-en);
}
.secret-game__message {
  position: fixed;
  right: 50%;
  bottom: 118px;
  z-index: 60;
  translate: 50% 0;
  min-height: 1.7em;
  color: var(--coral);
  font-size: clamp(16px, 2.3vw, 24px);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
body.is-shooting {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 17%, rgba(93, 175, 244, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 73% 28%, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle at 39% 71%, rgba(151, 128, 255, 0.38) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 76%, rgba(59, 145, 219, 0.26), transparent 30%),
    #07172e;
  background-size: 180px 160px, 240px 220px, 290px 250px, auto, auto;
}
body.is-shooting .column {
  background: transparent;
  box-shadow: 0 0 44px rgba(6, 15, 35, 0.42);
}
body.is-shooting .margin-deco,
body.is-shooting .magician-shortcut,
body.is-shooting .side,
body.is-shooting .column > :not(.hero),
body.is-shooting .wave-transition { display: none !important; }
body.is-shooting .hero .hero-en,
body.is-shooting .hero .hero-name,
body.is-shooting .hero .hero-lead { display: none; }
body.is-shooting .hero-avatar {
  position: fixed;
  top: 19vh;
  left: 50%;
  z-index: 61;
  padding: 0;
  margin: 0;
  transform: translate(calc(-50% + var(--enemy-x, 0px)), var(--enemy-y, 0px));
  transition: none;
}
body.is-shooting .hero-avatar.is-hit {
  filter: brightness(1.45) saturate(0.72);
  scale: 0.88;
}
body.is-shooting .hero-bubble {
  position: fixed;
  top: calc(19vh - 62px);
  left: 50%;
  z-index: 61;
  margin: 0;
  translate: 0 0;
  transform: translate(calc(-50% + var(--enemy-x, 0px)), var(--enemy-y, 0px));
  pointer-events: none;
}
@media (max-width: 640px) {
  .secret-game__hud { gap: 8px; width: calc(100vw - 26px); padding: 10px; }
  .secret-game__hp { gap: 5px; }
  .secret-game__hp span { font-size: 8px; }
  .secret-game__return { padding: 6px 9px; font-size: 10px; }
}
/* ==========================================================
   下層ページ（engineer / magician など）共通
   ========================================================== */
.back-home {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 22px;
}
.back-home:hover { color: var(--ink); }
.sub-hero {
  min-height: auto;
  padding-top: 60px;
  padding-bottom: 44px;
  text-align: center;
}
.work-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px;
}
.work-card + .work-card { margin-top: 16px; }
.works-intro {
  margin: -8px 0 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  text-align: center;
}
.work-group-title {
  margin: 30px 0 12px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--blue);
  letter-spacing: 0.06em;
}
.works-intro + .work-group-title { margin-top: 0; }
.work-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.work-card p { font-size: 13px; color: var(--muted); }
.work-card .work-card__type {
  margin-bottom: 3px;
  color: var(--teal);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project-list { list-style: none; }
.project-list li + li {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--paper);
}
.project-list strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-size: 14px;
}
.project-list span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}
.work-card .tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work-card .tags span {
  font-size: 11px;
  color: var(--teal);
  background: #eaf6f8;
  border-radius: 999px;
  padding: 2px 10px;
}
.works-github {
  display: block;
  margin-top: 26px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.works-github:hover { color: var(--teal); }

.footer {
  padding: 40px 22px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.footer .en {
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

/* SNSアイコンボタン（左余白＝縦 / フッター＝横） */
.sns { list-style: none; display: flex; gap: 12px; }
.sns--vertical { flex-direction: column; }
.sns a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: var(--card);
  color: var(--blue);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.sns a:hover {
  transform: translateY(-3px);
  background: var(--blue);
  color: #fff;
}
.sns svg { width: 20px; height: 20px; display: block; }
.sns-letter { font-family: var(--font-en); font-weight: 600; font-size: 16px; line-height: 1; }
.footer .sns { justify-content: center; margin-bottom: 24px; }

/* ヒーローの吹き出し */
.hero-bubble {
  position: relative;
  background: var(--card);
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  translate: 0 -10px;
}
.hero-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--card);
  border-bottom: 0;
}

/* ==========================================================
   スクロール連動の登場アニメーション
   デフォルトは静かなフェードのみ。要素ごとに違う小さな動きを足す
   ========================================================== */
.reveal {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.reveal.is-visible { opacity: 1; }

/* カード・ボタン類は「ぽんっ」と少し弾んで出る */
.face-card.reveal,
.about-card.reveal,
.link-list.reveal,
.work-card.reveal,
.contact-btn.reveal,
.hero-avatar.reveal {
  scale: 0.94;
  transition:
    opacity 0.45s ease,
    scale 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}
.reveal.is-visible { scale: 1; }

/* 吹き出しは少し傾いてから起き上がる */
.hero-bubble.reveal {
  scale: 0.7;
  rotate: -6deg;
  transition:
    opacity 0.4s ease,
    scale 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    rotate 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-bubble.reveal.is-visible { scale: 1; rotate: 0deg; }

/* セクション見出しは下から拭き上げるマスク出現 */
section > .heading.reveal {
  clip-path: inset(0 0 100% 0);
  translate: 0 20px;
  transition:
    opacity 0.5s ease,
    clip-path 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
section > .heading.reveal.is-visible {
  clip-path: inset(-10% -10% -20% -10%);
  translate: 0 0;
}

/* ヒーローは上から順に時間差で登場 */
.hero > .reveal:nth-child(2) { transition-delay: 0.1s; }
.hero > .reveal:nth-child(3) { transition-delay: 0.18s; }
.hero > .reveal:nth-child(4) { transition-delay: 0.26s; }
.hero > .reveal:nth-child(5) { transition-delay: 0.34s; }

/* ==========================================================
   PC: カラムを広げ、文字も一回り大きく
   ========================================================== */
@media (min-width: 1000px) {
  :root { --column: 560px; }

  body { font-size: 16px; }

  section { padding: 72px 44px; }

  .eyebrow { font-size: 12px; }
  .heading { font-size: 28px; margin-bottom: 34px; }

  .hero-avatar { width: 124px; height: 124px; }
  .hero-en { font-size: 13px; }
  .hero-name { font-size: 42px; }
  .hero-lead { font-size: 16px; max-width: 420px; }

  .face-card { padding: 36px 34px; }
  .face-title { font-size: 25px; }
  .face-desc { font-size: 15px; }
  .face-more { font-size: 13px; }

  .about-card { padding: 34px 32px; }
  .about-body { font-size: 16px; }
  .link-list a { padding: 20px 26px; }
  .link-list .name { font-size: 16px; }
  .link-list .desc { font-size: 14px; }

  .contact-lead { font-size: 15px; }
  .contact-btn { font-size: 14px; padding: 18px 52px; }

  .side-logo__mark { font-size: 34px; }
  .side-nav li + li { margin-top: 32px; }
  .side-nav .en { font-size: 17px; letter-spacing: 0.12em; }
  .side-nav .jp { font-size: 13px; margin-top: 3px; }
  .wave svg { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  section > .heading.reveal { clip-path: none; translate: none; }
  .hero > .reveal { transition-delay: 0s; }
  .face-card--magic::before,
  .hero-avatar::after, .margin-deco span, .deco-helm img { animation: none; }
  .wave-transition { display: none; }
}

/* ==========================================================
   海のページ遷移オーバーレイ
   ========================================================== */
.wave-transition {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  transform: translateY(calc(100% + 72px));
  opacity: 1;
  /* transform・opacityそれぞれの速度をここ1箇所だけで定義（競合を避ける） */
  transition:
    transform 1.1s cubic-bezier(0.4, 0, 0.25, 1),
    opacity 0.9s ease;
  will-change: transform, opacity;
}
.wave-transition.no-anim { transition: none !important; }
/* 満ちるとき：ゆっくり水位が上がる */
.wave-transition.is-cover { transform: translateY(0); }
/* <head>の同期scriptが即座に付けるクラス。外部JSの実行を待たず先に画面を覆う */
html.ocean-preload-cover .wave-transition {
  transform: translateY(0);
  transition: none;
}
/* 上まで満ちきったあとは動かさず、その場でディゾルブして消える */
.wave-transition.is-dissolve { opacity: 0; }
.wave-transition__body {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #6fc0e8 0%, #3f8fd0 45%, #245e9e 100%);
}
.wave-transition__edge {
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: 68px;
  display: block;
}
