/* =========================================================
   株式会社松葉総業 — リニューアル版 v3
   コンセプト：上質・洗練／白基調 × 明朝体 × 赤の差し色
   （第一建興江島さんのような、落ち着いた高級感）
   素材（写真・文章・ロゴ）は既存サイトのものを再利用
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400;500;700;900&family=Lato:wght@300;400;700&display=swap');

:root {
  --bg: #fbfaf8;          /* やわらかい白 */
  --bg-2: #f3f1ec;        /* 生成りパネル */
  --ink: #2b2b2b;         /* 本文 */
  --ink-soft: #4a4a4a;
  --muted: #8a8780;       /* 補助テキスト */
  --line: #e6e3dc;
  --line-2: #d8d4ca;
  --accent: #c4172a;      /* 赤の差し色 */
  --accent-d: #a21221;
  --navy: #2b2b2b;        /* 互換用（旧参照を本文色に） */
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 16px 44px rgba(43,40,35,.10);
  --shadow-soft: 0 8px 24px rgba(43,40,35,.07);
  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif;
  --gothic: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --latin: "Lato", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 110%; }   /* 全体を一回り大きく */

body {
  margin: 0;
  font-family: var(--gothic);
  color: var(--ink);
  background: var(--bg);
  line-height: 2;
  letter-spacing: .04em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(90%, var(--maxw)); margin-inline: auto; }

