/* CSS Document */

/* =========================
   ベース設定
========================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: #222;
  line-height: 1.7;
}

a { text-decoration: none; color: #0056a6; }
a:hover { opacity: 0.8; }

.container {
  width: 90%;
  max-width: 1120px;
  margin: auto;
}

/* =========================
   ヘッダー
========================= */
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0056a6;
}

.nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}


.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
}

.small-btn {
  padding: 0.5rem 1.2rem;
  font-size: 1.0rem;
}

.btn-blue-solid {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: #0056a6;   /* 青背景 */
  color: #fff;           /* 白文字 */
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.85rem;
}

.btn-blue-solid:hover {
  background: #1a6fd0;  /* ← 明るい青 */
  color: #fff;
}


#custom,
#news,
#vctf,
#mvvs,
#neoflex,
#kpev,
#emcable,
#curl,
#coax,
#etc {
  scroll-margin-top: 80px; /* ← ヘッダーの高さに合わせて調整 */
}

@media (max-width: 767px) {

  .header .container {
    margin: 0;
    padding: 10px 8px 0px 3px; 
    /*   ↑上   ↑左右   ↑下
         上6px / 下2px でシャープに */
    width: 100%;
  }

  .header-inner {
    justify-content: flex-start;
    align-items: center;
  }

  .logo {
    margin-right: auto;
    display: block;
  }
}
/* =========================
   パンくずリスト
========================= */

.breadcrumb {
  background: #f5f7fb; /* 薄い青グレーの帯 */
  padding: 10px 0;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #e3e7ef;
  border-bottom: 1px solid #e3e7ef;
}

.breadcrumb .container {
  padding-left: 12px;
}

.breadcrumb a {
  color: #1a4fa3;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .current {
  color: #333;
  font-weight: 600;
}

.breadcrumb span {
  margin: 0 4px;
  color: #999;
  font-size: 1.0rem;
}

/* =========================
   メインビジュアル
========================= */

/* ロゴ */
.logo-img {
  height: 48px;
}

/* メインビジュアル背景画像 */
.hero-slider {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 1.4s cubic-bezier(0.5, 0.0, 0.3, 1);
}

.hero-slide {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

@media (max-width: 640px) {
  .hero-caption {
    left: 4%;          /* ← 8% → 4% にして自然な左寄せ */
    transform: translateY(-50%);
    text-align: left;
  }
}
@media (max-width: 640px) {
  .top-hero-text h1 {
    font-size: 1.2rem; /* ← 見出しを小さく */
  }

  .top-hero-text p {
    font-size: 1.0rem; /* ← 説明文も少し小さく */
  }
}
/* ← スライドここまで */

/* 製品カード画像 */
.card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0; /* ← ここを四角に */
  margin-bottom: 0.8rem;
}

/* 会社情報の写真 */
.about-img {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 36rem;
  margin: auto;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: #fff;
  color: #0056a6;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border: 2px solid #fff;     /* ← 白枠 */
  color: #fff;                /* ← 文字も白 */
  background: transparent;    /* ← 背景透明 */
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #fff;           /* ← ホバーで白背景 */
  color: #0056a6;             /* ← 文字を青に反転 */
}

