@charset "UTF-8";

/* ==========================================================================
   エアライン友の会 - 共通スタイルシート (common.css)
   デザインシステム: Pattern A「スカイ・ダイナミック」
   基準フォントサイズ: 最小16px以上厳守 / レスポンシブ対応 (320px〜)
   ========================================================================== */

/* --- 1. CSSリセット & 基本設定 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #0f172a;
  background-color: #f8fafc;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* リンクとボタンのリセット */
a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- 2. 共通レイアウト & コンテナ --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 64px;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-lead {
  font-size: 1.0625rem;
  color: #334155;
  margin-top: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* --- 3. スクロール連動フェードイン (IntersectionObserver + CSS transition) --- */
/*
   軽量・高互換性を優先し、スクロール位置を毎回監視する方式や
   CSS Scroll-driven Animation は使用しません。
*/
.fade-in {
  opacity: 0;
  transform: translate3d(0, 15px, 0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* IntersectionObserver が要素を検知したら JavaScript で付与 */
.fade-in.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 動きを減らす設定の環境では、アニメーションを行わず即時表示 */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- 4. ファーストビュー (FV) & ヘッダー --- */
.fv-header-band {
  width: 100%;
  background-color: #0284c7;
  padding: 20px 16px;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.25);
}

/* デフォルト（幅が狭いとき）：縦に並んで2行になる */
.fv-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px; /* 縦方向の適度な余白 */
  text-align: center;
}

.fv-site-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.3);
  margin: 0;
  white-space: nowrap;
}

.btn-fv-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #f59e0b;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 900;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-fv-cta:hover {
  background-color: #d97706;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}

/* 幅が広いとき（900px以上）：ギャップ100pxで横並び・センタリング */
@media (min-width: 900px) {
  .fv-header-inner {
    flex-direction: row;
    gap: 100px;
    padding: 15px 32px;
  }

  .fv-site-title {
    font-size: 3rem; /* 広い画面用の文字サイズ */
  }
}

.divider-band {
  width: 100%;
  height: 30px;
  background-color: #0f172a;
}

.view-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3.135 / 1;
  overflow: hidden;
  background-color: #000;
  transform: translateZ(0);
}

.window-bg-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.window-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('outwindow.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  will-change: transform, opacity;
}

.window-bg1 {
  animation: zoomForwardLoop 14s linear infinite;
}

.window-bg2 {
  animation: zoomForwardLoop 14s linear infinite -7s;
}

@keyframes zoomForwardLoop {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.cockpit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
}

.fv-footer-band {
  width: 100%;
  background-color: #0284c7;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.fv-footer-title {
  font-weight: 900;
  font-size: 2rem;
  color: #f8fafc;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.3);
}

@media (min-width: 768px) {
  .fv-footer-title {
    font-size: 3rem;
  }
}

.fv-footer-subtitle {
  font-size: 1.0625rem;
  color: #e0f2fe;
  font-weight: 700;
}

/* --- 5. 説明セクション (About) --- */
.about-section {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.about-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
  border: 1px solid #e2e8f0;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .about-card {
    padding: 48px;
  }
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.about-highlight-icon {
  width: 48px;
  height: 48px;
  background-color: #e0f2fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.about-highlight-title {
  font-size: 1.375rem;
  font-weight: 900;
  color: #0369a1;
}

.about-text {
  font-size: 1.0625rem;
  color: #334155;
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .about-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-mini-card {
  background-color: #f8fafc;
  border-radius: 16px;
  padding: 24px 20px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.feature-mini-icon {
  font-size: 2.25rem;
  margin-bottom: 12px;
  display: inline-block;
}

.feature-mini-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.feature-mini-desc {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
}

/* --- 6. イベントセクション (Events) --- */
.events-section {
  background-color: #f8fafc;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.event-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.12);
  border-color: #bae6fd;
}

.event-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.event-badge {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: #0369a1;
  background-color: #f0f9ff;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.4;
}

.event-desc {
  font-size: 1rem;
  color: #475569;
  line-height: 1.7;
}

.proposal-box {
  margin-top: 48px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.25);
}

@media (min-width: 768px) {
  .proposal-box {
    padding: 40px 48px;
  }
}

.proposal-title {
  font-size: 1.375rem;
  font-weight: 900;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .proposal-title {
    font-size: 1.75rem;
  }
}

.proposal-text {
  font-size: 1.0625rem;
  color: #e0f2fe;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto;
}

/* --- 7. 入会特典セクション (Benefits & Photo Snapshots) --- */
.benefits-section {
  background-color: #ffffff;
  overflow: hidden;
}

.benefits-box {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 24px;
  padding: 40px 20px;
  border: 1px solid #bae6fd;
}

@media (min-width: 768px) {
  .benefits-box {
    padding: 60px 48px;
  }
}

.benefits-header {
  text-align: center;
  margin-bottom: 40px;
}

.benefit-crown-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f59e0b;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.benefit-main-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0369a1;
  margin-bottom: 12px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .benefit-main-title {
    font-size: 2rem;
  }
}

