.bg-brand {
  background: linear-gradient(135deg, #4facfe, #00c6ff);
}

.section-soft {
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

/* 汎用カード（これがベース） */
.custom-card {
  border: none;
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
  height: 100%;
}

.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* タイトル */
.custom-card h5 {
  font-weight: 700;
  margin-bottom: 10px;
}

/* 補助テキスト */
.custom-card p {
  color: #666;
  font-size: 0.95rem;
}

/* アイコン用（あれば） */
.card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}





/* スライダー用 */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;   /* ←中央寄せ */
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* カード画像の比率を自動調整 */
.carousel-card {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
}

/* カード画像の比率を自動調整＋少し小さく */
.carousel-img {
  width: 100%;
  aspect-ratio: 16 / 9;  /* 高さは比率で自動 */
  max-height: 620px;      /* 高さ上限を追加 */
  object-fit: cover;
}

/* カード下部のテキスト */
.carousel-info {
  padding: 12px;
  flex-grow: 1;
}

/* 左右ボタン */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.7);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* タイトル・要約 */
.carousel-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.carousel-summary {
  font-size: 0.8rem;
  color: #666;
}

/* モバイル対応 */
@media (max-width:768px){
  .carousel-img {
    height: 180px; /* 小さい画面は高さを縮小 */
  }
}


.pricing-table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.pricing-table th {
  padding: 20px;
}

.pricing-table td {
  padding: 16px;
}