.btn-outline-blue {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border: 2px solid #0056a6; /* 青枠 */
  color: #0056a6;            /* 青文字 */
  background: transparent;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-outline-blue:hover {
  background: #0056a6; /* ホバーで青背景 */
  color: #fff;         /* 白文字に反転 */
}

/* =========================
   セクション共通
========================= */
.section {
  padding: 2.0rem 0;/* ← 各セクションの高さ */
}

.section-alt {
  background: #f7f9fb;
}

.section-accent {
  background: #0056a6;
  color: #fff;
  text-align: left; /* ← 左寄せに変更 */
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.0rem;
  line-height: 1.2;
  border-left: 4px solid #0056a6;
  padding-left: 0.8rem;
}

.section-title .section-sub {
  display: block;          /* ← 英語を改行して下に配置 */
  font-size: 1.0rem;
  color: #777;
  margin-top: 0.2rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.section p {
  font-size: 0.85rem; /* ← 少し小さく */
  line-height: 1.6;
}

.section-contact {
  background: linear-gradient(135deg, #004a8f, #4fa3e3);
  color: #fff;
  text-align: left;
  padding: 1.5rem 0;
}

.section-contact .section-title {
  border-left: 4px solid #fff; /* ← 青 → 白に変更 */
}

.contact-inner {
  max-width: 600px;
  padding-left: 0.8rem; /* ← 左に少しだけ余白（会社情報と同じ感覚） */
}

/* お問い合わせページのタイトル下の余白を詰める */
.section .section-title {
  margin-bottom: 1.0rem; /* ← デフォルトよりかなり詰める */
}

.news-container {
  padding-top: 0 !important; /* ← ここが一番効く */
}

.section-title .section-sub {
  display: block;
  font-size: 0.8rem;
  color: #e0e0e0; /* 白背景より少し明るめに調整 */
  margin-top: 0.2rem;
  letter-spacing: 0.05em;
}

#news..section-news .news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}


/* トップページの新着情報（B案：極細・薄グレーの短線） */
#news.section-news .news-list li {
  position: relative;
  padding-left: 28px; /* ← 短線と日付の間に余白を追加 */
}

/* ★ 短線の位置を下げて、薄いグレーで存在感を消す */
#news.section-news .news-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.0em; /* ← ここで上下位置を微調整（下げた） */
  width: 12px; /* ← 少し長めにして上品に */
  height: 1px;
  background: #ccc; /* ← 薄いグレーで“ほぼ空気”に */
  border-radius: 2px;
  opacity: 0.6; /* ← さらに存在感を薄く */
}




.section-title a.news-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.section-title a.news-link:hover {
  opacity: 0.8;
}

/* トップページの新着情報を中央寄せ */
.news-list-wrapper {
  max-width: 1100px; /* ← 好きな幅に調整できる */
  margin: 0 auto;
}


.fadein {/* アニメーション */
  opacity: 0;
  transform: translateY(25px);
  transition: 1.3s ease-out;
}

.fadein.visible {/* アニメーション */
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   カード
========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.0rem;
}

.card {
  background: #fff;
  padding: 0.7rem;/* ← 高さ */
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: 0.2s;
  font-size: 0.85rem;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-weight: 600;
}

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0.8rem;
}

.card h3 {
  margin: 0 0 0.3rem 0; /* ← 下の余白を詰める */
  line-height: 1.2;     /* ← 行間を狭くする */
  font-size: 1.1rem;
}

.card p {
  margin: 0 0 0.4rem 0; /* ← 下の余白を詰める */
  line-height: 1.4;     /* ← 行間を少し狭く */
  font-size: 0.85rem;
}


/* =========================
   2カラム
========================= */
.two-column {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
}

.feature-box {
  background: #fff;
  border-left: 4px solid #0090d0;
  padding: 1.4rem;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  list-style: none;      /* ← これが絶対必要 */
  position: relative;
  padding-left: 1.2rem;
}

.list-check li::before {
  content: "> ";
  color: #0090d0;
  font-weight: bold;
}


