/* =========================================================
   トップページ（Instagram のトーンを参考にしたテーマ）
   既存 main.css の後に読み込み、ヘッダー/フッターも上書きします
   ========================================================= */

/* 配色は下の変数だけで管理しています（緑 × 紺 RGB15,90,100） */
:root {
  /* 緑（RGB 100,250,120 = #64fa78） × 紺（RGB 15,90,100 = #0f5a64） */
  --main: #0f5a64;
  --main-deep: #0a3f46;
  --main-line: #2e7a84;
  --sub: #0c4b53;
  --accent: #64fa78;
  --accent-hover: #4be862;
  --accent-ink: #1f9a37;    /* 白背景の文字用に同じ緑を濃くしたもの */
  --on-dark: #cfe3e5;
  --post-top: #157080;
  --post-bottom: #0a3f46;
  --report-top: #0f5a64;
  --report-bottom: #0a3f46;
  --cta-end: #2f8f5a;
  --hero-a: rgba(10, 63, 70, 0.94);
  --hero-b: rgba(15, 90, 100, 0.82);
  --hero-c: rgba(100, 250, 120, 0.22);
  --btn-bg: #64fa78;
  --btn-text: #0a3f46;
  --btn-hover: #86ff97;
  --paper: #f1f6f6;
  --border: #d5e3e3;
  --orange: #f2a33a;
  --ink: #1d2531;
  --muted: #5a6573;
}

/* ---------- 共通（ヘッダー・フッター） ---------- */
body {
  font-family: "Zen Maru Gothic", "Kosugi Maru", sans-serif;
  color: var(--ink);
  background: #fff;
}

header,
nav,
footer {
  background-color: var(--main-deep);
}

.main-title {
  font-family: "Zen Maru Gothic", "Kosugi Maru", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 28px;
}

nav ul li button {
  font-family: "Zen Maru Gothic", "Kosugi Maru", sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
}

nav ul li button:hover {
  color: var(--accent);
}

footer {
  font-size: 13px;
  text-align: center;
  color: var(--on-dark);
}

#back-to-top {
  background-color: var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#back-to-top:hover {
  background-color: var(--accent-hover);
}

/* ---------- ホーム ---------- */
.home {
  width: 100%;
}

.home h2,
.home h3,
.home p {
  margin: 0;
}

.hm-accent { color: var(--accent); }
.hm-orange { color: var(--orange); }

.hm-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 14px !important;
}

.hm-label--dark { color: var(--accent-ink); }

/* Buttons */
.hm-btn {
  font-family: inherit;
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.hm-btn:hover { transform: translateY(-2px); }

.hm-btn--primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.hm-btn--primary:hover { background: var(--btn-hover); }

.hm-btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.hm-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* Hero：背景の線画 + 図面記号 + 右側でパース素材を順番に表示 */
.hm-hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--main-deep);
  color: #fff;
}

.hm-hero__visual {
  position: absolute;
  inset: 0;
}

.hm-hero__drawing,
.hm-hero__shade {
  position: absolute;
  inset: 0;
}

/* 図面（線画）：文字の後ろは薄く、中央で一番はっきり */
.hm-hero__drawing {
  background: url("../img/hero-drawing.png") center / cover no-repeat;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 35%, #000 55%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 35%, #000 55%);
  animation: hm-drawing-in 1.4s ease 0.1s both;
}

/* パース（CG）：右から差し込むように現れる */
.hm-hero__render {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--reveal) * 1%), #000 calc(var(--reveal) * 1% + 18%));
  mask-image: linear-gradient(90deg, transparent calc(var(--reveal) * 1%), #000 calc(var(--reveal) * 1% + 18%));
  animation: hm-reveal 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.7s both;
}

/* グレースケールのタワー。少し暗くして文字・記号と馴染ませる */
.hm-hero__render::before,
.hm-hero__render::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 58%;
  right: 0;
}

.hm-hero__render::before {
  background: url("../img/hero/tower.jpg") center / cover no-repeat;
}

.hm-hero__render::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.32));
}

@keyframes hm-reveal {
  from { --reveal: 100; }
  to { --reveal: 64; }
}

/* 素材画像：右側の3か所に、順番にふわっと浮かび上がって消える（3秒おき・6枚で18秒） */
.hm-hero__floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hm-hero__float {
  position: absolute;
  height: auto;
  opacity: 0;
  animation: hm-float 18s ease-in-out calc(2s + var(--i) * 3s) infinite;
}

