/* =========================================================
   BLOOMEA サイト｜TOPページ専用スタイル (top.css)
   ========================================================= */

/* 1. ファーストビュー（メインビジュアル：クロスフェード スライドショー） */
.fv { padding: 0; position: relative; height: 650px; overflow: hidden; }
.fv-slides { position: absolute; inset: 0; }
.fv-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.fv-slide.is-active { opacity: 1; }
.fv-slide picture { display: contents; }
.fv-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* 下部を暗くしてキャッチコピー（白文字）を読みやすく */
.fv-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  z-index: 1;
}
/* 旧プレースホルダー（画像未設定時用に残置） */
.fv-video {
  height: 650px;
  background: linear-gradient(180deg, #f5f5f5 0%, #dcdcdc 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.fv-copy {
  position: absolute; left: 24px; right: 24px; bottom: 76px; z-index: 2;
  color: #fff; text-align: left;
}
.fv-copy p { color: #fff; margin-top: 12px; font-size: 14px; }

.scroll-dots {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2;
  display: flex; justify-content: center; gap: 8px;
}
.scroll-dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.5); }
.scroll-dots span.is-on { background: #fff; }
/* スライド切り替えドット（クリック可能） */
.fv-dots span { width: 9px; height: 9px; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.fv-dots span.is-on { transform: scale(1.15); }

/* 2. 導入サロン スライダー */
.salon-section { padding-right: 0; }
.section-heading-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-right: 24px; margin-bottom: 26px;
}
.section-heading-row h2 { font-size: 23px; white-space: nowrap; margin-bottom: 0; letter-spacing: 0.06em; }
.slider-arrows { display: flex; gap: 18px; font-size: 22px; color: var(--c-accent); line-height: 1; padding-top: 2px; flex-shrink: 0; }
.slider-arrows span { cursor: pointer; user-select: none; transition: color 0.2s ease, opacity 0.2s ease; }
.slider-arrows span:hover { color: var(--c-cta); }
.horizontal-slider { cursor: grab; overflow-anchor: none; }
.horizontal-slider.dragging { cursor: grabbing; }
.horizontal-slider.dragging a { }

.horizontal-slider {
  display: flex; gap: 14px; overflow-x: auto; padding-right: 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* iOS 慣性スクロール */
}
.horizontal-slider::-webkit-scrollbar { display: none; }

.salon-card {
  flex: 0 0 40%; height: 380px; position: relative;
  scroll-snap-align: start; overflow: hidden; background: #ddd;
  text-decoration: none;
}
.salon-card-content h3 { font-size: 17px; }
.salon-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.65));
}
/* カード全面に敷く写真 */
.salon-card-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.salon-card-content { position: absolute; left: 12px; right: 12px; bottom: 18px; z-index: 2; color: #fff; text-align: left; }
.salon-card-content h3, .salon-card-content p { color: #fff; }
.salon-card-content h3 { font-size: 15px; }
.salon-card-content p { font-size: 11px; line-height: 1.5; }
.play-circle {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #fff;
  position: absolute; right: 12px; top: 12px; z-index: 3;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px;
}

/* Coming Soon（未公開サロン枠） */
.salon-card-coming { background: #e6e6e6; }
.salon-card-coming::after { background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.45)); }
.coming-label {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: #fff; background: rgba(0,0,0,0.55); padding: 4px 10px; text-transform: uppercase;
}

/* 勉強会バナー */
.seminar-banner-section { padding-bottom: 0; }
.seminar-banner {
  display: flex; align-items: stretch; gap: 0;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  text-decoration: none; color: var(--c-text);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.seminar-banner:hover { box-shadow: 0 18px 40px rgba(0,0,0,0.14); transform: translateY(-2px); }
.seminar-banner-img { flex: 0 0 34%; overflow: hidden; }
.seminar-banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seminar-banner-body { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 24px; }
.seminar-banner-txt span { font-size: 11px; letter-spacing: 0.15em; color: #777; text-transform: uppercase; }
.seminar-banner-txt h3 { margin: 4px 0 6px; font-size: 17px; }
.seminar-banner-txt p { font-size: 12px; color: #5a5a5a; }
.seminar-banner-arrow { flex-shrink: 0; color: var(--c-turq); font-weight: 700; }

/* 3. ニュース */
.news-list { display: grid; gap: 18px; }
.news-item { border-bottom: 1px solid #ddd; padding-bottom: 16px; }
.news-date { display: block; font-size: 12px; color: #777; margin-bottom: 6px; }
.news-more { margin-top: 24px; text-align: center; }

/* 4. BLOOMEAとは（動画） */
.about-video { height: 420px; margin-top: 28px; position: relative; }
.about-video .play-large {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--c-primary);
  display: flex; align-items: center; justify-content: center; color: var(--c-text); background: rgba(255,255,255,0.75);
}

/* 5. マシン スライダー（洗練カード：余白広め・細字・英字は小さくアクセント） */
.machine-section { padding-left: 0; padding-right: 0; }
.machine-inner { padding: 0 24px; }
.machine-section .horizontal-slider { gap: 24px; }
.machine-card {
  flex: 0 0 300px;
  background: #fff;
  scroll-snap-align: start;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.machine-img { height: 300px; }
.machine-content {
  padding: 26px 6px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.machine-img { overflow: hidden; }
.machine-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 英字は小さくアクセント（アイキャッチ） */
.machine-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 14px;
}
/* 見出しは細めで上品に */
.machine-title {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 16px;
}
.machine-desc {
  font-size: 13px;
  color: #6a6a6a;
  line-height: 1.95;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}
/* 下部に揃う全幅ボタン（THREE的なダークグレー） */
.machine-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-on-primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.machine-btn:hover { opacity: 0.85; }
.machine-btn-ico { font-size: 8px; }

/* スライダー進捗：1本の連続バー（THREE風） */
.slider-progress {
  position: relative;
  height: 2px;
  background: #e2e2e2;
  margin: 44px 24px 8px;
  overflow: hidden;
}
.slider-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 32%;
  background: var(--c-primary);
}

/* 補助金相談バナー（背景画像入りの横長バナー・ドロップシャドウ・ボタンなし） */
.subsidy-cta {
  position: relative; display: block; border-radius: 16px; overflow: hidden;
  text-decoration: none; text-align: center;
  background: #23968c url("../images/subsidy-bg.jpg") center / cover no-repeat;
  padding: 44px 24px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.subsidy-cta::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.subsidy-cta > * { position: relative; z-index: 1; }
.subsidy-cta:hover { box-shadow: 0 20px 44px rgba(0,0,0,0.26); transform: translateY(-2px); }
.subsidy-cta h3 { color: #fff; font-size: 22px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 10px; }
.subsidy-cta p { color: rgba(255,255,255,0.92); font-size: 13px; line-height: 1.8; }
@media (min-width: 768px) {
  .subsidy-cta { padding: 56px 24px; }
  .subsidy-cta h3 { font-size: 26px; }
  .subsidy-cta p { font-size: 14px; }
}

/* 未確定コンテンツエリア */
.placeholder-area {
  min-height: 360px; background: #fafafa; border: 1px dashed #aaa; padding: 28px 20px;
  display: flex; flex-direction: column; justify-content: center; text-align: center;
}
.placeholder-area strong { display: block; font-size: 18px; margin-bottom: 10px; }

/* 勉強会カード */
/* 月見出し：細い罫線で上品に */
.study-month {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* 勉強会：THREE風の一覧（罫線区切り／左に情報・右にボタン） */
.study-list { border-top: 1px solid #ddd; }
.study-row {
  border-bottom: 1px solid #ddd;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.study-title { font-size: 22px; font-weight: 400; letter-spacing: 0.04em; margin-bottom: 16px; }
.study-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.study-tag {
  font-size: 11px;
  color: #666;
  background: #f0f0f0;
  padding: 6px 14px;
  letter-spacing: 0.04em;
}
.study-info { list-style: none; display: grid; gap: 8px; }
.study-info li { font-size: 14px; color: #555; line-height: 1.85; }
.study-actions { display: flex; flex-direction: column; gap: 10px; }
.study-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: #767676;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.study-btn:hover { opacity: 0.85; }
.study-btn-primary { background: var(--c-primary); }
.study-btn-ico { font-size: 15px; opacity: 0.85; }
.study-more { text-align: right; margin-top: 20px; }
.study-more a { font-size: 13px; color: var(--c-text); text-decoration: none; letter-spacing: 0.06em; }
.study-more a:hover { text-decoration: underline; }

/* サポートバナー（BLOOMEA with K's style） */
.support-banner-section { padding-top: 0; }
.support-banner { display: block; border: 1px solid var(--c-primary); text-decoration: none; color: var(--c-text); background: #fff; }
.support-banner-img { height: 200px; width: 100%; }
.support-banner-body { padding: 20px; position: relative; }
.support-banner-body h3 { font-size: 20px; margin-bottom: 8px; }
.support-banner-body p { font-size: 13px; }
.support-banner-arrow { position: absolute; right: 20px; bottom: 20px; color: var(--c-text); font-weight: 700; }

/* 7. バナーエリア（導入後も安心のサポート） */
.banner-section { background: #f5f5f5; }
.banner-grid { display: grid; gap: 16px; }
.banner-card {
  min-height: 132px; padding: 20px; border: 1px solid var(--c-primary);
  display: flex; flex-direction: column; justify-content: space-between;
  background: #fff; text-decoration: none; color: var(--c-text);
}
.banner-card span { font-size: 12px; letter-spacing: 0.15em; color: #777; text-transform: uppercase; }

/* Instagram */
.insta-follow { font-size: 12px; font-weight: 700; color: var(--c-accent); text-decoration: none; letter-spacing: 0.04em; flex-shrink: 0; white-space: nowrap; }
.insta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.insta-post { aspect-ratio: 4 / 5; text-decoration: none; display: block; overflow: hidden; }
.insta-post img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 8. CTA */
.cta-section { background: var(--c-primary); color: #fff; text-align: center; }
.cta-section h2, .cta-section p { color: #fff; }
.cta-section p { margin-bottom: 28px; }
.cta-section .btn-primary { background: #fff; color: var(--c-text); min-width: 220px; }

/* =========================================================
   タブレット（768px〜）
   ========================================================= */
@media (min-width: 768px) {
  .fv, .fv-video { height: 560px; }
  .fv-copy { left: 48px; right: 48px; bottom: 88px; }

  /* マシンセクションの内側余白を他セクション（48px）に揃える */
  .machine-section { padding-left: 48px; padding-right: 48px; }
  .machine-inner { padding: 0; }
  .machine-section .horizontal-slider { padding-left: 0 !important; }

  .section-heading-row { padding-right: 48px; }
  .horizontal-slider { padding-right: 48px; }
  .salon-card { flex-basis: 300px; height: 400px; }
  .machine-card { flex-basis: 320px; }
  .machine-img { height: 320px; }
  .slider-progress { margin-left: 0; margin-right: 0; }

  .banner-grid { grid-template-columns: 1fr 1fr; }
  .insta-grid { grid-template-columns: repeat(4, 1fr); }

  /* 勉強会：一覧の各行を「左に情報／右にボタン」の2カラムに */
  .study-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 56px;
    padding: 40px 0;
  }
  .study-main { flex: 1; }
  .study-actions { width: 300px; flex-shrink: 0; }

  /* バナー系セクションはPCで横幅を狭める */
  .seminar-banner-section,
  .subsidy-section,
  .support-banner-section { max-width: 900px; }

  /* ニュース：左に見出し／右にコンテンツ */
  .news-section { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
  .news-more { text-align: left; }

  /* BLOOMEA with K's style バナー：左に画像・右にテキスト */
  .support-banner { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .support-banner-img { height: 100%; min-height: 300px; }
  .support-banner-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
  }
  .support-banner-body h3 { font-size: 24px; }
  .support-banner-arrow { position: static; margin-top: 18px; }

  /* 「導入後も安心のサポート」：グレー背景を画面横いっぱい／中身は他セクションと揃える */
  .banner-section {
    max-width: none;
    padding-left: max(48px, calc((100% - 1104px) / 2));
    padding-right: max(48px, calc((100% - 1104px) / 2));
  }
}

/* =========================================================
   PC（1024px〜）
   ========================================================= */
@media (min-width: 1024px) {
  .fv, .fv-video { height: 680px; }
  .fv-copy { left: 64px; right: 64px; bottom: 100px; max-width: 720px; }
  .section-heading-row h2 { font-size: 28px; }
  .salon-card { flex-basis: 340px; height: 440px; }

  /* マシンセクションの内側余白を他セクション（64px）に揃える */
  .machine-section { padding-left: 64px; padding-right: 64px; }

  /* グレー背景フルブリード（1024px以上は中身幅を他セクションに合わせる） */
  .banner-section {
    padding-left: max(64px, calc((100% - 1152px) / 2));
    padding-right: max(64px, calc((100% - 1152px) / 2));
  }
}

/* ===== 提携企業（Partners） ===== */
.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.partner-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 24px 20px; display: flex; flex-direction: column;
}
.partner-logo {
  flex: 1; min-height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.partner-logo img { max-width: 78%; max-height: 120px; object-fit: contain; display: block; }
.partner-name { color: var(--c-turq); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; margin-top: 8px; }
@media (min-width: 768px) {
  .partners-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* YouTubeボタン（アイコンのみ赤・枠線スタイル／英字はそのまま） */
.btn-youtube {
  background: #fff; color: var(--c-text);
  border: 1px solid #cfcfcf;
  gap: 8px; text-transform: none;
}
.btn-youtube svg { display: block; flex-shrink: 0; color: #ff0000; }
.btn-youtube:hover { background: var(--c-surface); }
/* 枠線ボタン（Instagramフォロー等）のホバー */
.btn-outline { transition: background 0.2s ease; }
.btn-outline:hover { background: var(--c-surface); }

/* 導入店様向けサポート（FOR PARTNERS）… トップページでも表示するためのカードスタイル */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.support-banner-item {
  min-height: 120px; border: 1px solid #cfcfcf; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none; color: var(--c-text); background: #fff;
}
.support-banner-item span { font-size: 11px; letter-spacing: 0.12em; color: #777; text-transform: uppercase; }
.support-banner-item h4 { margin: 0; font-size: 15px; font-weight: 500; }
.support-other { margin-top: 28px; text-align: center; }
.support-other .btn { width: 100%; }
@media (min-width: 768px) {
  .support-grid { grid-template-columns: repeat(4, 1fr); }
  .support-other .btn { width: auto; min-width: 320px; }
}

/* FOR PARTNERS（導入店様向けサポート）セクションをベージュの全幅バンドに（トップページ） */
.section:has(> .support-grid) { background: var(--c-surface); }
@media (min-width: 768px) {
  .section:has(> .support-grid) {
    max-width: none;
    padding-left: max(48px, calc((100% - 1104px) / 2));
    padding-right: max(48px, calc((100% - 1104px) / 2));
  }
}
@media (min-width: 1024px) {
  .section:has(> .support-grid) {
    padding-left: max(64px, calc((100% - 1152px) / 2));
    padding-right: max(64px, calc((100% - 1152px) / 2));
  }
}

/* About BLOOMEA：動画枠に画像を入れる場合 */
.about-image { overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* About BLOOMEA 画像：スマホ・タブレットでロゴが切れないよう縦横比を保って全体表示 */
@media (max-width: 1024px) {
  .about-video.about-image {
    height: auto;
  }
  .about-video.about-image img {
    height: auto;
    object-fit: contain;
  }
}
