/* ==========================================================
   #花火2026 フォトキャンペーン LP
   テーマ切替: app.js の CONFIG.theme（ya / yoi / ryo）
   ========================================================== */
.hb-root {
  --fw-bg: #0b1026;
  --fw-bg2: #0e1430;
  --fw-panel: #151d3e;
  --fw-line: #26305c;
  --fw-ink: #f3f1ea;
  --fw-sub: #d2d8ec;
  --fw-accent: #f0c75a;
  --fw-accent-ink: #211803;
  --fw-glow: rgba(240, 199, 90, .22);
}

.hb-root, .hb-root *, .hb-root *::before, .hb-root *::after { box-sizing: border-box; }
.hb-root {
  margin: 0;
  font-size: 20px;
  position: relative;
  isolation: isolate; /* 固定背景(z-index:-1)をこのブロック内に閉じ込める */
  background: var(--fw-bg);
  color: var(--fw-ink);
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  -webkit-font-smoothing: antialiased;
}
:where(.hb-root) a { color: var(--fw-accent); text-decoration: none; }
:where(.hb-root) a:hover { color: var(--fw-ink); }
.hb-btn-primary:hover { color: var(--fw-accent-ink); }
.hb-btn-ghost:hover, .hb-btn-panel:hover, .hb-btn-outline:hover { color: var(--fw-ink); }
.hb-btn-outline-accent:hover { color: var(--fw-accent); }
.hb-root ::selection { background: var(--fw-accent); color: #151005; }
.hb-root h1, .hb-root h2, .hb-root h3 { margin: 0; }

@keyframes hbFwPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- buttons ---------- */
.hb-btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.hb-btn-primary {
  background: var(--fw-accent);
  color: var(--fw-accent-ink);
  font-weight: 900;
  box-shadow: 0 8px 26px var(--fw-glow);
  padding: 14px 18px;
  border-radius: 999px;
  font-size: clamp(1.125rem, 1.08rem + 0.23vw, 1.25rem);
  flex: 1;
  min-width: 120px;
}
.hb-btn-panel {
  background: var(--fw-panel);
  color: var(--fw-ink);
  border: 1px solid var(--fw-line);
  padding: 14px 18px;
  border-radius: 999px;
  font-size: clamp(1.125rem, 1.08rem + 0.23vw, 1.25rem);
  flex: none;
  white-space: nowrap;
}
.hb-btn-ghost {
  border: 1px solid var(--fw-line);
  color: var(--fw-ink);
  background: color-mix(in oklab, var(--fw-panel) 60%, transparent);
}
.hb-btn-outline {
  background: transparent;
  border: 1px solid var(--fw-line);
  color: var(--fw-ink);
  border-radius: 999px;
}
.hb-btn-outline-accent {
  background: transparent;
  border: 1px solid var(--fw-accent);
  color: var(--fw-accent);
  border-radius: 999px;
}
.hb-btn-small { padding: 9px 18px; font-size: 18px; border-radius: 999px; }
.hb-btn-large { padding: 15px 34px; font-size: 20px; border-radius: 999px; }
.hb-btn-full { width: 100%; padding: 15px 18px; border-radius: 999px; font-size: 16px; }
.hb-hero-cta .hb-btn-primary { border-radius: 999px; box-shadow: 0 10px 34px var(--fw-glow); flex: none; min-width: 0; }

/* ---------- fixed night-city background ---------- */
.hb-bg-city {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hb-bg-city canvas, .hb-bg-city img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hb-bg-city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 20, .03) 0%, rgba(4, 6, 20, .72) 100%);
}

