@charset "utf-8";

/* ===== 変数設定 ===== */
:root {
  --max-width: 1100px; /* コンテンツの最大幅 */
  --padding: 20px;     /* 左右の余白 */
  --text-color: #333;
  --theme-font: "Shippori Mincho", "Yu Mincho", serif; /* 和風な雰囲気用 */
}

/* ===== 基本設定 ===== */
* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text-color);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }

img { max-width: 100%; height: auto; vertical-align: bottom; }

/* 共通クラス: コンテンツを中央に寄せる箱 */
.inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding);
  position: relative;
}

.text-center { text-align: center; }

/* セクション共通の余白 */
.section-wrap {
  padding: 80px 0;
}
.bg-gray { background-color: #f9f9f9; }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #eee;
  backdrop-filter: blur(5px);
}

.nav-inner {
  display: flex;
  justify-content: center; /* メニューを中央寄せ */
  padding-top: 15px;
  padding-bottom: 15px;
}

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

/* ===== HERO (メインビジュアル) ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: clamp(600px, 85vh, 900px); /* 高さを確保 */
  overflow: hidden;
}

/* 背景画像設定 */
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4)), /* 下部を少し暗く */
    url("../images/hero.png");
  background-size: cover;
  background-position: center top;
  z-index: 1;
}

/* コンテンツ配置用レイヤー */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto; /* 中央配置 */
}

/* 各パーツの配置 */
.store-badges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.store-badges .badge { height: 44px; }
.store-badges .badge.gp { height: 56px; }

.hero-title-wrap {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
}
.hero-title {
  max-width: 500px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.hero-actions {
  position: absolute;
  bottom: 30px;
  right: 20px;
}

/* ===== VIDEO ===== */
.promo-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: #000;
}
.promo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== OVERVIEW (WIX風デザイン) ===== */
/* ★追加：Overviewだけ、全体の幅（1100px）の制限を解除して広くする */
#overview .inner {
  max-width: 1600px; /* または 100% にすると画面端まで広がります */
}

.overview-grid {
  display: grid;
  /* ★変更：画像の比率を上げる（1.2fr → 1.6fr） */
  grid-template-columns: 2.0fr 1fr; 
  gap: 15px;
  align-items: center;
}

.overview-media img {
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.overview-text {
  text-align: center;
}

.overview-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  color: #aaa;
  margin: 0;       /* ← 下の余白を完全になくしました */
  line-height: 1;  /* ← 行自体の高さもキュッと詰めました */
  letter-spacing: 0.05em;
}

.overview-sub {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.overview-desc {
  text-align: center; /* ← 左揃えから中央揃えに変更 */
  display: block;     /* ← ブロック全体を使って中央に配置 */
  font-family: var(--theme-font);
  font-size: 15px;
  line-height: 2.2;
  margin-bottom: 20px;
}

.overview-free {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 30px;
}

/* ===== PARALLAX (忍城) ===== */
.parallax-section {
  width: 100%;
  height: 75vh;
  min-height: 600px;
  background-image: url("../images/oshiro_bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  
  /* 中身の配置設定 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative; /* ボタンの配置基準になります */
}

.parallax-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3); /* 少し暗さを強めました */
  z-index: 1;
}

/* コンテンツ（文字とロゴ） */
.parallax-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: var(--max-width);
  /* ボタンを外に出したので、少し上にずらしてバランスを取ります */
  margin-bottom: 60px; 
}

.parallax-text {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: bold;
  margin: 0 0 10px; /* 線との距離 */
  text-shadow: 0 4px 10px rgba(0,0,0,0.7);
  line-height: 1.5;
}

/* ★追加：細い横線 */
.line {
  width: 100%;            /* 画面いっぱいまで伸ばすなら100% */
  max-width: 700px;       /* さすがに長すぎるので上限を設定 */
  height: 1px;            /* 線の太さ */
  background: rgba(255, 255, 255, 0.7); /* 白（少し透明） */
  margin: 0 auto 40px;    /* 上下の余白：上0、下40px */
}

