/* ベルロッド電子出版 v3 — 1枚ページ（2026-10-17 リサ） */
:root {
  --bg: #0a0f1a;
  --bg-alt: #0f1626;
  --panel: #141d31;
  --line: #24304a;
  --text: #e8ecf3;
  --muted: #9aa6bd;
  --emerald: #34d39a;   /* サーバーの灯り・胸元の石 */
  --gold: #d6b26a;      /* 服の金の縁取り */
  --r18: #e0607a;
  --radius: 14px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(10, 15, 26, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 50%; border: 1px solid var(--line); }
.brand__en { font-family: Outfit, sans-serif; font-weight: 800; letter-spacing: .18em; font-size: 18px; }
.brand__ja { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--emerald); }
/* 三本線のボタン（スマホ幅だけ出す） */
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
section[id] { scroll-margin-top: 72px; }  /* 飛んだ先の見出しが上の帯に隠れないように */

/* 共通 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-family: Outfit, sans-serif; font-weight: 500; font-size: 12px; letter-spacing: .28em; color: var(--emerald);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 15px; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--emerald); color: #04140d; }
.btn--ghost { border: 1px solid var(--gold); color: var(--gold); }
.slot { color: var(--muted); border: 1px dashed #4a5877; border-radius: 6px; padding: 0 8px; font-size: .9em; }

/* ヒーロー（ポスター）：切り抜いた人物を大きく置き、題字・色・線を1枚に組む */
.poster {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 720px; border-bottom: 1px solid var(--line);
}
.poster__bg {  /* 背景 案01 制作部屋（2026-10-18 オーナー選び）。左は題字が読めるよう ::after で暗くする */
  position: absolute; inset: 0; z-index: -3;
  background: url("assets/hero-bg-01.webp") center / cover no-repeat;
  filter: brightness(.8) saturate(1.05);
}
@media (max-width: 1280px) { .poster__bg { background-image: url("assets/hero-bg-01-1280.webp"); } }
.poster__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 70% 55%, rgba(52, 211, 154, .20), transparent 70%),
    linear-gradient(90deg, rgba(10, 15, 26, .92) 0%, rgba(10, 15, 26, .55) 45%, rgba(10, 15, 26, .25) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}
.poster__grid {  /* 細い格子（背景の絵と喧嘩しないよう薄く） */
  position: absolute; inset: 0; z-index: -2; opacity: .09;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 80%, transparent);
}
.poster__giant {  /* 人物の後ろの大きな題字（線だけ） */
  position: absolute; z-index: -1; right: -1vw; bottom: 30px; margin: 0;
  font-family: Outfit, sans-serif; font-weight: 900; font-size: clamp(110px, 15vw, 240px); line-height: .8; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(214, 178, 106, .45); opacity: .5;
}
.poster__side {  /* 右端の縦の帯の文字 */
  position: absolute; right: 18px; top: 50%; margin: 0; transform: translateY(-50%); writing-mode: vertical-rl;
  font-family: Outfit, sans-serif; font-size: 11px; letter-spacing: .4em; color: rgba(214, 178, 106, .7);
}
.poster__corner { position: absolute; width: 44px; height: 44px; border: 0 solid var(--gold); opacity: .8; }
.poster__corner--tl { left: 20px; top: 20px; border-left-width: 2px; border-top-width: 2px; }
.poster__corner--br { right: 20px; bottom: 20px; border-right-width: 2px; border-bottom-width: 2px; }
.poster__inner {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px;
  max-width: 1240px; margin: 0 auto; padding: 48px clamp(16px, 5vw, 64px) 40px;
}
.issue { color: var(--gold); letter-spacing: .2em; }
.poster__figure { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; }
.poster__figure img {
  position: relative; height: min(640px, 82vh); width: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 1px rgba(214, 178, 106, .8));
}
.poster__figure figcaption {
  position: relative; margin-top: 10px; padding: 6px 16px; border-top: 1px solid var(--gold);
  background: rgba(10, 15, 26, .92); border-radius: 0 0 8px 8px;  /* 後ろの線だけの題字と交わらないよう暗い地を敷く */
  font-family: Outfit, "Noto Sans JP", sans-serif; font-size: 12px; letter-spacing: .2em; color: var(--gold);
}
.poster h1 { font-size: clamp(40px, 6vw, 84px); font-weight: 900; letter-spacing: .02em; }
.poster h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 16px; margin: 20px 0 28px; max-width: 34em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 12px; margin: 32px 0 0; }
.hero__stats > div {
  flex: 1; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.hero__stats dt { font-size: 12px; color: var(--muted); }
.hero__stats dd { margin: 0; font-family: Outfit, sans-serif; font-weight: 800; font-size: 34px; color: var(--text); }
.hero__stats small { font-family: "Noto Sans JP"; font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }

/* セクション */
.section { padding: 88px clamp(16px, 4vw, 40px); }
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: 40px; }
.section__head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; }
.section__lead { color: var(--muted); margin: 10px 0 0; }