.about-links {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.about-links li {
  margin-bottom: 0.4rem;
}

.about-links a {
  font-weight: 600;
  color: #0056a6;
}



/* =========================
   フッター
========================= */
.footer {
  background: #014985;
  color: #ccc;
  padding: 2rem 0;
  font-size: 0.85rem;
}

/* 左右に並べる */
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

/* 左側：ロゴ＋住所 */
.footer-left {
  max-width: 330px;
}

.footer-logo {
  height: 48px;
  margin-bottom: 0.2rem;
}

.footer-address {
  line-height: 1.5;
  margin-top: 0.2rem; /* ← 必要なら追加 */
  color: #ccc;
}

/* 右側：4カラム */
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  border-left: 4px solid #4fa3e3;
  padding-left: 0.5rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.3rem;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

/* スマホ対応 */
@media (max-width: 800px) {
  .footer-flex {
    flex-direction: column;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   レスポンシブ
========================= */
@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-column {
    grid-template-columns: 1fr;
  }
}



/* =========================
   ハンバーガーメニュー
========================= */
/* ハンバーガー（PCでは非表示） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #0056a6;
  border-radius: 2px;
}

/* スマホで表示 */
@media (max-width: 640px) {
  .hamburger {
    display: flex;
    z-index: 200;
  }

  .nav ul {
    position: fixed;
    top: 60px;
    right: 0;
    width: 220px;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 150;
  }

  .nav ul.show {
    display: flex;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   製品一覧ページ
========================= */
/* 製品一覧ページのタイトル帯 */
.page-hero {
  padding: 4rem 0; /* 高さ調整 */
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.products-hero {
  background: url("images/hero5.jpg") center/cover no-repeat;
}

.company-hero {
  background: url("images/hero6.jpg") center/cover no-repeat;
}

.custom-hero {
  background: url("images/hero7.jpg") center/cover no-repeat;
}

.news-hero {
  background: url("images/hero8.jpg") center/cover no-repeat;
}

.page-hero .section-title {
  border-left: 4px solid #fff; /* 白ラインに変更 */
  color: #fff;
}

.page-hero .section-sub {
  color: #eee;
}

.page-hero .btn-blue-solid {
  background: rgba(0,0,0,0.4);
  border: 1px solid #fff;
}

.page-hero .btn-blue-solid:hover {
  background: rgba(255,255,255,0.8);
  color: #0056a6;
}




/* 製品一覧の全体レイアウト */

.category-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f2e5d; /* 深い藍色 */
  border-left: 6px solid #1a4fa3; /* 和モダン青のアクセント */
  padding-left: 12px;
  margin-bottom: 16px;
}


/* 全体：PCは2列、スマホは1列 */
/* PC：2列、スマホ：1列 */
.product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* カード本体（PCは横並び） */
.product-item {
  display: flex;
  flex-direction: row; /* ← PCは横並び */
  align-items: flex-start; /* ← PCでも上揃えにする */
  gap: 16px;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.product-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 左の画像 */
.product-item img {
  width: 120px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
}

/* 右側のテキスト */
.product-item h4 {
  line-height: 1.3;
  margin-bottom: 4px;
}

.product-item h4 .desc {
  display: block; /* ← これで自動的に2行目になる */
  color: #1a4fa3;
  font-size: 0.9em;
}

.product-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.2;
}

.product-item .product-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ← これに変更！ */
  gap: 4px;
}

.product-item .name {
  font-weight: bold;
  font-size: 1.1rem;
  display: block;
  line-height: 1.1; /* ← 行間を詰める */
  margin-bottom: 2px; /* ← 下の余白を少しだけ */
}

.product-item .desc {
  font-weight: bold;
  color: #1a4fa3;
  font-size: 0.9rem;
  display: block;
  line-height: 1.1; /* ← 行間を詰める */
  margin-bottom: 3px; /* ← p との距離を調整 */
}

@media (max-width: 640px) {
  .product-list {
    grid-template-columns: 1fr;
  }

  .product-item {
    flex-direction: row;   /* ← スマホでも横並びにする */
    text-align: left;      /* ← 左寄せの方が読みやすい */
    align-items: flex-start;
  }

  .product-item img {
    width: 80px;          /* ← スマホ用に少し小さめに */
    max-width: none;
    margin: 0;
  }

  .product-item h4 {
    font-size: 1rem;   /* ← ここを好みで調整 */
    line-height: 1.3;  /* ← 行間も少し詰めると上品 */
  }

  .product-item p {
    font-size: 0.8rem;
    word-break: break-all;
    line-height: 1.4;
  }
  .product-text {
    padding-left: 10px;
  }

}

/* =========================
   会社案内（沿革）ページ
========================= */
/* ===== 沿革ページ（タイムライン） ===== */

.timeline {
  position: relative;
  margin-left: 2rem;
  padding-left: 2rem;
  border-left: 4px solid #0056a6;
}

.timeline-item {
  margin-bottom: 2rem;
}

.timeline-year {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0056a6;
  margin-bottom: 0.3rem;
}

.timeline-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-content img {
  width: 100%;
  max-width: 200px;
  margin-top: 0.6rem;
  margin-bottom: 0.3rem; /* ← 画像同士の間隔を確保 */
  margin-right: 1.5rem; /* ← 画像同士の間隔を確保 */
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== ページサブタイトル ===== */
.page-subtitle {
  padding: 2rem 0 1rem;
  text-align: left;
}

.page-subtitle-text {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0056a6;
  line-height: 1.3;
}

.page-subtitle-text span {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.2rem;
}

/* タイムラインの丸 */
.timeline-item {
  position: relative;
  padding-left: 1.5rem; /* 年号の左に余白 */
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.6rem; /* ← 縦棒の中心に合わせる */
  top: 0.8rem;  /* ← 年号の高さに合わせて微調整 */
  width: 12px;
  height: 12px;
  background: #0056a6;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #0056a6;
}


/* スマホ */
@media (max-width: 640px) {
  .timeline {
    margin-left: 1rem;
    padding-left: 1.2rem;
  }
.timeline-year {
  font-size: 1.15rem; /* ← 小さめに */
  font-weight: 700;
  color: #0056a6;
  margin-bottom: 0.2rem;
}
  .timeline-item::before {
    left: -1.8rem; /* ← スマホ用に少し右へ寄せる */
    top: 0.5rem;   /* ← 年号の高さに合わせて微調整 */
  }
  .subtitle-flex {
    flex-direction: column;
    align-items: flex-start !important; /* ← これが決め手 */
    gap: 0.4rem;
  }

  .page-subtitle-text {
    text-align: left !important; /* 念のため */
  }

  .page-links {
    margin-top: 0.3rem;
  }


}



/* 会社概要 */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.company-table th {
  width: 25%;
  background: #f0f6ff;
  padding: 0.8rem;
  border: 1px solid #ddd;
  font-weight: 600;
  color: #0056a6;
}

.company-table td {
  padding: 0.8rem;
  border: 1px solid #ddd;
  background: #fff;
}

/* ===== ページ内リンク（会社概要 / 沿革） ===== */
.subtitle-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-links a {
  margin-left: 1rem;
  color: #0056a6;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.page-links a:hover {
  border-bottom: 2px solid #0056a6;
}

.page-links a.active {
  border-bottom: 2px solid #0056a6;
}

/* ===== 高級感のある2カラム会社概要 ===== */

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2rem;
  margin-top: 1.5rem;
}

.profile-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.profile-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0056a6;
  letter-spacing: 0.03em;
}

.profile-value {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.movie-description {
  margin-top: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.company-movie {
  width: 100%;
  height: auto;
  max-width: 640px; /* ← PCではこれ以上大きくならない */
  display: block;
  border-radius: 4px;
}

/* スマホ */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 拠点案内（Locations） ===== */

.locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.2rem;
}

.location-item {
  padding: 1.2rem 1rem;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.location-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0056a6;
  margin-bottom: 0.4rem;
}

.location-item p {
  margin: 0.2rem 0;
  color: #333;
  line-height: 1.6;
}

.location-map {
  margin-top: 0.8rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #ddd;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-photo {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

/* スマホ */
@media (max-width: 768px) {
  .locations {
    grid-template-columns: 1fr;
  }
}


/* =========================
   新着情報ページ
========================= */

/* ニュース一覧専用の中央寄せ */
.news-container {
  max-width: 1000px; /* ← ここで中央寄せの幅を調整 */
  margin: 0 auto;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  padding: 15px 0; /* ← 行間をさらに広げてゆったり */
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  gap: 22px; /* ← 日付とタイトルの間に余白 */
  align-items: flex-start;
  position: relative;
}

/* ★ 左の縦ラインに上下の余白をつける */
.news-list li::before {
  content: "";
  width: 4px;
  height: calc(100% - 12px); /* ← 上下に6pxずつ余白 */
  background: #CCCCCC;
  position: absolute;
  left: -14px;
  top: 6px; /* ← 上の余白 */
  border-radius: 2px;
}

/* ★ 年月日を大きめに、余白も追加 */
.news-list .date {
  color: #1a4fa3;
  font-weight: 500;
  font-size: 1rem; /* ← 少し大きくした */
  margin-right: 10px; /* ← タイトルとの距離 */
  display: inline-block;
  padding-top: 2px;
}

.news-list a {
  color: #333;
  text-decoration: none;
  line-height: 1.7; /* ← タイトルの行間も広げる */
  font-weight: 500;
}

.news-list a:hover {
  text-decoration: underline;
}

.pdf-icon {
  width: 25px;
  height: auto;
  vertical-align: middle;
  margin-right: 6px;
}


/* ============================
   特注対応ページ専用スタイル
   ============================ */

/* セクション全体 */
.custom-section {
    max-width: 1100px;
    margin: 0px auto;
    padding: 30px 20px;
}

/* タイトル */
.custom-title {
    font-size: 26px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 20px;
    border-left: 6px solid #003366;
    padding-left: 14px;
}

/* リード文 */
.custom-lead {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #333;
}

/* カードレイアウト */
.custom-card-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* カード全体 */
.custom-card {
    background: #fff;
    padding: 1.3rem;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.custom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* 画像ブロック */
.custom-card-img {
    margin-top: 10px;
    overflow: hidden;
}

.custom-card-img img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: cover;
    display: block;
}

.custom-card h3 {
    margin-top: 0.4rem;
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
    line-height: 1.2;
    color: #003366;
}

.custom-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.custom-btn {
    display: inline-block;
    padding: 12px 48px;
    background: #0056a6;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    border-radius: 0;
    margin-top: 20px;
    transition: background .3s ease;
}

.custom-btn:hover {
    background: #1a6fd0;
}


/* CTAエリア */
.cta-area {
    margin-top: 60px;
    padding: 40px;
    background: #f5f8fc;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}

.cta-area h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #003366;
}

.cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #003366;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    border-radius: 0;
    transition: background .3s ease;
}

.cta-btn:hover {
    background: #001f44;
}

/* スマホ調整 */
@media (max-width: 767px) {
    .custom-title {
        font-size: 26px;
    }

    .custom-lead {
        font-size: 16px;
    }

    .cta-area {
        padding: 36px 20px;
    }
}

/* ============================
   カスタム対応の流れ（写真付き）
   ============================ */

.flow-section {
    max-width: 1100px; /* ← custom-section と揃える */
    margin: 0 auto;
    padding: 30px 20px; /* ← 50px → 30px に揃える */
}


/* ステップ全体 */
.flow-steps {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 各ステップ（横並び） */
.flow-step {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 30px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    border-left: 6px solid #003366;
}

/* 左側の写真 */
.flow-img {
    width: 220px;
    flex-shrink: 0;
}

.flow-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 右側のテキスト */
.flow-text {
    flex: 1;
}

.flow-step h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #003366;
}

.flow-step p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* flow-number と h3 を横並びに揃える */
.flow-text-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.flow-number {
    font-size: 26px;
    font-weight: 700;
    color: #0066CC;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.flow-text-header h3 {
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* ============================
   スマホ対応（完全修正版）
   ============================ */
@media (max-width: 767px) {

    /* flow-section を custom-section と揃える */
    .custom-section {
        padding: 30px 16px; /* ← custom-section のスマホ値 */
    }

    .flow-section {
        padding: 20px 16px; /* ← custom-section と完全一致 */
    }
	
    /* ステップを縦並びに（最重要） */
    .flow-step {
        flex-direction: column !important;
        padding: 20px;
        gap: 16px;
    }

    /* 画像の固定幅を解除 */
    .flow-img {
        width: 100% !important;
        flex-shrink: 1;
    }

    .flow-img img {
        width: 100%;
        height: auto;
    }

    .flow-number {
        font-size: 24px;
    }
}