.benefit-subtext {
  font-size: 1.0625rem;
  color: #334155;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto;
}

.syame-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
  justify-items: center;
}

@media (min-width: 640px) {
  .syame-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.syame-card {
  background-color: #ffffff;
  padding: 14px 14px 28px 14px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 280px;
  width: 100%;
}

.syame-card:hover {
  transform: translateY(-8px) scale(1.03) rotate(0deg) !important;
  box-shadow: 0 20px 36px rgba(2, 132, 199, 0.25);
  z-index: 10;
}

@media (min-width: 640px) {
  .syame-card-1 { transform: rotate(-4deg); }
  .syame-card-2 { transform: translateY(-12px) rotate(2deg); }
  .syame-card-3 { transform: rotate(5deg); }
}

.syame-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background-color: #0f172a;
}

.syame-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.syame-card:hover .syame-img-wrap img {
  transform: scale(1.06);
}

.syame-caption {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* --- 8. スペーサー画像 --- */
.spacer-image-container {
  width: 100%;
  background-color: #0f172a;
  overflow: hidden;
}

.spacer-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 1;
}

.spacer-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --- 9. 会員募集セクション (Join & Membership) --- */
.join-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f0f9ff 100%);
}

.join-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .join-overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.join-info-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  text-align: center;
}

.join-info-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px auto;
}

.join-info-label {
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}

.join-info-value {
  font-size: 1.375rem;
  font-weight: 900;
  color: #0f172a;
}

.join-info-price {
  font-size: 2rem;
  color: #0284c7;
  font-weight: 900;
}

.join-info-tax {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
}

.steps-container {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 36px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.06);
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .steps-container {
    padding: 48px;
  }
}

.steps-title {
  text-align: center;
  font-size: 1.375rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 32px;
}

.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  list-style: none;
}

@media (min-width: 768px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-item {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  position: relative;
}

.step-number {
  display: inline-block;
  background-color: #0284c7;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.step-item-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.step-item-desc {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
}

/* --- 10. LINE登録＆QRコードセクション --- */
.line-register-box {
  background: #ffffff;
  border: 2px solid #06c755;
  border-radius: 20px;
  padding: 36px 20px;
  box-shadow: 0 8px 28px rgba(6, 199, 85, 0.12);
  margin-bottom: 48px;
  text-align: center;
}

@media (min-width: 768px) {
  .line-register-box {
    padding: 48px;
  }
}

.line-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #06c755;
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 900;
  padding: 8px 20px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.line-box-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 12px;
}

.line-box-desc {
  font-size: 1.0625rem;
  color: #334155;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 28px auto;
}

.qr-code-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.qr-image {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 16px;
  padding: 12px;
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  object-fit: contain;
}

.btn-line-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #06c755;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 900;
  padding: 16px 36px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.35);
  transition: all 0.25s ease;
}

.btn-line-link:hover {
  background-color: #05b04b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.5);
}

/* --- 11. 申し込みフォーム (Form) --- */
.form-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 36px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
  .form-card {
    padding: 48px;
  }
}

