/* style.css: ティザーサイト用カスタムCSS（Tailwind完全廃止・全てCSSで統一） */

:root {
  --key-color: #ddd;
  --text-color: #ddd;
  --font-main: 'Mamelon', '游ゴシック体', 'Yu Gothic', 'Meiryo', sans-serif;
}

/* --- buttonリセットCSS --- */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  outline: none;
  box-shadow: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Mamelon-3-Hi-Regular.otfを全体フォントに指定 */
@font-face {
  font-family: 'Mamelon';
  src: url('Mamelon-3-Hi-Regular.otf') format('opentype');
  font-display: swap;
}

/* body, html全体を黒背景・中央寄せ・スクロール禁止 */
html, body {
  background: #000;
  min-height: 100dvh;
  min-width: 100dvw;
  margin: 0;
  padding: 0;
  overflow: hidden; /* 縦横スクロール禁止 */
  width: 100dvw;
  height: 100dvh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  color: var(--text-color);
}

/* 中央ティザー部分のスマホサイズを強制・中央寄せ */
.teaser-container {
  background: #000;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* PC時: 縦基準で横幅自動（アスペクト比0.48, 例: 400:834） */
  height: 100vh;
  width: calc(100vh * 0.48);
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
  transition: width 0.5s, height 0.5s;
  /* safearea対応 */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* スマホ・タブレット対応（レスポンシブ） */
@media (max-width: 480px) {
  .teaser-container {
    width: 100dvw;
    height: 100dvh;
    max-width: 100dvw;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
    /* safearea対応 */
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
}

/* PC時、中央配置（bodyのflexで中央寄せされるのでmargin:autoは冗長だが保険で残す） */
@media (min-width: 481px) {
  .teaser-container {
    margin: auto;
  }
}

/* 背景動画（object-fit:cover, 全面配置） */
.teaser-bg-video {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* 右上ロゴ（横幅15%） */
.teaser-logo {
  position: absolute;
  top: 3%;
  right: 3%;
  width: 15%;
  height: auto;
  z-index: 2;
  pointer-events: auto;
}

/* 中央上部縦書きテキスト */
.teaser-vertical-text {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  z-index: 2;
  text-align: start;
  background: rgba(0,0,0,0.0);
  /* 横幅は内容に応じて可変 */
  padding: 0.2em 0.4em;
  font-family: var(--font-main);
}
.teaser-vertical-text .digit {
  text-combine-upright: all;
}
.teaser-vertical-text .teaser-page > p {
  margin: 0;
  margin-right: 0.7em; /* 2つ目以降の段落に右余白 */
  padding: 0;
}
.teaser-vertical-text .teaser-page > p:first-child {
  margin-right: 0; /* 先頭段落は余白なし */
}

/* 縦幅の小さいスマホ用：縦書きテキストの文字サイズを小さく＆独自改行 */
.br-mobile-short {
  display: none !important;
}

@media (max-height: 610px) {
  .teaser-vertical-text {
    font-size: 1.05rem;
  }
  .br-mobile-short {
    display: inline !important;
  }
}

/* フェードイン・フェードアウト用 */
.is-hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.show-block {
  display: block !important;
  opacity: 0 !important;
  filter: blur(8px) !important;
  transform: scale(1.05) !important;
  pointer-events: none !important;
}
.fade-in {
  opacity: 1 !important;
  filter: blur(0) !important;
  transform: scale(1) !important;
  transition: opacity 1.5s cubic-bezier(.4,0,.2,1), filter 1.5s cubic-bezier(.4,0,.2,1), transform 1.5s cubic-bezier(.4,0,.2,1);
  pointer-events: auto;
}
.fade-in.btn-delay {
  transition-delay: 2.5s;
}
.fade-in.btn-delay-slow {
  transition-delay: 7s;
}
.fade-out {
  opacity: 0 !important;
  filter: blur(8px) !important;
  transform: scale(1.05) !important;
  transition: opacity 1s cubic-bezier(.4,0,.2,1), filter 1.5s cubic-bezier(.4,0,.2,1), transform 1.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

/* 下部中央ボタン */
.teaser-btns {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 2;
}
.teaser-main-btn {
  width: 40%;
  min-width: 120px;
  max-width: 300px;
  padding: 0.4em 0;
  border-radius: 0.7em;
  border: 2px solid var(--key-color);
  background: rgba(0,0,0,0.7);
  color: var(--text-color);
  font-size: 1.2rem;
  font-family: 'Mamelon', '游ゴシック体', 'Yu Gothic', 'Meiryo', sans-serif;
  text-align: center;
  cursor: pointer;
  /* transition: background 0.2s, color 0.2s; */
  margin: 0 0.5em;
}
.teaser-main-btn:hover, .teaser-main-btn:active {
  background: var(--key-color);
  color: #000;
}
.teaser-main-btn:disabled {
  opacity: 0.5;
  background: rgba(180,180,180,0.3);
  color: #aaa;
  cursor: not-allowed;
  border-color: #aaa;
}

.teaser-title {
  color: var(--text-color);
  font-size: 2.2rem;
  font-weight: bold;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.05em;
}
.teaser-desc {
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.6;
}

/* =========================
   submit.html専用スタイル
   ========================= */
.submit-center {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  height: 100%;
  min-height: 0;
  padding-top: 5vh;
  padding-bottom: 5vh;
  box-sizing: border-box;
  gap: 1.2em;
}
.submit-answers {
  flex: 1 1 auto;
  background: rgba(30,30,30,0.7);
  border-radius: 1.2em;
  padding: 1.2em 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.18);
}
.submit-question {
  text-align: center;
  margin-bottom: 0.5em;
}
.submit-question-main {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 0.2em;
  letter-spacing: 0.04em;
}
.submit-question-sub {
  font-size: 0.72rem;
  color: #bbb;
  margin-top: 0.1em;
  letter-spacing: 0.01em;
}
.submit-form {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  align-items: center;
  margin-top: auto;
}
.submit-input {
  font-family: var(--font-main);
  font-size: 1.08rem;
  padding: 0.5em 0.9em;
  border: 2px solid var(--key-color);
  background: rgba(0,0,0,0.7);
  color: var(--text-color);
  outline: none;
  margin-bottom: 0;
  box-sizing: border-box;
  transition: border-color 0.2s;
  width: 80%;
}
.submit-input:focus {
  border-color: #fff;
}

/* 送信完了モーダル */
.submit-modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.submit-modal-inner {
  padding: 2em 2.5em;
  text-align: center;
}
.submit-modal-message {
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.floating-text {
  /* 2行構成用の余白や装飾はここで */
  line-height: 1.2;
  margin-bottom: 0.2em;
}
.floating-text .ft-body,
.floating-text .ft-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.floating-text .ft-name {
  font-size: 0.92em;
  color: #bbb;
  margin-top: 0.1em;
}

/* ここに他のカスタムスタイルが続く */
