
/* ===== 全ページ共通設定（フル背景） ===== */
html, body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  background: linear-gradient(180deg, #001d3d 0%, #000814 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* スマホレイアウト */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* カード風パネル */
.panel {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  text-align: center;
}

/* ボタン */
.btn {
  display: inline-block;
  width: 90%;
  max-width: 360px;
  background: linear-gradient(90deg, #007bff, #00b4d8);
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 14px 0;
  margin: 12px auto;
  border-radius: 30px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.btn:hover {
  opacity: 0.8;
}

/* 入力欄 */
input[type="email"], input[type="text"] {
  width: 90%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 20px;
}

/* プランカード */
.plans {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.plan {
  background: rgba(0,0,0,0.4);
  border: 1px solid #007bff;
  border-radius: 16px;
  padding: 20px;
  color: #fff;
}
.plan h2 {
  color: #00b4d8;
  margin-bottom: 6px;
}

/* エラーメッセージ */
.error {
  color: #ff6b6b;
  margin: 10px 0;
}

/* completeページの黒いボックス */
.dark-box {
  background-color: #000;
  color: #fff;
  padding: 60px 0;
  margin: 40px 0 20px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
}

/* complete.php用 */
.dark-box {
  background: #000;
  color: #fff;
  padding: 60px 0;
  border-radius: 12px;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  margin: 40px 0 20px;
}

/* register.php用（スマホフォーム調整） */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* テキストボックスを画面幅いっぱいに */
input[type="email"] {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border-radius: 10px;
  border: none;
  margin-top: 20px;
  margin-bottom: 25px;
  text-align: left;
  box-sizing: border-box;
}
input[type="email"]:focus {
  outline: 2px solid #00b4d8;
}

/* 登録ボタンも全幅・大きめ */
.btn {
  display: block;
  width: 100%;
  max-width: none;
  background: linear-gradient(90deg, #007bff, #00b4d8);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 20px;
  font-weight: bold;
  padding: 16px 0;
  margin-top: 20px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.btn:hover {
  opacity: 0.8;
}

.m-btn{
  display: block;
  width: 50%;
  max-width: none;
  background: linear-gradient(90deg, #596f87, #394143);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 10px;
  font-weight: bold;
  padding: 8px 0;
  margin-top: 10px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease;

}

.m-btn:hover {
  opacity: 0.8;
}

/* ===== plan.php スマホ最適化：6ヶ月払いカードを強調 ===== */
.plans {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 0 10px;
}

/* 通常カード */
.plan {
  width: 100%;
  max-width: 500px;
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* 通常タイトル */
.plan h2 {
  font-size: 22px;
  color: #00b4d8;
  margin-bottom: 10px;
}

/* 通常価格 */
.plan .price {
  font-size: 18px;
  color: #fff;
  margin-bottom: 25px;
}

/* 共通ボタン */
.plan .btn {
  display: block;
  width: 100%;
  font-size: 20px;
  padding: 18px 0;
  border-radius: 35px;
  background: linear-gradient(90deg, #007bff, #00b4d8);
  font-weight: bold;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.2s ease;
}
.plan .btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* ✨ 6ヶ月払いカードだけ特別に光らせる＋少し拡大 ✨ */
.plan.highlight {
  border: 2px solid #00b4d8;
  background: linear-gradient(180deg, #013b6b, #001a33);
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,180,216,0.5);
}

/* ===== iPhone Safari 背景切れ防止対応 ===== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #001d3d 0%, #000814 100%);
  z-index: -1;
  pointer-events: none;
}

/* ===== iPhone Safari の Safe Area 対応 ===== */
html, body {
  height: 100%;
  min-height: -webkit-fill-available; /* ← Safari対策 */
}

/* 背景レイヤー（iPhone完全対応） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #001d3d 0%, #000814 100%);
  z-index: -1;
  pointer-events: none;
}

/* Safariの余白対策（Safe Area埋め） */
@supports (padding: max(0px)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
    min-height: calc(100vh + env(safe-area-inset-bottom));
    background-color: transparent;
  }
}
.image-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}

/* 黒塗りレイヤーを画像専用に */
.result-image.blackout {
  width: 100%;
  display: block;
  filter: brightness(0);
  position: relative;
  z-index: 1; /* 背面に配置 */
}

/* 中央テキスト（画像の上に重ねる） */
.error-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ff4d4d;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  background: none;
  padding: 0;
  z-index: 2; /* ← 黒塗りより前面に表示 */
}

/* ==== complete.php スマホ対応・黒塗り安定版 ==== */
.image-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 9; /* ← 画像が暴れないよう固定比率に */
}

.result-image.blackout {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← iPhoneで画像が巨大化しない */
  display: block;
  filter: brightness(0) blur(1px); /* ← 黒塗り＋ほんのりブラー */
  -webkit-filter: brightness(0) blur(1px); /* ← Safari対策 */
  z-index: 1;
  position: relative;
}

/* テキストを前面に（Safari対応） */
.error-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ff4d4d;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  z-index: 5; /* Safariで確実に前面にする */
  background: none;
  pointer-events: none;
}

/* iPhone Safariのズーム防止 */
@supports (-webkit-touch-callout: none) {
  .result-image.blackout {
    max-height: 100%;
  }
}

/* ===== 共通ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(90deg, #000814, #001d3d);
  color: #fff;
  padding: 10px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  overflow-x: hidden;
}

.header-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.flag img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

.footer-links {
  text-align: center;
  font-size: 13px;
  color: #ccc;
  line-height: 2.0;
  margin-top: 0;
}

.footer-links a {
  display: inline-block; /* 各リンクをブロック扱いにして余白をつけやすく */
  color: #ddd !important;
  text-decoration: none !important;
  margin: 6px 0; /* 各リンクの上下に余白 */
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.footer-links a:visited {
  color: #ddd !important;
}

.footer-links a:hover,
.footer-links a:active {
  opacity: 0.7;
  color: #fff !important;
}

.copy {
  text-align: center;
  font-size: 13px;
  color: #ccc;
  line-height: 2.0;
  margin-top: 0;
}

.file-block {
  margin-bottom: 36px;
  text-align: center;
}

.file-name {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 5px;
}

.file-size {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
}

video,
img {
  width: 85%;
  max-width: 300px;
  border-radius: 10px;
  display: block;
  margin: 0 auto 10px;
}

.unsupported {
  color: #888;
  font-size: 13px;
}

.btn-download {
  display: inline-block;
  background: linear-gradient(90deg, #007bff, #00b4d8);
  color: white;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn-download:hover {
  opacity: 0.8;
}

.footer-links {
  text-align: center;
  font-size: 13px;
  color: #ccc;
  line-height: 2.0;
  margin-top: 50px;
}

.footer-links a {
  color: #ddd !important;
  text-decoration: none !important;
  margin: 6px 0;
  display: inline-block;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.footer-links a:visited {
  color: #ddd !important;
}

.footer-links a:hover,
.footer-links a:active {
  opacity: 0.7;
  color: #fff !important;
}

.error-text {
  color: #ff6b6b;
  font-size: 14px;
}

.stripelogo{
    width:100%; 
    height:auto;
    margin: 0 auto;
    padding-top: 40px;
}