/* === 全体レイアウト === */
* {
    box-sizing: border-box;
}

/* === 全体コンテナ（横幅制限＋中央揃え） === */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: auto;
    width: 100%;
    padding: 0 16px;
    background: #ffeef2;
    color: #333;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 32px;
}

/* === フォーム要素 === */
.error-message {
    background-color: #ffe0e0;
    border: 1px solid #ff4d4d;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
}
.success-message {
    background-color: #e0ffe0;
    border: 1px solid #4dff4d;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
}

/* === フォーム要素 === */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

textarea {
    height: 300px;
    resize: vertical;
}

/* ヘッダー：タイトルと認証ボタンの横並び */
.header-bar {
    display: flex;
    background-color: #B13B5F;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.eye-catcher img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.page-title {
    margin: 0;
    flex: 1;
    min-width: 240px;
    font-size: 1.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 12px 0;
    padding: 8px 0;
    color: white;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.auth-form-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form-inline input,
.auth-buttons .btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

.auth-form {
    width: 100%;
}

.auth-link {
    margin-top: 0.5rem;
    text-align: center;
}

.auth-link a {
    color: #0066cc;
    text-decoration: none;
}

/* ナビゲーション形式 */
.auth-nav {
    display: flex;
    gap: 0.75rem;
}

.nav-btn {
    background-color: #ffffff;
    color: #0066cc;
    border: 2px solid #0066cc;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-btn:hover,
.nav-btn.active {
    background-color: #0066cc;
    color: white;
}

.gen-panel,
.transaction-panel,
.auth-panel {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    clear: both;
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #ffe0e9;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.preview-panel {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    clear: both;
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #ffe0e9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* 背景選択オプション：表示/非切替用 */
.background-option {
    margin-top: 1rem;
}

/* 無料生成ボタン（btn-secondary）のスタイル補完 */
.btn-secondary {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background-color: #0056b3;
}

/* 動画生成ボタン（btn-generate）のスタイル補完 */
.btn-generate {
    background-color: #ffd700;
    color: black;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.95rem;
    width: 30%;
    transition: background 0.2s;
}

.btn-generate:hover {
    background-color: #ff4d4d;
}

/* 退会ボタン（btn-unsubscribe）のスタイル補完 */
.btn-unsubscribe {
    background-color: #a30808;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-unsubscribe:hover {
    background-color: #550712;
}

/* === ファイルアップロード（共通） === */
.file-upload {
    border: 2px dashed #aaa;
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
}

.file-upload.dragover {
    background: #e0f7ff;
    border-color: #007bff;
}

.file-upload.has-file {
    border: 2px solid #28a745;
    background: #f0fff4;
}

.file-upload.has-error {
    border-color: #dc3545;
    background: #fff5f5;
}

.file-icon {
    font-size: 48px;
    color: #aaa;
    margin-bottom: 8px;
}

.file-upload.has-file .file-icon {
    color: #28a745;
}

.file-upload.has-error .file-icon {
    color: #dc3545;
}

.file-name {
    font-weight: bold;
    font-size: 14px;
    color: #28a745;
    margin: 8px 0;
    word-break: break-all;
    max-width: 100%;
}

.file-name.error {
    color: #dc3545;
}

.file-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin: 8px 0;
    display: none;
    border: 1px solid #ddd;
}

.file-upload.has-file .file-preview {
    display: block;
}

/* === アイコン（SVG） === */
.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.icon-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    display: none; /* has-file のときのみ表示 */
}

.icon-close svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.file-upload.has-file .icon-close {
    display: block;
}

.file-upload:hover .icon-close {
    display: block;
}

/* === ボタン === */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    min-width: 160px;
    white-space: nowrap;
}

.btn:hover {
    background: #0056b3;
}

.btn-generate:disabled,
.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}



/* === 画像・動画DDエリアを横並び（新規追加）=== */
.file-upload-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.file-upload-container > div {
    flex: 1;
    min-width: 280px;
}

.file-upload-container .file-upload {
    min-height: 400px;
}

/* === 結果表示エリア === */
#result {
    margin-top: 24px;
    padding: 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#video-player {
    max-width: 100%;
    margin-top: 16px;
    border-radius: 6px;
}

/* === メッセージ === */
.error {
    color: #dc3545;
    font-weight: bold;
}

.success {
    color: #28a745;
    font-weight: bold;
}

