/*
 * ============================================================
 * Loohcs志塾 — ヒーローセクション スタイル
 * ============================================================
 * 配置場所:
 *   /wp-content/themes/swell_child/assets/css/hero.css
 *
 * 読み込み:
 *   functions.php の wp_enqueue_style() で自動読み込み済み
 *
 * クラス名はすべて .lhero- プレフィックス
 * （SWELLテーマおよび既存スタイルとの衝突を防ぐため）
 * ============================================================
 */

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.lhero {
  position: relative;
  display: grid;
  grid-template-columns: 56% 44%;
  overflow: hidden;
  background: linear-gradient(135deg,
    #2DC4C0 0%,
    #10AAAA 30%,
    #008898 60%,
    #005C66 100%
  );
}

.lhero-deco {
  position: absolute;
  bottom: -80px; left: 16px;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(200px, 28vw, 420px);
  font-style: italic;
  color: rgba(255,255,255,0.055);
  line-height: 1;
  pointer-events: none; user-select: none; z-index: 1;
}

/* ════════════════════════════════════════
   LEFT
   ════════════════════════════════════════ */
.lhero-left {
  padding: 72px 20px 72px 64px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}

.lhero-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.lhero-eyebrow::before {
  content: '';
  width: 20px; height: 1.5px;
  background: rgba(255,255,255,0.5); flex-shrink: 0;
}

.lhero-headline {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(30px, 3.4vw, 52px); font-weight: 900;
  color: white; line-height: 1.22;
  margin-bottom: 20px; letter-spacing: -0.01em;
}
.lhero-headline .lhero-ul { position: relative; display: inline-block; }
.lhero-headline .lhero-ul::after {
  content: ''; position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.5);
}

.lhero-sub {
  font-size: clamp(12.5px, 1vw, 14px); font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.9; max-width: 380px; margin-bottom: 40px;
}

.lhero-stats {
  display: flex; gap: 24px; align-items: flex-end; margin-bottom: 40px;
}
.lhero-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 2.8vw, 38px); font-weight: 800;
  color: white; line-height: 1; letter-spacing: -0.03em;
}
.lhero-stat-unit { font-size: clamp(13px, 1.2vw, 17px); margin-left: 1px; }
.lhero-stat-label {
  font-size: clamp(9px, 0.75vw, 10.5px);
  color: rgba(255,255,255,0.5); margin-top: 4px; letter-spacing: 0.04em;
}
.lhero-stat-sep {
  width: 1px; align-self: stretch;
  background: rgba(255,255,255,0.2); flex-shrink: 0;
}

.lhero-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.lhero-btn-p {
  background: white; color: #005C66;
  padding: clamp(11px,1vw,14px) clamp(18px,2vw,28px);
  border-radius: 7px;
  font-size: clamp(12px,1vw,14px); font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12); transition: all 0.2s; white-space: nowrap;
}
.lhero-btn-p:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,0,0,0.18); }
.lhero-btn-s {
  border: 1.5px solid rgba(255,255,255,0.38); color: white;
  padding: clamp(11px,1vw,14px) clamp(14px,1.5vw,20px);
  border-radius: 7px;
  font-size: clamp(12px,1vw,14px); font-weight: 300;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  transition: border-color 0.2s; white-space: nowrap;
}
.lhero-btn-s:hover { border-color: rgba(255,255,255,0.7); }

/* ════════════════════════════════════════
   RIGHT PANEL — 三色スリバー
   ────────────────────────────────────────
   グラデBG ｜ 三角スリバー（別色）｜ 白パネル
   という3層を2つのclip-pathで実現。

   ::before = 三角色レイヤー（広め）
   ::after  = 白パネル（三角色レイヤーの上に重ねて
               三角色の薄いスリバーだけを露出させる）

   角度は控えめに：
     三角色レイヤー : 上辺 8%  → 下辺 1%
     白パネル       : 上辺 14% → 下辺 4%
   → 上で約6%幅、下で約3%幅の三角スリバーが現れる
   ════════════════════════════════════════ */
