/*
Theme Name: FableTech Theme
Theme URI: https://example.com/
Author: 今村羊佑
Author URI: https://example.com/
Description: FableTech（架空のITコンサルティング企業）向けのコーポレートWordPressテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fabletech
*/

/* ------------------------------
   Reset / Base
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1d283a 0, #020617 55%);
  color: #e5e7eb;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* カスタムプロパティ */
:root {
  --ft-bg: #0f172a;
  --ft-bg-soft: #0b1120;
  --ft-surface: #020617;
  --ft-accent: #38bdf8;
  --ft-accent-soft: rgba(56, 189, 248, 0.15);
  --ft-text: #e5e7eb;
  --ft-muted: #9ca3af;
  --ft-border: #1f2937;
  --ft-radius: 14px;
  --ft-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
  --ft-max-width: 1120px;
}

/* ------------------------------
   Layout
------------------------------ */
.site-header,
.site-footer {
  padding-inline: 20px;
}
.site-main {
  padding-inline: 0;
}


/* ------------------------------
   Header
------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.98),
    rgba(15, 23, 42, 0.92),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #38bdf8, #0ea5e9 40%, #0369a1);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5), 0 10px 30px rgba(15, 23, 42, 0.8);
}

.site-logo-text-main {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-logo-text-sub {
  font-size: 11px;
  color: var(--ft-muted);
}

/* ------------------------------
   Navigation
------------------------------ */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 14px;
  color: var(--ft-muted);
  padding: 4px 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #22d3ee, #38bdf8, #6366f1);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease-out;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: #e5e7eb;
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after {
  transform: scaleX(1);
}

/* ------------------------------
   Footer
------------------------------ */
.site-footer {
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  background: #020617;
  padding-block: 18px 24px;
  font-size: 12px;
  color: var(--ft-muted);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* ------------------------------
   Hero Area
------------------------------ */

.hero-grid {
  display: grid;
  gap: 36px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.8);
  font-size: 11px;
  color: var(--ft-muted);
}

.hero-title {
  font-size: clamp(32px, 3.2vw, 40px);
  line-height: 1.1;
  margin: 18px 0 12px;
}

.hero-title span {
  color: var(--ft-accent);
}

/* ------------------------------
   Sections
------------------------------ */
.section {
  padding-block: 40px;
}

.section-intro .section-header{
  margin-bottom: 12px; /* ← ここが効く */
}

.section-intro .section-lead{
  margin-bottom: 8px;
}

.section-title {
  font-size: 20px;
  margin: 6px 0 4px;
}

/* ------------------------------
   Responsive
------------------------------ */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }

  .section {
    padding-block: 52px;
  }
}

.page-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* サービスページ本文の余白調整 */
.page-body {
  padding-block: 32px 56px;
  font-size: 14px;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .page-hero-visual {
    padding-top: 56px;
    padding-bottom: 32px;
  }

  .page-body {
    padding-block: 40px 72px;
  }
}

.page-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Services: page title band ===== */
.page-hero{
  background: #f6f7f9;          /* 背景差 */
  border-bottom: 1px solid #e6e8ee; /* 下線 */
}

.page-hero__inner{
  padding: 22px 0;              /* 帯の高さ：必要なら調整 */
}

.page-hero__eyebrow{
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}