/* ---------- 投稿アクション(2大ボタン) ---------- */
.hb-section.hb-post-actions { padding: 24px var(--hb-gutter, clamp(20px, 6vw, 72px)) 0; }
.hb-post-actions-inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.hb-btn-cta { padding: 18px 34px; font-size: clamp(1.125rem, 0.989rem + 0.68vw, 1.5rem); border-radius: 999px; width: 100%; }
.hb-btn-accordion {
  border-radius: 4px;
  position: relative;
  z-index: 1;
  padding-right: 56px;
  transition: background .3s ease, border-color .3s ease;
}
.hb-btn-ghost.hb-btn-cta { border-color: var(--fw-accent); }
/* 開いた時: 底面を透明にして直下のフレームエリアと繋げる（後勝ちになるようここで定義） */
.hb-btn-accordion[aria-expanded="true"] {
  border-radius: 4px 4px 0 0;
  border-bottom-color: transparent !important;
  margin-bottom: -1px;
  background: var(--fw-panel);
}
.hb-tool-arrow {
  color: var(--fw-accent);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* アコーディオン：grid-rowsで滑らかに開閉 */
.hb-section.hb-tool-accordion {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: clamp(40px, 6vw, 64px);
  border-top: 0 solid transparent;
  border-bottom: 0 solid transparent;
  transition: grid-template-rows .5s ease, padding .5s ease, border-color .5s ease, border-width .5s ease;
}
.hb-section.hb-tool-accordion > .hb-container { min-height: 0; overflow: hidden; }
.hb-section.hb-tool-accordion.hb-open {
  grid-template-rows: 1fr;
  padding-top: var(--space-section, clamp(56px, 8vw, 100px));
  padding-bottom: var(--space-section, clamp(56px, 8vw, 100px));
  border-top: 1px solid var(--fw-accent);
  border-bottom: 1px solid var(--fw-accent);
}

/* ---------- header ---------- */
.hb-site-header {
  position: sticky;
  top: 10px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 720px;
  margin: calc(-1 * clamp(52px, 8vw, 100px)) auto 0;
  padding: 20px clamp(16px, 3vw, 32px);
  border-radius: 999px;
  background: color-mix(in oklab, var(--fw-bg) 90%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid color-mix(in oklab, var(--fw-accent) 70%, transparent);
}
.hb-site-nav {
  justify-content: center;
}
.hb-brand { display: flex; align-items: baseline; gap: 8px; color: var(--fw-ink); }
.hb-brand-name {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .08em;
}
.hb-brand-name em { font-style: normal; color: var(--fw-accent); }
.hb-brand-sub { font-size: 16px; color: var(--fw-sub); letter-spacing: .14em; }
.hb-site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.909rem + 0.45vw, 1.25rem);
  flex-wrap: wrap;
  font-size: clamp(0.875rem, 0.83rem + 0.23vw, 1rem);
  font-weight: 500;
}
.hb-site-nav > a { color: var(--fw-sub); }
.hb-site-nav > a:hover { color: var(--fw-ink); }
.hb-site-nav .hb-btn-primary { flex: none; min-width: 0; padding: 9px 18px; border-radius: 999px; font-size: 16px; box-shadow: none; color: var(--fw-accent-ink); }
@media (max-width: 600px) {
  /* 左右16pxの余白を確保（上マージンは基本ルールの負値を維持） */
  .hb-site-header { padding: 12px clamp(4px, 2vw, 16px); margin-right: 16px; margin-left: 16px; }
}

/* ---------- hb-hero ---------- */
.hb-hero {
  position: relative;
  overflow: hidden;
  /* 下パディングがタイトル画像と .hb-hero-lead の間の余白になる */
  padding: clamp(40px, 6vw, 72px) clamp(20px, 6vw, 72px) clamp(20px, 3vw, 32px);
  text-align: center;
}
/* ヒーロー暗幕: 上→下に透過。明るさは --hb-hero-shade で調整 */
.hb-hero-shade {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg, rgba(2, 3, 9, .85) 0%, rgba(2, 3, 9, 0) 100%); */
  /* opacity: var(--hb-hero-shade, .35); */
  pointer-events: none;
}
.hb-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hb-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 860px;
  margin: 0 auto;
}
/* ---------- hero title image ---------- */
.hb-root .hb-hero-title-img { margin: 0 auto; width: min(820px, 92%); }
.hb-hero-title-img img { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 24px rgba(4, 6, 20, .55)); }
@media (max-width: 620px) {
  .hb-root .hb-hero-title-img { width: min(820px, 100%); margin-top: -24px; }
}