@keyframes hm-float {
  0% { opacity: 0; transform: translateY(24px) scale(0.94); }
  9% { opacity: 1; transform: translateY(0) scale(1); }
  22% { opacity: 1; transform: translateY(-6px) scale(1); }
  33% { opacity: 0; transform: translateY(-20px) scale(1.02); }
  100% { opacity: 0; transform: translateY(-20px) scale(1.02); }
}

/* 文字の読みやすさ用の影 */
.hm-hero__shade {
  background: linear-gradient(90deg,
    rgba(10, 63, 70, 0.92) 0%,
    rgba(10, 63, 70, 0.8) 34%,
    rgba(10, 63, 70, 0.2) 52%,
    rgba(10, 63, 70, 0) 62%);
}

/* 通り芯・寸法線などの図面記号 */
.hm-hero__cad {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: visible;
  font-family: "Zen Maru Gothic", sans-serif;
  animation: hm-drawing-in 1.2s ease 0.5s both;
}

.hm-hero__cad .cad-axis line {
  stroke: var(--accent);
  stroke-opacity: 0.45;
  stroke-width: 1;
  stroke-dasharray: 18 4 3 4;
}

.hm-hero__cad circle {
  fill: rgba(10, 63, 70, 0.6);
  stroke: var(--accent);
  stroke-opacity: 0.8;
  stroke-width: 1;
}

.hm-hero__cad text {
  fill: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hm-hero__cad .cad-bubble text { text-anchor: middle; font-size: 10px; }

.hm-hero__cad .cad-dim line {
  stroke: var(--accent);
  stroke-opacity: 0.7;
  stroke-width: 1;
}

.hm-hero__cad .cad-dim text { text-anchor: middle; }

.hm-hero__cad path {
  fill: var(--accent);
  fill-opacity: 0.85;
}

.hm-hero__cad .cad-wall,
.hm-hero__cad .cad-thin {
  fill: none;
  stroke: var(--accent);
}

.hm-hero__cad .cad-wall path,
.hm-hero__cad .cad-wall line {
  fill: none;
  stroke-width: 2;
  stroke-opacity: 0.85;
}

.hm-hero__cad .cad-thin path,
.hm-hero__cad .cad-thin line,
.hm-hero__cad .cad-thin rect {
  fill: none;
  stroke-width: 1;
  stroke-opacity: 0.5;
}

.hm-hero__cad .cad-col rect {
  fill: var(--accent);
  fill-opacity: 0.8;
}

.hm-hero__cad .cad-level line {
  stroke: var(--accent);
  stroke-opacity: 0.7;
  stroke-width: 1;
}

.hm-hero__cad .cad-level text { font-size: 10px; }

.hm-hero__cad .cad-title {
  font-size: 10px;
  letter-spacing: 0.18em;
  fill: #fff;
  fill-opacity: 0.85;
}

@keyframes hm-drawing-in {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-hero__drawing,
  .hm-hero__render,
  .hm-hero__cad,
  .hm-hero__float { animation: none; }
}

.hm-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px;
  box-sizing: border-box;
}

.hm-hero__inner > * { max-width: 560px; }

.hm-hero__title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 24px !important;
}

.hm-hero__lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--on-dark);
  margin-bottom: 36px !important;
}

.hm-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Stats */
.hm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--main);
  color: #fff;
  border-top: 1px solid var(--main-line);
}

.hm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 12px;
  text-align: center;
  border-right: 1px solid var(--main-line);
}

.hm-stat:last-child { border-right: none; }

.hm-stat__num {
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
}

.hm-stat__num small {
  font-size: 15px;
  font-weight: 700;
}

.hm-stat__label {
  font-size: 13px;
  color: var(--on-dark);
}

/* Message */
.hm-message {
  background: var(--paper);
  text-align: center;
  padding: 88px 32px;
}

.hm-message__title {
  font-size: 34px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 28px !important;
}

.hm-message .hm-accent { color: var(--accent-ink); }

.hm-message__text {
  font-size: 16px;
  line-height: 2.1;
  color: var(--muted);
}

/* News（お知らせ） */
.hm-news {
  max-width: 880px;
  margin: 0 auto;
  padding: 80px 32px 8px;
  box-sizing: border-box;
  text-align: center;
}

.hm-news .hm-heading { margin-bottom: 32px !important; }

.hm-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  border-top: 1px solid var(--border);
}

.hm-news__item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 28px 8px;
  border-bottom: 1px solid var(--border);
}

.hm-news__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hm-news__meta time {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--main);
}

.hm-news__tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--main);
  color: #fff;
}

.hm-news__body h3 {
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 10px;
}

.hm-news__body p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0 0 18px;
}

.hm-news__btn {
  padding: 11px 24px;
  font-size: 14px;
}

/* Sections */
.hm-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 32px;
  box-sizing: border-box;
  text-align: center;
}