.pricing-table th:nth-child(4) {
  background: linear-gradient(135deg,#667eea,#764ba2);
  color:white;
}

.pricing-table td:nth-child(4) {
  background:#faf9ff;
}

.btn-gradient {
  background: linear-gradient(135deg,#667eea,#764ba2);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  color:white;
}

/* Hero ボタン（単色・水色系） */
.btn-hero {
  background-color: #4dabf7;  /* 水色系 */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-hero:hover {
  background-color: #339af0;  /* ホバー時は少し濃く */
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  color: white;
}

.learning-flow {
  text-align: center;
  padding: 60px 20px;
}

.flow-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.flow-column {
  width: 260px;
}

.step {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
  font-weight: bold;
}

.arrow {
  font-size: 20px;
  color: #999;
}

.highlight {
  background: #007bff;
  color: white;
}

.learning-image-wrapper img {
  max-width: 100%;
  height: auto;
}

.learning-image-wrapper {
  padding: 10px;
}



/* カテゴリ見出し（下線） */
.faq-category {
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

/* 各Q&Aブロック */
.faq-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

/* Q */
.faq-question {
  font-weight: bold;
  margin-bottom: 5px;
}

/* A */
.faq-answer {
  color: #666;
  line-height: 1.7;
}

.timeline-line {
  z-index: 0;
  opacity: 0.25;
}

.step-card,
.step-dot {
  position: relative;
  z-index: 2;
}

.step-card {
  width: 520px;      /* STEP1,2の基準 */
  max-width: 90vw;   /* スマホ対応 */
}

.step-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* 分岐ライン */
.branch-line {
  width: 2px;
  height: 40px;
  background: #dee2e6;
}

.badge-coaching{
  background:
    linear-gradient(135deg,#ff5b5b,#ff8a5b);

  color:white;
  padding:8px 14px;
  border-radius:999px;
  font-size:0.75rem;
  letter-spacing:.08em;
}

.badge-community{
  background:linear-gradient(135deg,#4f7cff,#6ea8ff);
  color:white;
  padding:8px 14px;
  border-radius:999px;
  font-size:0.75rem;
  letter-spacing:.08em;
}

.feature-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.feature-plus,
.feature-equal {
  font-size: 2rem;
  font-weight: bold;
  color: #adb5bd;
  margin: 10px 0;
}

.result-card {
  position: relative;
}

/* セクション全体 */
.rank-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* 説明文 */
.rank-lead {
  color: #555;
}

/* カード本体 */
.rank-card {
  height: 100%;
  padding: 24px;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(0,0,0,0.05);

  box-shadow:
    0 10px 25px rgba(0,0,0,0.08);

  transition: all 0.25s ease;
}

/* ホバー */
.rank-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.12);
}

/* アイコン */
.rank-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ランク名 */
.rank-card h5 {
  font-weight: 700;
  margin-bottom: 10px;
}

/* テキスト */
.rank-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0;
}

/* ===== ランク別カラー（マイページと統一） ===== */
.rank-bronze {
  border-top: 4px solid rgba(205, 127, 50, 0.6);
}

.rank-silver {
  border-top: 4px solid rgba(160, 160, 160, 0.6);
}

.rank-gold {
  border-top: 4px solid rgba(255, 200, 0, 0.7);
}

.rank-platinum {
  border-top: 4px solid rgba(110, 180, 220, 0.7);
}

.rank-diamond {
  border-top: 4px solid rgba(90, 210, 255, 0.8);
}

@media (min-width: 768px) {
  .rank-platinum,
  .rank-diamond {
    transform: translateY(-10px);
  }
}

/* 全体レイアウト */
.feature-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap; /* スマホ対応 */
}

/* 左側（縦スタック） */
.feature-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* 右側（結果） */
.feature-result {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* カード幅を揃える */
.feature-card {
  width: 430px;
  max-width: 90vw;
}

.feature-card p {
  font-size: 0.95rem;
  color: #666;   /* ← 他カードと同じグレー */
  line-height: 1.7;
}

/* ＋・＝の記号 */
.feature-symbol,
.feature-equal {
  font-size: 2rem;
  font-weight: bold;
  color: #adb5bd;
  line-height: 1;
  margin: 5px 0;
}

/* RESULTカードだけ少し強調 */
.result-card {
  transform: scale(1.02);
}

.step-btn {
  background-color: #ced4da;
  color: #212529;
  border: 1px solid #ced4da;
  font-size: 0.95rem;
  padding: 8px 18px;
  
}

.study-light {
  background: #22c55e; /* green */
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  transition: background 0.5s ease;
}

/* JSでクラス切替用 */
.study-light.warn {
  background: #f59e0b; /* orange */
  box-shadow: 0 0 8px rgba(245,158,11,0.6);
}

.study-light.danger {
  background: #ef4444; /* red */
  box-shadow: 0 0 8px rgba(239,68,68,0.6);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 0.9; }
}

.topic-text {
  margin-top:10px;
  font-size:.85rem;
  text-align:center;
  color:rgba(0,0,0,.65);
  min-height:38px;

  /* ←これが崩れ防止の核心 */
  line-height:1.3;

  /* 2行制限 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.study-card{
  background:#fcfcfc; /* 真っ白やめる */
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* free */
.study-card.membership-free {
  border: 1px solid rgba(0,0,0,0.08);
  opacity: 0.85;
}

/* general */
.study-card.membership-general {
  border: 2px solid #3498db;
  box-shadow: 0 0 15px rgba(52,152,219,0.15);
}

/* mentor */
.study-card.membership-mentor {
  border: 2px solid #9b59b6;
  box-shadow: 0 0 15px rgba(155,89,182,0.15);
}

/* full（特別感） */
.study-card.membership-full {
  border: 2px solid #f1c40f;
  box-shadow: 0 0 12px rgba(241,196,15,0.25);
}



.world-clock-board{
  margin-top: 16px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.clock-tile{
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #111;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 6px 14px rgba(0,0,0,.10);

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  position: relative;
  overflow: hidden;   /* 追加 */
}

.clock-tile::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background: rgba(255,255,255,.04);
  z-index: 0;         /* 追加 */
}

.clock-city{
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
  z-index: 1;
}

.clock-time{
  font-size: 1rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  color: #f5f5f5;
  min-width: 56px;
  text-align: right;
  z-index: 1;
}

.table-separator td{
  padding: 12px;
  background: transparent;
  border: none !important;
}

/* =========================
   願いの社 バナー
========================= */

.ema-banner {
  display: flex;
  justify-content: center;
}

.ema-banner img {
  width: 90%;
  max-width: 1100px;
  display: block;
  margin: 0 auto;

  border-radius: 28px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.ema-banner img:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.12);
}

.lounge-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, 112px);
  justify-content:center;
  grid-auto-rows:185px;
  gap:18px;

  position:relative;

  min-height:640px;
  padding:24px;

  border-radius:24px;

  background-image:
    url("/static/images/lounge_bg_rev.9d0d3fadcc9f.png");

  background-repeat:no-repeat;
  background-position:center;
  background-size:420px auto;
}