.hb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--fw-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--fw-sub);
}
.hb-hero-badge .hb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fw-accent);
  animation: hbFwPulse 2.2s infinite;
}
.hb-hero-badge .hb-badge-icon {
  height: 30px;
  width: auto;
  display: block;
}
@media (max-width: 620px) {
  .hb-hero-badge { font-size: 14px; }
}
.hb-btn-icon {
  height: 2.6em;
  width: auto;
  display: inline-block;
  vertical-align: -0.8em;
  margin-right: 8px;
}
.hb-hero h1 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  line-height: 1.14;
  font-size: clamp(39px, 7.2vw, 76px);
  letter-spacing: .02em;
}
.hb-hero-tag {
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(20px, 3vw, 31px);
  color: var(--fw-accent);
  letter-spacing: .06em;
}
.hb-hero-lead {
  /* margin-bottom は .hb-site-header の負のtopマージンと同じ式に、メニューとの実際の間隔(28px)を足している */
  margin: 0 auto calc(clamp(52px, 8vw, 100px) + 28px);
  max-width: 560px;
  padding: 0 12px;
  /* 1行の実幅は約19.5em(＼+LIVEタグ+全角14文字+▼+／)。矢印とLIVEタグもem指定なので
     この比率は一定 → 左右padding込みで収まる 4.5vw にしてSPでも1行を保つ */
  font-size: clamp(14px, 4.5vw, 24px);
  white-space: nowrap;
  line-height: 2;
  font-weight: 700;
  text-align: center;
  color: var(--fw-sub);
  /* 上4本は文字の縁取り、最後の1本は背景に落とす広いグロー。
     第3値(ぼかし半径)で広がり、rgba末尾の値で濃さを調整する */
  text-shadow:
    -1px -1px 5px rgba(4, 6, 20, .7),
     1px -1px 5px rgba(4, 6, 20, .7),
    -1px  1px 5px rgba(4, 6, 20, .7),
     1px  1px 5px rgba(4, 6, 20, .7),
     0 4px 26px rgba(4, 6, 20, .5);
}
/* リンク色(--fw-accent)の中で白抜きにしたい範囲。a:hover でも白のまま保つ */
.hb-hero-lead-em { color: #fff; }
/* 矢印とLIVEタグは em 指定にして、.hb-hero-lead の文字サイズに追従させている */
.hb-hero-lead-arrow { display: inline-block; position: relative; top: 0; font-size: .7em; margin: 0 0 0 .25em; }
/* 放送情報エリアの .item_slider .item .tags .tag_live と同じ見た目に揃えている */
.hb-hero-lead-live {
  position: relative;
  isolation: isolate; /* 擬似要素(z-index:-1)を、この要素の背景より上・テキストより下に閉じ込める */
  overflow: hidden;   /* 回転する光の帯をバッジの角丸で切り抜く */
  display: inline-block;
  vertical-align: middle;
  margin: 0 .5em .15em .17em;
  padding: .5em .67em;
  border-radius: .33em;
  background: #CA171D;
  color: #fff;
  font-size: .6em;
  line-height: 1;
  font-weight: 700;
  text-shadow: none;
}
/* キラッとボーダー: ::before の回転する光の帯を ::after の面で覆い、
   はみ出す2pxのフチだけが光って見える。文字は負レイヤーより後に描画されるので隠れない */
.hb-hero-lead-live::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 1.6em;
  height: 3.4em; /* 中心からバッジの半対角(約2em)より長くして全周を舐めさせる */
  margin-left: -.8em;
  transform-origin: top center;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .95) 50%,
    rgba(255, 255, 255, 0) 100%);
  animation: hbLiveShine 4s linear infinite;
}
.hb-hero-lead-live::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px;
  border-radius: calc(.33em - 2px);
  background: #CA171D;
}
@keyframes hbLiveShine { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hb-hero-lead-live::before { animation: none; }
}
.hb-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---------- sections ---------- */
.hb-section { padding: clamp(56px, 8vw, 100px) clamp(20px, 6vw, 72px); }
.hb-container { max-width: 1120px; margin: 0 auto; }
.hb-container-narrow { max-width: 820px; }
.hb-section-alt {
  background: color-mix(in oklab, var(--fw-bg2) 82%, transparent);
  backdrop-filter: blur(2px);
  border-top: 1px solid var(--fw-line);
  border-bottom: 1px solid var(--fw-line);
}
.hb-section-alt .hb-container { max-width: 1120px; margin: 0 auto; }
.hb-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
#how .hb-section-head { margin-bottom: 34px; }
#terms .hb-section-head { margin-bottom: 26px; }
.hb-section-head h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(25px, 3.4vw, 39px);
  font-weight: 700;
}
.hb-h2-icon {
  height: 1.1em;
  width: auto;
  display: inline-block;
  vertical-align: -0.18em;
  margin-right: 10px;
}
#terms .hb-section-head h2 { font-size: clamp(20px, 3vw, 25px); }
@media (max-width: 620px) {
  .hb-h2-icon { height: 1.35em; }
}
.hb-kicker { font-size: clamp(0.75rem, 0.659rem + 0.45vw, 1rem); letter-spacing: .18em; color: var(--fw-accent); }
.hb-section-lead { margin: 0 0 32px; font-size: clamp(1rem, 0.909rem + 0.45vw, 1.25rem); line-height: 1.9; color: var(--fw-sub); }
.hb-section-note { margin: 0 0 30px; font-size: 16px; color: var(--fw-sub); }

