/* ==========================================================================
   style.css - 海外進出・輸入コンサルティング特集 | 株式会社船井総合研究所
   ブランドカラー・業種カラーはすべてCSS変数で管理
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS変数定義
   -------------------------------------------------------------------------- */
:root {
  /* ブランドカラー */
  --color-primary: #024fa2;
  --color-accent: #0abbfe;
  --color-primary-dark: #013a7a;
  --color-navy-dark: #0b1f3a;

  /* 業種カラー（バッジ・カード強調色）
     名称・色を変更する場合はここの値だけ書き換えてください */
  --category-color-1: #2563eb;
  /* キッズビジネス */
  --category-color-2: #16a34a;
  /* 整骨院・健康サービス */
  --category-color-3: #db2777;
  /* ファッション雑貨 */
  --category-color-4: #7c3aed;
  /* ホビー雑貨 */
  --category-color-5: #0d9488;
  /* ウェルネス */
  --category-color-6: #ea580c;
  /* 食品・調味料 */
  --category-color-7: #e11d48;
  /* 美容・エステ */
  --category-color-8: #ca8a04;
  /* 菓子 */
  --category-color-9: #0891b2;
  /* キッチン用品 */
  --category-color-10: #4f46e5;
  /* 飲食 */

  /* タイポグラフィ */
  --font-base:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo,
    sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.75;

  /* レイアウト */
  --container-max: 1400px;
  --header-height: 64px;
  --section-padding-v: 100px;
  --section-padding-v-sm: 48px;
  --gap-card: 24px;
  --radius-card: 10px;
  --radius-btn: 6px;

  /* 色（汎用） */
  --color-text: #1a2533;
  --color-text-light: #4b5a6e;
  --color-bg-light: #f0f5fc;
  --color-bg-white: #ffffff;
  --color-border: #e2eaf4;

  /* シャドウ */
  --shadow-card: 0 2px 12px rgba(2, 79, 162, 0.1);
  --shadow-card-hover: 0 10px 32px rgba(2, 79, 162, 0.22);
  --shadow-header: 0 2px 16px rgba(2, 79, 162, 0.1);
}

/* --------------------------------------------------------------------------
   2. リセット・ベーススタイル
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 73px;
}

body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. ユーティリティ
   -------------------------------------------------------------------------- */
.container {
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. 業種バッジ
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-1 {
  background-color: var(--category-color-1);
}

.badge-2 {
  background-color: var(--category-color-2);
}

.badge-3 {
  background-color: var(--category-color-3);
}

.badge-4 {
  background-color: var(--category-color-4);
}

.badge-5 {
  background-color: var(--category-color-5);
}

.badge-6 {
  background-color: var(--category-color-6);
}

.badge-7 {
  background-color: var(--category-color-7);
}

.badge-8 {
  background-color: var(--category-color-8);
}

.badge-9 {
  background-color: var(--category-color-9);
}

.badge-10 {
  background-color: var(--category-color-10);
}

/* --------------------------------------------------------------------------
   5. ヘッダー
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ロゴ（プレースホルダー、差し替え前提） */
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* ロゴ画像プレースホルダー（差し替えまで表示） */
.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 4px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ナビゲーション */
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-primary);
  padding: 4px 10px;
  color: #fff;
}

.site-header__nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
  color: #fff;
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible {
  /* border-bottom-color: var(--color-accent);
            color: var(--color-primary-dark);
            outline: none;*/
}