.warning {
    color: #e0a800;
    font-weight: bold;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.icon-warn,
.icon-success,
.icon-loader {
    vertical-align: middle;
}

.icon-warn {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.icon-success {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.icon-loader {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* === 認証フォーム === */
.auth-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 24px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.auth-form h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 24px;
}

.auth-form input,
.auth-form select,
.auth-form button {
    margin-bottom: 12px;
}

.auth-form button {
    background: #28a745;
    width: 100%;
}

.auth-form button:hover {
    background: #1e7e34;
}

.auth-link {
    text-align: center;
    margin-top: 24px;
}

.auth-link a {
    color: #007bff;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.trial-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #e0a800;
    color: white;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
}

.trial-badge.free {
    background: #28a745;
}

.file-hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* === フォーム行（横並び） === */
.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row > .form-col {
    flex: 1;
    min-width: 180px;
}

.form-row label {
    margin-bottom: 4px;
}

/* === クレジットエリア === */
.credit-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff3e0;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-weight: bold;
}

.credit-info strong {
    color: #e65100;
}

.btn-secondary {
    background: #ff9800;
}

.btn-secondary:hover {
    background: #f57c00;
}

/* === プレビュー動画 === */
#previewVideo {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    background: #000;
}

#previewStatus {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* === プレビュー（ドロップゾーン内） === */
.file-upload #imagePreview,
.file-upload #bgFilePreview,
.file-upload #videoPreview {
    display: none; /* 初期状態は非表示 */
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin: 8px 0;
    background: #000;
}

/* ファイル選択時に表示 */
.file-upload.has-file #imagePreview,
.file-upload.has-file #bgFilePreview,
.file-upload.has-file #videoPreview {
    display: block;
}

/* プレビューアイコンを隠す */
.file-upload.has-file #imageIcon,
.file-upload.has-file #bgFileIcon,
.file-upload.has-file #videoIcon {
    display: none;
}

/* テキストも隠す（既存の .has-file ルールで隠される） */
.file-upload.has-file #imageText,
.file-upload.has-file #bgFileText,
.file-upload.has-file #videoText {
    display: none;
}

/* dialog 要素の基本スタイル */
dialog {
  border: none;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ボタンの間隔調整 */
dialog menu {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
dialog button {
  padding: 8px 16px;
  border-radius: 6px;
}

/* エラーメッセージリスト */
.error-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
    color: #dc3545;
}
.error-list li {
    display: flex;
    align-items: flex-start; /* 左揃えで縦方向中央 */
    margin-bottom: 0.75rem;
}
.error-list .error-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    margin-top: 0.25rem; /* リスト項目の先頭と合わせる */
    stroke: currentColor;
}
.error-list .error-text {
    word-break: break-word;
}

/* === トランザクションテーブル === */
.transaction-info {
    margin-top: 24px;
}

.transaction-info h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.transaction-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    background-color: #fff;
    max-height: 900px;
}

.transaction-table-container table {
    width: 100%;
    min-width: 800px; /* ← ここを追加！最低幅を確保 */
    border-collapse: collapse;
}

.transaction-table-container th,
.transaction-table-container td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
    white-space: nowrap; /* ← ここを追加！改行防止 */
}

.transaction-table-container th {
    background: #d8a7a7;
    font-weight: bold;
}

.transaction-table-container td {
    font-size: 0.9rem;
    color: #555;
}

.transaction-table-container a {
    color: #1976d2;
    text-decoration: none;
}

.transaction-table-container a:hover {
    text-decoration: underline;
}

/* === Stripe Modal === */
.stripe-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(40, 44, 52, 0.72);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.stripe-modal.show {
    display: flex;
}

.stripe-modal-content {
    background: #ffe0e9;
    width: min(600px, 92vw);
    max-width: 100%;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.16);
    position: relative;
}

.close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f4f8;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #4a5568;
    padding: 0;
    line-height: 1;
}

.close:hover {
    background: #e2e8f0;
    color: #2d3748;
    transform: rotate(90deg);
}

.modal-title {
    margin: 0 0 20px;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    text-align: center;
    line-height: 1.3;
    word-break: keep-all;
    font-weight: 600;
}

.plan-cards-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

.plan-card {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e6f3ff 0%, #d9ecff 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    min-height: 220px;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #fff9e6 0%, #fff1cc 100%);
}

.plan-card.selected {
    transform: scale(1.02);
    box-shadow: 0 16px 32px rgba(99,91,255,0.24);
    background: linear-gradient(135deg, #fff9e6 0%, #fff1cc 100%);
}

.plan-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 16px;
    transition: transform 0.25s ease;
}

.plan-card:hover .plan-icon,
.plan-card.selected .plan-icon {
    transform: scale(1.1);
}

.plan-credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
    margin: 0;
}

.credits-text {
    font-size: clamp(1.25rem, 3.5vw, 1.8rem);
    font-weight: 700;
    line-height: 1.1;
    word-break: keep-all;
    text-align: center;
}

.credits-unit {
    font-size: clamp(0.875rem, 2.2vw, 1rem);
    color: #5d6d7e;
    margin-top: 2px;
    text-align: center;
}

.plan-price {
    font-size: clamp(1rem, 2.8vw, 1.25rem);
    font-weight: 700;
    color: #4a6cf7;
    margin: 0 0 8px;
    text-align: center;
}

/* 表紙コンテンツ／シンボル動画(GIF) */
.example-panel,
.explain-iframe-panel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 16px;
  padding: 0px; /* ← パディングなし */
  box-sizing: border-box; /* ✅ パディング含めて幅計算 */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px; /* 画像がないときも枠を保つため */
}
.example-preview {
  width: 100%;
  height: auto;
  max-width: 900px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}