/* ---------- 参加方法(2 STEPS) ---------- */
#how.hb-section { padding-bottom: 12px; }
.hb-flow { display: flex; flex-direction: column; align-items: center; gap: 0; }
.hb-step-row {
  width: 100%;
  border-radius: 22px;
  background: transparent;
  border: 1px solid var(--fw-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hb-step-row-1 {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.5vw, 36px);
  flex-wrap: wrap;
  padding: clamp(10px, 1.8vw, 16px) clamp(22px, 4vw, 44px);
}
.hb-step-row-2 { padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 44px); }
.hb-step2-head { display: flex; align-items: flex-start; gap: clamp(18px, 3.5vw, 36px); flex-wrap: wrap; }
.hb-step-disc {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--fw-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--fw-accent);
}
.hb-step-word { font-size: 13px; letter-spacing: .2em; font-weight: 700; }
.hb-step-num { font-family: 'Shippori Mincho', serif; font-size: 25px; font-weight: 700; line-height: 1; }
.hb-step-title { margin: 0; flex: 1; min-width: 220px; font-size: clamp(1rem, 0.644rem + 1.78vw, 1.5rem); font-weight: 800; }
.hb-inline-link { color: var(--fw-accent)!important; text-decoration: underline; text-underline-offset: 4px; }
.hb-step-sep { padding: 6px 0; color: var(--fw-accent); font-size: 24px; line-height: 1; }
.hb-step2-body { flex: 1; min-width: 260px; display: flex; flex-direction: column; }
.hb-ab-row { display: flex; align-items: center; gap: 12px; }
.hb-ab-icon {
  flex: none;
  width: clamp(1.75rem, 1.114rem + 3.18vw, 3.5rem);
  height: clamp(1.75rem, 1.114rem + 3.18vw, 3.5rem);
  border-radius: clamp(0.25rem, -0.023rem + 1.36vw, 1rem);
  background: var(--fw-accent);
  border: 1px solid var(--fw-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.125rem, 0.625rem + 2.5vw, 2.5rem);
  line-height: 1;
  padding-bottom: 4px;
  font-weight: 800;
  color: var(--fw-accent-ink);
}
.hb-ab-icon a { color: var(--fw-accent-ink); text-decoration: none; }
.hb-ab-title { margin: 0; font-size: clamp(1rem, 0.644rem + 1.78vw, 1.5rem); font-weight: 800; color: var(--fw-ink); }
.hb-or-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.hb-or-line { flex: 1; height: 1px; background: rgba(240, 199, 90, .4); }
.hb-or { font-size: 22px; font-weight: 700; color: var(--fw-accent); letter-spacing: .14em; }
.hb-b-block { display: flex; flex-direction: column; gap: 10px; }
.hb-b-banner { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.hb-b-img {
  flex: none;
  width: clamp(96px, 15vw, 180px)!important;
  height: clamp(120px, 18.75vw, 214px);
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.hb-b-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  min-width: 0;
}
.hb-b-line { font-size: clamp(1rem, 0.644rem + 1.78vw, 1.5rem); font-weight: 800; color: var(--fw-ink); white-space: nowrap; }
.hb-b-em { color: var(--fw-accent); }
.hb-b-tag {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(20px, 2.9vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  border-bottom: 6px solid var(--fw-accent);
  padding-bottom: 6px;
}
@media (max-width: 620px) {
  .hb-b-banner { flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0; }
  .hb-b-img { order: 1; width: calc(50% - 7px); height: auto; aspect-ratio: 5 / 6; }
  .hb-b-copy { order: 2; flex: none; width: 100%; }
}
.hb-guide-arrow {
  margin-top: -26px;
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--fw-accent);
  font-size: 48px;
  line-height: 1;
}
.hb-guide-arrow span {
  display: inline-block;
  animation: hbBob 1.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(4, 6, 20, .6));
}
@keyframes hbBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ---------- tool ---------- */
.hb-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.hb-tool-left { display: flex; flex-direction: column; gap: 36px; }
.hb-tool-right { display: flex; flex-direction: column; gap: 14px; }
.hb-tool-block { display: flex; flex-direction: column; gap: 12px; }
.hb-tool-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--fw-sub);
}
.hb-tool-grid .hb-tool-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.125rem, 1.034rem + 0.45vw, 1.375rem);
  letter-spacing: .1em;
  color: var(--fw-ink);
}
.hb-tool-num {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fw-accent);
  color: var(--fw-accent-ink);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  padding-bottom: 2px;
}
@media (max-width: 620px) {
  .hb-tool-num { padding-bottom: 0; }
}
.hb-frame-list { display: flex; flex-direction: column; gap: 12px; }
.hb-frame-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  cursor: pointer;
  background: var(--fw-panel);
  border: 1px solid var(--fw-line);
  color: var(--fw-ink);
  font-family: inherit;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.hb-frame-card.hb-selected {
  /* background: color-mix(in oklab, var(--fw-panel) 78%, var(--fw-accent)); */
  background: #f0d868; 
  border-color: var(--fw-accent);
  box-shadow: 0 0 0 1px var(--fw-accent), 0 10px 28px rgba(0, 0, 0, .35);
}
.hb-frame-card.hb-selected strong,
.hb-frame-card.hb-selected small{
 color: #151D3E;

}

