@charset "UTF-8";


/* =========================================================
   HERO – Parallax with iOS Safari Fix
   ========================================================= */

/* 親コンテナ */
.hero {
  position: relative;
  --hero-height: calc(100svh - var(--header-height));
  min-height: var(--hero-height);  overflow: hidden;
  clip-path: inset(0);          /* iOS Safari で fixed を安定させる必須ハック */
  z-index: 1;
  display: flex;
  align-items: center;
}

/* 半分ヒーロー（news用） */
.hero.half {
  min-height: clamp(280px, 70svh, 620px);
  align-items: center;
  padding-bottom: 3rem;
}

/* hero 内に閉じる（fixedを解除） */
.hero.half .hero-parallax-video,
.hero.half .hero-parallax-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* landscapeをきれいに見せる */
.hero.half .hero-parallax-video {
  object-fit: cover;
  object-position: center center;
}

.hero.half .hero-parallax-bg {
  background-size: cover;
  background-position: center center;
}

/* 動画レイヤー（video時のみ） */
.hero-parallax-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 1;
  transition: opacity 1.2s ease-in-out;  /* ← ここでフェード時間を設定（1.2秒が自然） */
}

.hero-parallax-video.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* オーバーレイ（暗め調整） */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgb(7 18 28 / 15%);
    z-index: -1;
    pointer-events: none;
}

/* コンテンツ */
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}


/* 固定背景（image/video共通の下地） */
.hero-parallax-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -3;
  opacity: 1;
  transition: opacity 1.2s ease-in-out 0.1s;  /* 少し遅れて入るようにdelay */
  background-image: url("/assets/img/hero-unset.webp"); /* ページ別背景（インラインで出力しているので不要だが、フォールバック用に残す） */

  /* iOS Safari 対策（GPU加速 + ちらつき防止） */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}


/* 動画が隠れたら背景を強調（なくてもOK） */
.hero-parallax-video.is-hidden ~ .hero-parallax-bg {
  opacity: 1;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); /* PC～スマホで自動調整 */
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 6px rgba(0,0,0,0.45); /* Hero向けの文字の立体感 */
  font-family: 'Kaisei Tokumin';
  font-display: swap;
}


/* =========================================================
   Lesson page grid
   ========================================================= */
/* ===== GRID化 ===== */
.paper-ticket-grid {
  display: grid;
}

@media (min-width: 992px) {
  .paper-ticket-grid {
    grid-template-columns: 2fr 1fr;
  }
}
/* 内部flex補助 */
.ticket-flex {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 991px) {
  .ticket-flex {
    flex-direction: column;
  }
}

/* ===== 切り取り線デザイン ===== */

.ticket-stub {
  position: relative;
  background: #f8f9fa;
}

/* 破線 */
.ticket-stub::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5%;
  bottom: 5%;
  border-left: 2px dashed rgba(0,0,0,0.2);
}

/* 丸ノッチ */
.ticket-stub::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
}

/* モバイルでは破線非表示 */
@media (max-width: 991px) {
  .ticket-stub::before,
  .ticket-stub::after {
    display: none;
  }
}

#pro-training {
    /* 背景画像の設定 */
    background-image: url('/assets/img/pro-training.webp'); /* 画像パスを書き換えてください */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; /* 画像全体を表示 */
    
    /* 補足：背景画像が白い場合でも文字が見えるよう、背景色を上書き・指定 */
    background-color: #111111 !important; 
    
    /* 装飾：カードの質感を高める（任意） */
    position: relative;
    z-index: 1;
}

/* 画像の上に薄いレイヤーを重ねて文字を読みやすくする場合（オプション） */
#pro-training::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 40%の黒透明。画像が明るすぎる場合に有効 */
    z-index: -1;
}






/* =========================================================
   Shared Content Styling
   ========================================================= */


.text-edge {
  /* 1) 縁の太さと色 / 2) ボカシの量 */
  --s: 5px #717904;
  --b: 8px; /* Blurの強さ */
  color: #fff;
  
  /* 固い縁取りを生成 */
  -webkit-text-stroke: var(--s);
  
  /* 【新発見】text-shadowを「0 0」で配置してボカシ(Glow)として使う */
  /* 文字の背後にボカシが広がる */
  text-shadow: 0 0 var(--b) #ddd13c;
  
  /* 描画順序を「縁」→「塗り」にする（これで文字が痩せない） */
  paint-order: stroke fill;
}

/* --- 集まってくるエフェクト --- */

.gathering-letter {

  display:inline-block;

  opacity:0;

  transform:translate(var(--dx), var(--dy)) scale(0.6);

  animation:gatheringMove 0.9s cubic-bezier(.25,.8,.25,1) forwards;

  will-change: transform, opacity;
}

@keyframes gatheringMove {

  to {
    transform:translate(0,0) scale(1);
    opacity:1;
  }

}

/* 非表示状態 */

.gathering-hidden {
  visibility:hidden;
}

/* 表示開始時 */

.gathering:not(.gathering-hidden) {
  visibility:visible;
}

/* 方向クラス */

.g-dir1 { --dx:-80vw;  --dy:-80vh; }
.g-dir2 { --dx:80vw;   --dy:-80vh; }
.g-dir3 { --dx:-80vw;  --dy:80vh; }
.g-dir4 { --dx:80vw;   --dy:80vh; }
.g-dir5 { --dx:0;      --dy:-120vh; }
.g-dir6 { --dx:0;      --dy:120vh; }
.g-dir7 { --dx:-120vw; --dy:0; }
.g-dir8 { --dx:120vw;  --dy:0; }