/* --------------------------------------------------------------------------
   6. メインビジュアル（Hero）
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 背景（プレースホルダー画像 + グラデーションオーバーレイ） */
.hero__bg {
  min-height: 400px; /* 必要に応じて調整してください */
  background-image:
    linear-gradient(
      to right,
      rgba(1, 26, 64, 0.75) 0%,
      /* 左側：テキスト領域を暗く抑える */ rgba(2, 79, 162, 0.45) 50%,
      rgba(1, 26, 64, 0.2) 100%
    ),
    url("https://www.funaisoken.co.jp/images/original/mv_overseas-reports.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* グリッド装飾（グローバル感の演出） */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(10, 187, 254, 0.04) 0,
      rgba(10, 187, 254, 0.04) 1px,
      transparent 1px,
      transparent 60px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(10, 187, 254, 0.04) 0,
      rgba(10, 187, 254, 0.04) 1px,
      transparent 1px,
      transparent 60px
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 120px;
  padding-inline: 48px;
  width: 100%;
  max-width: 1400px;
}

.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  border: 1px solid rgba(10, 187, 254, 0.5);
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

/* h1：ページ内に1つのみ */
.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  /*max-width: 800px;*/
}

.hero__subtitle {
  font-size: clamp(0.9375rem, 1.8vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  /*max-width: 640px;*/
  line-height: 1.9;
}

/* 装飾：右側の浮遊する円形要素 */
.hero__deco {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0.18;
  pointer-events: none;
}

.hero__deco-circle {
  border-radius: 50%;
  border: 2px solid var(--color-accent);
}

.hero__deco-circle:nth-child(1) {
  width: 320px;
  height: 320px;
}

.hero__deco-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  margin-left: 60px;
}

.hero__deco-circle:nth-child(3) {
  width: 120px;
  height: 120px;
  margin-left: 120px;
}

/* --------------------------------------------------------------------------
   7. リード文セクション
   -------------------------------------------------------------------------- */
.lead-section {
  background: linear-gradient(180deg, #f0f5fc 0%, #ffffff 100%);
  padding-block: var(--section-padding-v);
  border-bottom: 1px solid var(--color-border);
}

.lead-section__heading {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 16px;
}

.lead-section__heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

.lead-section__body {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--color-text);
  /*max-width: 780px;*/
  margin-bottom: 48px;
}

/* ==========================================
   ベース・モバイル用スタイル（デフォルト：縦並び）
   ========================================== */
.media-container {
  display: flex;
  flex-direction: column; /* スマホでは縦に並べる */
  gap: 20px; /* 画像とテキストの間の余白 */
  width: 100%;
  margin: 0 auto;
}

.media-image img {
  /*width: 100%;*/
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
}

.media-text {
  /* スマホ時は横幅いっぱいに広げる */
  width: 100%;
}

@media (max-width: 767px) {
  .media-image {
    margin-top: -60px;
  }
}

/* ==========================================
   PC用スタイル（画面幅 768px 以上で適用：横並び 3:7）
   ========================================== */
@media (min-width: 768px) {
  .media-container {
    flex-direction: row; /* PCでは横に並べる */
    align-items: center; /* 画像とテキストを上下中央で揃える（必要に応じて変更可） */
  }

  /* 
     【計算の解説】
     全体の横幅（100%）から、間隔（gap: 20px）を引いた上で、3:7に分配します。
     - 画像側：(100% - 20px) × 0.3
     - テキスト側：(100% - 20px) × 0.7
  */
  .media-image {
    width: calc((100% - 20px) * 0.2);
    flex-shrink: 0; /* 画像ボックスがテキストに押されて縮むのを防ぐ */
  }

  .media-text {
    width: calc((100% - 20px) * 0.8);
  }

  /* PCでの画像の高さを一定に保ちたい場合のみ指定（例：300px） */
  .media-image img {
    height: 300px; /* ここで高さを固定しても、object-fitのおかげで画像は潰れません */
  }
}

/* 特徴セクション見出し */
.lead-section__features-heading {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

/* 特徴グリッド：3列（サンプルデザイン準拠） */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* 特徴カード：枠・背景・アイコンなし、画像上部配置 */
.feature-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* 画像エリア */
.feature-card__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--color-bg-light);
}