.hb-frame-thumb {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  flex: none;
  background: #080b16 center / cover no-repeat;
}
.hb-frame-meta { display: flex; flex-direction: column; gap: 4px; }
.hb-frame-meta strong { font-size: clamp(1.125rem, 1.08rem + 0.23vw, 1.25rem); font-weight: 700; }
.hb-frame-meta small { font-size: clamp(0.75rem, 0.659rem + 0.45vw, 1rem); line-height: 1.6; color: var(--fw-sub); }
.hb-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 20px;
  border: 1.5px dashed var(--fw-line);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  background: color-mix(in oklab, var(--fw-panel) 55%, transparent);
}
.hb-drop-zone:hover { border-color: var(--fw-accent); }
.hb-drop-plus { font-size: 25px; color: var(--fw-accent); font-family: 'Shippori Mincho', serif; }
.hb-drop-zone strong { font-size: clamp(1.125rem, 1.08rem + 0.23vw, 1.25rem); }
.hb-drop-zone small { font-size: clamp(0.75rem, 0.659rem + 0.45vw, 1rem); color: var(--fw-sub); }
.hb-preview-canvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  border-radius: 18px;
  border: 1px solid var(--fw-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.hb-status-text { margin: 0; font-size: clamp(0.875rem, 0.83rem + 0.23vw, 1rem); color: var(--fw-sub); }
.hb-edit-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--fw-panel);
  border: 1px solid var(--fw-line);
}
.hb-edit-panel[hidden] { display: none; }
.hb-edit-row { display: flex; align-items: center; gap: 12px; }
.hb-edit-label { flex: none; width: 72px; font-size: 16px; font-weight: 700; color: var(--fw-sub); }
.hb-edit-row input[type="range"] { flex: 1; accent-color: var(--fw-accent); }
.hb-rot-val { flex: none; width: 38px; text-align: right; font-size: 16px; color: var(--fw-sub); }
.hb-edit-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hb-edit-hint { font-size: 16px; color: var(--fw-sub); }
.hb-action-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hb-action-row .hb-btn { line-height: 1.4; }
.hb-fine-print { margin: 0; font-size: clamp(0.875rem, 0.83rem + 0.23vw, 1rem); line-height: 1.8; color: var(--fw-sub); }

/* ---------- tool: ライトテーマ（生成り #F2E9DA × 紺 × 金） ----------
   #tool だけを明るい背景に反転させる。他セクションは暗いまま。
   仕組み: このセクション内でのみパレット変数を差し替えるので、
   var(--fw-ink) 等を使っている既存ルールは自動的に追従する。
   個別上書きは「変数だけでは足りない箇所」に限定している。 */