/* ★変更：ロゴを大きく */
.parallax-logo img {
  width: 500px;           /* ご希望の大きさへ */
  max-width: 90%;         /* スマホでは画面幅の90%に縮小 */
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

/* ★変更：ボタンを底に固定 */
.btn.bottom-btn {
  position: absolute;     /* 自由配置モード */
  bottom: 50px;           /* 底から50pxの位置 */
  left: 50%;              /* 左から50%の位置 */
  transform: translateX(-50%); /* 自身の幅の半分だけ左に戻す（完全中央寄せ） */
  z-index: 3;
  min-width: 160px;
  text-align: center;
  background: rgba(0,0,0,0.6); /* 背景を少し濃くして読みやすく */
}

/* スマホ用設定 */
.sp-only { display: none; }
@media (max-width: 768px) {
  .sp-only { display: block; }
  .parallax-section { background-attachment: scroll; }
  
  /* スマホではロゴを少し控えめにしないと圧迫感がすごいので調整（任意） */
  .parallax-logo img { width: 300px; }
}

/* ===== CHARACTER ===== */

/* Characterも幅広で見せたいので、制限を緩めます */
#character .inner {
  max-width: 1400px;
}

.character-grid {
  display: grid;
  /* 左(テキスト1) : 右(画像2.2) の比率 */
  grid-template-columns: 1fr 2.2fr;
  gap: 30px; /* 隙間 */
  align-items: center;
}

/* テキストエリアの設定 */
.character-text {
  text-align: center; /* 中央揃え */
  padding: 0 20px;
}

/* 画像の設定 */
.character-media img {
  display: block;
  width: 100%;
  height: auto;
  /* キャラクター画像は影をつけない方が自然なことが多いですが、
     もし浮き上がらせたい場合は以下のコメントアウトを外してください */
  /* filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); */
}

/* ===== スマホ対応 ===== */
@media (max-width: 900px) {
  .character-grid {
    grid-template-columns: 1fr; /* 縦積みに変更 */
    gap: 50px;
  }
  
  /* スマホでは画像を先に（上に）見せたい場合 */
  .character-media { order: 1; }
  .character-text  { order: 2; }
}

/* ===== PARALLAX APP (2つ目のパララックス) ===== */

/* このセクション専用の背景画像を設定 */
.parallax-app {
  background-image: url("../images/bg_characters.jpg");
  /* 必要に応じて高さを調整してください */
  height: 80vh; 
  min-height: 400px;
}

/* ストアバッジを底に並べて配置 */
.app-links {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
  width: 100%;
  justify-content: center;
  align-items: center;
}

/* バッジ画像のサイズ調整（共通クラスを利用しつつ微調整） */
.app-links img.badge {
  height: 50px; /* 少し大きめに見やすく */
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6)); /* 影をつけて背景から浮き立たせる */
  transition: transform 0.2s;
}

.app-links img.badge.gp {
  height: 64px; /* GooglePlayは余白が大きいので少し大きく設定 */
}

/* ホバー時に少し動く演出（クリックしたくなるように） */
.app-links a:hover img {
  transform: scale(1.05);
}

/* スマホ対応 */
@media (max-width: 768px) {
  /* スマホではバッジを少し小さく、縦並びにしても良いかも */
  .app-links img.badge { height: 40px; }
  .app-links img.badge.gp { height: 52px; }
}

/* ===== VISIT & GPS ===== */

/* ここも幅広で見せます */
#visit-gps .inner {
  max-width: 1200px;
}

.visit-grid {
  display: grid;
  /* 左(画像) : 右(テキスト) の比率を 1:1 にしてバランス重視 */
  grid-template-columns: 1fr 1fr; 
  gap: 50px;
  align-items: center;
}

/* 画像の設定 */
.visit-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* ふんわり影 */
}

/* テキストの設定 */
.visit-text {
  text-align: center;
}

