/* =========================================================
   BLUEMINT corporate site — reproduction stylesheet
   Design tokens are grouped at the top so they are easy to
   retune. Photos are referenced from /images as placeholders;
   swap them for real assets without touching the markup.
   ========================================================= */

:root {
  --blue:        #1877cc;   /* primary accent (labels, arrows, links) */
  --blue-cta:    #1f80d6;   /* contact band background */
  --blue-soft:   #eaf2fb;   /* light blue tint */
  --ink:         #1e1f22;   /* headings / strong text */
  --body:        #565b61;   /* body copy */
  --muted:       #6f7680;   /* dates, captions（白地で 4.6:1、薄青地でも 4.2:1 以上を確保） */
  --line:        #e4e6e9;   /* hairline dividers */
  --bg:          #ffffff;
  --bg-soft:     #f2f4f5;   /* alternating section background */
  --card:        #ffffff;
  --footer:      #16181b;
  --footer-bar:  #0d0e10;
  --shadow:      0 10px 30px rgba(20, 40, 70, .08);

  --maxw: 1120px;
  --pad: 24px;
  --radius: 12px;

  --f-jp: "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN",
          "Yu Gothic", Meiryo, sans-serif;
  --f-en: "Montserrat", var(--f-jp);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-jp);
  color: var(--body);
  background: var(--bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 日本語の禁則処理を厳密に（行頭の小書き仮名・長音符を避ける） */
  line-break: strict;
}
img { max-width: 100%; display: block; }
/* 段落末の「す。」だけが次の行に落ちるのを防ぐ（Chrome 117+ / Safari 26+。非対応ブラウザは従来どおり） */
p, li, dd, dt, h1, h2, h3, h4 { text-wrap: pretty; }
/* 短い文章（見出し・導入文）は文節の切れ目で折り返す（Chrome 119+。非対応ブラウザは従来どおり） */
h1, h2, h3, h4, .section-lead, .lead, .list-intro, .contact-intro,
.greeting-lead, .case-lead, .thanks-lead { word-break: auto-phrase; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
/* pic() が出す <picture> は箱を作らない（img が直接の子だった頃と同じレイアウトにする） */
picture { display: contents; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.bg-soft { background: var(--bg-soft); }

/* ---------- shared bits ---------- */

/* eyebrow label: blue, spaced, short rule beneath (COMPANY / SERVICE …) */
.eyebrow {
  font-family: var(--f-en);
  color: var(--blue);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .12em;
  line-height: 1;
  margin-bottom: 26px;
  padding-bottom: 16px;
  position: relative;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 2px; bottom: 0;
  width: 40px; height: 2px;
  background: var(--blue);
}
/* 従属セクション（CLIENTS / STRENGTHS / COMPANY / NEWS）は一段小さく。
   CASE と SERVICE だけが 26px のまま残り、ページ内の強弱になる。 */
.eyebrow.sm { font-size: 15px; margin-bottom: 18px; padding-bottom: 12px; }
.eyebrow.sm::after { width: 28px; }
.has-js .eyebrow.sm.is-visible::after { width: 28px; }

/* セクション見出し。.jp-heading と .headline は同一スケール。
   個別セクションで font-size / color を上書きしないこと（不揃いの原因になる）。 */
.jp-heading,
.headline {
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.55;
  letter-spacing: .02em;
  margin-bottom: 20px;
}

/* セクション概要文。全セクションで共通。 */
.section-lead {
  font-size: 16px;
  color: var(--body);
  line-height: 1.9;
  max-width: 760px;
  margin-bottom: 42px;
}

.lead { color: var(--body); font-size: 15px; }

/* arrow button: circle + label */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}
.btn-arrow .circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue);
  display: grid; place-items: center;
  flex: 0 0 auto;
  transition: transform .25s ease, background .25s ease;
}
.btn-arrow .circle svg { width: 20px; height: 20px; stroke: #fff; }
.btn-arrow:hover .circle { transform: translateX(4px); background: #0f63b4; }
.btn-arrow.center { justify-content: center; }

.row-end { display: flex; justify-content: flex-end; margin-top: 40px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.site-header .container {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 38px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a.link {
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 6px 0; position: relative;
}
.nav a.link.active::after,
.nav a.link:hover::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--ink);
}
.nav .contact-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue);
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 10px 20px; border-radius: 999px;
  transition: background .2s;
}
.nav .contact-btn:hover { background: #0f63b4; }
.nav .contact-btn svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 9px; margin-right: -6px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* =========================================================
   HERO (home) — full-bleed immersive
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(520px, 82vh, 760px);
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #0b1626; }
.hero-still { display: contents; }
/* 動画は静止画の上に重ねる（再生が始まるまでは透明なので静止画が見える）。スマホでは出さない */
.hero-video { position: absolute; inset: 0; }
@media (max-width: 640px) { .hero-video { display: none; } }
.hero-bg img, .hero-video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,22,38,.80) 0%, rgba(11,22,38,.55) 42%, rgba(11,22,38,.12) 100%),
    linear-gradient(0deg, rgba(11,22,38,.45) 0%, rgba(11,22,38,0) 40%);
}
.hero-inner {
  position: relative; z-index: 2; color: #fff; width: 100%; box-sizing: border-box;
  max-width: 1000px;
  padding: 40px clamp(24px, 5vw, 56px) 40px clamp(28px, 7vw, 96px);
}
.hero-eyebrow {
  font-family: var(--f-jp); font-weight: 700; font-size: 13px;
  letter-spacing: .16em; color: #9fd0ff; margin-bottom: 22px;
}
.hero h1 {
  color: #fff; font-weight: 800;
  font-size: clamp(30px, 5.4vw, 58px); line-height: 1.28; letter-spacing: .01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.28);
}
.hero-sub {
  margin-top: 22px; font-size: clamp(13px, 1.4vw, 16px);
  color: rgba(255,255,255,.92); letter-spacing: .04em;
}
.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; padding: 15px 34px; border-radius: 999px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.hero-btn.primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px rgba(24,119,204,.4); }
.hero-btn.primary:hover { background: #0f63b4; transform: translateY(-2px); }
.hero-btn.ghost { color: #fff; border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(2px); }
.hero-btn.ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* hero entrance */
.hero-inner > * { animation: heroUp .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-eyebrow { animation-delay: .15s; }
.hero h1 { animation-delay: .28s; }
.hero-sub { animation-delay: .44s; }
.hero-cta { animation-delay: .58s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* scroll cue */
.scroll-down {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.85);
}
.scroll-down span { font-family: var(--f-en); font-size: 10px; letter-spacing: .22em; font-weight: 700; }
.scroll-down svg { width: 20px; height: 20px; stroke: #fff; animation: scrollBounce 1.8s ease-in-out infinite; }
@keyframes scrollBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-bg img, .hero-inner > *, .scroll-down svg { animation: none; }
}

/* =========================================================
   SCROLL REVEAL (site-wide, playful entrance)
   `.has-js` は JS有効かつ reduced-motion でない時のみ付与される
   ========================================================= */
.has-js .eyebrow, .has-js .headline, .has-js .jp-heading, .has-js .co-head,
.has-js .svc-card, .has-js .case-card, .has-js .column-card, .has-js .fact, .has-js .client-point, .has-js .flow-step, .has-js .partner, .has-js .news-item,
.has-js .svc-block .text, .has-js .svc-block .photo, .has-js .co-row,
.has-js .greeting-body, .has-js .greeting-photo, .has-js .access-map, .has-js .audience-col, .has-js .ph,
.has-js .band, .has-js .contact-card, .has-js .contact-intro, .has-js .legal h2 {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.has-js .is-visible { opacity: 1 !important; transform: none !important; }
/* グリッド内カードの時差表示 */
.has-js .svc-cards .svc-card:nth-child(2),
.has-js .facts-grid .fact:nth-child(2),
.has-js .clients-list .client-point:nth-child(2),
.has-js .partners-grid .partner:nth-child(2),
.has-js .case-cards .case-card:nth-child(2),
.has-js .audience-grid .audience-col:nth-child(2) { transition-delay: .09s; }
.has-js .partners-grid .partner:nth-child(3) { transition-delay: .18s; }
.has-js .partners-grid .partner:nth-child(4) { transition-delay: .27s; }
.has-js .facts-grid .fact:nth-child(3),
.has-js .clients-list .client-point:nth-child(3),
.has-js .svc-cards .svc-card:nth-child(3),
.has-js .case-cards .case-card:nth-child(3),
.has-js .column-cards .column-card:nth-child(3) { transition-delay: .18s; }
.has-js .column-cards .column-card:nth-child(2) { transition-delay: .09s; }
.has-js .facts-grid .fact:nth-child(4) { transition-delay: .27s; }
.has-js .facts-grid .fact:nth-child(5) { transition-delay: .36s; }
.has-js .facts-grid .fact:nth-child(6) { transition-delay: .45s; }
.has-js .flow-steps .flow-step:nth-child(2) { transition-delay: .09s; }
.has-js .flow-steps .flow-step:nth-child(3) { transition-delay: .18s; }
.has-js .flow-steps .flow-step:nth-child(4) { transition-delay: .27s; }
.has-js .flow-steps .flow-step:nth-child(5) { transition-delay: .36s; }
.has-js .svc-cards .svc-card:nth-child(4) { transition-delay: .27s; }
.has-js .svc-cards .svc-card:nth-child(5) { transition-delay: .36s; }
.has-js .svc-cards .svc-card:nth-child(6) { transition-delay: .45s; }
.has-js .news-item:nth-child(2) { transition-delay: .08s; }
.has-js .news-item:nth-child(3) { transition-delay: .16s; }
.has-js .news-item:nth-child(4) { transition-delay: .24s; }
/* eyebrow の下線をスッと伸ばす */
.has-js .eyebrow::after { width: 0; transition: width .6s ease .15s; }
.has-js .eyebrow.is-visible::after { width: 40px; }

/* =========================================================
   COMPANY
   ========================================================= */
.company { padding: 90px 0; }
/* align-items: center だと、本文が3段落になった分だけ写真の下に空白ができる。
   stretch にして写真をテキストの高さに合わせる。写真は雰囲気用なので本文より狭い 400px に抑える。 */
.company .grid {
  display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: stretch;
}
/* :not(.eyebrow) を付けないと英字ラベルまで 15px に縮む（詳細度で .eyebrow に勝つため） */
.company .body p:not(.eyebrow) { font-size: 15px; margin-bottom: 20px; }
.company .body .jp-heading { margin-bottom: 24px; }
.company .body .btn-arrow { margin-top: 12px; }
/* 写真は本文の高さにぴったり合わせる。absolute にして写真自身の高さが行の高さに影響しないようにする */
.company .photo { position: relative; min-height: 0; }
.company .photo img { position: absolute; inset: 0; border-radius: 6px; width: 100%; height: 100%; object-fit: cover; }
.company .photo .ph { height: 100%; min-height: 380px; }
.company-sign { color: var(--ink); font-weight: 700; font-size: 14px !important; margin-bottom: 22px !important; }

/* 撮影待ちの枠（モック用）。実写真が届いたら <img> に差し替える。 */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed #b7c6d8; border-radius: 6px; background: repeating-linear-gradient(
    -45deg, #f4f7fb 0 14px, #eef2f7 14px 28px);
  color: #5f6b7a; text-align: center; padding: 24px;
}
.ph-portrait { aspect-ratio: 4/5; }
.ph-label {
  font-family: var(--f-en); font-weight: 800; font-size: 12px; letter-spacing: .18em;
  color: var(--blue); border: 1px solid var(--blue); border-radius: 999px; padding: 4px 12px;
}
.ph-desc { font-size: 13px; line-height: 1.8; }

/* =========================================================
   SERVICE (home)
   ========================================================= */
.service { padding: 90px 0; }
.service .section-lead { margin-bottom: 54px; }
.svc-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
}
/* width/height 属性（CLS対策）を持つので height:auto を明示しないと属性値の高さで描かれる */
.svc-card img { border-radius: 4px; aspect-ratio: 16/10; object-fit: cover; width: 100%; height: auto; }
.svc-card .en {
  color: var(--blue); font-family: var(--f-en); font-weight: 700;
  font-size: 12px; letter-spacing: .04em; margin: 20px 0 8px;
}
.svc-card h3 { color: var(--ink); font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.svc-card p { font-size: 13.5px; line-height: 1.85; }
.svc-card h3 + p { color: var(--body); }
/* トップのサービスカードは事業内容ページの該当ブロックへのリンク */
a.svc-card { display: block; color: inherit; transition: transform .25s ease; }
a.svc-card:hover { transform: translateY(-4px); }
a.svc-card:hover h3 { color: var(--blue); }

/* full-bleed image band */
.band img { width: 100%; height: clamp(200px, 24vw, 360px); object-fit: cover; }

/* パララックス帯。画像を枠より縦に大きく取り、スクロールに応じて上下へずらす。
   background-attachment: fixed は iOS Safari で破綻するため使わない。
   動きは base.html の JS が付ける（prefers-reduced-motion のときは無効）。 */
.band-parallax {
  position: relative; overflow: hidden;
  height: clamp(200px, 24vw, 360px);
}
.band-parallax img {
  position: absolute; left: 0; top: -30%;
  width: 100%; height: 160%;
  object-fit: cover; will-change: transform;
}

/* =========================================================
   CASE
   ========================================================= */
/* セクションの切れ目。写真を挟まずに区切りを明示する。
   SERVICE（グレー背景）が終わり、白地の CASE が始まることを印で示す。 */
.section-divider {
  display: flex; justify-content: center; align-items: center;
  padding: 72px 0 0;
}
.section-divider span {
  display: block; width: 72px; height: 3px;
  background: var(--blue); border-radius: 2px;
}

.case-sec { padding: 56px 0 90px; }
.case-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.case-card {
  background: var(--card); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20,40,70,.14); }
/* サムネ枠。実写真か、画像なしのブランド面のどちらかが入る */
.case-thumb { position: relative; overflow: hidden; }
.case-thumb > img, .case-thumb > picture > img { aspect-ratio: 16/9; object-fit: cover; width: 100%; height: auto;
  transition: transform .5s ease; }
.case-card:hover .case-thumb > img, .case-card:hover .case-thumb > picture > img { transform: scale(1.04); }
/* data の video が入っている案件は、再生バッジで「動画が見られる」ことを示す */
.case-thumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--blue);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .25s ease, background .25s ease;
}
.case-thumb .play svg { width: 26px; height: 26px; margin-left: 3px; }
.case-card:hover .case-thumb .play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }

/* トップの実績ハイライト。ヒーロー直後に置くので上下の余白を通常セクション並みにする */
.case-hl { padding: 90px 0; }
.case-hl .case-card h3 { font-size: 16px; }
/* 画像がない実績のカード面。
   肖像や守秘の都合で写真を出せない案件は必ず出るので、「画像待ち」ではなく
   カテゴリのラベル面として成立させる。再生アイコンは作りかけに見えるため使わない。 */
.case-card .case-noimg {
  aspect-ratio: 16/9; width: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--blue); position: relative; overflow: hidden;
}
.case-card .case-noimg::after {
  /* 面が単調にならないよう、うっすら斜めの陰影を置く */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(0,0,0,.10));
}
/* カテゴリ名は下のバッジに出ているため、面の中では繰り返さない。
   代わりにワードマークを薄く置き、ブランドの面として成立させる。 */
.case-card .case-noimg img {
  position: relative; z-index: 1;
  width: clamp(110px, 44%, 180px); height: auto;
  /* ロゴの「M」はブランドの青で描かれているため、青い面に重ねると同化して
     「BLUE_INT」に見える。白一色のシルエットに変換してから薄く敷く。 */
  filter: brightness(0) invert(1);
  opacity: .26;
}
.case-card .pad { padding: 18px 20px 24px; }
.case-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.badge {
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 3px; white-space: nowrap;
}
.date { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.case-card h3 { color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.6; }
/* サムネがイラスト等の「イメージ」であることを示す小さなラベル（data の image_note）。
   写真と誤解されないよう画像の上に置くが、主役はあくまで画像なので控えめに。
   画像下辺の字幕・テロップと重ならないよう右上に置く */
.case-thumb-note {
  position: absolute; right: 8px; top: 8px; z-index: 1;
  font-size: 10px; line-height: 1; letter-spacing: .04em;
  padding: 5px 8px; border-radius: 3px;
  color: rgba(255,255,255,.92); background: rgba(20,30,45,.62);
  pointer-events: none;
}

/* =========================================================
   NEWS
   ========================================================= */
.news { padding: 90px 0; }
.news .grid { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.news .btn-arrow { margin-top: 8px; }
.news-list { }
.news-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item h3 { color: var(--ink); font-size: 15px; font-weight: 500; }
.news-item .badge { background: var(--blue); width: 72px; text-align: center; flex: none; }
/* トップ：本文がある項目はお知らせページの該当箇所へ */
a.news-item.is-link { color: inherit; }
a.news-item.is-link:hover h3 { color: var(--blue); }
/* お知らせページ：本文つきの項目は見出し行＋本文の縦積み */
.news-item.has-body { display: block; padding: 26px 4px 28px; scroll-margin-top: 96px; }
.news-item.has-body .news-head { display: flex; align-items: center; gap: 16px; }
.news-item.has-body h3 { font-weight: 700; }
.news-body { margin: 14px 0 0 88px; }
.news-body p { font-size: 15px; line-height: 1.9; margin-bottom: 14px; }
.news-body p:last-child { margin-bottom: 0; }
/* お知らせ一覧ページ */
.news-page { padding: 40px 0 90px; }
.news-page-list { max-width: 900px; margin: 0 auto; }

/* =========================================================
   CONTACT CTA band
   ========================================================= */
.cta { background: var(--blue-cta); color: #fff; padding: 56px 0; }
/* 左カラムは内容幅にして区切り線をテキストのすぐ右へ。余りは右カラムが受け、
   ボタンは右端揃えのまま。左端はページのグリッド（container）に揃う。
   左を 1fr にすると列だけが伸び、テキストと区切り線の間に空白が残る。 */
.cta .grid {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 40px;
}
.cta .left { position: relative; padding-right: 60px; }
.cta .left::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 90px; background: rgba(255,255,255,.4);
}
.cta h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.cta p { font-size: 14px; color: rgba(255,255,255,.9); }
.cta .btn-arrow { color: #fff; }
.cta .btn-arrow .circle { background: #fff; }
.cta .btn-arrow .circle svg { stroke: var(--blue-cta); }
.cta .btn-arrow:hover .circle { background: #eaf2fb; }
.cta .right { text-align: right; }
.cta-tel { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.9); }
/* PC幅でのみ有効な改行。狭い幅では自然折り返しに任せる */
.br-pc { display: inline; }
.cta-tel a { color: #fff; font-weight: 700; letter-spacing: .02em; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--footer); color: #cfd3d8; }
/* .container の左右パディングを打ち消さないよう横は var(--pad) を維持する */
.site-footer .top { padding: 60px var(--pad) 40px; display: grid;
  grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.footer-logo { height: 40px; width: auto; display: block; margin-bottom: 24px; }
.site-footer .addr { font-size: 13px; line-height: 2; color: #b9bec4; }
.site-footer .addr strong { color: #fff; font-weight: 700; display: block; margin-bottom: 4px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.footer-nav a { font-size: 13px; color: #cfd3d8; }
.footer-nav a:hover { color: #fff; }
.footer-nav a .ext { display: inline-block; width: 11px; margin-left: 4px; opacity: .7; }
.footer-bar { background: var(--footer-bar); }
.footer-bar .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 54px; font-size: 12px; color: #80868d;
}

/* =========================================================
   SERVICE PAGE — FLOW（流れ）と PRICE（料金の目安）
   発注直前の確認ページとしての中核。意匠は CLIENTS の罫線リストに合わせる。
   ========================================================= */
.flow { padding: 84px 0; }
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.flow-step { border-top: 3px solid var(--blue); padding-top: 18px; }
.flow-num {
  display: block; font-family: var(--f-en); font-weight: 800; font-size: 22px;
  color: var(--blue); letter-spacing: .04em; line-height: 1; margin-bottom: 10px;
}
.flow-step h3 { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.flow-step p { font-size: 13.5px; line-height: 1.85; }

.price { padding: 84px 0; }
/* 狭い画面では表の中で折り返さず、横スクロールで逃がす */
.price-scroll { overflow-x: auto; }
.price-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.price-table th {
  color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-align: left; padding: 0 16px 12px; border-bottom: 2px solid var(--line);
}
.price-table td {
  padding: 16px; border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 1.7; vertical-align: top;
}
.price-table td.price-val { color: var(--ink); font-weight: 700; white-space: nowrap; }
.price-table td.price-val .price-sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.price-notes { margin: 18px 0 0; padding-left: 1.2em; font-size: 13px; color: var(--muted); line-height: 1.9; }

/* =========================================================
   SERVICE PAGE — title band + detail blocks + breadcrumb
   ========================================================= */
.page-title { padding: 40px 0 34px; }
.page-title .en {
  font-family: var(--f-en); color: var(--blue); font-weight: 800;
  font-size: clamp(30px, 4vw, 44px); letter-spacing: .1em; line-height: 1;
}
.page-title .jp { color: var(--ink); font-size: 14px; margin-top: 12px; font-weight: 500; }
.page-hero img { width: 100%; height: clamp(240px, 32vw, 440px); object-fit: cover; }

.svc-detail { padding: 84px 0; }
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  scroll-margin-top: 96px; }
.svc-block + .svc-block { margin-top: 40px; padding-top: 64px; border-top: 1px solid var(--line); }
/* 6ブロックの単調化を避け、偶数ブロックは写真を左に */
@media (min-width: 901px) { .svc-block:nth-of-type(even) .photo { order: -1; } }
.svc-block .en { color: var(--blue); font-family: var(--f-en); font-weight: 700;
  font-size: 13px; letter-spacing: .04em; margin-bottom: 10px; }
.svc-block h2 { color: var(--ink); font-size: clamp(22px,2.4vw,28px); font-weight: 700;
  margin-bottom: 22px; letter-spacing: .02em; }
.svc-block p { font-size: 14.5px; margin-bottom: 16px; }
.svc-block .note { font-size: 13px; color: var(--muted); }
.svc-block img { border-radius: 8px; width: 100%; aspect-ratio: 6/5; object-fit: cover; height: auto; }
.pill-list {
  list-style: none; margin: 22px 0 0; padding: 22px 26px;
  background: #f4f5f6; border-radius: 8px;
}
.pill-list li { font-size: 13.5px; color: var(--ink); padding: 5px 0 5px 4px; }
.pill-list li::before { content: "・"; color: var(--body); }

/* ブロック下部の控えめな導線（料金の目安・この分野の実績）。
   btn-arrow を6連発すると重いのでテキストリンクにする。 */
.svc-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.svc-links a { font-size: 13.5px; font-weight: 700; color: var(--blue); }
.svc-links a::before { content: "→ "; }
.svc-links a:hover { text-decoration: underline; }

.breadcrumb { padding: 22px 0 6px; text-align: right; font-size: 12px; color: var(--muted); }
.breadcrumb span { margin: 0 8px; }

/* =========================================================
   STRENGTHS (top page)
   ========================================================= */
/* =========================================================
   PARTNERS（制作会社・代理店・放送局向け）
   ========================================================= */
.partners { padding: 84px 0 78px; }
.partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.partner {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 30px 30px 28px;
}
.partner-num {
  display: block; font-family: var(--f-en); font-weight: 800; font-size: 26px;
  color: var(--blue); letter-spacing: .04em; line-height: 1; margin-bottom: 14px;
}
.partner h3 { color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 12px; }
.partner p { font-size: 14px; line-height: 1.85; }
.partner p + p { margin-top: 12px; }
.partner strong { color: var(--ink); font-weight: 700; }

/* CLIENTS（直接のご依頼向け）。PARTNERS より軽く見せるため、カードではなく
   罫線区切りのリストにする。枠と影がないぶん主従がはっきりする。 */
.clients { padding: 66px 0 62px; }
.clients-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
/* カードには戻さない（PARTNERS と同型になり、番号付きカードが3セクション続く）。
   罫線リストのまま、青い罫線と大きめの番号で足場を作る。 */
.client-point { border-top: 3px solid var(--blue); padding-top: 20px; }
.client-num {
  display: block; font-family: var(--f-en); font-weight: 800; font-size: 24px;
  color: var(--blue); letter-spacing: .04em; line-height: 1; margin-bottom: 12px;
}
.client-point h3 { color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.client-point p { font-size: 14px; line-height: 1.85; }

/* CLIENTS＝ご依頼元別の2カラム。旧 CLIENTS + PARTNERS を統合。
   カードにせず、中央の罫線1本で左右を分ける。 */
.audience { padding: 84px 0; }
.audience .headline { margin-bottom: 40px; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.audience-col + .audience-col { border-left: 1px solid var(--line); padding-left: 64px; margin-left: -32px; }
.audience-title { color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.audience-lead { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.audience-points { list-style: none; margin: 0 0 28px; padding: 0; }
.audience-points li { font-size: 14px; line-height: 1.85; padding: 14px 0 14px 18px; border-top: 1px solid var(--line);
  position: relative; }
.audience-points li::before { content: ""; position: absolute; left: 0; top: 24px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--blue); }
.audience-points li:last-child { border-bottom: 1px solid var(--line); }
.audience-points strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

/* STRENGTHS＝事実の帯。CLIENTS(リスト)・PARTNERS(カード)と質感を変え、
   同種のカードが3セクション続かないようにする。 */
.strengths { background: var(--blue-soft); padding: 78px 0; }
/* 概要文を持たないセクションは、見出し直下に本体が来るぶん余白を足す */
.strengths .headline { margin-bottom: 42px; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; margin: 0; }
.fact { border-left: 4px solid var(--blue); padding-left: 20px; }
/* 数字と固有名詞が本文から浮かないと「事実を並べた帯」に見えないため、
   本文（13.5px）と十分な差をつける */
.fact dt {
  color: var(--ink); font-weight: 700; letter-spacing: 0;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.35; margin-bottom: 10px;
}
.fact dd { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--muted); }
/* 4つ帯。数字・固有名詞を大きく、説明は短く */
.facts-4 { grid-template-columns: repeat(4, 1fr); gap: 30px 28px; }
.facts-4 .fact dt { display: flex; align-items: baseline; gap: 4px; font-size: clamp(22px, 2.1vw, 28px); }
.facts-4 .fact dt .num { font-family: var(--f-en); font-weight: 800; letter-spacing: .01em; }
.facts-4 .fact dt .unit { font-size: 16px; font-weight: 700; }
.strengths .eyebrow.sm { margin-bottom: 34px; }

/* =========================================================
   COMPANY page
   ========================================================= */
.co-note { font-size: 12px; color: var(--muted); }
.co-row dd a { color: var(--blue); }
.co-head {
  color: var(--blue); font-weight: 700; letter-spacing: .04em; line-height: 1;
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 40px; padding-bottom: 18px; position: relative;
}
.co-head::after { content: ""; position: absolute; left: 2px; bottom: 0;
  width: 44px; height: 2px; background: var(--blue); }

.co-profile { padding: 72px 0; }
.co-table { max-width: 960px; margin: 0 auto; }
.co-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 24px 8px; border-bottom: 1px solid var(--line); }
.co-row:first-child { border-top: 1px solid var(--line); }
.co-row dt { color: var(--ink); font-weight: 700; font-size: 15px; }
.co-row dd { margin: 0; color: var(--body); font-size: 15px; }

.greeting { padding: 84px 0; }
.greeting-grid { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: stretch; }
.greeting-body p { font-size: 15px; margin-bottom: 18px; }
.greeting-body .greeting-lead { color: var(--ink); font-weight: 700; letter-spacing: .02em;
  font-size: clamp(24px, 2.9vw, 34px); line-height: 1.5; margin: 0 0 28px; }
.greeting-sign { margin-top: 28px; color: var(--ink); font-weight: 500; }
/* 写真の高さは本文に揃える（pic() の height 属性が効かないよう height を明示。1列時は 4:5） */
.greeting-photo img { border-radius: 8px; width: 100%; height: 100%; aspect-ratio: 4/5;
  object-fit: cover; box-shadow: var(--shadow); }

.access { padding: 84px 0; }
.access-map { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.access-map iframe { display: block; width: 100%; }
.access-note { text-align: center; font-size: 14px; color: var(--body); margin-top: 20px; }

/* =========================================================
   CASE list + detail pages
   ========================================================= */
.case-list { padding: 36px 0 90px; }
.case-filter { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 40px; }
.case-tab { background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 14px; color: var(--muted); padding: 6px 2px; position: relative; line-height: 1.4; }
.case-tab:hover { color: var(--ink); }
.case-tab.is-active { color: var(--ink); font-weight: 700; }
.case-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--blue); }
.case-empty { text-align: center; color: var(--muted); padding: 40px 0; }

a.case-card { color: inherit; }

.case-detail { padding: 56px 0 80px; }
.case-article { background: var(--card); border-radius: 12px; box-shadow: var(--shadow);
  max-width: 860px; margin: 0 auto; padding: 48px clamp(24px, 4vw, 60px) 56px; }
.case-article-head .case-meta { margin-bottom: 16px; }
.case-article-head h1 { color: var(--ink); font-weight: 700; letter-spacing: .02em;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5;
  padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.case-article-media { margin: 30px 0 6px; border-radius: 8px; overflow: hidden; }
.case-article-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; height: auto; }
/* 詳細ページの画像下に添える「イメージです」の注釈。figure の角丸は画像側だけに効かせる */
figure.case-article-media { overflow: visible; }
figure.case-article-media img { border-radius: 8px; }
.case-media-note { margin-top: 8px; font-size: 11px; line-height: 1.7; color: var(--muted); text-align: right; }
/* イメージイラスト（image_note あり）は成果物ではないので主役級に大きく見せない。
   幅を絞って中央に置き、注釈も中央揃えにする */
.case-article-media.is-image-note { width: min(100%, 480px); margin-left: auto; margin-right: auto; }
.case-article-media.is-image-note .case-media-note { text-align: center; }
/* 動画埋め込み（YouTube / Vimeo）。16:9 で枠を確保して読み込み時のガタつきを防ぐ */
.case-video { background: #000; }
.case-video iframe { display: block; width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }
.case-article-body { margin-top: 30px; }
.case-article-body p { font-size: 15px; margin-bottom: 20px; }
.case-article-body .case-lead { color: var(--ink); font-weight: 700; line-height: 1.7;
  font-size: clamp(17px, 1.9vw, 20px); margin-bottom: 26px; }
.case-article-body strong { color: var(--ink); font-weight: 700; }
/* 前後の実績（新しい方＝前・古い方＝次）。btn-arrow を並べると重いので薄いカードにする */
.case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 860px; margin: 28px auto 0; }
.case-nav-link {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; border-radius: 10px;
  background: var(--card); box-shadow: var(--shadow);
  color: var(--ink); transition: transform .25s ease;
}
.case-nav-link.next { text-align: right; align-items: flex-end; }
.case-nav-link.is-empty { background: none; box-shadow: none; }
.case-nav-link:hover { transform: translateY(-3px); }
.case-nav-link:hover .case-nav-title { color: var(--blue); }
.case-nav-label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.case-nav-label svg { width: 16px; height: 16px; }
.case-nav-title { font-size: 14px; font-weight: 700; line-height: 1.6; }
.case-back { text-align: center; margin-top: 44px; }

/* =========================================================
   COLUMN（代表コラム）
   ========================================================= */
.column-sec { padding: 90px 0; }
.list-intro { max-width: 760px; font-size: 15px; color: var(--body); margin-bottom: 28px; }
.list-intro a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
/* 写真のない記事が多い前提の、文字が主役のカード */
.column-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.column-card {
  display: flex; flex-direction: column;
  background: var(--card); border-radius: 10px; box-shadow: var(--shadow);
  color: inherit; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.column-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20,40,70,.14); }
.column-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; height: auto; display: block; }
.column-pad { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.column-card h3 { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.6; margin-bottom: 10px; }
.column-card:hover h3 { color: var(--blue); }
.column-lead {
  font-size: 13.5px; line-height: 1.8; color: var(--muted); margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.column-more { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .06em; }
.column-more::after { content: " →"; }
/* 記事 */
.column-origin { margin-top: 10px; font-size: 12px; color: var(--muted); }
.column-body h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 36px 0 14px; padding-left: 14px; border-left: 4px solid var(--blue); line-height: 1.5; }
.column-body ul { margin: 0 0 20px 1.4em; font-size: 15px; line-height: 1.9; }
.case-article-body .col-video { margin: 24px 0; background: #000; border-radius: 8px; overflow: hidden; }
.case-article-body .col-video iframe { display: block; width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }
.case-article-body .col-figure { margin: 24px 0; text-align: center; }
.case-article-body .col-figure img { max-width: 100%; height: auto; border-radius: 6px; }
.column-body .col-figure img { max-width: min(100%, 320px); }
.case-article-body .col-figure figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }
/* 本文の 2 列（編集モードの「2 列」ボタン）。PC で横並び、スマホで縦積み。写真は自然な比率のまま */
.case-article-body .blk-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; align-items: start; margin: 24px 0; }
.case-article-body .blk-2col .col-figure { margin: 0; }
.case-article-body .blk-2col .col-figure img { max-width: 100%; }
.case-article-body .blk-2col .col-video { margin: 0; }
.case-article-body .blk-col > p:last-child { margin-bottom: 0; }
.column-sign { margin-top: 36px; text-align: right; font-size: 13px; line-height: 1.8; color: var(--ink); font-weight: 700; }
.column-related { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* =========================================================
   CONTACT page
   ========================================================= */
.contact-section { padding: 20px 0 84px; }
.contact-intro { max-width: 840px; margin: 0 auto 36px; font-size: 15px; }
.contact-card {
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow);
  max-width: 840px; margin: 0 auto; padding: 48px clamp(24px, 4vw, 56px) 52px;
}
.contact-closed { text-align: center; }
.contact-closed h2 { font-size: 20px; margin: 0 0 18px; color: var(--ink); }
.contact-closed p { font-size: 15px; margin: 0 0 14px; }
.contact-closed-tel { font-size: 22px !important; font-weight: 700; margin: 24px 0 8px !important; }
.form-group { margin-bottom: 26px; }
fieldset.form-group { border: 0; padding: 0; margin: 0 0 26px; }
.form-label { display: block; color: var(--ink); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.req { color: #e5484d; font-size: 13px; margin-left: 4px; }
.opt { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 2px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(24, 119, 204, .12);
}
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.8; }
.contact-form ::placeholder { color: #aab0b7; }
.radio { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 15px; color: var(--ink); }
.radio input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.consent { margin: 30px 0 26px; font-size: 13px; line-height: 1.9; text-align: center; color: var(--body); }
.consent a { color: var(--blue); text-decoration: underline; }
.form-submit { text-align: center; }
.btn-submit {
  background: var(--blue); color: #fff; font-family: inherit; font-weight: 700; font-size: 15px;
  border: 0; border-radius: 999px; padding: 15px 56px; cursor: pointer; transition: background .2s ease;
}
.btn-submit:hover { background: #0f63b4; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  background: #fdf2f2; border: 1px solid #f3c1c3; border-left: 4px solid #e5484d; border-radius: 8px;
  padding: 14px 18px; margin-bottom: 28px; font-size: 14px; color: #8a1f24; line-height: 1.8;
  scroll-margin-top: 96px;
}
.form-error strong { display: block; color: #b3252b; }
.thanks-links { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.thanks-home { font-size: 13px; color: var(--muted); text-decoration: underline; }

.contact-thanks { text-align: center; }
.contact-thanks .thanks-lead { color: var(--ink); font-weight: 700; font-size: clamp(18px, 2vw, 22px); margin-bottom: 18px; }
.contact-thanks .thanks-note { font-size: 13px; color: var(--muted); margin-top: 22px; }
.contact-thanks .thanks-note a { color: var(--blue); }
.contact-thanks .form-submit { margin-top: 34px; }
.contact-thanks .btn-arrow { justify-content: center; }

/* =========================================================
   LEGAL page (privacy policy)
   ========================================================= */
.legal-page { padding: 24px 0 90px; }
.legal { max-width: 840px; margin: 0 auto; }
.legal .lead { font-size: 15px; margin-bottom: 34px; }
.legal h2 {
  color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.5;
  margin: 36px 0 12px; padding-left: 14px; border-left: 3px solid var(--blue);
}
.legal p { font-size: 14.5px; margin-bottom: 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.4em; }
.legal li { font-size: 14.5px; margin-bottom: 6px; }
.legal .legal-info { line-height: 2; }
.legal .legal-info a, .legal a { color: var(--blue); }
.legal .legal-date { margin-top: 44px; font-size: 13px; color: var(--muted); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* ---------- update bar（トップ HERO 直下。最新のお知らせ／コラム 1 件へ直接リンク） ---------- */
.update-bar {
  display: block; background: var(--blue-soft); border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.update-bar .container {
  display: flex; align-items: center; gap: 14px; min-height: 54px; padding-top: 11px; padding-bottom: 11px;
}
.update-bar .badge { flex: none; width: 72px; text-align: center; }
.update-bar .date { flex: none; }
.update-bar .update-title {
  font-size: 14px; font-weight: 500; line-height: 1.5; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.update-bar .update-more { margin-left: auto; flex: none; color: var(--blue); font-size: 13px; font-weight: 700; }
.update-bar .update-more::after { content: " →"; }
.update-bar:hover .update-title { color: var(--blue); }
@media (max-width: 560px) {
  .update-bar .container { flex-wrap: wrap; gap: 6px 10px; }
  .update-bar .update-title { flex-basis: 100%; white-space: normal; }
  .update-bar .update-more { display: none; }
}

@media (max-width: 900px) {
  .br-pc { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }

  .nav {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line);
    padding: 8px var(--pad) 24px;
    box-shadow: 0 24px 30px rgba(20, 40, 70, .12);
    max-height: calc(100vh - 72px); overflow-y: auto;
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .site-header.is-open .nav {
    transform: translateY(0); opacity: 1; visibility: visible;
    transition: opacity .22s ease, transform .22s ease, visibility 0s;
  }
  .nav a.link { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a.link.active { color: var(--blue); }
  .nav a.link.active::after, .nav a.link:hover::after { display: none; }
  .nav .contact-btn { margin-top: 18px; justify-content: center; }

  .company .grid,
  .service .svc-cards,
  .case-cards, .column-cards,
  .news .grid,
  .greeting-grid,
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid,
  .clients-list,
  .audience-grid,
  .svc-block { grid-template-columns: 1fr; }
  .audience-col + .audience-col { border-left: 0; padding-left: 0; margin-left: 0;
    border-top: 1px solid var(--line); padding-top: 40px; margin-top: 36px; }
  .audience { padding: 60px 0; }
  .facts-4 { grid-template-columns: repeat(2, 1fr); }
  .case-hl { padding: 60px 0; }
  .strengths { padding: 60px 0; }
  .partners { padding: 60px 0 54px; }
  .clients { padding: 54px 0 48px; }
  .flow, .price { padding: 60px 0; }
  .flow-steps { grid-template-columns: 1fr; gap: 22px; }
  .cta .right { text-align: left; }
  .co-profile, .greeting, .access { padding: 60px 0; }
  /* 2列のまま本文が細長くなる幅では、写真を本文の高さに合わせず 4:5 に固定 */
  .company .grid, .greeting-grid { align-items: start; }
  .company .photo img { position: static; height: auto; aspect-ratio: 4/5; }
  .greeting-photo { max-width: 420px; }
  .greeting-photo img { order: -1; height: auto; }
  .svc-cards { gap: 30px; }
  .cta .grid { grid-template-columns: 1fr; }
  .cta .left { padding-right: 0; padding-bottom: 26px; }
  .cta .left::after { display: none; }
  .company { padding: 60px 0; }
  .service, .case-sec, .news { padding: 60px 0; }
  .svc-block { gap: 30px; }
  .svc-block img { order: -1; }
  .site-footer .top { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .news-item.has-body .news-head { flex-wrap: wrap; }
  .news-item.has-body .news-head h3 { width: 100%; }
  .news-body { margin-left: 0; }
  .case-nav { grid-template-columns: 1fr; }
  .case-nav-link.is-empty { display: none; }
  .case-nav-link.next { text-align: left; align-items: flex-start; }
  .case-article-body .blk-2col { grid-template-columns: 1fr; gap: 16px; }
  /* 実績詳細の要約は PC 向けに <br> で改行しているが、狭幅では自然折り返しに任せる */
  .case-article-body .case-lead br { display: none; }
  /* セクション概要文の PC 向け改行も同様に外す */
  .section-lead br { display: none; }
  .facts-grid, .facts-4 { grid-template-columns: 1fr; gap: 22px; }
  /* 900px 側の `.service .svc-cards` `.company .grid` `.greeting-grid` より詳細度を落とさない */
  .svc-cards, .service .svc-cards { grid-template-columns: 1fr; }
  .company .grid, .greeting-grid { grid-template-columns: 1fr; }
  .company .photo .ph { min-height: 0; max-width: 320px; }
  .company .photo img { max-width: 360px; }
  .case-cards, .column-cards { grid-template-columns: 1fr; }
  .news .grid { grid-template-columns: 1fr; }
  .co-row { grid-template-columns: 1fr; gap: 6px; }
  .co-row dt { color: var(--blue); }
  .footer-bar .container { flex-direction: column; height: auto; gap: 6px; padding: 14px var(--pad); }
}

/* =========================================================
   編集モードのプレビュー専用（公開状態の帯・タグ）
   本番ビルドのデータには publish_state が付かないので、本番 HTML にこの要素は出ない
   ========================================================= */
.pv-band {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 0 0 20px; padding: 12px 16px; border-radius: 8px; font-size: 13px; line-height: 1.6;
  background: #fff4e6; border: 1px solid #f5b26b; color: #7a3b00;
}
.pv-band.pv-draft { background: #f1f3f5; border-color: #adb5bd; color: #343a40; }
.pv-band.pv-public { background: #ebfbee; border-color: #8ce99a; color: #1b5e20; padding: 6px 16px; }
.pv-band-text b { display: block; font-size: 14px; }
.pv-band-text small { display: block; font-size: 12px; opacity: .85; }
.pv-band-ctl { display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.pv-band-ctl select { font: inherit; font-size: 13px; padding: 5px 8px; border-radius: 6px; border: 1px solid #ced4da; background: #fff; color: #1e1f22; }
.news-item .pv-band { margin-bottom: 14px; }
.pv-tag {
  display: inline-block; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 3px;
  background: #f76707; color: #fff; white-space: nowrap;
}
.pv-tag.pv-draft { background: #868e96; }