#tool {
  /* 反転後のパレット（括弧内は背景 #F2E9DA に対するコントラスト比） */
  --fw-ink:        #151D3E;             /* 13.7:1 — 見出し・本文 */
  --fw-sub:        #4A5578;             /*  6.1:1 — 補足・注釈 */
  --fw-panel:      #FFFFFF;             /* カード・編集パネル */
  --fw-line:       #E0D3BC;             /* 生成りに馴染む罫線 */
  --fw-accent:     #151D3E;             /* 面で使うアクセントは紺に。
                                           金のままだと背景と 1.3:1 で
                                           CTAボタンが背景に溶ける */
  --fw-accent-ink: #f0c75a;             /* 紺の面に載る文字は金（10.2:1） */
  --fw-glow:       rgba(21, 29, 62, .14); /* 金の光彩は明地で濁るため紺に */

  background: #F2E9DA;

  /* color は「計算後の値」が継承されるため、--fw-ink を差し替えただけでは
     色を自前で宣言していない要素（h2、.hb-drop-zone の文字）に効かない。
     それらは .hb-root で解決済みの白を継承してしまう。
     ここで color を再宣言して、#tool 配下の既定文字色を紺に付け替える。 */
  color: var(--fw-ink);
}
/* キャッチコピー系だけは金を残してサイト全体との連続性を保つ。
   #f0c75a は明地で 1.2:1 なので、同系色を暗く振った値を使う */
#tool .hb-kicker { color: #7A5F15; }    /* 5.0:1 */

/* 選択中フレームカード: 金地(#f0d868)だと生成り背景から浮かないので紺地に反転。
   これも紺の面なので文字は金（暗テーマの「金地×紺文字」をそのまま反転した形） */
#tool .hb-frame-card.hb-selected {
  background: #151D3E;
  box-shadow: 0 0 0 1px #151D3E, 0 8px 22px rgba(21, 29, 62, .18);
}
#tool .hb-frame-card.hb-selected strong,
#tool .hb-frame-card.hb-selected small { color: #f0c75a; }

/* 影: 黒の落ち影は明地で煤けるので紺寄りに薄く */
#tool .hb-preview-canvas { box-shadow: 0 16px 40px rgba(21, 29, 62, .18); }

/* サムネの下地。JSがcanvasを敷くまでの一瞬だけ見えるので、
   暗い #080b16 のままだと生成り背景に黒い四角が瞬く */
#tool .hb-frame-thumb { background-color: #E8DCC6; }

/* 選択ハイライト: 既定は紺地×ほぼ黒文字になり読めなくなる */
#tool ::selection { background: #151D3E; color: #f0c75a; }