/* スマホ対応 */
@media (max-width: 900px) {
  .visit-grid {
    grid-template-columns: 1fr; /* 縦積み */
    gap: 30px;
  }
}

/* ===== PARALLAX TOWN (3つ目のパララックス) ===== */
.parallax-town {
  background-image: url("../images/bg_town.gif");
  height: 80vh;
  min-height: 400px;
  image-rendering: pixelated;
  
  /* ↓もしGIFの位置がズレるようなら、この行を追加して位置調整してもOKです */
  background-position: center bottom; 
}

/* ★追加：このセクションだけ、暗いエフェクト（幕）を消す設定 */
.parallax-town::before {
  display: none;
}

/* .parallax-town の中にある画像（img）だけ、なめらか表示に戻す設定 */
.parallax-town img {
  image-rendering: auto; /* ← これで通常モードに戻ります */
}

/* ※ .app-links の設定は既に書いてあるので、自動的にボタンが底に配置されます */

/* ===== SUPPORTERS ===== */

#supporters .inner {
  max-width: 1200px;
}

.supporters-grid {
  display: grid;
  /* 左(テキスト) : 右(画像) = 1 : 1.4 くらいの比率 */
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
}

/* テキストの設定 */
.supporters-text {
  text-align: center; /* 項目全体は中央寄せ */
}

/* 画像の設定 */
.supporters-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* スマホ対応 */
@media (max-width: 900px) {
  .supporters-grid {
    grid-template-columns: 1fr; /* 縦積み */
    gap: 30px;
  }
  
  /* スマホでは画像を先に（上に）見せたい場合は以下の2行を追加 */
  .supporters-media { order: 1; }
  .supporters-text  { order: 2; }
}

/* ===== GALLERY ===== */
.gallery-section {
  width: 100%;
  overflow: hidden; /* はみ出した部分を隠す */
  background: #222; /* 背景は黒っぽく */
  padding: 0;
}

.gallery-track {
  display: flex;
  width: max-content; /* 中身の長さに合わせる */
  /* 40秒かけてゆっくり左へ流れるアニメーション */
  animation: loop-slide 40s linear infinite;
}

/* 画像の設定 */
.gallery-track img {
  height: 50vh;       /* 画面の半分の高さで統一 */
  min-height: 300px;  /* 最小サイズ */
  width: auto;        /* 横幅はなりゆき */
  display: block;
}

/* アニメーションの定義 */
@keyframes loop-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 全体の長さの50%（つまり1セット分）動いたら0に戻る */
    transform: translateX(-50%);
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .gallery-track img {
    height: 35vh; /* スマホなら少し小さめに */
  }
}

/* ===== BOTTOM BADGES ===== */
.bottom-badges {
  padding: 60px 0;
  background: #fff;
  position: relative;
  text-align: center;
}
/* ここでは position: absolute を解除して、普通に表示します */
.bottom-badges .app-links {
  position: static;
  transform: none;
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* ===== FOOTER ===== */
.footer-section {
  background: #000;
  color: #fff;
  padding: 60px 0 20px;
  font-size: 14px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 50px;
  align-items: flex-start; /* 上揃え */
}

/* --- 左側：情報エリア --- */
.footer-info {
  flex: 1;
  max-width: 450px;
}
.footer-dept {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 25px;
}
.footer-note {
  color: #ffcc00; /* 注意書きの黄色 */
  font-size: 13px;
  line-height: 1.6;
}

/* --- 右側：フォームエリア --- */
.footer-form-wrap {
  flex: 1.2; /* 少し広めに */
}
.footer-heading {
  font-size: 16px;
  margin: 0 0 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid #444;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 左右2カラム */
  gap: 15px;
}

/* 入力欄（青背景・白文字）のデザイン */
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #4fa3d8; /* スクショに近い明るめの青 */
  border: none;
  border-radius: 4px;
  padding: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}
/* プレースホルダー（入力前の文字）の色 */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