.lhero-right-wrap {
  position: relative;
  z-index: 3;
  overflow: hidden;
}

/* 層① 三角色 */
.lhero-right-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: #2DC4C0;
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 1% 100%);
  z-index: 1;
}

/* 層② 白パネル（三角色レイヤーに重ねてスリバーを露出） */
.lhero-right-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: #F4F3EF;
  clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 4% 100%);
  z-index: 2;
}

/* コンテンツは最前面 */
.lhero-right {
  padding: 64px clamp(28px,3.5vw,52px) 64px clamp(52px,7vw,88px);
  position: relative; z-index: 3;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
}

.lhero-right-header {
  font-family: 'Outfit', sans-serif;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #009EAA; margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.lhero-right-header::before { content: ''; width: 18px; height: 1.5px; background: #009EAA; }

/* ── ニュースカード ── */
.lhero-news-card {
  padding: 13px 0; border-bottom: 1px solid rgba(0,0,0,0.07);
  text-decoration: none;
  display: flex; align-items: flex-start; gap: 10px;
  transition: padding-left 0.2s;
}
.lhero-news-card:first-of-type { border-top: 1px solid rgba(0,0,0,0.07); }
.lhero-news-card:hover { padding-left: 4px; }

.lhero-news-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: white; background: #007A84;
  padding: 3px 7px; border-radius: 3px;
  white-space: nowrap; flex-shrink: 0; margin-top: 3px;
  line-height: 1.4;
}
.lhero-news-tag.ev { background: #009EAA; }
.lhero-news-tag.bl { background: #666; }
.lhero-news-tag.sc { background: #6B3FA0; }

.lhero-news-body { flex: 1; min-width: 0; }
.lhero-news-title {
  font-size: clamp(11.5px, 0.95vw, 13px);
  font-weight: 500; color: #0F1C24; line-height: 1.52;
}
.lhero-news-date {
  font-family: 'Outfit', sans-serif;
  font-size: 10px; color: #9AA8AE; margin-top: 3px;
}

.lhero-news-more {
  margin-top: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: #009EAA; text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.lhero-news-more::after { content: '→'; }
.lhero-news-more:hover { gap: 10px; }

/* ════════════════════════════════════════
   BREAKPOINTS
   ════════════════════════════════════════ */

/* 1280px */
@media (max-width: 1280px) {
  .lhero-left { padding: 64px 16px 64px 52px; }
}

/* 1080px */
@media (max-width: 1080px) {
  .lhero { grid-template-columns: 52% 48%; }
  .lhero-left { padding: 60px 14px 60px 44px; }
  .lhero-sub { max-width: 320px; }
}

/* 860px: タグ縦配置もここで開始 */
@media (max-width: 860px) {
  .lhero { grid-template-columns: 50% 50%; }
  .lhero-left { padding: 56px 12px 56px 36px; }
  .lhero-headline { font-size: clamp(26px, 4.2vw, 38px); }
  .lhero-sub { font-size: 12.5px; margin-bottom: 32px; max-width: 280px; }
  .lhero-stats { gap: 18px; margin-bottom: 32px; }
  .lhero-right { padding: 48px 24px 48px clamp(40px,6vw,64px); }
  .lhero-right-header { font-size: 9px; margin-bottom: 18px; }
  .lhero-news-title { font-size: 12px; }
  .lhero-news-card { flex-direction: column; gap: 5px; padding: 12px 0; }
  .lhero-news-tag { margin-top: 0; align-self: flex-start; }
  .lhero-news-body { width: 100%; }
  .lhero-news-date { font-size: 9.5px; }
}

/* 750px */
@media (max-width: 750px) {
  .lhero { grid-template-columns: 46% 54%; }
  .lhero-deco { display: none; }
  .lhero-left { padding: 48px 10px 48px 28px; }
  .lhero-eyebrow { font-size: 9.5px; letter-spacing: 0.13em; margin-bottom: 16px; }
  .lhero-headline { font-size: clamp(22px, 5vw, 32px); margin-bottom: 14px; }
  .lhero-headline .lhero-ul::after { height: 3px; }
  .lhero-sub { font-size: 12px; line-height: 1.8; margin-bottom: 26px; max-width: 240px; }
  .lhero-stats { gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
  .lhero-stat-sep { display: none; }
  .lhero-stat-num { font-size: 26px; }
  .lhero-stat-unit { font-size: 13px; }
  .lhero-stat-label { font-size: 9px; }
  .lhero-buttons { flex-direction: column; gap: 8px; align-items: flex-start; }
  .lhero-btn-p, .lhero-btn-s { font-size: 12px; padding: 11px 16px; }
  .lhero-right { padding: 40px 18px 40px clamp(32px,7vw,52px); }
  .lhero-right-header { margin-bottom: 16px; }
}

/* 560px: SP横 */
@media (max-width: 560px) {
  .lhero { grid-template-columns: 44% 56%; }
  .lhero-left { padding: 40px 8px 40px 20px; }
  .lhero-eyebrow { display: none; }
  .lhero-headline { font-size: clamp(20px, 5.5vw, 28px); margin-bottom: 12px; }
  .lhero-sub { font-size: 11.5px; margin-bottom: 20px; max-width: 190px; }
  .lhero-stats { gap: 10px; margin-bottom: 20px; }
  .lhero-stat-num { font-size: 22px; }
  .lhero-stat-unit { font-size: 12px; }
  .lhero-stat-label { font-size: 8.5px; }
  .lhero-btn-p { padding: 10px 13px; font-size: 11.5px; }
  .lhero-btn-s { display: none; }
  .lhero-right { padding: 36px 14px 36px clamp(22px,7vw,40px); }
  .lhero-right-header { font-size: 8.5px; letter-spacing: 0.16em; margin-bottom: 12px; }
  .lhero-news-card { padding: 10px 0; gap: 4px; }
  .lhero-news-tag { font-size: 8px; padding: 2px 6px; }
  .lhero-news-title { font-size: 11px; line-height: 1.45; }
  .lhero-news-date { font-size: 9px; }
  .lhero-news-more { font-size: 10px; margin-top: 10px; }
}

/* 400px以下: スタック */
@media (max-width: 400px) {
  .lhero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .lhero-left { padding: 48px 20px 40px; justify-content: flex-start; }
  .lhero-eyebrow { display: flex; font-size: 9.5px; margin-bottom: 14px; }
  .lhero-headline { font-size: clamp(26px, 8vw, 34px); margin-bottom: 14px; }
  .lhero-sub { font-size: 13px; line-height: 1.85; max-width: 100%; margin-bottom: 28px; }
  .lhero-stats { gap: 20px; flex-wrap: nowrap; }
  .lhero-stat-sep { display: block; }
  .lhero-stat-num { font-size: 30px; }
  .lhero-stat-unit { font-size: 15px; }
  .lhero-stat-label { font-size: 9.5px; }
  .lhero-buttons { flex-direction: row; flex-wrap: wrap; }
  .lhero-btn-s { display: inline-flex; }

  /* スタック時: clip-path廃止、フラット表示 */
  .lhero-right-wrap::before { clip-path: none; background: #D4F5F3; height: 4px; top: auto; bottom: 0; }
  .lhero-right-wrap::after  { clip-path: none; background: #ECEAE4; }
  .lhero-right { padding: 36px 20px 48px; height: auto; }
  .lhero-news-card { flex-direction: row; gap: 10px; }
  .lhero-news-tag { margin-top: 3px; align-self: auto; }
  .lhero-news-title { font-size: 12.5px; }
  .lhero-news-date { font-size: 10px; }
}

#post_slider {
  display: none;
}

.top #content {
  padding-top: 0;
}

.lhero-headline .lhero-ul {
  font-size: 1.2em;
}