/* ---------- gallery ---------- */
.hb-gallery-block { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.hb-gallery-block:last-child { margin-bottom: 0; }
.hb-pickup-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 14px;
}
.hb-pickup-card {
  flex: none;
  width: clamp(200px, 42vw, 250px);
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: var(--fw-panel);
  border: 1px solid var(--fw-line);
}
.hb-masonry { columns: 230px; column-gap: 14px; }
.hb-masonry-card {
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--fw-panel);
  border: 1px solid var(--fw-line);
}
.hb-gallery-img { width: 100%; display: block; background: #080b16 center / cover no-repeat; }
.hb-pickup-card .hb-gallery-img { aspect-ratio: 1 / 1; }
.hb-gallery-caption { display: flex; flex-direction: column; gap: 3px; padding: 10px 13px; }
.hb-gallery-caption strong { font-size: 16px; font-weight: 700; color: var(--fw-accent); }
.hb-gallery-caption small { font-size: 16px; color: var(--fw-sub); }

/* ---------- prize ---------- */
.hb-prize-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.hb-prize-inner .hb-kicker { letter-spacing: .22em; }
.hb-prize-inner h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(25px, 3.2vw, 31px);
  font-weight: 700;
}
.hb-prize-frame {
  width: 100%;
  padding: 3px;
  border-radius: 29px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #f7e7b0 0%, #c9a145 22%, #8a6a2f 45%, #f0c75a 68%, #a8873f 88%, #f7e7b0 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}
.hb-prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(16px, 3vw, 28px);
  border-radius: 26px;
  background: #f2e9da;
}
.hb-prize-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 22px;
}
.hb-prize-card + .hb-prize-card { border-left: 1px solid rgba(93, 67, 26, .22); }
@media (max-width: 620px) {
  .hb-prize-card + .hb-prize-card { border-left: none; border-top: 1px solid rgba(93, 67, 26, .22); }
  .hb-prize-card-badged { margin-top: 50px; }
}
.hb-prize-card img {
  width: 100%;
  max-width: 300px;
  border-radius: 14px;
  display: block;
  margin-top: auto;
  margin-bottom: auto;
}
.hb-prize-badge {
  padding: 9px 38px;
  line-height: 1;
  /* white-space: nowrap; */
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .06em;
  clip-path: polygon(0% 0%, 100% 0%, 94% 50%, 100% 100%, 0% 100%, 6% 50%);
}
.hb-prize-badge .hb-prize-num { font-size: 28px; }
.hb-prize-badge-gold { background: linear-gradient(180deg, #8a6a2f, #5d431a); color: #f7ecd2; }
.hb-prize-badge-navy { background: #2b3a6b; color: #f3f1ea; }
.hb-prize-badge-dark { background: #241c12; color: #f0c75a; }
.hb-prize-more {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--fw-accent)!important;
}
.hb-prize-more-arrow { font-size: 14px; line-height: 1; }
.hb-prize-name {
  font-size: clamp(25px, 2.6vw, 31px);
  font-weight: 800;
  line-height: 1.15;
  color: #2a2114;
}
.hb-prize-name small { font-weight: 700; display: block;line-height: 1.5; font-size: clamp(1rem, 0.909rem + 0.45vw, 1.25rem);color: #333;}
.hb-prize-name-deco { display: inline-flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: clamp(8px, 1.5vw, 16px); }
.hb-prize-name-stack { display: flex; flex-direction: column; align-items: center; }
.hb-prize-name-text { white-space: nowrap; }
.hb-prize-card .hb-prize-leaf { width: auto; max-width: none; height: 2.2em; border-radius: 0; margin-top: 0; margin-bottom: 0; flex: none; display: block; }
.hb-prize-card small { font-size: clamp(1rem, 0.909rem + 0.45vw, 1.25rem); color: #333; }
.hb-prize-cond { margin: 0; font-size: 16px; line-height: 2; color: var(--fw-sub); }

/* ---------- terms ---------- */
.hb-terms-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--fw-line); }
.hb-terms-list li {
  position: relative;
  padding: 16px 4px 16px 26px;
  border-bottom: 1px solid var(--fw-line);
  font-size: 16px;
  line-height: 1.9;
  color: var(--fw-sub);
}
.hb-terms-list li::before {
  content: "・";
  position: absolute;
  left: 4px;
  color: var(--fw-accent);
}

/* ---------- footer ---------- */
.hb-site-footer {
  padding: 36px clamp(20px, 6vw, 72px);
  border-top: 1px solid var(--fw-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.hb-site-footer .hb-brand-name small {
  font-size: 16px;
  color: var(--fw-sub);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
}
.hb-copyright { font-size: 16px; color: var(--fw-sub); }

/* ---------- hb-modal ---------- */
.hb-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 4, 10, .66);
  backdrop-filter: blur(6px);
}
.hb-modal[hidden] { display: none; }
.hb-modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: 22px;
  background: var(--fw-panel);
  border: 1px solid var(--fw-line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.hb-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hb-modal-head h3 { font-family: 'Shippori Mincho', serif; font-size: 24px; font-weight: 700; }
.hb-modal-close {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--fw-line);
  background: transparent;
  color: var(--fw-sub);
  font-size: 30px;
  cursor: pointer;
  font-family: inherit;
}
@media (max-width: 620px) {
  .hb-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-bottom: 4px;
    line-height: 1;
    font-size: 36px;
  }
}
.hb-modal-intro { display: flex; gap: 14px; align-items: center; }
.hb-modal-intro p { margin: 0; font-size: 16px; line-height: 1.9; color: var(--fw-sub); }
.hb-modal-thumb {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  flex: none;
  border: 1px solid var(--fw-line);
  background: #080b16 center / cover no-repeat;
}
.hb-share-wrap { display: flex; flex-direction: column; gap: 8px; }
.hb-share-wrap[hidden] { display: none; }
.hb-share-wrap small { font-size: 16px; text-align: center; color: var(--fw-sub); }
@media (max-width: 620px) {
  .hb-share-wrap small { text-align: left; }
}
.hb-divider { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.hb-divider span { flex: 1; height: 1px; background: var(--fw-line); }
.hb-divider em { font-style: normal; font-size: 16px; color: var(--fw-sub); }
.hb-step-flow { display: flex; flex-direction: column; gap: 12px; }
.hb-flow-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--fw-line);
  background: color-mix(in oklab, var(--fw-bg) 55%, transparent);
}
.hb-flow-no {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fw-accent);
  color: var(--fw-accent-ink);
  font-weight: 900;
  font-size: 20px;
}
.hb-flow-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hb-flow-body strong { font-size: 20px; }
@media (max-width: 620px) {
  .hb-flow-body strong { font-size: 17px; }
}
.hb-flow-body small { font-size: 14px; line-height: 1.4; color: var(--fw-sub); }
.hb-flow-body .hb-btn { align-self: center; width: 100%; max-width: 280px; }
@media (max-width: 620px) {
  .hb-flow-body .hb-btn { font-size: 15px; margin-top: 8px; }
}
.hb-saved-mark { font-size: 16px; font-weight: 700; color: var(--fw-accent); }
.hb-saved-mark[hidden] { display: none; }