/* 表紙コンテンツ／About */
.explain-panel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 32px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.explain-panel h3 {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
}
.locale-wrapper {
  display: flex;
  flex-wrap: nowrap;
  flex: 1;
  max-width: 400px;
  margin: 0;
}
.locale-wrapper select[name="about_locale"] {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23555" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 12px center;
  background-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  margin-bottom: 0; /* ← 上書き */
}
.explain-iframe {
  width: 100%;
  min-height: 1200px;
  border: none;
  background: #fff;
  display: block;
  overflow-y: auto;
  margin-top: 8px;
}
/* 表紙コンテンツ／SNS */
.sns-panel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 16px;
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  justify-content: center;
}
.btn-sns {
    display: flex;
    padding: 0.6rem 1rem;
    box-sizing: border-box;
    border-radius: 0.2rem;
    width: 9rem;
    color: white;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    border-radius: 30px;
}
.btn-sns svg {
    fill: #fff;
}
.btn-sns span {
    display: inline-block;
    width: 6rem;
    text-align: center;
}
.btn-sns:hover {
    transform: scale(1.1);
}
.btn-x {
    background-color: #111319;
}
.btn-instagram {
    background-color: hsl(32, 93%, 49%);
}

/* Footer */
.footer-panel {
  background: /* headerと同じ色 */ #B13B5F; /* 例：headerの背景色 */
  color: #fff;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.footer-link {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}
.footer-btn {
  background: /* headerのボタン色 */ #e74c3c;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.footer-btn:hover {
  background: #c0392b;
}
.footer-iframe {
  width: 100%;
  min-height: 400px;
  border: none;
  background: #fff;
  display: block;
  margin-top: 0;

}

/* Previews */
.preview-panel h3 {
    text-align: center;
    margin: 24px 0 16px 0;
}
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 16px;
}
.preview-card {
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s;
}
.preview-card:hover {
    transform: scale(1.02);
}
.preview-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.preview-card.nsfw {
    background: #000;
    color: #fff;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
.preview-card.nsfw .nsfw-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #B13B5F;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.preview-card.nsfw .nsfw-overlay span {
    font-size: 24px;
    margin-bottom: 16px;
}
.preview-card.nsfw .nsfw-overlay button {
    padding: 8px 24px;
    background: #666;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.preview-card.nsfw .nsfw-overlay button:hover {
    background: #888;
}
.preview-card.nsfw .nsfw-video {
    display: none;
}
.preview-card.nsfw.nsfw-card-active {
    background: #000;
}
.preview-card.nsfw.nsfw-card-active .nsfw-overlay {
    display: none;
}
.preview-card.nsfw.nsfw-card-active .nsfw-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Google OAuth */
.btn-google {
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #d2e1fb;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
    padding: 6px 12px;
    margin: 0 4px;
    cursor: pointer;
    border-radius: 4px;
}

/* ここからレスポンシブ対応：768px以下の画面で縦並び */
@media (max-width: 768px) {
    .header-bar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding-bottom: 16px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    .eye-catcher {
        flex: 0 0 auto;
    }
    .eye-catcher img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 50%;
    }
    .page-title {
        flex: 1;
        min-width: 120px;
        margin-bottom: 8px;
    }
    .auth-buttons {
        justify-content: center;
        width: 100%;
        margin-bottom: 16px;
    }
    .auth-form-inline {
        flex-direction: column;
        width: 100%;
    }
    .auth-form-inline input {
        width: 100%;
    }
    .auth-form-inline button {
        width: 100%;
    }
    .auth-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 8px;
        margin-bottom: 16px;
    }
    .auth-nav .nav-btn {
        flex: 1 0 auto;
        width: auto;
    }
    .file-upload-container,
    .file-upload {
        min-height: 250px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;    }
    .credit-info {
        flex-direction: column;
        gap: 0.25rem;
    }
    .credit-info > * {
        width: 100%;
        text-align: center;
    }
    .credit-info button {
        width: auto;
        margin: 0 auto;
    }
    .btn,
    .btn-secondary,
    .btn-generate {
        width: 100%;
    }
    .stripe-modal-content {
        width: 90vw;
        padding: 24px 20px;
    }
    .plan-cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
        flex-direction: column;
    }
    .plan-card {
        flex-direction: row;
        text-align: left;
        padding: 16px;
        width: 100%;
        min-height: auto;
    }
    .plan-icon {
        width: 60px;
        height: 60px;
        margin-right: 16px;
        margin-bottom: 0;
    }
    .plan-card h3 {
        margin: 0 0 4px 0;
        font-size: 1.1rem;
    }
    .plan-card p {
        font-size: 0.95rem;
    }
    .close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
    /* 表紙コンテンツ／SNS */
    .sns-panel {
      flex-wrap: nowrap;
      padding: 12px;
    }
   .sns-btn {
      padding: 8px 20px;
      font-size: 13px;
    }
}
/* レスポンシブ対応：ここまで */