.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.badge-required {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-optional {
  background-color: #94a3b8;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.form-control {
  width: 100%;
  font-size: 1.0625rem;
  font-family: inherit;
  padding: 14px 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background-color: #ffffff;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.form-control.is-invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-error-msg {
  font-size: 1rem;
  color: #dc2626;
  font-weight: 700;
  margin-top: 6px;
  display: none;
}

.form-error-msg.is-active {
  display: block;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.terms-accordion {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  margin-top: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.terms-accordion summary {
  font-size: 1rem;
  font-weight: 700;
  color: #0369a1;
  padding: 14px 18px;
  cursor: pointer;
  background-color: #f1f5f9;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terms-accordion summary::-webkit-details-marker {
  display: none;
}

.terms-accordion summary::after {
  content: '▼';
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.terms-accordion[open] summary::after {
  transform: rotate(180deg);
}

.terms-content {
  padding: 18px;
  font-size: 1rem;
  color: #334155;
  line-height: 1.8;
  max-height: 220px;
  overflow-y: auto;
  border-top: 1px solid #e2e8f0;
}

.terms-list {
  padding-left: 20px;
}

.terms-list li {
  margin-bottom: 8px;
}

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  user-select: none;
  padding: 8px 0;
}

.checkbox-wrap input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: #0284c7;
  cursor: pointer;
  flex-shrink: 0;
}

/* チェックボックスのエラー時スタイル追加 */
.checkbox-wrap input[type="checkbox"].is-invalid {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
  border-radius: 2px;
}

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #0284c7;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  padding: 18px 24px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  transition: all 0.25s ease;
  margin-top: 32px;
}

.btn-submit:hover {
  background-color: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
}

.form-global-error {
  display: none;
  background-color: #fef2f2;
  border: 2px solid #ef4444;
  color: #b91c1c;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.6;
}

.form-global-error.is-active {
  display: block;
}

/* --- 12. 特定商取引法に基づく表記 (Legal Disclosure) --- */
.legal-accordion {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  margin-top: 48px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.legal-accordion summary {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  padding: 18px 24px;
  cursor: pointer;
  background-color: #f8fafc;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-accordion summary::after {
  content: '▼';
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.legal-accordion[open] summary::after {
  transform: rotate(180deg);
}

.legal-content {
  padding: 24px;
  border-top: 1px solid #e2e8f0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.legal-table th, .legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  line-height: 1.7;
}

.legal-table th {
  width: 32%;
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.legal-table td {
  color: #0f172a;
}

@media (max-width: 639px) {
  .legal-table th, .legal-table td {
    display: block;
    width: 100%;
  }
  .legal-table th {
    border-bottom: none;
    padding-bottom: 4px;
    background-color: transparent;
    color: #0369a1;
  }
  .legal-table td {
    padding-top: 0;
  }
}

/* --- 13. お問い合わせ・ご質問ボックス (Inquiries Box) --- */
.inquiry-contact-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 2px solid #bae6fd;
  border-radius: 16px;
  padding: 24px 20px;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
}

@media (min-width: 640px) {
  .inquiry-contact-card {
    flex-direction: row;
    text-align: left;
    padding: 28px 32px;
    justify-content: space-between;
  }
}

.inquiry-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: #e0f2fe;
  color: #0284c7;
  font-size: 1.75rem;
  border-radius: 14px;
  flex-shrink: 0;
}

.inquiry-text-wrap {
  flex-grow: 1;
}

.inquiry-title {
  font-size: 1.125rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}

.inquiry-desc {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
}

.inquiry-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
  transition: all 0.25s ease;
  text-align: center;
  max-width: 100%;
}

.inquiry-email-btn:hover {
  background-color: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
}

.inquiry-btn-sub {
  display: block;
}

@media (min-width: 520px) {
  .inquiry-btn-sub {
    display: inline;
  }
}

/* --- 14. フッター (Footer & Copyright) --- */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 48px 20px 36px;
  text-align: center;
}

.footer-title {
  font-size: 1.375rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.footer-contact {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background-color: #1e293b;
  border: 1px solid #334155;
  padding: 14px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .footer-contact {
    flex-direction: row;
    gap: 16px;
  }
}

.footer-contact-label {
  font-size: 0.9375rem;
  color: #cbd5e1;
  font-weight: 500;
}

.footer-email-link {
  font-size: 1rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.footer-email-link:hover {
  color: #7dd3fc;
}

.copyright {
  font-size: 0.9375rem;
  color: #64748b;
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  margin-top: 16px;
}

/* --- 15. トップへ戻るボタン (Back to Top Button) --- */
.btn-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s ease,
              background 0.25s ease,
              box-shadow 0.25s ease;
}

.btn-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.btn-back-to-top:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.55);
}

.btn-back-to-top .to-top-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-block;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
}

.btn-back-to-top:hover .to-top-icon {
  transform: rotate(-45deg) translateY(-2px);
}

.btn-back-to-top .to-top-text {
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-top: 1px;
  line-height: 1;
}

@media (max-width: 639px) {
  .btn-back-to-top {
    bottom: 20px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}