/* ============================================================
   サイト共通の仕上げ（2026-11-26）
   全ページで style.css のあとに読み込む。このファイルを外せば元の見た目に戻る
   ・灰色の帯を中央にまとめる ・下部のお問い合わせボタンを赤い塗りに
   ・ページ上部の見出し背景をそろえる ・カードや表の角と罫線をそろえる
   ============================================================ */
:root { --line-soft: #e6e9ed; }

/* 灰色の帯：画面の端まで広げず、コンテンツの幅に合わせて中央に */
.section.mist { max-width: calc(var(--wrap) + 120px); margin-inline: auto; border-radius: 32px; }
@media (max-width: 1260px) { .section.mist { margin-inline: clamp(0px, 1.5vw, 20px); } }
@media (max-width: 860px) { .section.mist { margin-inline: 0; border-radius: 24px; } }

/* ページ下部のお問い合わせ：ボタンを赤い塗りにして、押す場所をはっきり */
.cta-band .btn.light, .home .cta-band .btn.light, .about .cta-band .btn.light {
  background: var(--red); border-color: var(--red); color: #fff; border-radius: 999px;
}
.cta-band .btn.light:hover, .home .cta-band .btn.light:hover, .about .cta-band .btn.light:hover {
  background: var(--red-dark, #b81f16); border-color: var(--red-dark, #b81f16); color: #fff;
}

/* 下層ページの上部：白地に細い格子と淡い光（採用情報ページと同じ考え方を、より控えめに） */
body:not(.home):not(.blog):not(.recruit) .page-hero {
  background:
    radial-gradient(560px 300px at 88% 0%, rgb(216 38 28 / .06), transparent 65%),
    linear-gradient(rgb(22 24 29 / .03) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgb(22 24 29 / .03) 1px, transparent 1px) 0 0 / 40px 40px,
    #fbfbfc;
  border-bottom-color: var(--line-soft);
}

/* 表（会社概要・募集要項など）：罫線をやわらかく */
.table dt, .table dd { border-bottom-color: var(--line-soft); }

/* 本文の読みやすさ：行間を少し広く */
.section p { line-height: 1.95; }

/* ページ内リンクで移動したとき、上部の固定メニューに見出しが隠れないように */
[id] { scroll-margin-top: 96px; }

/* ページ内の目次（企業情報など）：上部に残る細い帯。今いる場所は赤い下線 */
.page-subnav { position: sticky; top: 80px; z-index: 20; background: rgb(255 255 255 / .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.page-subnav .wrap { display: flex; gap: 4px 22px; overflow-x: auto; scrollbar-width: none; }
.page-subnav .wrap::-webkit-scrollbar { display: none; }
.page-subnav a { flex: none; position: relative; padding: 14px 2px 13px; font-size: 14px; font-weight: 700; color: #3f4651; text-decoration: none; transition: color .2s; }
.page-subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.page-subnav a:hover, .page-subnav a.on { color: var(--red); }
.page-subnav a.on::after { transform: scaleX(1); }
@media (max-width: 860px) { .page-subnav { top: 64px; } .page-subnav a { font-size: 13.5px; padding-block: 12px 11px; } }
.about [id] { scroll-margin-top: 150px; }

/* 経営理念の3つの札：同じ形にそろえ、「挑戦と行動」だけを赤で控えめに強調 */
.about .ab-values li, .about .ab-values li:nth-child(1), .about .ab-values li:nth-child(2), .about .ab-values li.hl {
  background: #fff; color: var(--ink); border: 1px solid var(--line-soft); border-radius: 14px;
  box-shadow: inset 0 3px 0 #2b3038; padding: 22px 22px 20px;
}
.about .ab-values li b, .about .ab-values li.hl b { color: var(--ink); }
.about .ab-values li span, .about .ab-values li.hl span { color: #4f5661; }
.about .ab-values li.hl { box-shadow: inset 0 3px 0 var(--red); background: #fffafa; }
.about .ab-values li.hl b { color: var(--red); }

/* ---------- 企業情報：代表メッセージ ---------- */
.about #message .two-col { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
/* 本文は白い面にのせて読みやすく */
.about .ab-msg { max-width: none; background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; padding: 48px 56px 44px; }
.about .ab-msg p { color: #3f4651; line-height: 2; }
.about .ab-msg p + p { margin-top: 14px; }
.about .ab-msg .ab-lead, .about .ab-msg .ab-sign { color: var(--ink); line-height: 1.7; }
/* 代表者カード：経歴 */
.about .ceo-career { list-style: none; margin: 2px 6px 0; padding: 14px 0 0 0; border-top: 1px solid #d5d9df; display: grid; gap: 12px; }
.about .ceo-career li { position: relative; display: grid; gap: 1px; padding-left: 18px; }
.about .ceo-career li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); }
.about .ceo-career li:last-child::before { background: var(--red); border-color: var(--red); }
.about .ceo-career li:not(:last-child)::after { content: ""; position: absolute; left: 6.5px; top: 17px; bottom: -11px; width: 1px; background: #c9cdd3; }
.about .ceo-career b { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.about .ceo-career span { font-size: 12px; color: var(--steel); line-height: 1.5; }
@media (max-width: 860px) {
  .about #message .two-col { grid-template-columns: 1fr; gap: 28px; }
  .about .ab-msg { padding: 30px 22px 28px; border-radius: 16px; }
  .about .ceo-card .ceo-career { grid-column: 1 / -1; }
}

/* 代表者カードの格子：細かいマスにして、粗さをなくす（TOP・企業情報 共通） */
.ceo-card .ceo-photo { padding: 18px; gap: 3px; background: linear-gradient(140deg, #f6f7f9 0%, #eceff3 100%); border: 1px solid #e8ebef; }
.ceo-card .matrix i { border-radius: 1.5px; background: #e1e5ea; }
.ceo-card .matrix i.g { background: #cdd2d9; }
.ceo-card .matrix i.k { background: #444a54; }
.ceo-card .matrix i.r { background: var(--red); }

/* 代表メッセージの署名：本文との間を空けて、右寄せ */
.about .ab-msg .ab-sign { margin-top: 40px; text-align: right; }

/* 代表メッセージ：右の白い面を、左の代表者カードと同じ上端・下端にそろえる（PC） */
@media (min-width: 861px) {
  .about #message .two-col { align-items: stretch; }
  .about #message .msg-side { position: static; display: flex; flex-direction: column; align-self: stretch; }
  .about #message .msg-side .ceo-card { flex: 1; align-content: start; }
  .about .ab-msg { margin-top: 78px; padding: 36px 48px 30px; }
  .about .ab-msg p { line-height: 1.9; }
  .about .ab-msg p + p { margin-top: 12px; }
  .about .ab-msg .ab-lead { margin-bottom: 14px; }
  .about .ab-msg .ab-sign { margin-top: 26px; }
}

/* ============================================================
   代表者カード上部の図柄（TOP・企業情報 共通）
   「和」を大切に：余白を活かした静かな構図。円相のような細い円の前に、
   ロゴの4つの四角が浮かび、ゆっくり呼吸するように上下する
   ============================================================ */
.ceo-card .ceo-emblem {
  position: relative; display: block; overflow: hidden; aspect-ratio: 9 / 5; padding: 0;
  border-radius: 14px; perspective: 600px; color: #fff;
  background:
    radial-gradient(120px 120px at 50% 38%, rgb(216 38 28 / .22), transparent 72%),
    linear-gradient(160deg, #17191e 0%, #22262d 60%, #2a2e36 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06);
}
/* 下を少し暗くして、社名を落ち着かせる */
.ceo-emblem::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(21 23 28 / 0) 0%, rgb(21 23 28 / .6) 100%); }
/* 背景の大きな文字と2本目の楕円は使わない */
.ceo-emblem .big { display: none; }
/* 円相のような細い円（一筆で描いたように、上側をわずかに薄く） */
.ceo-emblem .orb { position: absolute; left: 50%; top: 37%; width: 86px; height: 86px; transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .16); border-top-color: rgb(255 255 255 / .05); }
.ceo-emblem .orb::after { content: none; }
/* 床の影（ロゴの呼吸に合わせて、わずかに濃淡が変わる） */
.ceo-emblem .floor { position: absolute; left: 50%; top: 60%; width: 84px; height: 12px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / .5), rgb(0 0 0 / 0)); }
/* 立体のロゴ：4つの四角を同じ高さ・均等なすき間で */
.ceo-emblem .iso { position: absolute; left: 50%; top: 36%; display: grid; grid-template-columns: repeat(2, 26px); gap: 6px;
  transform: translate(-50%, -50%) rotateX(56deg) rotateZ(45deg); transform-style: preserve-3d; }
.ceo-emblem .iso i { width: 26px; height: 26px; border-radius: 3px; background: #f4f5f7; transform: translateZ(8px);
  box-shadow: -3px 3px 0 #9aa0a9, -8px 8px 14px rgb(0 0 0 / .4); }
.ceo-emblem .iso i:nth-child(2) { background: var(--red); box-shadow: -3px 3px 0 #8f1610, -8px 8px 14px rgb(0 0 0 / .45); }
/* 動き：4つがほぼ同時に、ゆっくり呼吸するように浮いて沈む（浮いたところで少し間を置く）。赤はほんの少しだけ高く */
@media (prefers-reduced-motion: no-preference) {
  .ceo-emblem .iso i { animation: cm-breath 8s cubic-bezier(.45, 0, .55, 1) infinite; }
  .ceo-emblem .iso i:nth-child(1) { animation-delay: 0s; }
  .ceo-emblem .iso i:nth-child(2) { animation-name: cm-breath-red; animation-delay: .25s; }
  .ceo-emblem .iso i:nth-child(4) { animation-delay: .5s; }
  .ceo-emblem .iso i:nth-child(3) { animation-delay: .75s; }
  .ceo-emblem .floor { animation: cm-floor 8s cubic-bezier(.45, 0, .55, 1) .35s infinite; }
}
@keyframes cm-breath { 0%, 100% { transform: translateZ(6px); } 40%, 55% { transform: translateZ(12px); } }
@keyframes cm-breath-red { 0%, 100% { transform: translateZ(6px); } 40%, 55% { transform: translateZ(15px); } }
@keyframes cm-floor { 0%, 100% { opacity: 1; } 40%, 55% { opacity: .7; } }
/* 社名：中央に、上に赤い短い線 */
.ceo-emblem .cap { position: absolute; z-index: 1; left: 50%; bottom: 13px; transform: translateX(-50%); display: grid; justify-items: center;
  font-family: var(--serif); font-weight: 800; font-size: 15px; letter-spacing: .12em; line-height: 1.25; color: #fff; white-space: nowrap; }
.ceo-emblem .cap::before { content: ""; width: 20px; height: 2px; margin-bottom: 8px; background: var(--red); }
.ceo-emblem .cap b { color: #ff5a4e; font-weight: 800; }/* 円は使わない */
.ceo-emblem .orb { display: none; }
/* 丸い印象をなくす：赤い光は横に広い、ごく淡いものに */
.ceo-card .ceo-emblem { background:
    radial-gradient(320px 110px at 50% 36%, rgb(216 38 28 / .16), transparent 75%),
    linear-gradient(160deg, #17191e 0%, #22262d 60%, #2a2e36 100%); }

/* 経営理念の「おもてなしの人間力」：ピンクの下線はやめる */
.philo-main em { background: none; }
/* ◇の形を整える：遠近感の歪みをなくし（正確な菱形に）、4つが同じタイミングでそろって呼吸する */
.ceo-card .ceo-emblem { perspective: none; }
@media (prefers-reduced-motion: no-preference) {
  .ceo-emblem .iso i:nth-child(1), .ceo-emblem .iso i:nth-child(2), .ceo-emblem .iso i:nth-child(3), .ceo-emblem .iso i:nth-child(4) { animation-delay: 0s; }
}
/* スマホ：図柄をカードの横幅いっぱいに。名前などはその下に */
@media (max-width: 860px) {
  .ceo-card { grid-template-columns: minmax(0, 1fr); }
  .ceo-card .ceo-photo.ceo-emblem { grid-row: auto; grid-column: 1 / -1; width: 100%; }
}

/* 代表者カード上部：明るい版。白に近い和紙のような地に細かな点、墨と赤のロゴ */
.ceo-card .ceo-emblem {
  color: var(--ink);
  background:
    radial-gradient(300px 120px at 50% 34%, rgb(216 38 28 / .08), transparent 75%),
    radial-gradient(rgb(22 24 29 / .07) 1px, transparent 1.2px) 0 0 / 12px 12px,
    linear-gradient(165deg, #ffffff 0%, #f6f6f4 55%, #efefec 100%);
  box-shadow: inset 0 0 0 1px #e6e8eb;
}
.ceo-emblem::before { background: linear-gradient(180deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / .75) 100%); }
.ceo-emblem .iso i { background: #2b3038; box-shadow: -3px 3px 0 #14171c, -8px 8px 14px rgb(22 24 29 / .22); }
.ceo-emblem .iso i:nth-child(2) { background: var(--red); box-shadow: -3px 3px 0 #9c1a12, -8px 8px 14px rgb(160 30 20 / .25); }
.ceo-emblem .floor { background: radial-gradient(closest-side, rgb(22 24 29 / .22), rgb(22 24 29 / 0)); }
.ceo-emblem .cap { color: var(--ink); }
.ceo-emblem .cap b { color: var(--red); }

/* ---------- 企業情報：会社概要の表を、白いカードに ---------- */
.about #outline .table { grid-template-columns: 180px minmax(0, 1fr); background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(22 24 29 / .03), 0 18px 40px -30px rgb(22 24 29 / .25); }
.about #outline .table::before { left: 0; right: 0; top: 0; height: 3px; width: auto; background: linear-gradient(90deg, var(--red) 0 22%, var(--ink) 22% 100%); }
.about #outline .table > dt { background: none; padding: 22px 0 22px 32px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: #6b727d; border-bottom-color: var(--line-soft); }
.about #outline .table > dd { padding: 20px 32px 20px 0; font-size: 15px; color: var(--ink); border-bottom-color: var(--line-soft); }
.about #outline .table > dt:last-of-type, .about #outline .table > dd:last-of-type { border-bottom: 0; }
.about #outline .table > dt:first-of-type, .about #outline .table > dt:first-of-type + dd { padding-top: 28px; }
.about #outline .table > dt:first-of-type + dd { font-family: var(--serif); font-weight: 800; font-size: 18px; }
/* 事業内容：3つの小さなカードを横に並べる */
.about #outline .table .biz-list { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; gap: 0 12px; margin-top: 2px; }
.about #outline .table .biz-list dt { background: #f7f8fa; border-radius: 12px 12px 0 0; padding: 14px 16px 6px; font-size: 13.5px; }
.about #outline .table .biz-list dd { background: #f7f8fa; border-radius: 0 0 12px 12px; padding: 4px 16px 14px; margin: 0; }
.about #outline .biz-items { gap: 4px; }
.about #outline .biz-items li { font-size: 13.5px; line-height: 1.6; color: #3f4651; padding-left: 12px; }
.about #outline .biz-items li::before { width: 5px; top: .8em; background: #9aa0a9; }
@media (max-width: 860px) {
  .about #outline .table { grid-template-columns: 1fr; border-radius: 16px; }
  .about #outline .table > dt { padding: 18px 20px 2px; border-bottom: 0; }
  .about #outline .table > dd { padding: 4px 20px 18px; }
  .about #outline .table > dt:first-of-type { padding-top: 24px; }
  .about #outline .table > dt:first-of-type + dd { padding-top: 4px; }
  .about #outline .table .biz-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 0; }
  .about #outline .table .biz-list dd { margin-bottom: 10px; }
}
@media (min-width: 861px) {
  .about #outline .table { grid-template-columns: 132px minmax(0, 1fr); }
  .about #outline .table > dt { padding-left: 28px; }
  .about #outline .table > dd { padding-right: 24px; }
  .about #outline .table .biz-list { gap: 0 10px; }
  .about #outline .table .biz-list dt, .about #outline .table .biz-list dd { padding-left: 14px; padding-right: 10px; }
  .about #outline .biz-items li { font-size: 13px; letter-spacing: .01em; }
}
/* 事業内容：分類ごとに1行。左に分類名、右に項目を札（チップ）で並べる */
.about #outline .table .biz-list { grid-template-columns: 6.5em minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; gap: 0; margin-top: 0;
  background: #f7f8fa; border-radius: 12px; padding: 6px 16px; }
.about #outline .table .biz-list dt, .about #outline .table .biz-list dd { background: none; border-radius: 0; padding: 12px 0; }
.about #outline .table .biz-list dt { padding-top: 15px; }
.about #outline .table .biz-list dd + dt, .about #outline .table .biz-list dd + dt + dd { border-top: 1px solid #e8eaee; }
.about #outline .biz-items { display: flex; flex-wrap: wrap; gap: 6px; }
.about #outline .biz-items li { padding: 3px 11px; font-size: 13px; line-height: 1.6; color: #3f4651; background: #fff; border: 1px solid #e3e6ea; border-radius: 999px; white-space: nowrap; }
.about #outline .biz-items li::before { display: none; }
@media (max-width: 860px) {
  .about #outline .table .biz-list { grid-template-columns: 1fr; padding: 4px 14px; }
  .about #outline .table .biz-list dt { padding: 12px 0 4px; }
  .about #outline .table .biz-list dd { padding: 4px 0 12px; margin-bottom: 0; }
  .about #outline .table .biz-list dd + dt + dd { border-top: 0; }
  .about #outline .biz-items li { white-space: normal; }
}
/* 代表者カード上部：色の仕上げ（上質な質感） */
.ceo-card .ceo-emblem {
  /* 2026-11-29：色味のない白に（清潔感・透明感） */
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 60%, #f5f7f9 100%);
  box-shadow: inset 0 0 0 1px #eceef1;
}
.ceo-emblem::before { background: linear-gradient(180deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / .6) 100%); }
.ceo-emblem .iso i { background: linear-gradient(135deg, #3a404a 0%, #23272e 100%);
  box-shadow: -3px 3px 0 #101216, -9px 9px 16px rgb(22 24 29 / .14); }
.ceo-emblem .iso i:nth-child(2) { background: linear-gradient(135deg, #e0362b 0%, #b81f16 100%);
  box-shadow: -3px 3px 0 #7d140e, -9px 9px 16px rgb(150 30 20 / .16); }
.ceo-emblem .floor { background: radial-gradient(closest-side, rgb(22 24 29 / .12), rgb(22 24 29 / 0)); }
.ceo-emblem .cap { color: #1d2026; letter-spacing: .14em; }
.ceo-emblem .cap b { color: #c8241b; }
.ceo-emblem .cap::before { background: #c8241b; }
/* 2026-11-29：床の影と赤い短い線をなくし、高さを詰める */
.ceo-card .ceo-emblem .floor, .ceo-card .ceo-emblem .cap::before { display: none; }
.ceo-card .ceo-emblem { aspect-ratio: 9 / 4; }
.ceo-card .ceo-emblem .iso { top: 40%; grid-template-columns: repeat(2, 24px); gap: 5px; }
.ceo-card .ceo-emblem .iso i { width: 24px; height: 24px; }
/* 社名：少し小さく、字間を広げて、図とのまとまりを（上下の余白をそろえる） */
.ceo-card .ceo-emblem .cap { bottom: 15%; font-size: 13px; letter-spacing: .22em; padding-left: .22em; }
/* 2026-11-29：赤い四角は動かさず固定。背景は白のまま（曲線は使わない） */
.ceo-card .ceo-emblem .iso i { animation: none; transform: translateZ(8px); }
.ceo-card .ceo-emblem .iso i:nth-child(2) { animation: none; transform: translateZ(8px); }
.ceo-card .ceo-emblem {
  background:
    linear-gradient(180deg, #ffffff 0%, #fafbfc 60%, #f5f7f9 100%);
}

/* 2026-11-29：四角のふちの濃い影（2重の影）をなくし、ごく淡い影1つだけに */
.ceo-card .ceo-emblem .iso i { box-shadow: -5px 5px 10px rgb(22 24 29 / .12); }
.ceo-card .ceo-emblem .iso i:nth-child(2) { box-shadow: -5px 5px 10px rgb(150 30 20 / .14); }