.page-hero__title{
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

/* ===== Intro CTA ===== */
.intro-actions{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.intro-note{
  margin: 0;
  font-size: 13px;
  opacity: .75;
}

/* =========================================================
   Services Page (page-services.php)
   方針：ヒーロー画像は使わない / 見出し帯を採用 / ②×③の中間
========================================================= */

/* Section spacing（全体の呼吸を少し広げる：既存より上書き） */
.section {
  padding-block: 56px;
}

/* セクション見出しの整え（既存を活かしつつ読みやすく） */
.section-header{
  margin-inline: auto;
  margin-bottom: 22px;
}

.section-title{
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.25;
  margin: 6px 0 6px;
}

.section-lead{
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(229, 231, 235, 0.9);
}

/* ===== 見出し帯（赤枠）：ダークテーマに馴染ませる ===== */
.page-hero{
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.page-hero__inner{
  padding-block: 18px;
}

.page-hero__eyebrow{
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ft-muted);
}

.page-hero__title{
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  color: var(--ft-text);
}

/* ===== 冒頭の小CTA（案1） ===== */
.intro-actions{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.intro-note{
  margin: 0;
  font-size: 13px;
  color: rgba(229, 231, 235, 0.72);
}

/* ===== カードの統一（service-card / about-panel） ===== */
.service-card,
.about-panel{
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--ft-radius);
  padding: 22px 20px;
  background: rgba(2, 6, 23, 0.65);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.service-title{
  margin: 0 0 8px;
  line-height: 1.3;
}

.service-meta{
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(229, 231, 235, 0.7);
}

.service-body{
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(229, 231, 235, 0.9);
}

/* ===== グリッドの最低限（未定義なら効く。既にあるなら上書きしない） ===== */
.service-grid{
  display: grid;
  gap: 16px;
}

.about-grid{
  display: grid;
  gap: 16px;
}

@media (min-width: 768px){
  .service-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .about-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* ===== 本文冒頭に置く画像（緑枠）を入れる場合 ===== */
.service-intro-image{
  max-width: 850px; 
  margin: 24px auto 0;
}

.section-intro .section-header{
  margin-bottom: 16px;
}

.service-intro-image img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ft-radius);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* ===== Service cards: polish ===== */
.service-card{
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.service-card:hover{
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.38); /* ft-accent寄り */
  background: rgba(2, 6, 23, 0.78);
}

.service-title{
  font-size: 16px;
  letter-spacing: 0.01em;
}

.service-body{
  margin-top: 10px;
}

/* Support Menu のカードだけ、少し詰めて読みやすく */
.service-grid .service-card{
  padding: 20px 18px;
}

.service-intro-caption{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(229,231,235,.65);
  text-align: center;
}

.service-intro-context{
  margin-top: 12px;
  font-size: 14px;
  color: rgba(229,231,235,.8);
}

.intro-cta-lead{
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(229,231,235,.85);
}

.intro-note{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(229,231,235,.6);
}

/* ===== CTA Link (Next Step / Contact) ===== */
.ft-cta-link{
  display: inline-flex;
  align-items: center;
  
  margin-top: 12px;

  font-weight: 600;
  letter-spacing: 0.02em;

  color: rgba(229, 231, 235, 0.92); /* --ft-textに寄せて少しだけ強く */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(56, 189, 248, 0.55); /* --ft-accent寄り */

  transition: transform 0.15s ease, opacity 0.15s ease, text-decoration-color 0.15s ease;
  opacity: 0.92;
}

.ft-cta-link:hover{
  opacity: 1;
  transform: translateY(-1px);
  text-decoration-color: rgba(56, 189, 248, 0.9);
}

.ft-cta-link:focus-visible{
  outline: 2px solid rgba(56, 189, 248, 0.65);
  outline-offset: 4px;
  border-radius: 10px;
}

.ft-cta-link__icon{
  color: rgba(56, 189, 248, 0.95);
  transform: translateY(-1px);
}

/* サービスカード内の見出し + アイコン */
.service-title{
  display: flex;
  align-items: center;
  gap: 10px; /* アイコンと文字の間隔 */
}

/* アイコン枠 */
.service-card__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px; /* 伸び縮み防止 */
  color: rgba(56, 189, 248, 0.95); 
}

/* 実体のSVGサイズを固定 */
.service-card__icon svg{
  width: 100%;
  height: 100%;
  display: block; /* 余計な隙間対策 */
}

/* Contact form wrapper */
.ft-form{
  max-width: 720px;
  padding: 22px 22px 18px;
  margin-top: 18px;

  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.28);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
}

/* Row spacing */
.ft-form__row{
  margin: 0 0 16px;
}

.ft-form__label{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin: 0 0 8px;
  color: rgba(229,231,235,0.95);
}

.ft-form__req{
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.35);
  color: rgba(56,189,248,0.95);
  background: rgba(56,189,248,0.08);
}

/* Inputs */
.ft-form input[type="text"],
.ft-form input[type="email"],
.ft-form textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;

  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.35);
  color: rgba(229,231,235,0.96);

  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.ft-form textarea{
  min-height: 180px;
  resize: vertical;
}