.feature-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 見出し：太字ネイビー＋水色マーカー風下線（サンプルデザイン準拠） */
.feature-card__title {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 800;
  color: var(--color-navy-dark);
  line-height: 1.45;
  margin-bottom: 16px;
  /* 水色マーカー風アンダーライン */
  background-image: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(10, 187, 254, 0.35) 60%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* 本文テキスト */
.feature-card__text {
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--color-text-light);
  margin-top: 12px;
}

.headingtxt {
  position: relative;
  padding: 0.3em 0; /* 内側余白 */
  border-bottom: solid 3px #eee; /* 下線1: 実線・太さ・色 */
  color: #333; /* 文字色 */
  margin-bottom: 2rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}

.headingtxt:after {
  position: absolute;
  content: "";
  display: block;
  border-bottom: solid 3px var(--color-accent);
  bottom: -3px;
  width: 30%; /* 下線2の幅 */
}
/* --------------------------------------------------------------------------
   8. レポート一覧セクション
   -------------------------------------------------------------------------- */
.reports-section {
  background-color: var(--color-bg-white);
  /* セクション背景：白 */
  padding-block: var(--section-padding-v);
}

/* セクション見出し */
.reports-section__heading-wrap {
  text-align: center;
  margin-bottom: 80px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.4;
}

a.biz {
  display: inline-block;
  line-height: 1;
  text-decoration: none;
  padding-left: 0.8rem;
}
a.biz::before {
  content: "▶";
  display: inline-block;
  font-size: 0.8em;
  color: #abc4e1;
  margin-right: 0.4rem;
}

/* ==========================================
   ベース・モバイル用スタイル（デフォルト：縦並び）
   ========================================== */
.flex-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* アイテム間の余白（縦方向） */
  list-style: none;
  padding: 0;
  margin: 0;
}

.flex-item {
  font-size: 0.9rem;
}
.fh4x-item__title {
  font-size: 1.1rem;
}
.reports-section__content {
  width: 90%;
  margin: 0 auto;
}
/* ==========================================
   PC用スタイル（画面幅 768px 以上で適用：横2列）
   ========================================== */
@media (min-width: 768px) {
  .flex-list {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 6vw;
  }

  .flex-item {
    width: calc((100% - 20px) / 2);
  }
  .fh4x-item__title {
    font-size: 1.25rem;
  }
  .reports-section__content {
    width: auto;
    margin: 0 auto;
  }
}

/* レポートカードグリッド：PC は横並びカード×2列 */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-card);
}

/* --------------------------------------------------------------------------
   9. レポートカード
   -------------------------------------------------------------------------- */
.report-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  /* リンク要素が row になるので card 自体は column のまま */
}

/* カード全体のホバー効果 */
.report-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.report-card:hover .report-card__thumb {
  transform: scale(1.03);
}

/* カード全体をリンクにする（入れ子リンクなし）
   PC：サムネイル左＋テキスト右の横並びレイアウト */
.report-card__link {
  display: flex;
  flex-direction: row;
  /* ← 横並び（PC共通） */
  align-items: stretch;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.report-card__link:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-card);
}

/* バッジエリア：横並びレイアウトでは非表示（body内のバッジで代替） */
.report-card__badge-wrap {
  display: none;
}

/* サムネイル：9:16縦長、横並びレイアウト用の固定幅 */
.report-card__thumb-wrap {
  width: 120px;
  min-width: 120px;
  margin-inline: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #e8eef8;
  /* 画像読込前・失敗時のフォールバック背景 */
  position: relative;
  flex-shrink: 0;
}

/* 画像読込失敗時のフォールバック表示 */
.report-card__thumb-wrap::after {
  content: "REPORT";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  opacity: 0.3;
  pointer-events: none;
}

.report-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

/* カード本体テキスト */
.report-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  justify-content: space-between;
}

/* カテゴリバッジ（body内・タイトル上に表示） */
.report-card__body .badge {
  align-self: flex-start;
  flex-shrink: 0;
}

.report-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-text);
  flex: 1;
}

