/* =========================================================
   トランスフィード株式会社 コーポレートサイト
   Studio からの静的移行版 / 2026-07-07
   ========================================================= */

:root {
  --bg: #dcdee3;            /* ページ背景（ライトグレー） */
  --surface: #f9f9fb;       /* パネル背景（ほぼ白） */
  --surface-alt: #f1f1f6;
  --navy: #2d2a40;          /* 見出し・ボタン・カード */
  --navy-deep: #242134;     /* フッター */
  --text: #2d2a40;
  --muted: rgba(45, 42, 64, 0.55);
  --line: rgba(45, 42, 64, 0.3);
  --overlay: rgba(28, 26, 38, 0.6);
  --watermark: rgba(45, 42, 64, 0.07);
  --font-en: "Outfit", sans-serif;
  /* 現サイト（STUDIO）はモリサワ「ゴシックMB101」。解約後は使えないため、
     骨格の近い Noto Sans JP に置き換えている（2026-07-26 長井さん判断） */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-jp);
  /* 現サイトはCSSのfont-weightが400でも、実体は「ゴシックMB101 DB（デミボールド）」という
     太めのフォントファイルを読んでいる。Noto Sans JP でその重さに合わせるため 500 を基準にする */
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.en { font-family: var(--font-en); }

/* 左右の余白（ガター）。現行サイトに合わせて広めに取り、狭い画面では詰める */
.container { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

@media (max-width: 767px) {
  .container { padding: 0 24px; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(220, 222, 227, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo img { width: 232px; height: auto; }
.global-nav { display: flex; align-items: center; gap: 34px; }
.global-nav a {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}
.global-nav a:hover::after,
.global-nav a.current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--navy);
}
.btn-contact {
  font-family: var(--font-en);
  font-weight: 600;
  background: var(--navy);
  color: #fff !important;
  padding: 10px 30px;
  border-radius: 999px;
  margin-left: 14px;
  transition: opacity 0.25s;
}
.btn-contact:hover { opacity: 0.85; }
.btn-contact::after { display: none !important; }

/* モバイルメニュー */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
  z-index: 120;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  margin: 6px auto;
  transition: transform 0.3s, opacity 0.3s;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- パンくず ---------- */
.breadcrumb {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-family: var(--font-en);
  font-weight: 600;
  padding-top: 108px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
.breadcrumb .sep { width: 28px; height: 1px; background: var(--muted); }
.breadcrumb .current { color: var(--muted); }

/* ---------- ページヒーロー（下層共通） ---------- */
.page-hero { padding: 60px 0 90px; }
/* 現サイトの実測: ウォーターマーク112px（本文より30pxほど右にずらす）／和文見出し32px */
.page-hero .en-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(44px, 8.75vw, 112px);
  line-height: 1.1;
  color: var(--watermark);
  letter-spacing: 0.01em;
  margin-left: 0.28em;
}
.page-hero h1 {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  margin-top: -0.55em;
  letter-spacing: 0.04em;
}
.page-hero .lead { margin-top: 22px; max-width: 720px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; line-height: 1.4; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.anchor-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 9px 24px;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  transition: background 0.25s, color 0.25s;
}
.anchor-nav a:hover { background: var(--navy); color: #fff; }
.anchor-nav a svg { width: 14px; height: 14px; }

/* ---------- セクション見出し（ウォーターマーク） ---------- */
.sec-head { position: relative; margin-bottom: 40px; }
.sec-head .en-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  color: var(--watermark);
  white-space: nowrap;
}
.sec-head .jp-title {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.35;
  margin-top: -0.55em;
  position: relative;
}

/* 下層ページのセクションは、現サイトに合わせて
   左＝小さめの見出しラベル / 右＝本文 の2カラムにする（トップページの大ウォーターマークとは別扱い） */
.page-panel > section:not(.service-section) {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  column-gap: 50px;
  align-items: start;
}
.page-panel > section:not(.service-section) > .sec-head { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.page-panel > section:not(.service-section) > *:not(.sec-head) { grid-column: 2; }
.page-panel .sec-head .en-title {
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 600;
}
.page-panel .sec-head .jp-title {
  font-size: clamp(20px, 2vw, 24px);
  margin-top: 4px;
}

/* ---------- ボタン ---------- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 10px 34px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.25s, color 0.25s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 56px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-jp);
  cursor: pointer;
  transition: opacity 0.25s;
}
.btn-solid:hover { opacity: 0.85; }

/* ---------- トップページ ---------- */
.hero {
  padding-top: 150px;
  position: relative;
  overflow: hidden;
}
.hero .hero-text { max-width: 1400px; margin: 0 auto; padding: 0 48px; }
.hero h1 {
  /* 下限を26pxに。34pxだとiPhone幅で「物流改善のプロによる」が1行に収まらず折り返す */
  font-size: clamp(26px, 4.8vw, 56px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.05em;
}
.hero .sub {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
  margin-top: 14px;
}
.hero-images {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 70px;
  align-items: start;
  margin-top: 50px;
}
.hero-images .main-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-images .side-img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  margin-top: -170px;
}

/* News（トップ） */
.home-news { padding: 110px 0; }
.home-news .panel {
  background: var(--surface);
  margin-left: clamp(0px, 18vw, 288px);
  padding: 90px clamp(24px, 6vw, 100px);
}
.home-news .grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}
.news-list li { border-bottom: 1px solid var(--line); padding: 26px 0; }
.news-list .meta { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.news-list .date { font-family: var(--font-en); font-weight: 600; }
.chip {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
}
.chip.outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.news-list .title { font-weight: 700; margin-top: 8px; display: block; }
.news-list .title:hover { opacity: 0.7; }

/* About（トップ） */
.home-about { padding: 40px 0 120px; }
.home-about .panel {
  background: var(--surface);
  margin-right: clamp(0px, 18vw, 288px);
  padding: 90px clamp(24px, 5vw, 80px);
}
.home-about .grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.home-about img { width: 100%; aspect-ratio: 12 / 7; object-fit: cover; }
.home-about h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.35;
}
/* 現サイトの本文は18px・MB101 DB相当。Noto Sans JP の 600 で重さを合わせる */
.home-about p { margin-top: 24px; font-size: clamp(16px, 1.45vw, 18px); font-weight: 600; }
.home-about .btn-outline { margin-top: 34px; }

/* Service（トップ） */
.home-service { padding: 0 0 120px; }
.home-service .panel {
  background: var(--surface);
  margin-right: clamp(0px, 20vw, 288px);
  padding: 100px clamp(24px, 5vw, 80px);
}
.home-service .grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.home-service h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; line-height: 1.35; }
.home-service .desc { margin-top: 26px; font-size: clamp(16px, 1.45vw, 18px); font-weight: 600; }
.home-service .btn-outline { margin-top: 34px; }
.service-cards { display: flex; flex-direction: column; gap: 26px; }
.service-card {
  background: var(--navy);
  color: #fff;
  padding: 34px 40px;
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(36, 33, 52, 0.25); }
.service-card .label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}
.service-card .label::before { content: "• "; }
.service-card h3 { font-size: 24px; font-weight: 700; margin: 6px 0 16px; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 10px; }
.service-card .tag {
  background: #fff;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
}