/* Focus */
.ft-form input:focus,
.ft-form textarea:focus{
  border-color: rgba(56,189,248,0.65);
  box-shadow: 0 0 0 4px rgba(56,189,248,0.18);
}

/* CF7 validation */
.ft-form .wpcf7-not-valid{
  border-color: rgba(248, 113, 113, 0.75) !important;
  box-shadow: 0 0 0 4px rgba(248,113,113,0.18);
}

.ft-form .wpcf7-not-valid-tip{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(248,113,113,0.95);
}

/* Actions */
.ft-form__actions{
  margin-top: 18px;
}

/* Submit button (use your existing primary button if already defined) */
.ft-form input[type="submit"].ft-btn-primary{
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
}

/* Note */
.ft-form__note{
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(203,213,225,0.85);
}

.company-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  opacity: 0.9;

  filter: saturate(0.9) brightness(0.95);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.company-visual-sub {
 max-width: 60%;
 margin-left: auto;  
 margin-top: 28px;
 margin-bottom: 20px;  
}

.company-visual-sub img {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* ========== 共通：company-visual（最低限・見た目を作らない） ========== */
.company-visual {
  display: block;
}

.company-visual__img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Case Cards (一覧) --- */
.case-card{
  max-width: 850px;
  margin: 18px auto 0;
  padding: 18px 18px 16px;

  border-radius: var(--ft-radius);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  text-align: left;
}

.case-card h3{
  margin: 0 0 6px;
}

.case-card p{
  margin: 8px 0 0;
  color: rgba(229, 231, 235, 0.82);
  line-height: 1.75;
}

.case-card strong{
  color: rgba(226, 232, 240, 0.95);
}

.case-card__action{
  margin-top: 10px;
}


/* --- Detail block --- */
.case-detail{
  max-width: 850px;
  margin: 18px auto 0;
  padding: 22px 18px;

  border-radius: var(--ft-radius);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.22);
}

.case-detail h3{
  margin: 18px 0 6px;
}

.case-detail h3:first-child{
  margin-top: 0;
}

.case-detail p{
  margin: 0;
  color: rgba(229, 231, 235, 0.82);
  line-height: 1.95;
}

/* --- CTA block --- */
.case-cta{
  max-width: 850px;
  margin: 24px auto 0;
  padding: 18px;

  border-radius: var(--ft-radius);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.18);
}

.case-cta p{
  margin: 0 0 10px;
  color: rgba(229, 231, 235, 0.82);
  line-height: 1.9;
}

html{ scroll-behavior: smooth; }

:where(#case01-detail, #case02-detail){
  scroll-margin-top: 96px; /* ヘッダー高さに合わせて調整 */
}

/* --- header stabilizer --- */
header.site-header{
  position: sticky;
  top: 0;
  z-index: 9999;

  transform: none !important;
  transition: none !important;
}

/* WPの管理バー表示時（ログイン時）だけ top を下げる */
.admin-bar header.site-header{
  top: 32px;
}
@media (max-width: 782px){
  .admin-bar header.site-header{
    top: 46px;
  }
}

.case-section-title {
  position: relative;
  padding-left: 12px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.case-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 3px;
  height: 1.2em;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
}

/* --- Cases: note block (「一例です」ゾーン) --- */
.cases-note{
  max-width: 850px;
  margin: 28px 0 0;
  padding: 16px 18px;

  border-radius: var(--ft-radius);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.14);
  position: relative;
}

/* 左線で「注釈・補足」感を出す（やりすぎない） */
.cases-note::before{
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: rgba(226, 232, 240, 0.35);
  border-radius: 2px;
}

.cases-note p{
  margin: 0 0 10px;
  line-height: 1.85;
  color: rgba(229, 231, 235, 0.84);
}

.cases-note p:last-child{
  margin-bottom: 0;
}

/* --- Header nav: active & hover --- */
.site-nav .menu a,
.site-nav .nav-list a,
.site-header .menu a{
  text-decoration: none;
  opacity: 0.85;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: opacity .15s ease, border-color .15s ease;
}