.hm-section--dark {
  max-width: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--sub);
  color: #fff;
}

.hm-heading {
  font-size: 32px;
  font-weight: 900;
  color: var(--main);
  margin-bottom: 40px !important;
}

.hm-heading--light { color: #fff; margin-bottom: 16px !important; }

.hm-section__lead {
  color: var(--on-dark);
  font-size: 15px;
  margin-bottom: 44px !important;
}

/* Services */
.hm-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.hm-service {
  background:
    linear-gradient(var(--accent-ink), var(--accent-ink)) top / 100% 4px no-repeat,
    var(--paper);
  border-radius: 14px;
  overflow: hidden;
  padding: 36px 28px 32px;
}

.hm-service__no {
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--accent-ink);
  margin-bottom: 10px;
}

.hm-service h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--main);
  margin-bottom: 14px;
}

.hm-service p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* Instagram series cards */
.hm-posts {
  max-width: 1080px;
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.hm-post {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  box-sizing: border-box;
  border-radius: 12px;
  background: linear-gradient(170deg, var(--post-top) 0%, var(--post-bottom) 100%);
  border: 1px solid var(--main-line);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hm-post:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* カード上部のサムネイル画像（カードの端いっぱいに表示） */
.hm-post__img {
  display: block;
  margin: -26px -24px 18px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 11px 11px 0 0;
  background: #fff;
}

.hm-post__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.hm-post:hover .hm-post__img img { transform: scale(1.04); }

.hm-post--report {
  background: linear-gradient(170deg, var(--report-top) 0%, var(--report-bottom) 100%);
}

.hm-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.hm-badge--orange {
  border-color: var(--orange);
  color: var(--orange);
}

.hm-post h3 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  margin: 14px 0 10px;
}

.hm-post p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-dark);
  margin-bottom: 18px;
}

.hm-post__more {
  align-self: flex-end;
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  color: var(--main);
  padding: 6px 14px;
  border-radius: 999px;
}

.hm-center { text-align: center; }

/* Clients */
.hm-clients {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hm-clients li {
  padding: 18px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--main);
  text-align: center;
}

/* CTA */
.hm-cta {
  background: linear-gradient(120deg, var(--main) 0%, var(--cta-end) 100%);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}

.hm-cta h2 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 14px;
}

.hm-cta p {
  color: var(--on-dark);
  font-size: 14px;
  margin-bottom: 32px;
}

.pc-only { display: inline; }

/* ---------- スマホ ---------- */
@media (max-width: 768px) {
  .main-title { font-size: 18px; }

  .sp-toggle { background-color: var(--accent); }

  .sp-toggle:before,
  .sp-toggle:after { background-color: var(--main-deep); }

  .pc-only { display: none; }

  .hm-hero { min-height: 0; }

  .hm-hero__cad { display: none; }

  .hm-hero__floats { display: none; }

  .hm-news { padding: 56px 20px 0; }

  .hm-news__item { grid-template-columns: 1fr; gap: 12px; padding: 22px 4px; }

  .hm-news__meta { flex-direction: row; align-items: center; gap: 12px; }

  .hm-hero__drawing {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5), #000);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5), #000);
  }

  .hm-hero__shade {
    background: linear-gradient(90deg, rgba(10, 63, 70, 0.85) 0%, rgba(10, 63, 70, 0.6) 70%, rgba(10, 63, 70, 0.35) 100%);
  }

  .hm-hero__inner { padding: 56px 20px; }

  .hm-hero__title { font-size: 28px; }

  .hm-hero__lead { font-size: 14px; }

  .hm-btn { padding: 12px 22px; font-size: 14px; }

  .hm-stats { grid-template-columns: repeat(2, 1fr); }

  .hm-stat { padding: 20px 8px; }

  .hm-stat:nth-child(2) { border-right: none; }

  .hm-stat:nth-child(-n+2) { border-bottom: 1px solid var(--main-line); }

  .hm-stat__num { font-size: 22px; }

  .hm-section { padding: 56px 16px; }

  .hm-message { padding: 56px 16px; }

  .hm-message__title { font-size: 23px; }

  .hm-message__text { font-size: 14px; line-height: 1.95; text-align: left; }

  .hm-heading { font-size: 24px; margin-bottom: 28px !important; }

  .hm-services,
  .hm-posts { grid-template-columns: 1fr; }

  .hm-post { min-height: 0; }

  .hm-post h3 { font-size: 20px; }

  .hm-clients { grid-template-columns: 1fr 1fr; }

  .hm-clients li { font-size: 13px; padding: 14px 8px; }

  .hm-cta { padding: 56px 16px; }

  .hm-cta h2 { font-size: 21px; }
}