/* 左列（縦並び） */
.form-inputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 右列（メッセージ＋ボタン） */
.form-message {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}
.form-message textarea {
  flex-grow: 1; /* 高さを自動でいっぱいに広げる */
  resize: vertical; /* 縦方向のみリサイズ可 */
  min-height: 120px;
}

/* 送信ボタン */
.btn-send {
  align-self: flex-end; /* 右端に寄せる */
  background: #2c82c9;  /* 少し濃い青 */
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 30px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
}
.btn-send:hover {
  background: #fff;
  color: #2c82c9;
}

/* --- 最下部 --- */
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between; /* 左右に配置 */
  align-items: center;
  color: #aaa;
  font-size: 12px;
}
.privacy-link {
  text-decoration: underline;
  color: #aaa;
}
.privacy-link:hover { color: #fff; }

/* --- スマホ対応 --- */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column; /* 縦積みに */
    gap: 40px;
  }
  .contact-form {
    grid-template-columns: 1fr; /* フォームも1列に */
  }
  .form-message textarea {
    height: 150px; /* スマホでは高さを指定 */
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s;
}

/* 透明ボタン */
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.8);
  color: #fff;
  background: rgba(0,0,0,0.3);
}
.btn-ghost:hover { background: rgba(0,0,0,0.5); }

/* 枠線ボタン（黒） */
.btn-border {
  border: 1px solid #333;
  color: #333;
  padding: 12px 40px;
}
.btn-border:hover {
  background: #333;
  color: #fff;
}

/* 塗りつぶしボタン（黒） */
.btn-black {
  background: #333;
  color: #fff;
  border: 1px solid #333;
  padding: 12px 40px;
}
.btn-black:hover {
  background: #fff;
  color: #333;
}

/* ===== FOOTER ===== */
footer {
  padding: 30px;
  text-align: center;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #888;
}

/* ===== アニメーション ===== */
.fadein {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s, transform 1s;
}
.fadein.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* ===== レスポンシブ (スマホ対応) ===== */
@media (max-width: 768px) {
  .section-wrap { padding: 50px 0; }
  
  /* メニューを小さく */
  .nav { gap: 10px; }
  .nav a { font-size: 12px; }

  /* ヒーローエリア調整 */
  .hero-section { height: 600px; }
  .store-badges { 
    top: auto; bottom: 120px; /* タイトルの上に移動 */
    left: 50%; transform: translateX(-50%);
  }
  .hero-title-wrap { bottom: 60px; }
  .hero-actions { 
    top: 15px; right: 15px; bottom: auto; /* 右上に移動 */
  }

  /* グリッドを縦積みに */
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .overview-text { padding: 0 10px; }
}

/* ===== PRIVACY POLICY PAGE ===== */

.policy-page {
  padding: 80px 0;
  background: #f9f9f9;
  min-height: 80vh; /* 中身が少なくてもフッターが浮かないように */
}

/* ページタイトル */
.page-title {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 32px;
  margin-bottom: 60px;
  color: #333;
}

/* 本文エリア（読みやすく幅を狭める） */
.policy-content {
  max-width: 800px; /* 横に広がりすぎないように制限 */
  margin: 0 auto;
  background: #fff;
  padding: 60px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  line-height: 2.0;
  font-size: 15px;
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section h3 {
  font-size: 18px;
  border-left: 4px solid #333; /* 左にアクセントの線 */
  padding-left: 12px;
  margin-bottom: 15px;
  background: #f4f4f4;
  padding: 8px 12px;
}

.policy-section ul {
  padding-left: 20px;
  margin: 10px 0;
}
.policy-section ul li {
  list-style: none;
  margin-bottom: 5px;
}

.policy-footer {
  margin-top: 60px;
  text-align: right;
  border-top: 1px solid #eee;
  padding-top: 20px;
  font-size: 14px;
  color: #666;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .policy-content {
    padding: 30px 20px;
  }
  .page-title {
    font-size: 24px;
    margin-bottom: 40px;
  }
}