/* Case（トップ & 一覧） */
.home-case { padding: 0 0 130px; }
.home-case .head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
}
.case-card { display: block; }
.case-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(45, 42, 64, 0.12);
  transition: opacity 0.3s;
}
.case-card:hover .thumb { opacity: 0.8; }
.case-card .chip { margin-top: 18px; }
.case-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
  margin-top: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.case-card .cat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

/* フィルタチップ（一覧ページ） */
.filter-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.filter-nav .f {
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 20px;
  cursor: pointer;
  font-family: var(--font-jp);
}
.filter-nav .f.active { background: var(--navy); color: #fff; }

/* ---------- 下層コンテンツパネル ---------- */
.page-panel {
  background: var(--surface);
  margin-right: clamp(0px, 16vw, 288px);
  padding: 90px clamp(24px, 6vw, 100px) 110px;
}
.page-panel.full { margin-right: 0; }

/* ---------- Aboutページ ---------- */
.philosophy-item { margin-bottom: 56px; }
.philosophy-item .ph-label {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}
/* 現サイト実測: 36px / MB101 B（=700相当）/ 行間1.2 */
.philosophy-item h3 {
  font-size: clamp(22px, 2.9vw, 36px);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 8px;
}
.philosophy-item p { margin-top: 12px; max-width: 860px; }
.section-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 90px 0;
}
.message-block h3 { font-size: clamp(22px, 2.9vw, 36px); font-weight: 700; line-height: 1.35; margin-bottom: 28px; }
/* 本文は MB101 DB（=600相当）・18px */
.message-block p { max-width: 860px; margin-bottom: 1.4em; font-size: clamp(16px, 1.45vw, 18px); font-weight: 600; }
.signature { margin-top: 44px; }
.signature .role { font-size: 14px; font-weight: 700; }
.signature .name { font-size: 22px; font-weight: 700; display: inline-block; margin-right: 16px; }
.signature .romaji { font-family: var(--font-en); font-size: 14px; color: var(--muted); }