.report-card__body .reporttxt {
    font-size: 0.8rem;
}

/* ダウンロードボタン */
.report-card__button {
  display: block;
  width: 100%;
  padding: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #1060c0 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-btn);
  letter-spacing: 0.06em;
  transition:
    opacity 0.2s ease,
    filter 0.2s ease;
  margin-top: auto;
}

.report-card:hover .report-card__button {
  opacity: 0.88;
  filter: brightness(1.08);
}

/* --------------------------------------------------------------------------
   10. フッター
   -------------------------------------------------------------------------- */

.footer {
  background-color: var(--color-navy-dark);
  padding: 30px;
}

.footer__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--white);
}

.footer__logo span {
  color: var(--cyan-light);
}

.footer__text {
  color: #97a7be;
  font-size: 0.82rem;
  line-height: 1.9;
  max-width: 640px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: #c7d4e3;
  font-size: 0.85rem;
}

.footer__links a:hover {
  color: var(--cyan-light);
}

.copylight {
  text-align: center;
  font-size: 0.75rem;
  color: #6c7c93;
  padding: 26px 0 10px;
  background: var(--navy-deep);
}

/* --------------------------------------------------------------------------
   11. レスポンシブ（タブレット・スマホ）
   -------------------------------------------------------------------------- */

/* タブレット：768px〜1199px → 2列 */
@media (max-width: 1199px) {
  :root {
    --section-padding-v: 64px;
  }

  /* タブレット：引き続き2列（幅が狭まるのでサムネイル幅を少し縮小） */
  .reports-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .report-card__thumb-wrap {
    width: 100px;
    min-width: 100px;
  }

  .hero__deco {
    display: none;
  }

  /* タブレット：特徴グリッドも2列に */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* タブレット：hero左右余白を縮小 */
  .hero__content {
    padding-inline: 32px;
  }
}

/* スマホ：〜767px → 1列 */
@media (max-width: 767px) {
  :root {
    --section-padding-v: var(--section-padding-v-sm);
    --gap-card: 16px;
  }

  .container {
    padding-inline: 16px;
  }
.report-card__body .reporttxt {
    line-height: 0.9rem;
}
  /* ヘッダー：スマホではナビを非表示（ロゴのみ） */
  .site-header__nav {
    display: none;
  }

  /* ヒーロー */
  .hero {
    min-height: 420px;
  }

  .hero__content {
    padding-block: 56px;
    padding-inline: 20px;
    /* スマホでも左右余白を確保 */
  }

  .hero__title {
    font-size: clamp(1.6rem, 5.5vw, 2rem);
  }

  /* リード文 */
  .lead-section__body {
    font-size: 0.875rem;
  }

  /* 特徴グリッド：スマホでは1列 */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* レポート一覧：スマホは1列 */
  .reports-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-card);
  }

  /* スマホ：サムネイル幅をさらに縮小 */
  .report-card__thumb-wrap {
    width: 90px;
    min-width: 90px;
  }

  .report-card__body {
    padding: 12px 14px 12px;
    justify-content: space-between;
  }

  .report-card__title {
    font-size: 1.2rem;
    line-height: 1.6rem;
  }

  /* スマホ：バッジをbodyエリア先頭に表示 */
  .report-card__body::before {
    /* バッジはHTMLで先頭に出し直すため、CSSでは何もしない */
    content: none;
  }

  .reports-section__heading-wrap {
    margin-bottom: 40px;
  }
}

/* 極小画面 */
@media (max-width: 374px) {
  .report-card__thumb-wrap {
    width: 80px;
    min-width: 80px;
  }
}

/* --------------------------------------------------------------------------
   12. フォーカス・アクセシビリティ補助
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* キーボード操作時のみアウトライン表示（マウス操作時は非表示） */
:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------------------
   13. プリントスタイル（簡易）
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .hero,
  .site-footer {
    display: none;
  }
}