.site-nav .menu a:hover,
.site-nav .nav-list a:hover,
.site-header .menu a:hover{
  opacity: 1;
  border-bottom-color: rgba(226, 232, 240, 0.35);
}

/* 現在ページ（WordPressが自動で付けるクラス） */
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-header .current-menu-item > a,
.site-header .current_page_item > a{
  opacity: 1;
  border-bottom-color: rgba(56, 189, 248, 0.75);
}

/* メニュー内CTA（お問い合わせ） */
.site-header .nav-cta > a{
  opacity: 1;
  border-bottom-color: rgba(56, 189, 248, 0.65);
}

.site-header .nav-cta > a:hover{
  border-bottom-color: rgba(56, 189, 248, 0.95);
}

.hero-grid{
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Global container padding (recommended) --- */
.ft-container{
  max-width: var(--ft-max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 1024px){
  .ft-container{
    padding-inline: 40px;
  }
}

/* ---- Global container padding (HOME含む全ページで効かせる) ---- */
.ft-container{
  max-width: var(--ft-max-width);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 1024px){
  .ft-container{
    padding-inline: 40px;
  }
}

/* ---- Sections: header typography unify ---- */
.section{
  padding-block: 56px;
}

.section-header{
  margin-bottom: 22px;
}

.section-kicker{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ft-muted);
}

.section-title{
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.25;
  margin: 6px 0 6px;
}

.section-lead{
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(229, 231, 235, 0.9);
}

/* ---- Hero: grid width & spacing ---- */
.hero-grid{
  display: grid;
  gap: 36px;
}

@media (min-width: 768px) {
  .hero-grid{
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }
}

.service-grid{
  display: grid;
  gap: 16px;
}
.about-grid{
  display: grid;
  gap: 16px;
}

@media (min-width: 768px){
  .service-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .about-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* --- HOME: case card (Aboutの下) --- */
.section-split{
  padding-top: 0; /* Aboutの直後で間延びしないように */
}

.home-case-card{
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--ft-radius);
  background: rgba(2, 6, 23, 0.55);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  padding: 22px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-case-card__title{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.home-case-card__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(229, 231, 235, 0.85);
}

.home-case-card__actions{
  flex: 0 0 auto;
}

.section-footerlink{
  padding-top: 0;
  padding-bottom: 24px; 
}

/* =========================
   Hero background animation
========================= */

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(6, 16, 40, 0.94), rgba(7, 18, 46, 0.86));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.hero-grid {
  position: relative;
  z-index: 2;
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 2;
}

.hero-visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  opacity: 0;
  transform: scale(1);
  will-change: opacity, transform;
}

.hero-bg-1 {
  background-image: url("./assets/img/front/fabletech-hero-trust.png");
  animation:
    heroFade1 16s ease-in-out infinite,
    heroZoom1 16s ease-in-out infinite;
}

.hero-bg-2 {
  background-image: url("./assets/img/front/fabletech-hero-tech.png");
  animation:
    heroFade2 16s ease-in-out infinite,
    heroZoom2 16s ease-in-out infinite;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(3, 10, 28, 0.96) 0%,
      rgba(4, 12, 32, 0.93) 32%,
      rgba(5, 16, 40, 0.82) 52%,
      rgba(7, 20, 48, 0.50) 72%,
      rgba(7, 20, 48, 0.34) 100%);
}