.company-table { width: 100%; border-collapse: collapse; max-width: 900px; }
.company-table th, .company-table td {
  text-align: left;
  padding: 26px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: clamp(16px, 1.45vw, 18px);
  font-weight: 600;
}
.company-table th { width: 180px; font-weight: 700; }
.map-wrap { margin-top: 60px; }
.map-wrap iframe { width: 100%; height: 480px; border: 0; }

/* ---------- Serviceページ ---------- */
/* 現サイトに合わせた2カラム構成:
   左＝「Service 01」のウォーターマーク＋サービス名 / 右＝リード文（太字・大きめ） */
.service-section {
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  column-gap: 64px;
  align-items: start;
}
.service-section:last-of-type { border-bottom: none; }
.service-section .label {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1;
  color: var(--watermark);
}
.service-section h2 {
  grid-column: 1;
  grid-row: 2;
  /* 現サイト実測: 24px / MB101 B */
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.35;
  margin: -0.35em 0 0;
}
.service-section h2::before { content: "・"; }
.service-section > p {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.35;
}
.service-section .grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}
.service-section .grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; position: sticky; top: 110px; }
.sub-item { margin-bottom: 40px; }
/* 現サイトの見出しはネイビー地に白抜きのラベル */
.sub-item h3 {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--navy);
  color: #fff;
  padding: 5px 16px;
  margin-bottom: 18px;
}
.sub-item h3 + p { padding-top: 18px; border-top: 1px solid var(--line); font-size: clamp(16px, 1.45vw, 18px); font-weight: 600; }

/* ---------- News一覧 ---------- */
.news-page-list li { border-bottom: 1px solid var(--line); padding: 30px 0; }
.news-page-list li:first-child { border-top: 1px solid var(--line); }

/* ---------- 記事ページ ---------- */
.article { max-width: 860px; }
.article-head .meta { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.article-head .date { font-family: var(--font-en); font-weight: 600; }
.article-head h1 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  margin-top: 18px;
}
.article-head .catline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.article-body { margin-top: 40px; }
.article-body p { margin-bottom: 1.6em; }
.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  margin: 2.4em 0 1em;
  padding: 0.4em 0 0.4em 0.8em;
  border-left: 4px solid var(--navy);
  background: var(--surface-alt);
}
.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 2em 0 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--line);
}
.article-body ul { margin: 0 0 1.6em; }
.article-body ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.6em;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--navy);
}
.back-to-list { margin-top: 70px; text-align: center; }

/* ---------- Contactページ ---------- */
.contact-intro { max-width: 760px; font-weight: 700; margin-bottom: 50px; }
.contact-form-wrap {
  background: #fff;
  padding: clamp(30px, 5vw, 70px);
  max-width: 860px;
}
.form-field { margin-bottom: 34px; }
.form-field > label, .form-field .flabel {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.req { color: #c0392b; margin-left: 4px; }
.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 500;
  margin-bottom: 10px;
  cursor: pointer;
}
.radio-group input[type="radio"] { accent-color: var(--navy); width: 17px; height: 17px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 16px;
  font-size: 15.5px;
  font-family: var(--font-jp);
  border-radius: 4px;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: -1px;
}
.form-field textarea { min-height: 180px; resize: vertical; }
.privacy-check { margin: 40px 0; font-size: 15px; }
.privacy-check .plink { text-decoration: underline; }
.privacy-check label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-top: 12px;
  cursor: pointer;
}
.privacy-check input { accent-color: var(--navy); width: 17px; height: 17px; }
.form-submit { text-align: center; }
.form-msg { text-align: center; margin-top: 20px; font-weight: 700; }
.form-msg.error { color: #c0392b; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- プライバシーポリシー ---------- */
.privacy-body { max-width: 900px; }
.privacy-body > p { margin-bottom: 1.6em; font-weight: 600; }
.privacy-body h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  margin: 2.6em 0 0.9em;
}
.privacy-body .note { color: var(--muted); font-size: 14.5px; margin-top: 60px; }