/* ---------- スクロールでフワッと表示 ---------- */
.js-fade .fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.js-fade .fade-in.is-show {
  opacity: 1;
  transform: none;
}

/* 動きを減らす設定の端末ではアニメーションしない */
@media (prefers-reduced-motion: reduce) {
  .js-fade .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   会社概要ページ
   ========================================================= */
.cp { width: 100%; }

.cp h2,
.cp h3,
.cp p { margin: 0; }

/* ページ見出し */
/* 背景のパースはグレースケールにし、右端（特徴のある建物）は見せずに無地へフェード */
.cp-hero {
  position: relative;
  overflow: hidden;
  background: var(--main-deep);
  color: #fff;
}

.cp-hero::before,
.cp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.cp-hero::before {
  background: url("../img/body-background-2.png") center / cover no-repeat;
  filter: grayscale(1);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 74%);
  mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 74%);
}

.cp-hero::after {
  background: linear-gradient(100deg, var(--hero-a) 0%, var(--hero-b) 55%, rgba(15, 90, 100, 0.92) 100%);
}

.cp-hero__inner {
  position: relative;
  z-index: 1;
}

.cp-hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 32px;
  box-sizing: border-box;
}

.cp-hero__title {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 16px !important;
}

.cp-hero__lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--on-dark);
}

/* 会社情報 */
.cp-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 88px 32px;
  box-sizing: border-box;
  text-align: center;
}

.cp-profile {
  margin: 0;
  text-align: left;
  border-top: 2px solid var(--main);
}

.cp-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border);
}

.cp-row dt {
  padding: 20px 24px;
  font-weight: 700;
  color: var(--main);
  background: var(--paper);
}

.cp-row dd {
  margin: 0;
  padding: 20px 24px;
  line-height: 1.8;
  color: var(--ink);
}

.cp-en {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.cp-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-tags li {
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--border);
}

.cp-map {
  display: inline-block;
  margin-left: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
  text-decoration: none;
}

.cp-map:hover { text-decoration: underline; }

/* 沿革 */
.cp-history {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--sub);
  color: #fff;
}

.cp-history__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 88px 32px;
  box-sizing: border-box;
  text-align: center;
}

.cp-history .hm-heading { margin-bottom: 40px !important; }

.cp-history .timeline {
  position: relative;
  width: auto;
  padding: 0;
  text-align: left;
}

/* 縦線 */
.cp-history .timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 200px;
  width: 2px;
  background: var(--main-line);
}

.cp-history .timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  margin: 0;
  padding: 10px 0;
}

/* 丸印 */
.cp-history .timeline-item::before {
  content: "";
  position: absolute;
  left: 195px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--sub);
}

.cp-history .timeline-date {
  margin: 0;
  padding: 12px 28px 0 0;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.cp-history .timeline-content {
  margin-left: 28px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--main-line);
  border-left: 1px solid var(--main-line);
  border-radius: 10px;
  box-shadow: none;
  text-align: left;
}

.cp-history .timeline-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.cp-history .timeline-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-dark);
  margin: 0;
}

/* 主な取引先（控えめ） */
.cp-clients {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 32px;
  box-sizing: border-box;
  text-align: center;
}

.cp-clients p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.cp-clients__label {
  font-weight: 700;
  margin-bottom: 2px !important;
}

/* スマホで折り返すときも社名の途中では切らない */
.cp-clients p span { white-space: nowrap; }

.cp-clients__note {
  font-weight: 400;
  margin-left: 6px;
}

@media (max-width: 768px) {
  .cp-hero__inner { padding: 48px 20px; }

  .cp-hero__title { font-size: 28px; }

  .cp-hero__lead { font-size: 14px; }

  .cp-section,
  .cp-history__inner { padding: 56px 16px; }

  .cp-row { grid-template-columns: 1fr; }

  .cp-row dt { padding: 10px 14px; font-size: 14px; }

  .cp-row dd { padding: 12px 14px 16px; font-size: 14px; }

  .cp-map { display: block; margin: 6px 0 0; }

  .cp-history .timeline::before { left: 5px; }

  .cp-history .timeline-item {
    grid-template-columns: 1fr;
    padding: 8px 0 8px 26px;
    text-align: left;
  }

  .cp-history .timeline-item::before { left: 0; top: 14px; }

  .cp-history .timeline-date {
    text-align: left;
    padding: 4px 0 6px;
    margin: 0;
  }

  .cp-history .timeline-content { margin-left: 0; text-align: left; }

  .cp-clients { padding: 28px 16px; }

  .cp-clients p { font-size: 11px; }
}
