
:root{
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-border-radius-pill: 0;

  /* ✅ sticky header 高さ（ここを触るだけで全体が追従） */
  --header-h: 100px;

  /* 色 */
  --night-0: #070c22;
  --night-1: #0b1230;
  --night-2: #141c45;
  --dawn-0:  #2a315f;

  /* アクセント（境界線・文字） */
  --text: rgba(255,255,255,0.92);
  --text-muted: rgba(255,255,255,0.70);
  --border: rgba(255,255,255,0.25);
  --border-soft: rgba(255,255,255,0.18);
}

/* =========================
   GLOBAL BACKGROUND + SNAP
   ========================= */
html{
  min-height: 100%;
  background:
    radial-gradient(
      circle at 95% 95%,
      rgba(255, 190, 120, 0.45) 0%,
      rgba(255, 170,  90, 0.28) 10%,
      rgba(255, 140,  60, 0.14) 20%,
      rgba(255, 140,  60, 0.06) 30%,
      rgba(0, 0, 0, 0.00) 40%
    ),
    linear-gradient(
      to bottom,
      var(--night-0) 0%,
      var(--night-1) 20%,
      var(--night-2) 30%,
      var(--dawn-0) 80%,
      #800000 95%,
      #cd5c5c 100%
    );

  background-repeat: no-repeat;
  background-size: 100% 100%;

  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body{
  margin: 0;
  min-height: 100vh;
  background: transparent;
  overflow-y: auto;
  color: var(--text);
}

/* =========================
   PANEL (full screen sections)
   ========================= */
.panel{
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;

  display: flex;
  align-items: center;

  padding-top: var(--header-h);
  padding-bottom: 48px;
  box-sizing: border-box;
}

.panel > .container{
  width: 100%;
}

/* =========================
   HEADER (sticky + glass)
   ========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
}

.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.12);
  backdrop-filter: blur(6px);
  z-index:-1;
}

.header-top{
  background: transparent;
  display: flex;
  align-items: center;
  min-height: var(--header-h);
}

.site-header .navbar-brand img{
  height: 100px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}

.site-header .navbar-brand,

.site-header a{
  color: var(--text);
  text-decoration: none;
}

/* =========================
   HERO
   ========================= */
.hero{
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: relative;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;

  background: url("logo_large.png") right center / contain no-repeat;
  opacity: 0.22;
  pointer-events: none;

  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0,0,0,1) 25%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to left,
    rgba(0,0,0,1) 25%,
    rgba(0,0,0,0) 100%
  );
}


.hero > *{
  position: relative;
  z-index: 1;
}

.hero, .hero h1, .hero p{
  color: var(--text);
}

.hero .btn.btn-primary{
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* footer panel は panel の “中央寄せ” を無効化して縦設計にする */
.footer-panel{
  align-items: stretch; /* panelのalign-items:centerを打ち消す */
}

/* footer 内部を「縦100%」にして上下を確定 */
.footer-inner{
  min-height: calc(100vh - var(--header-h) - 48px); /* panelのpadding-bottom分を引く */
  display: flex;
  flex-direction: column;
}

/* 上は真ん中に置く */
.footer-main{
  flex: 1;                /* 余白を全部ここに集める */
  display: flex;
  flex-direction: column;
  justify-content: center; /* 縦中央 */
}

/* 下は常に最下部 */
.footer-bottom{
  margin-top: auto;       /* 最下部へ押し下げ */
}

/* =========================
   TYPOGRAPHY (white theme)
   ========================= */
.panel h1,
.panel h2,
.panel h3,
.panel h4,
.panel h5{
  color: #fff;
}

.panel p,
.panel li{
  color: rgba(255,255,255,0.90);
}

.panel .small{
  color: var(--text-muted);
}

/* Links */
.panel a{
  color: rgba(255,255,255,0.90);
}
.panel a:hover{
  color: #fff;
  text-decoration: underline;
}

/* =========================
   BORDERS (bootstrap override)
   ========================= */
.border{
  border-color: var(--border) !important;
}
.border-top{
  border-top-color: var(--border-soft) !important;
}

/* =========================
   GLOBAL FIXED BACKGROUND IMAGE
   ========================= */
html::before{
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;          /* 横長を活かすため2倍幅 */
  height: 75vh;         /* 上半分だけ表示 */

  background-image: url("/static/main_bg01.png");
  background-repeat: repeat-x;
  background-size: 50% auto;   /* 画像を50%サイズで使用 */
  background-position: 0 0;

  opacity: 0.20;
  pointer-events: none;
  z-index: -1;

  /* ゆっくり左に流す */
  animation: bg-pan-left 600s linear infinite;

  /* 馴染ませる微調整（任意） */
  filter: saturate(0.9) contrast(1.05);
}

/* 横スクロール用アニメーション */
@keyframes bg-pan-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* =========================================================
   DOC PAGES (privacy / terms / support)
   panelを使わない文章ページ用
   ========================================================= */

.doc-page{
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 72px;
}

/* 読みやすい横幅 */
.doc-page .container{
  max-width: 920px;
}

/* 文章カードっぽく、でも重くしない */
.doc-head,
.doc-body{
  border: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.10);
  backdrop-filter: blur(4px);
  padding: 24px;
}

/* 見出しエリア */
.doc-head{
  margin-bottom: 16px;
  text-align: center;
}

.doc-head h1{
  margin: 0 0 8px 0;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: 0.02em;
}

.doc-lead{
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 本文の文字組 */
.doc-body{
  line-height: 1.85;
  font-size: 1rem;
}

.doc-body p{
  margin: 0 0 14px 0;
  color: rgba(255,255,255,0.92);
}

.doc-body b,
.doc-body strong{
  color: #fff;
}

/* セクション見出し */
.doc-body h2{
  margin: 28px 0 12px;
  font-size: 1.25rem;
  padding-left: 10px;
  border-left: 3px solid rgba(255,255,255,0.35);
}

.doc-body h3{
  margin: 22px 0 10px;
  font-size: 1.1rem;
}

/* リスト */
.doc-body ul{
  margin: 10px 0 18px;
  padding-left: 1.2rem;
}

.doc-body li{
  margin: 6px 0;
  color: rgba(255,255,255,0.90);
}

/* リンク */
.doc-page a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 付記（日付など） */
.doc-meta{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* モバイル微調整 */
@media (max-width: 576px){
  .doc-head,
  .doc-body{
    padding: 18px;
  }
}

/* LINE button */
.btn-line {
  background-color: #06C755;   /* LINE公式グリーン */
  border-color: #06C755;
  color: #fff;
}

.btn-line:hover,
.btn-line:focus {
  background-color: #05b14c;   /* 少し濃く */
  border-color: #05b14c;
  color: #fff;
}

.btn-line:active {
  background-color: #049943;
  border-color: #049943;
}