/* ---------- Download / Contact バナー ---------- */
.cta-banners { display: grid; grid-template-columns: 1fr 1fr; }
.cta-banners a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  min-height: 245px;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.cta-banners a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  transition: background 0.3s;
}
.cta-banners a:hover::before { background: rgba(28, 26, 38, 0.75); }
.cta-banners .dl { background-image: url("../img/banner-download.webp"); }
.cta-banners .ct { background-image: url("../img/banner-contact.webp"); }
.cta-banners .txt { position: relative; }
.cta-banners .txt .en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 30px;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  line-height: 1;
}
.cta-banners .txt .jp {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  display: block;
  margin-top: -0.4em;
}
.cta-banners .circle {
  position: relative;
  width: 56px; height: 56px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-banners .circle svg { width: 24px; height: 24px; fill: #fff; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-deep); color: #fff; padding: 56px 0 40px; }
.site-footer .inner { max-width: 1400px; margin: 0 auto; padding: 0 28px; }
.site-footer .top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}
.site-footer .f-logo img { width: 200px; height: auto; }
.site-footer address {
  font-style: normal;
  font-size: 14.5px;
  margin-top: 24px;
  line-height: 1.9;
}
.sns-row { display: flex; gap: 14px; }
.sns-row a, .sns-row .sns-static {
  width: 38px; height: 38px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s;
}
.sns-row a:hover { opacity: 0.75; }
.sns-row svg { width: 18px; height: 18px; fill: var(--navy-deep); }
.site-footer .bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 36px;
  padding-top: 26px;
  font-size: 13.5px;
}
.site-footer .copyright { font-family: var(--font-en); font-weight: 500; }
.site-footer .policy-link:hover { text-decoration: underline; }

/* ---------- フェードインアニメーション ---------- */
/* JSが動く環境でのみ隠す。JS無効・読み込み失敗時に白紙にならないようにするため、
   main.js 冒頭で <html> に .js を付与し、そのときだけ初期状態を透明にする */
.js .appear {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.js .appear.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .appear { opacity: 1; transform: none; transition: none; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  .home-news .grid, .home-about .grid, .home-service .grid,
  .service-section .grid { grid-template-columns: 1fr; gap: 40px; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .home-news .panel, .home-about .panel, .home-service .panel,
  .page-panel { margin-left: 0; margin-right: 0; }
  .hero-images { grid-template-columns: 1fr; gap: 24px; }
  .hero-images .side-img { display: none; }
  .service-section .grid img { position: static; }
  /* サービス見出しの2カラムは狭い画面では縦積みに戻す */
  .service-section { grid-template-columns: 1fr; row-gap: 0; }
  .service-section .label,
  .service-section h2,
  .service-section > p { grid-column: 1; grid-row: auto; }
  .service-section > p { margin-top: 20px; }
  /* 下層ページのセクション2カラムも縦積みに戻す */
  .page-panel > section:not(.service-section) { grid-template-columns: 1fr; }
  .page-panel > section:not(.service-section) > .sec-head { grid-column: 1; margin-bottom: 28px; }
  .page-panel > section:not(.service-section) > *:not(.sec-head) { grid-column: 1; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .global-nav {
    position: fixed;
    inset: 0;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.35s;
    z-index: 110;
  }
  body.menu-open .global-nav { transform: none; }
  .menu-toggle { display: block; }
  .site-header .logo img { width: 180px; }
  .case-grid { grid-template-columns: 1fr; }
  .cta-banners { grid-template-columns: 1fr; }
  .cta-banners a { gap: 20px; min-height: 190px; }
  .site-footer .top-row { flex-direction: column; }
  .breadcrumb { padding-top: 96px; }
  .company-table th { width: 110px; }
  .hero { padding-top: 120px; }
}