/* 事業 */
.biz { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.biz__item {
  position: relative; padding: 26px 24px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.biz__item::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
}
.biz__item svg { width: 44px; height: 44px; fill: none; stroke: var(--emerald); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.biz__no { position: absolute; right: 20px; top: 14px; font-family: Outfit, sans-serif; font-weight: 800; font-size: 44px; color: rgba(214, 178, 106, .14); }
.biz__item h3 { font-size: 20px; margin-top: 14px; }
.biz__item p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.slot-line { font-size: 13px !important; }

/* 作品ができるまで */
.flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.flow li { position: relative; padding: 22px 18px 22px 18px; background: var(--panel); border: 1px solid var(--line); }
.flow li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.flow li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.flow li + li { border-left: none; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -11px; top: 50%; z-index: 1; width: 20px; height: 20px;
  background: var(--panel); border-top: 1px solid var(--emerald); border-right: 1px solid var(--emerald);
  transform: translateY(-50%) rotate(45deg);
}
.flow__step { font-family: Outfit, sans-serif; font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.flow h3 { font-size: 18px; margin: 4px 0 6px; }
.flow p { margin: 0; color: var(--muted); font-size: 13px; }
.meter { margin-top: 40px; }
.meter__title { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.meter__bar { display: flex; height: 38px; border-radius: 999px; overflow: hidden; border: 1px dashed #4a5877; }
.meter__bar span {
  width: var(--w); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted);
}
.meter__bar span:first-child { background: rgba(52, 211, 154, .12); }
.meter__bar span:last-child { background: rgba(214, 178, 106, .10); }
.meter__note { margin: 8px 0 0; font-size: 13px; }

/* 販売先 */
.hub { display: grid; grid-template-columns: 180px repeat(3, 1fr); gap: 16px; align-items: stretch; }
.hub__core {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, rgba(52, 211, 154, .18), transparent 70%), var(--panel);
  border: 1px solid var(--line); font-family: Outfit, sans-serif; font-weight: 800; letter-spacing: .2em;
}
.hub__core img { border-radius: 50%; }
.store {
  position: relative; display: block; padding: 24px 22px; text-decoration: none; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, transform .15s;
}
.store:hover { border-color: var(--emerald); transform: translateY(-3px); }
.store::before {  /* ハブから伸びる線 */
  content: ""; position: absolute; left: -17px; top: 50%; width: 16px; height: 1px; background: var(--emerald);
}
.store h3 { font-family: Outfit, "Noto Sans JP", sans-serif; font-size: 22px; margin: 10px 0 4px; }
.store p { margin: 0; color: var(--muted); font-size: 14px; }
.store__tag { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--emerald); color: var(--emerald); }
.store__tag--r18 { border-color: var(--r18); color: var(--r18); }
.store__go { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--gold); }
.slot-link { border-style: dashed; cursor: default; }
.slot-link .store__go { color: var(--muted); font-weight: 500; }
.notice { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* 運営 */
.about { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.about__table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.about__table th, .about__table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.about__table th { width: 9em; color: var(--muted); font-weight: 500; }
.about__table tr:last-child th, .about__table tr:last-child td { border-bottom: none; }
.about__sns { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.about__sns-title { margin: 0; font-family: Outfit, sans-serif; letter-spacing: .2em; font-size: 12px; color: var(--emerald); }
.about__sns a { text-decoration: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.about__sns a:hover { border-color: var(--gold); color: var(--gold); }
.about__sns .slot { padding: 10px 14px; border-radius: 10px; }

/* お問い合わせ（フォームの部品の名前は static_v2 と同じ。見た目だけ v3 に合わせた） */
.to-form { color: var(--gold); text-decoration: none; font-weight: 700; }
.to-form:hover { color: var(--emerald); }
.contact-form { padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form form { max-width: 760px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.form-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.req { color: var(--r18); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(52, 211, 154, .15); }
.form-textarea { resize: vertical; min-height: 160px; line-height: 1.7; }
.form-select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.form-note { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.form-actions { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .btn { border: none; cursor: pointer; font-family: inherit; }
.cooldown-msg { font-size: 13px; color: var(--muted); }
.form-success {
  display: none; padding: 20px 24px; border-radius: 10px;
  background: rgba(52, 211, 154, .10); border: 1px solid rgba(52, 211, 154, .5); color: var(--emerald);
}
.form-error {
  display: none; margin-bottom: 22px; padding: 14px 18px; border-radius: 10px; font-size: 14px;
  background: rgba(224, 96, 122, .10); border: 1px solid rgba(224, 96, 122, .55); color: #f3a0b1;
}
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }

/* フッター */
.site-footer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 32px 16px; color: var(--muted); font-size: 13px; }
.site-footer img { border-radius: 50%; }

/* 幅が狭い時 */
@media (max-width: 960px) {
  .poster__inner { grid-template-columns: 1fr; padding-top: 24px; }
  .poster__figure { order: -1; }
  .poster__figure img { height: 460px; }
  .poster__giant { top: 40px; bottom: auto; right: 50%; transform: translateX(50%); font-size: clamp(90px, 24vw, 200px); }
  .poster__bg { background: var(--bg) url("assets/hero-bg-01-sp.webp") center -140px / auto 605px no-repeat; }  /* スマホは縦に切った版を上へずらし、机の脚の先を人物のブーツより上に＝人物が机の手前の床に立つ。題字の後ろは無地 */
  .poster__bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 15, 26, .93) 48%, rgba(10, 15, 26, .6) 66%, rgba(10, 15, 26, .25) 100%); }  /* 題字と説明文の後ろ（下半分）を暗く */
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow li, .flow li:first-child, .flow li:last-child { border-radius: var(--radius); border-left: 1px solid var(--line); }
  .flow li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -11px; transform: translateX(-50%) rotate(135deg); }
  .hub { grid-template-columns: 1fr 1fr; }
  .hub__core { grid-column: 1 / -1; flex-direction: row; padding: 16px; }
  .store::before { display: none; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: rgba(10, 15, 26, .97); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0, 0, 0, .5);
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 14px 4px; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .brand__ja { display: none; }
  .biz, .hub { grid-template-columns: 1fr; }
  .poster__figure img { height: 400px; }
  .poster__side, .poster__corner--br { display: none; }  /* 右下の角の印は数字のカードに重なるので出さない */
  .hero__stats dd { font-size: 26px; }
  .hero__stats > div { padding: 10px 12px; }
  .section { padding: 64px 16px; }
  .about__table th { width: 7em; }
  .contact-form { padding: 20px 16px; }
}