/* =========================================================
   Responsive Adjustments
   ========================================================= */

@media (max-width: 767px) {
  .lesson-image {
    display: none;
  }
}

/* =========================================================
   以下：既存デザイン資産（変更なし）
   Whiteboard / Paper / Ticket / Marker
   ========================================================= */

/* --- Whiteboard --- */
.bg-whiteboard {
  background-color: #fdfdfd;
  background-image:
    linear-gradient(#f0f0f0 1px, transparent 1px),
    linear-gradient(90deg, #f0f0f0 1px, transparent 1px);
  background-size: 40px 40px;
}

/* --- Paper Note --- */
.paper-note {
  position: relative;
  background-color: #fcfbf6;
  color: #4a4a4a;
  padding: 2.5rem 0.5rem 2rem;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-display: swap;
  border-radius: 2px 255px 3px 25px / 255px 5px 225px 3px;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none !important;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.paper-note::after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  border-width:0 24px 24px 0;
  border-style:solid;
  border-color:transparent #eee transparent transparent;
}
.tape-label{
  background:#f6e58d;
  padding:.2rem .6rem;
  transform:rotate(-3deg);
}

/* --- Marker Highlight --- */
.marker-yellow {
  display: inline;
  background: linear-gradient(
    transparent 60%,
    rgba(226, 180, 53, 0.45) 60%
  );
  padding: 0 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ===============================
   CONTACT SECTION MAP LAYOUT
   =============================== */

.contact-narrow {
  max-width: 800px;
}

/* Mapはできるだけ大きく */
.contact-map-wrap {
  width: 100%;
  height: 380px;
  margin-inline: auto;
}
@media (min-width: 992px) {
  .contact-map-wrap {
    height: 460px;
  }
}

/* ==============================
   Contact CTA 専用
============================== */

.btn-contact-cta {
  background: #6f9530;
  color: #fff;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transition: all .25s ease;
}

.btn-contact-cta:hover {
  background: #88b83c;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
.contact-note {
  font-size: .95rem;
  line-height: 1.6;
}

/* =========================================================
   TOP PAGE
   WASHI TEXTURE
   ========================================================= */

.pricing-philosophy-card {
  position: relative;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1rem;
  padding: 1.5rem;
  background-color: #faf8f2; /* ベースの和紙色 */

  background-image: url("/assets/img/washi.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* 主張を抑えるための薄膜 */
  background-blend-mode: multiply;
}

/* 文字可読性確保のための内側レイヤー */
.pricing-philosophy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.75);
}
.pricing-philosophy-card > * {
  position: relative;
  z-index: 1;
}

/* =========================================
   COEYA Pricing Philosophy Section (Scoped)
   全セクションタイトル共通 — 既存CSS非破壊
   ========================================= */

/* 共通の「和紙風背景＋読みやすさオーバーレイ」を持つセクション用 */
.section-with-texture-overlay {
  position: relative;
  overflow: hidden;
}

.section-with-texture-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  pointer-events: none;
  z-index: 0;
}

.section-with-texture-overlay > * {
  position: relative;
  z-index: 1;
}

/* pricing専用だったカード部分も共通化したい場合（任意） */
.section-with-texture-overlay .pricing-philosophy-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  border-color: rgba(0,0,0,0.08) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* 必要に応じて他の #pricing 固有スタイルも .section-with-texture-overlay 配下に移動 */




/* 現在のenhanced-cardをベースに上書き・調整 */
.enhanced-card.paper-note {
  background: rgba(253, 252, 247, 0.94); /* やや透明度を上げて和紙感を優しく */
  border: 1px solid rgba(0, 0, 0, 0.05); /* 境界を極薄に */
  border-radius: 1.375rem;               /* 少し丸みを増して親しみやすく */
  padding: 1rem 0.6rem;                 /* 内側余白を広げて呼吸感 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); /* 初期影は控えめ */
  transition: all 0.55s cubic-bezier(0.23, 1, 0.32, 1); /* ゆったり自然な曲線 */
  color: #1e1e1e;
  position: relative;
  overflow: hidden;
}

/* ホバー時（抑制された優雅な変化） */


/* テキスト・アイコンにも微細な変化（存在感を静かに強調） */
.enhanced-card .card-title {
  transition: color 0.55s ease-out;
}

.enhanced-card:hover .card-title {
  color: #0f0f0f; /* わずかに濃くして緊張感 */
}

.enhanced-card .lesson-icon {
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

.enhanced-card:hover .lesson-icon {
  transform: scale(1.08) translateY(-1px); /* アイコンが優しく浮く */
}

/* 診断カードも統一感を持たせる */
.enhanced-card[style*="background-color:#fdf9f0"] {
  background: #fdf9f0 !important; /* 元の色を尊重 */
}

.enhanced-card[style*="background-color:#fdf9f0"]:hover {
  background: #fefcf5 !important; /* 暖かい明るさへ */
}

.enhanced-card .card-title {
  font-size: clamp(1.25rem, 3vw, 1.375rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: #111;
}
h3.card-title {
  font-size:1.24rem;
}
h3.flow-card {
  font-size:1.3rem;
}
.enhanced-card .card-text {
  font-size: clamp(1rem, 2.3vw, 1.0625rem);
  line-height: 1.78;
  color: #444;
}

.enhanced-card .badge {
  font-size: 0.875rem;
  padding: 0.5em 1em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lesson-icon {
  color: var(--bs-primary, #6f9530);
}

/* 導入文 */
.lead {
  font-weight: 500;
  color: #333;
}