.section { position: relative; padding: clamp(70px, 11vw, 140px) 0; }
.section--tint { background: var(--bg-2); }
.section--navy { background: var(--ink); color: #fff; }
.section--tape::before { content: none; }   /* v2の装飾は無効化 */

/* 背景ウォーターマーク（うっすら） */
.bg-num {
  position: absolute; right: 4%; top: 0; z-index: 0; pointer-events: none;
  font-family: var(--latin); font-weight: 700; font-style: italic;
  font-size: clamp(7rem, 22vw, 18rem); line-height: 1; color: #f0ede7; user-select: none;
}
.section--tint .bg-num { color: #ebe7df; }

/* ---------- 見出し ---------- */
.sec-head { position: relative; z-index: 1; margin-bottom: clamp(40px, 5.5vw, 66px); }
.sec-head .en {
  display: block; font-family: var(--latin); font-weight: 700;
  letter-spacing: .32em; text-transform: uppercase; color: var(--accent);
  font-size: clamp(.74rem, 2.3vw, .84rem); margin-bottom: 16px;
}
.sec-head .ja {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 2.6rem); margin: 0; line-height: 1.5;
  letter-spacing: .04em; color: var(--ink);
}
.section--navy .sec-head .ja { color: #fff; }
.sec-head .lead { margin: 22px 0 0; max-width: 700px; color: var(--ink-soft); font-size: clamp(.92rem, 2.5vw, 1rem); line-height: 2.1; }
.section--navy .sec-head .lead { color: rgba(255,255,255,.78); }
.sec-head--center { text-align: center; }
.sec-head--center .lead { margin-inline: auto; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: 16px 38px; font-family: var(--gothic); font-weight: 500;
  font-size: .95rem; letter-spacing: .08em; cursor: pointer;
  border: 1px solid var(--accent); border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s, transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.btn .ar { transition: transform .35s var(--ease); }
.btn:hover .ar { transform: translateX(5px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-d); border-color: var(--accent-d); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(196,23,42,.24); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }
.btn--navy { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--navy:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.btn--lg { padding: 18px 46px; font-size: 1rem; }

/* =========================================================
   ヘッダー
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 44px);
  transition: background .35s, box-shadow .35s, padding .35s;
}
.header.is-solid, .header--sub {
  background: rgba(251,250,248,.95); backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(43,40,35,.06);
  padding-top: 12px; padding-bottom: 12px;
}
.header__logo img { height: 42px; width: auto; transition: filter .35s; }
/* トップの最上部（写真の上）ではロゴを白抜き */
.header--top:not(.is-solid) .header__logo img { filter: brightness(0) invert(1); }

.gnav { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.gnav__list { display: flex; gap: clamp(14px, 1.9vw, 30px); list-style: none; margin: 0; padding: 0; }
.gnav__list a {
  font-family: var(--gothic); font-weight: 500; font-size: .92rem; letter-spacing: .06em;
  color: var(--ink); position: relative; padding: 6px 0; transition: color .25s;
}
.header--top:not(.is-solid) .gnav__list a { color: #fff; }
.gnav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent); transition: width .3s var(--ease); }
.gnav__list a:hover { color: var(--accent); }
.header--top:not(.is-solid) .gnav__list a:hover { color: #fff; }
.gnav__list a:hover::after, .gnav__list a[aria-current="page"]::after { width: 100%; }
.gnav__tel { display: flex; flex-direction: column; line-height: 1.1; }
.gnav__tel .num { font-family: var(--latin); font-weight: 700; font-size: 1.18rem; color: var(--accent); }
.header--top:not(.is-solid) .gnav__tel .num { color: #fff; }
.gnav__tel .lbl { font-size: .66rem; color: var(--muted); letter-spacing: .06em; }
.header--top:not(.is-solid) .gnav__tel .lbl { color: rgba(255,255,255,.8); }
.gnav__cta {
  background: var(--accent); color: #fff; padding: 12px 26px; border-radius: var(--radius);
  font-weight: 500; font-size: .88rem; letter-spacing: .06em; transition: background .3s, transform .3s;
}
.gnav__cta:hover { background: var(--accent-d); transform: translateY(-2px); }

.burger { display: none; flex-direction: column; gap: 6px; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 11px; position: relative; z-index: 110; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }
.header--top:not(.is-solid) .burger span { background: #fff; }
.is-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.is-open .burger span { background: #fff !important; }

/* =========================================================
   ヒーロー
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.8s ease, transform 9s ease;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,18,16,.62) 0%, rgba(20,18,16,.34) 50%, rgba(20,18,16,.12) 100%); }
.hero__inner { position: relative; z-index: 3; width: min(90%, var(--maxw)); margin-inline: auto; padding-top: 90px; }
.hero__badge {
  display: inline-block; font-family: var(--latin); font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; font-size: .76rem; color: #fff; margin-bottom: 30px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.5);
}
.hero__copy {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(1.35rem, 3.8vw, 2.5rem); line-height: 1.35; letter-spacing: .05em;
  margin: 0 0 28px; text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero__copy .hl { color: #fff; position: relative; }
.hero__copy .hl::after { content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .02em; height: 6px; background: var(--accent); z-index: -1; }
.hero__sub { font-size: clamp(.96rem, 2.8vw, 1.16rem); max-width: 560px; margin: 0 0 40px; color: rgba(255,255,255,.92); line-height: 2.1; font-weight: 400; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4; color: rgba(255,255,255,.8); font-size: .66rem; letter-spacing: .3em; font-family: var(--latin); font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll::after { content: ""; width: 1px; height: 50px; background: rgba(255,255,255,.7); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100%{ transform: scaleY(.25); transform-origin: top; } 50%{ transform: scaleY(1); transform-origin: top; } }
.hero__tape { display: none; }   /* v2のハザードテープは廃止 */

/* =========================================================
   下層ページ ヘッダービジュアル
   ========================================================= */
.page-hero { position: relative; color: #fff; padding: clamp(140px,20vw,210px) 0 clamp(58px,8vw,92px); background: #2b2b2b; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; }
.page-hero[data-bg]::before { background-image: var(--bg-img); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,16,.7), rgba(20,18,16,.3)); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero .en { font-family: var(--latin); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #fff; font-size: .8rem; opacity: .85; }
.page-hero h1 { font-family: var(--mincho); font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 700; margin: 12px 0 0; letter-spacing: .06em; }

.breadcrumb { font-size: .8rem; color: var(--muted); padding: 18px 0; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; opacity: .6; }

/* =========================================================
   事業 3本柱
   ========================================================= */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; z-index: 1; }
.pillar {
  position: relative; overflow: hidden; background: #fff; min-height: 400px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  box-shadow: var(--shadow-soft); transition: transform .45s var(--ease), box-shadow .45s;
}
.pillar__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,.05) 0%, rgba(20,18,16,.4) 50%, rgba(20,18,16,.86) 100%); }
.pillar__body { position: relative; z-index: 1; padding: 34px 30px; }
.pillar__no { font-family: var(--latin); font-weight: 700; font-style: italic; font-size: 1.1rem; color: var(--accent); letter-spacing: .05em; }
.pillar__title { font-family: var(--mincho); font-size: 1.5rem; font-weight: 700; margin: 6px 0 12px; letter-spacing: .04em; }
.pillar__desc { font-size: .88rem; color: rgba(255,255,255,.85); margin: 0 0 18px; line-height: 1.95; }
.pillar__more { font-family: var(--latin); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; display: inline-flex; gap: 8px; align-items: center; }
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pillar:hover .pillar__img { transform: scale(1.08); }
/* 低解像度の看板は拡大せず原寸・中央でくっきり見せる */
.pillar--logo .pillar__img { background-size: auto; background-repeat: no-repeat; background-position: center 38%; background-color: #20242b; }
.pillar--logo:hover .pillar__img { transform: none; }

/* =========================================================
   サービス一覧
   ========================================================= */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; z-index: 1; }
.service { background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.service__img { aspect-ratio: 16 / 11; background-size: cover; background-position: center; transition: transform .7s var(--ease); }
.service:hover .service__img { transform: scale(1.06); }
.service__body { padding: 24px 24px 28px; }
.service h3 { font-family: var(--mincho); font-size: 1.18rem; margin: 0 0 10px; font-weight: 700; }
.service p { font-size: .92rem; color: var(--ink-soft); margin: 0; line-height: 1.9; }
.service p small { display: inline-block; margin-top: 6px; font-size: .76rem; color: var(--accent); font-weight: 700; }
/* 取扱項目チップ */
.biz-tags { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.biz-tags li { background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 20px; font-size: .92rem; font-weight: 500; }
.biz-tags li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 9px; vertical-align: middle; }

/* =========================================================
   事業内容：左右交互の特集レイアウト（スクロールで滑り込み）
   ========================================================= */
.features { position: relative; z-index: 1; }
.feature { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; overflow: hidden; }
.feature__img { background-size: cover; background-position: center; min-height: clamp(280px, 42vw, 460px); }
.feature__duo { display: flex; height: 100%; }
.feature__duo > div { flex: 1; background-size: cover; background-position: center; }
.feature__body { padding: clamp(34px, 5.5vw, 76px); display: flex; flex-direction: column; justify-content: center; background: #fff; }
.feature:nth-child(even) .feature__body { background: var(--bg-2); }
/* 偶数行は画像を右に */
.feature:nth-child(even) .feature__img { grid-column: 2; grid-row: 1; }
.feature:nth-child(even) .feature__body { grid-column: 1; grid-row: 1; }
.feature__no { font-family: var(--latin); font-weight: 700; font-style: italic; font-size: 1.1rem; color: var(--accent); }
.feature__en { font-family: var(--latin); font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-size: .74rem; margin-top: 6px; }
.feature__title { font-family: var(--mincho); font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 700; margin: 12px 0 16px; letter-spacing: .03em; position: relative; padding-bottom: 16px; }
.feature__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--accent); }
.feature__desc { color: var(--ink-soft); margin: 0; line-height: 2; }
.feature__note { display: inline-block; margin: 14px 0 0; font-size: .8rem; font-weight: 700; color: var(--accent); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 16px; }

/* 方向付きスライドイン（reveal の派生） */
.js .reveal.r-left  { transform: translate3d(-48px, 0, 0); }
.js .reveal.r-right { transform: translate3d(48px, 0, 0); }
.js .reveal.r-left.is-in, .js .reveal.r-right.is-in { transform: none; }
/* 写真は大きめにスライドイン（拡大で隙間を出さず、枠でクリップ） */
.js .feature__img.reveal.r-left  { transform: translate3d(-90px, 0, 0) scale(1.12); }
.js .feature__img.reveal.r-right { transform: translate3d(90px, 0, 0) scale(1.12); }
.js .feature__img.reveal.r-left.is-in, .js .feature__img.reveal.r-right.is-in { transform: translate3d(0,0,0) scale(1); }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__img { grid-column: 1; grid-row: 1; }
  .feature:nth-child(even) .feature__body { grid-column: 1; grid-row: 2; }
  .feature__img { min-height: 220px; }
  /* モバイルでは横移動をやめ、控えめに下からフェード */
  .js .reveal.r-left, .js .reveal.r-right { transform: translate3d(0, 30px, 0); }
  .js .feature__img.reveal.r-left, .js .feature__img.reveal.r-right { transform: translate3d(0, 30px, 0) scale(1.04); }
  .js .feature__img.reveal.r-left.is-in, .js .feature__img.reveal.r-right.is-in { transform: translate3d(0,0,0) scale(1); }
}

/* =========================================================
   選ばれる理由グリッド（why-card）
   ========================================================= */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.why-card { background: #fff; border: 1px solid var(--line); padding: 32px 28px; position: relative; transition: transform .35s var(--ease), box-shadow .35s; }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.why-card__num { font-family: var(--latin); font-weight: 700; font-style: italic; font-size: 2.8rem; color: var(--line); line-height: 1; margin-bottom: 14px; }
.why-card__title { font-family: var(--mincho); font-size: 1.1rem; font-weight: 700; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.why-card__desc { font-size: .88rem; color: var(--muted); line-height: 1.95; margin: 0; }
@media (max-width: 860px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* =========================================================
   解体種別カード（type-card）
   ========================================================= */
.type-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.type-card { background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; text-align: center; }
.type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.type-card__photo { width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center; }
.type-card__body { padding: 24px 20px 22px; }
.type-card__title { font-family: var(--mincho); font-size: 1.05rem; font-weight: 700; line-height: 1.5; margin: 0 0 12px; }
.type-card__title .en-sm { display: block; font-family: var(--latin); font-size: .72rem; letter-spacing: .18em; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.type-card__desc { font-size: .86rem; color: var(--muted); line-height: 1.9; margin: 0; text-align: left; }
@media (max-width: 900px) { .type-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .type-cards { grid-template-columns: 1fr; } }

/* =========================================================
   解体の流れ（flow-steps）
   ========================================================= */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; counter-reset: flow; }
.flow-step { position: relative; padding: 28px 20px 28px 24px; border-left: 3px solid var(--line); }
.flow-step:first-child { border-left-color: var(--accent); }
.flow-step:nth-child(even) { background: var(--bg-2); }
.flow-step__no { font-family: var(--latin); font-weight: 700; font-size: .72rem; letter-spacing: .12em; color: var(--accent); display: block; margin-bottom: 10px; }
.flow-step__no b { font-size: 1.3rem; margin-left: 4px; }
.flow-step__label { font-family: var(--mincho); font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; line-height: 1.4; }
.flow-step__desc { font-size: .83rem; color: var(--muted); margin: 0; line-height: 1.85; }
/* 右矢印（CSSで） */
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--accent); z-index: 2; font-weight: 700; }
@media (max-width: 900px) { .flow-steps { grid-template-columns: repeat(2, 1fr); } .flow-step:not(:last-child)::after { display: none; } }
@media (max-width: 520px) { .flow-steps { grid-template-columns: 1fr; } }

/* =========================================================
   スタッフアイコン（helmet svg）
   ========================================================= */
.staff-icon { width: 52px; height: 52px; display: block; margin: auto; }

/* =========================================================
   数字
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.stat { text-align: center; }
.stat__num { font-family: var(--latin); font-weight: 700; font-size: clamp(2.6rem, 7vw, 3.8rem); color: #fff; line-height: 1; }
.stat__num small { font-size: .42em; margin-left: 5px; color: var(--accent); }
.section:not(.section--navy) .stat__num { color: var(--accent); }
.stat__label { margin-top: 14px; font-size: .86rem; color: rgba(255,255,255,.8); }
.section:not(.section--navy) .stat__label { color: var(--ink-soft); }

/* =========================================================
   会社概要 / about
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 20px 6px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.info-table th { width: 30%; color: var(--ink); font-weight: 700; white-space: nowrap; font-family: var(--mincho); letter-spacing: .04em; }
.info-table td { color: var(--ink-soft); }
.about-photo { position: relative; overflow: hidden; box-shadow: var(--shadow-soft); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.about-photo:hover img { transform: scale(1.05); }
/* 低解像度の看板：拡大せず原寸でパネル中央に */
.about-photo--logo { background: #20242b; display: grid; place-items: center; padding: clamp(28px,6vw,56px); aspect-ratio: 4 / 3; }
.about-photo--logo img { width: auto; height: auto; max-width: 300px; max-height: 100%; object-fit: contain; }
.about-photo--logo:hover img { transform: none; }

/* =========================================================
   スタッフ
   ========================================================= */
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; z-index: 1; }
.staff-card { background: #fff; border: 1px solid var(--line); padding: 0; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.staff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.staff-card__photo { aspect-ratio: 1 / 1; background-size: cover; background-position: center 18%; transition: transform .7s var(--ease); }
.staff-card:hover .staff-card__photo { transform: scale(1.05); }
.staff-card__photo--mono { display: grid; place-items: center; background: linear-gradient(135deg, var(--ink), var(--accent)); }
.staff-card__photo--mono span { font-family: var(--mincho); font-weight: 700; font-size: 3rem; color: #fff; }
.staff-card__body { padding: 22px 24px 26px; }
.staff-card__name { font-family: var(--mincho); font-size: 1.2rem; font-weight: 700; margin: 0; }
.staff-card__role { font-size: .76rem; color: var(--accent); font-weight: 500; letter-spacing: .04em; }
.staff-card dl { margin: 6px 0 0; font-size: .87rem; }
.staff-card dt { color: var(--ink); font-weight: 700; font-size: .74rem; letter-spacing: .08em; margin-top: 14px; font-family: var(--mincho); }
.staff-card dd { margin: 3px 0 0; color: var(--muted); line-height: 1.9; }

/* =========================================================
   求人テーブル
   ========================================================= */
.recruit-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); position: relative; z-index: 1; }
.recruit-table th, .recruit-table td { padding: 22px 26px; border-bottom: 1px solid var(--line); text-align: left; font-size: .95rem; vertical-align: top; }
.recruit-table th { background: var(--bg-2); color: var(--ink); width: 26%; font-weight: 700; white-space: nowrap; font-family: var(--mincho); letter-spacing: .03em; }
.recruit-table td { color: var(--ink-soft); }
.recruit-table tr:last-child th, .recruit-table tr:last-child td { border-bottom: 0; }
.message-box { background: #fff; border-top: 3px solid var(--accent); padding: 38px clamp(26px,4vw,50px); box-shadow: var(--shadow-soft); position: relative; z-index: 1; }
.message-box h3 { margin: 0 0 16px; color: var(--ink); font-size: 1.3rem; font-weight: 700; font-family: var(--mincho); }
.message-box p { color: var(--ink-soft); }

/* =========================================================
   CTA
   ========================================================= */
.cta { position: relative; color: #fff; text-align: center; overflow: hidden; background: #2b2b2b; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: url('../img/27337-1.jpg'); background-size: cover; background-position: center; opacity: .22; }
.cta__inner { position: relative; z-index: 1; padding: clamp(60px,9vw,104px) 0; }
.cta h2 { font-family: var(--mincho); font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-weight: 700; margin: 0 0 16px; letter-spacing: .05em; }
.cta p { color: rgba(255,255,255,.82); margin: 0 0 32px; }
.cta__tel { font-family: var(--latin); font-weight: 700; font-size: clamp(2.2rem,7vw,3.2rem); color: #fff; display: inline-flex; align-items: center; gap: 12px; letter-spacing: .02em; }
.cta__hours { font-size: .85rem; color: rgba(255,255,255,.68); margin-top: 10px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* =========================================================
   フォーム
   ========================================================= */
.form { max-width: 760px; margin-inline: auto; display: grid; gap: 24px; position: relative; z-index: 1; }
.form__row { display: grid; gap: 9px; }
.form__row label { font-weight: 700; font-size: .92rem; font-family: var(--mincho); }
.form__row label .req { color: #fff; background: var(--accent); font-size: .66rem; padding: 2px 9px; margin-left: 8px; border-radius: 2px; letter-spacing: .04em; font-family: var(--gothic); }
.form input, .form textarea, .form select {
  width: 100%; padding: 15px 16px; border: 1px solid var(--line-2); background: #fff;
  color: var(--ink); font-family: inherit; font-size: 1rem; border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s;
}
.form input::placeholder, .form textarea::placeholder { color: #b3afa6; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196,23,42,.12); }
.form textarea { resize: vertical; min-height: 152px; }
.form__note { font-size: .82rem; color: var(--muted); }
.form__submit { justify-self: center; }
/* ハニーポット（人間には見えない／スクリーンリーダーからも除外済み） */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
/* 送信結果バナー */
.form-result { max-width: 760px; margin: 0 auto 28px; padding: 18px 22px; border-radius: var(--radius); font-weight: 700; font-size: .95rem; }
.form-result--ok { background: #eaf6ec; border: 1px solid #b9e0c0; color: #1f7a37; }
.form-result--ng { background: #fdecec; border: 1px solid #f3c2c2; color: var(--accent-d); }

/* =========================================================
   NEWS / BLOG
   ========================================================= */
.news-list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 130px 90px 1fr; align-items: center; gap: 22px; padding: 22px 6px; transition: background .3s, padding .3s; }
.news-list a:hover { background: rgba(196,23,42,.03); padding-left: 14px; }
.news-list .date { font-family: var(--latin); font-weight: 700; color: var(--muted); font-size: .86rem; letter-spacing: .04em; }
.news-list .cat { justify-self: start; font-size: .68rem; letter-spacing: .08em; color: #fff; background: var(--accent); padding: 3px 12px; border-radius: 2px; }
.news-list .ttl { color: var(--ink); font-size: .96rem; line-height: 1.7; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.news-list a:hover .ttl { color: var(--accent); }
.news-loading, .news-error { padding: 26px 6px; color: var(--muted); font-size: .9rem; }
.news-more { text-align: center; margin-top: 40px; }
@media (max-width: 640px) {
  .news-list a { grid-template-columns: auto 1fr; grid-template-areas: "date cat" "ttl ttl"; gap: 6px 14px; padding: 18px 6px; }
  .news-list .date { grid-area: date; } .news-list .cat { grid-area: cat; } .news-list .ttl { grid-area: ttl; -webkit-line-clamp: 2; }
}

/* =========================================================
   フッター
   ========================================================= */
.footer { background: #232220; color: rgba(255,255,255,.74); padding: 72px 0 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 52px; }
.footer__logo img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer__addr { font-size: .86rem; line-height: 2; }
.footer h4 { color: #fff; font-size: .9rem; letter-spacing: .1em; margin: 0 0 18px; font-family: var(--mincho); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .87rem; }
.footer ul a:hover { color: var(--accent); }
.footer__sns { display: flex; gap: 12px; margin-top: 18px; }
.footer__sns a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; color: #fff; transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease); }
.footer__sns a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }
.sns-ic { width: 19px; height: 19px; fill: currentColor; display: block; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0; text-align: center; font-size: .76rem; color: rgba(255,255,255,.5); font-family: var(--latin); letter-spacing: .06em; }

/* =========================================================
   演出
   ========================================================= */
/* JSが有効な時だけ非表示にする（JS未読込でも本文が必ず見えるフェイルセーフ） */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* マスコット（右側に浮遊・フワフワ動く） */
.mascot { position: fixed; right: clamp(8px, 1.6vw, 22px); bottom: 96px; z-index: 80; width: clamp(74px, 9vw, 124px); pointer-events: none; filter: drop-shadow(0 10px 16px rgba(0,0,0,.28)); animation: mascotFloat 3.6s ease-in-out infinite; }
.mascot img { width: 100%; height: auto; display: block; }
@keyframes mascotFloat { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-15px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .mascot { animation: none; } }
@media (max-width: 880px) { .mascot { width: 66px; bottom: 70px; right: 6px; opacity: .96; } }

.float-call {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: none;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 14px 22px;
  font-weight: 500; letter-spacing: .04em; box-shadow: 0 10px 24px rgba(196,23,42,.35); align-items: center; gap: 8px;
}

/* =========================================================
   v3.1 演出強化（かっこよさUP）— 動きと余白の洗練
   ========================================================= */

/* テキスト選択色 */
::selection { background: var(--accent); color: #fff; }

/* スクロール進捗バー（最上部・赤） */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), #e8556a); z-index: 200; transition: width .1s linear; }

/* ヒーロー：読み込み時に段階的フェードアップ（JS有効時のみ＝未読込でも即表示） */
@keyframes heroUp { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
/* 静的にopacity:0は置かない（消えたまま固定を防ぐ）。終了状態＝表示。*/
.js .hero__badge, .js .hero__copy, .js .hero__sub, .js .hero__actions, .js .hero__scroll { animation: heroUp 1.1s var(--ease) both; }
.js .hero__badge   { animation-delay: .2s; }
.js .hero__copy    { animation-delay: .4s; }
.js .hero__sub     { animation-delay: .7s; }
.js .hero__actions { animation-delay: .95s; }
.js .hero__scroll  { animation-delay: 1.2s; }
/* 保険：読み込み後は必ず表示（万一アニメが進行しない環境でも消えない） */
.hero-shown .hero__badge, .hero-shown .hero__copy, .hero-shown .hero__sub, .hero-shown .hero__actions, .hero-shown .hero__scroll { animation: none !important; opacity: 1 !important; transform: none !important; }
/* 動きを減らす設定の人にはアニメ無効 */
@media (prefers-reduced-motion: reduce) { .js .hero__badge, .js .hero__copy, .js .hero__sub, .js .hero__actions, .js .hero__scroll { animation: none; } }

/* ヒーロー：縦組みの英字サイドラベル */
.hero__side {
  position: absolute; right: clamp(14px, 3vw, 40px); top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; z-index: 3; display: flex; align-items: center; gap: 18px;
  font-family: var(--latin); font-weight: 700; letter-spacing: .34em; text-transform: uppercase;
  font-size: .72rem; color: rgba(255,255,255,.62);
}
.hero__side::after { content: ""; height: 70px; width: 1px; background: rgba(255,255,255,.4); }

/* 見出しの英字バーをホバー/表示で伸ばす演出（既存 .en を強化） */
.sec-head .en::before { transition: width .6s var(--ease); }
.js .sec-head.reveal:not(.is-in) .en::before { width: 12px; }

/* ボタン：左から色が満ちるフィルアニメーション */
.btn { position: relative; overflow: hidden; z-index: 0; }
.btn > * { position: relative; z-index: 1; }
.btn::before { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: 0; }
.btn--accent::before { background: var(--accent-d); }
.btn--accent:hover::before { transform: scaleX(1); }
.btn--navy::before { background: var(--accent); }
.btn--navy:hover { color: #fff; }
.btn--navy:hover::before { transform: scaleX(1); }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--ink); }
.btn--ghost:hover::before { transform: scaleX(1); }

/* 3本柱：ホバーで赤ラインが下から立ち上がる */
.pillar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: 2; }
.pillar:hover::before { transform: scaleX(1); }
.pillar__more .ar, .pillar__more { transition: gap .3s var(--ease); }
.pillar:hover .pillar__more { gap: 14px; }

/* サービスカード：見出し横に赤いインジケータ */
.service__body h3 { position: relative; padding-left: 16px; }
.service__body h3::before { content: ""; position: absolute; left: 0; top: .35em; width: 5px; height: 1em; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.service:hover h3::before { transform: scaleY(1); }

/* リンクの下線アニメ（フッター等） */
.footer ul a { position: relative; }
.footer ul a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--accent); transition: width .3s var(--ease); }
.footer ul a:hover::after { width: 100%; }

/* セクション見出し：左に細い赤の縦ライン（中央寄せ以外） */
.sec-head:not(.sec-head--center) { padding-left: 22px; border-left: 2px solid var(--accent); }
@media (max-width: 560px){ .sec-head:not(.sec-head--center){ padding-left: 16px; } }

/* ページ下部CTAの電話番号をホバーで微妙に発光 */
.cta__tel { transition: text-shadow .35s, transform .35s var(--ease); }
.cta__tel:hover { text-shadow: 0 0 30px rgba(255,255,255,.5); transform: translateY(-2px); }

/* スクロールダウン文字を上品に */
.hero__scroll { writing-mode: vertical-rl; letter-spacing: .35em; }

/* =========================================================
   フッター法務リンク
   ========================================================= */
.footer__bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer__legal a { color: rgba(255,255,255,.8); font-family: var(--gothic); letter-spacing: .04em; }
.footer__legal a:hover { color: var(--accent); }

/* =========================================================
   法務ページ（個人情報保護方針）
   ========================================================= */
.legal__intro { color: var(--ink-soft); margin: 0 0 40px; }
.legal__block { margin-bottom: 40px; }
.legal__block h2 { font-family: var(--mincho); font-size: 1.3rem; font-weight: 700; margin: 0 0 14px; padding-left: 16px; border-left: 3px solid var(--accent); }
.legal__block p { color: var(--ink-soft); margin: 0 0 12px; }
.legal__block ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.legal__block li { margin-bottom: 8px; }
.legal__date { text-align: right; color: var(--muted); font-size: .9rem; margin-top: 48px; }

/* =========================================================
   サイトマップページ
   ========================================================= */
.sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.sitemap__col h2 { font-family: var(--mincho); font-size: 1.2rem; font-weight: 700; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sitemap__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sitemap__col a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .96rem; transition: color .25s, padding-left .25s; }
.sitemap__col a::before { content: "›"; color: var(--accent); font-weight: 700; }
.sitemap__col a:hover { color: var(--accent); padding-left: 4px; }
@media (max-width: 760px){ .sitemap { grid-template-columns: 1fr; gap: 32px; } }

/* =========================================================
   スマホ固定CTAバー（電話／お問い合わせ）
   ========================================================= */
.sp-cta { display: none; }
@media (max-width: 880px) {
  .sp-cta {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    box-shadow: 0 -6px 20px rgba(0,0,0,.14);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .sp-cta__btn {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 12px 4px; font-weight: 700; font-size: .82rem; letter-spacing: .03em;
    color: #fff; min-height: 56px; flex-direction: column;
  }
  .sp-cta__ic { font-size: 1.2rem; line-height: 1; }
  .sp-cta__tel { background: var(--ink); }
  .sp-cta__biz { background: var(--accent); }
  .sp-cta__mail { background: #5a5e62; }
  /* バーに隠れないよう本文末尾に余白 */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  /* 旧フロート電話ボタンは固定バーに統合するため非表示 */
  .float-call { display: none !important; }
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }

  .burger { display: flex; }
  .gnav {
    position: fixed; inset: 0; background: rgba(35,34,32,.98);
    flex-direction: column; justify-content: center; gap: 28px;
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 105;
  }
  .is-open .gnav { transform: none; }
  body.is-open { overflow: hidden; }
  .gnav__list { flex-direction: column; text-align: center; gap: 26px; }
  .gnav__list a { color: #fff !important; font-size: 1.3rem; font-family: var(--mincho); }
  .gnav__tel { align-items: center; }
  .gnav__tel .num { font-size: 1.7rem; color: #fff !important; }
  .gnav__tel .lbl { color: rgba(255,255,255,.8) !important; }
  .gnav__cta { font-size: 1.05rem; padding: 14px 36px; text-align: center; }
  .float-call { display: inline-flex; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
  .recruit-table th { width: 40%; padding: 16px; font-size: .85rem; }
  .recruit-table td { padding: 16px; }
  .bg-num { font-size: 6rem; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .hero__copy { font-size: 1.35rem; }
  .hero__sub { font-size: .95rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}