/* ---------- hb-toast ---------- */
.hb-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 100;
  max-width: 88vw;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--fw-panel);
  border: 1px solid var(--fw-accent);
  color: var(--fw-ink);
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5);
}
.hb-toast[hidden] { display: none; }


/*上書き調整分----------------------------------*/

#page{
  overflow : clip!important;
}
.cp_terms *{
  color:#333;
}

/* 【】見出しを太字に */
.cp_terms .terms_lead {
  font-weight: bold;
}

/* 規約内リンク：共通CSS側の #page a:hover に負けて文字が消えるため色を固定 */
.cp_terms a,
.cp_terms a:link,
.cp_terms a:visited {
  color: #1155cc !important;
  text-decoration: underline;
}
.cp_terms a:hover,
.cp_terms a:focus,
.cp_terms a:active {
  color: #0b3d91 !important;
  text-decoration: underline !important;
  opacity: 1 !important;
}


.frame_header_jch .header_logo {
  width: auto!important;
  height: 90px!important;
  float: left;
  position: relative;
  margin-top: 0!important;
}
.frame_header_jch .header_logo img {
  width: auto!important;
  height: 100%!important;
}

@media screen and (max-width: 1030px) {
  .frame_header .header_logo { 
      height: 50px!important;

  }
  .hb-step-disc {
    position: absolute;
    top: -20px;
    left: -10px;
  }
  .hb-step-row {
    padding-left: 70px!important;
  }
  /* STEP02は中央寄せ内容なのでバッジ用の左余白を解除し、代わりにバッジ下端をよける上余白を確保する */
  .hb-step-row-2 {
    padding-left: clamp(22px, 4vw, 44px) !important;
  }
  .hb-step2-body {
    padding-top: 0;
  }

}
/* ---------- fukidashi ---------- */
.fukidashi {
  position: absolute;
  top:-45px;
  left:-20px;
  z-index: +1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5em 15px 1.5em 0;
  padding: 0 5px;
  width: 90px;
  height: 90px;
  line-height: 1.3;
  text-align: center;
  color: #FFF;
  font-size: 14px;
  font-weight: bold;
  background: #e93817;
  border-radius: 50%;
  box-sizing: border-box;
}

.fukidashi:before {
  content: "";
  position: absolute;
  bottom: -8px;
  right: -8px;
  margin-top: -15px;
  border: 15px solid transparent;
  border-left: 15px solid #e93817;
  z-index: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

/*===============================================================

	PC/SP/TABLET

===============================================================*/
.sp {
  display: none;
}

.tablet {
  display: none;
}

.sp {
  display: none;
}

.sp_tablet {
  display: none;
}

.none {
  display: none !important;
}

@media screen and (max-width: 1030px) {
  .pc {
    display: none;
  }
  .tablet,
  .pc_tablet,
  .sp_tablet {
    display: block;
  }
}
@media screen and (max-width: 800px) {
  .sp {
    display: block;
  }
  .pc_tablet,
  .tablet {
    display: none;
  }
}