@keyframes heroFade1 {
  0%, 44% {
    opacity: 1;
  }
  50%, 94% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes heroFade2 {
  0%, 44% {
    opacity: 0;
  }
  50%, 94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes heroZoom1 {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes heroZoom2 {
  0% {
    transform: scale(1.02);
  }
  50% {
    transform: scale(1.055);
  }
  100% {
    transform: scale(1.02);
  }
}

.hero-title,
.hero-lead,
.hero-meta,
.hero-kicker {
  position: relative;
  z-index: 2;
}

.hero-card {
  background: rgba(7, 18, 46, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 960px) {
  .hero-bg {
    background-position: 72% center;
  }

  .hero-bg-overlay {
    background:
      linear-gradient(180deg,
        rgba(3, 10, 28, 0.95) 0%,
        rgba(4, 12, 32, 0.88) 45%,
        rgba(6, 18, 44, 0.72) 100%);
  }
}

/* =========================
   Hero: full background style
========================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 24px;
  min-height: 500px;
  background: linear-gradient(180deg, #07152f 0%, #061126 100%);
}

.hero .ft-container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.72fr);
  gap: 56px;
  align-items: center;
  min-height: 390px;
  padding: 24px 0 6px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1);
  will-change: opacity, transform;
}

.hero-bg-1 {
  background-image: url("./assets/img/front/fabletech-hero-trust.png");
  animation:
    heroFade1 18s ease-in-out infinite,
    heroZoom1 18s ease-in-out infinite;
}

.hero-bg-2 {
  background-image: url("./assets/img/front/fabletech-hero-tech.png");
  animation:
    heroFade2 18s ease-in-out infinite,
    heroZoom2 18s ease-in-out infinite;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(2, 8, 22, 0.95) 0%,
      rgba(3, 10, 28, 0.92) 20%,
      rgba(4, 12, 32, 0.82) 38%,
      rgba(5, 16, 40, 0.62) 58%,
      rgba(7, 20, 48, 0.42) 76%,
      rgba(7, 20, 48, 0.34) 100%);
}

@keyframes heroFade1 {
  0%, 44% { opacity: 1; }
  50%, 94% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes heroFade2 {
  0%, 44% { opacity: 0; }
  50%, 94% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes heroZoom1 {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes heroZoom2 {
  0% { transform: scale(1.02); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1.02); }
}

/* テキストの見え方 */
.hero-title,
.hero-lead,
.hero-kicker,
.hero-actions,
.hero-meta {
  position: relative;
  z-index: 2;
}

.hero-title {
  max-width: 12ch;
  margin-bottom: 24px;
}

.hero-lead {
  max-width: 40rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 52rem;
}

.hero-meta-pill {
  white-space: normal;
}

/* 右カード */
.hero-card {
  position: relative;
  z-index: 2;
  align-self: start;
  margin-top: 36px;
  padding: 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(7, 18, 46, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.20);
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding: 28px 0 44px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 20px 0 0;
  }

  .hero-card {
    margin-top: 0;
  }

  .hero-bg {
    background-position: 68% center;
  }

  .hero-bg-overlay {
    background:
      linear-gradient(180deg,
        rgba(2, 8, 22, 0.94) 0%,
        rgba(4, 12, 32, 0.82) 44%,
        rgba(7, 20, 48, 0.62) 100%);
  }
}

/* =========================
   Services page alignment
========================= */

.services-page .section-header {
  max-width: 1100px;
  margin-inline: auto;
}

.services-hero__inner,
.services-section__inner {
  max-width: 1100px;
  margin-inline: auto;
}

.services-hero .section-title,
.services-menu .section-title,
.services-flow .section-title,
.services-cta .section-title {
  max-width: 20ch;
}

.services-hero .section-lead,
.services-menu .section-lead,
.services-flow .section-lead,
.services-cta .section-lead {
  max-width: 760px;
}

.service-intro-context {
  max-width: 760px;
  margin: 0 0 28px;
}

.service-intro-image {
  max-width: 860px;
  margin: 36px auto 0;
}

.company-visual__img {
  display: block;
  width: 100%;
  height: auto;
}

.service-intro-caption {
  max-width: 860px;
  margin: 14px auto 0;
}

.services-menu .service-grid,
.services-flow .about-grid {
  max-width: 1100px;
  margin-inline: auto;
}

.services-cta__box {
  max-width: 1100px;
  margin-inline: auto;
}

@media (max-width: 960px) {
  .services-hero .section-title,
  .services-menu .section-title,
  .services-flow .section-title,
  .services-cta .section-title,
  .services-hero .section-lead,
  .services-menu .section-lead,
  .services-flow .section-lead,
  .services-cta .section-lead,
  .service-intro-context,
  .service-intro-caption {
    max-width: none;
  }

  .service-intro-image {
    margin-top: 28px;
  }
}

.services-hero .section-title,
.services-cta .section-title {
  max-width: 53ch;
}

.services-menu .section-title,
.services-flow .section-title {
  max-width: 18ch;
}