/* =========================================================
   株式会社　岡田建設 — 共通スタイル
   ブレイクポイント：〜767 / 768〜1079 / 1080〜
   外部フォント・CDN は使わない
   ========================================================= */

:root {
  --font: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Hiragino Sans",
          "BIZ UDPGothic", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --bg: #ffffff;
  --bg-alt: #f3f4f3;
  --text: #222524;
  --muted: #5a5f5c;
  --line: #dfe2e0;
  --accent: #1f7a3e;        /* ロゴの緑に近い色（文字にも使えるよう少し濃く） */
  --accent-dark: #17602f;
  --accent-soft: #e7f2ea;
  --ph: #d6d8d7;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --gutter: 24px;
  --section: 160px;
  --header-h: 80px;
}

@media (max-width: 1079px) {
  :root { --section: 120px; }
}
@media (max-width: 767px) {
  :root { --section: 88px; --gutter: 20px; --header-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-break: strict;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  body { font-size: 16px; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
b, strong, th, h1, h2, h3, h4 { font-weight: 600; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding-left: 1.4em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: #fff; color: var(--text); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(800px + var(--gutter) * 2); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
/* 半透明の背景は疑似要素に付ける（ヘッダー本体に backdrop-filter を付けると、
   スマホメニュー（position: fixed）がヘッダーの高さに閉じ込められるため） */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.site-header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  min-height: 44px; flex-shrink: 0;
}
.brand img { height: 52px; width: auto; display: block; }
@media (max-width: 1079px) { .brand img { height: 44px; } }
@media (max-width: 767px) { .brand img { height: 40px; } }
@media (max-width: 360px) { .brand img { height: 34px; } }
.brand:hover { color: var(--text); }

.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.global-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text); text-decoration: none; font-size: 14px; border-radius: 999px;
}
.global-nav a:hover { color: var(--accent); }
.global-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.global-nav .nav-cta a {
  background: var(--accent); color: #fff; padding: 0 18px; margin-left: 6px; font-weight: 600;
}
.global-nav .nav-cta a:hover { background: var(--accent-dark); color: #fff; }
.global-nav .nav-cta a[aria-current="page"] { color: #fff; }

.menu-toggle {
  display: none; width: 48px; height: 48px; margin-right: -10px;
  border: 0; background: transparent; cursor: pointer; border-radius: 10px; color: var(--text);
  align-items: center; justify-content: center;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease; position: relative;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1079px) {
  .menu-toggle { display: inline-flex; }
  .global-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 16px var(--gutter) 40px; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .menu-open .global-nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav li { border-bottom: 1px solid var(--line); }
  .global-nav a { width: 100%; min-height: 56px; font-size: 18px; padding: 0 4px; border-radius: 0; }
  .global-nav .nav-cta { border-bottom: 0; margin-top: 24px; }
  .global-nav .nav-cta a { justify-content: center; margin: 0; border-radius: 999px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 380px) {
}

main { display: block; padding-top: var(--header-h); }

/* ---------- セクション ---------- */
.section { padding: var(--section) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.section + .section:not(.section--alt):not(.section--dark) { padding-top: var(--section); }

.eyebrow {
  display: block; font-size: 14px; letter-spacing: 0.16em; color: var(--accent);
  font-weight: 600; margin-bottom: 14px;
}
.h-display {
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 5rem);
  font-weight: 600; line-height: 1.25; letter-spacing: 0.02em;
}
.h-section {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.75rem);
  font-weight: 600; line-height: 1.3; letter-spacing: 0.01em;
}
.h-sub { font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); font-weight: 600; line-height: 1.4; }
.h-card { font-size: 1.25rem; font-weight: 600; line-height: 1.45; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); color: var(--muted); line-height: 1.9; }
.section-head { max-width: 860px; margin-bottom: 64px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 24px; }
@media (max-width: 767px) {
  .section-head { margin-bottom: 40px; }
}
.sub-block + .sub-block { margin-top: 96px; }
@media (max-width: 767px) { .sub-block + .sub-block { margin-top: 64px; } }
.sub-block > .h-sub { margin-bottom: 28px; }

.note { font-size: 14px; color: var(--muted); }
.todo { color: #8a4b00; font-weight: 600; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid var(--accent); background: var(--accent); color: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--text); }
.btn--light:hover { background: rgba(255,255,255,.85); border-color: rgba(255,255,255,.85); color: var(--text); }
.btn--outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.section-head--center + .btn-row, .btn-row--center { justify-content: center; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none;
}
.text-link::after { content: "→"; margin-left: 6px; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(3px); }
.ext::after { content: "（別サイト）"; font-size: .8em; font-weight: 400; margin-left: 2px; }

/* ---------- トップ：ヒーロー ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h)); min-height: calc(100vh - var(--header-h));
  display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2b2f2d;
}
@supports (min-height: 100svh) { .hero { min-height: calc(100svh - var(--header-h)); } }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.62) 100%);
}
.hero__body { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(64px, 10vh, 120px); }
.hero__title { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero__title span { display: block; }
.hero__sub { margin-top: 20px; font-size: clamp(1rem, .95rem + .4vw, 1.25rem); text-shadow: 0 1px 12px rgba(0,0,0,.4); }
@media (max-width: 767px) {
  .hero { min-height: 82vh; }
  @supports (min-height: 100svh) { .hero { min-height: 82svh; } }
}

/* ---------- 下層ページの頭 ---------- */
.page-hero { padding: calc(var(--section) * 0.7) 0 0; }
.page-hero .h-display { margin-top: 4px; }
.page-hero .lead { margin-top: 24px; max-width: 820px; }
.page-hero__media { margin-top: 56px; }
.page-hero__media img, .page-hero__media .ph {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius);
}
@media (max-width: 767px) {
  .page-hero__media { margin-top: 36px; }
  .page-hero__media img { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
}

.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: #9aa09c; }
.breadcrumb a { color: var(--muted); text-decoration: none; display: inline-block; padding: 10px 0; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { display: inline-block; padding: 10px 0; }

/* ---------- グリッド・カード ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1079px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; min-width: 0;
}
.section:not(.section--alt) .card { background: var(--bg-alt); }
.card__media img, .card__media .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body p { color: var(--muted); font-size: 15.5px; line-height: 1.85; margin: 0; }
.card__meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.card__link { margin-top: auto; padding-top: 8px; }
@media (max-width: 767px) { .card__body { padding: 22px 22px 26px; } }

a.card { text-decoration: none; color: inherit; transition: transform .3s ease, box-shadow .3s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.08); color: inherit; }
a.card:hover .h-card { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }

.tag {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-dark);
}

/* 仮の枠（写真がまだ無い所） */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--ph); color: #4a4f4c; font-size: 14px; line-height: 1.6;
  padding: 16px; aspect-ratio: 4 / 3; width: 100%;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 12px, transparent 12px 24px);
}

/* 写真＋文の2カラム */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split--rev > :first-child { order: 2; }
.split__media img, .split__media .ph { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 1079px) { .split { gap: 40px; } }
@media (max-width: 767px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split--rev > :first-child { order: 0; }
  .split__media img, .split__media .ph { border-radius: var(--radius-sm); }
}

figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery img, .gallery .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1079px) { .gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .gallery, .gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- 事実の数字 ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fact { background: #fff; border-radius: var(--radius); padding: 36px 32px; }
.fact__label { font-size: 14px; color: var(--muted); font-weight: 600; }
.fact__value { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); font-weight: 600; line-height: 1.3; margin-top: 8px; color: var(--text); }
.fact__value small { font-size: .5em; margin-left: 4px; }
.fact__note { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.fact--wide { grid-column: span 2; }
@media (max-width: 1079px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact--wide { grid-column: span 2; } }
@media (max-width: 767px) { .facts { grid-template-columns: minmax(0, 1fr); } .fact--wide { grid-column: auto; } .fact { padding: 28px 24px; } }

/* ---------- 大きな写真の帯（採用への入口など） ---------- */
.banner { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 520px; display: flex; align-items: flex-end; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.66) 100%); }
.banner__body { position: relative; z-index: 1; padding: 56px; max-width: 760px; }
.banner__body p { color: rgba(255,255,255,.92); margin-top: 18px; }
@media (max-width: 767px) { .banner { min-height: 480px; border-radius: var(--radius-sm); } .banner__body { padding: 28px 22px; } }

/* ---------- 表（会社概要など） ---------- */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.section:not(.section--alt) .info-table { background: var(--bg-alt); }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 220px; color: var(--muted); font-size: 15px; }
.info-table td ul { list-style: none; padding: 0; }
.info-table td li + li { margin-top: 4px; }
@media (max-width: 767px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding: 18px 20px 4px; border-bottom: 0; }
  .info-table td { padding: 0 20px 18px; }
}

/* 沿革 */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 32px; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline time { font-weight: 600; }
@media (max-width: 767px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-left: 24px; } }

/* 箇条書き（方針など） */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: .7em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.num-list { margin: 0; padding-left: 1.6em; display: grid; gap: 12px; }

.quote {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.25rem); font-weight: 600; line-height: 1.6;
}
.panel { background: #fff; border-radius: var(--radius); padding: 48px; }
.section:not(.section--alt) .panel { background: var(--bg-alt); }
@media (max-width: 767px) { .panel { padding: 28px 22px; border-radius: var(--radius-sm); } }
.panel + .panel { margin-top: 24px; }

/* 社長挨拶 */
.greeting { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; align-items: start; }
.greeting__photo img { border-radius: var(--radius); width: 100%; }
.greeting__sign { margin-top: 32px; text-align: right; font-weight: 600; }
@media (max-width: 1079px) { .greeting { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; } }
@media (max-width: 767px) { .greeting { grid-template-columns: minmax(0, 1fr); gap: 28px; } .greeting__photo { max-width: 240px; } }

/* ---------- 開閉（募集要項・写真） ---------- */
.acc { background: #fff; border-radius: var(--radius); overflow: hidden; }
.section:not(.section--alt) .acc { background: var(--bg-alt); }
.acc + .acc { margin-top: 16px; }
.acc > summary {
  list-style: none; cursor: pointer; min-height: 72px; padding: 18px 64px 18px 28px; position: relative;
  display: flex; align-items: center; font-weight: 600; font-size: 1.1875rem;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after {
  content: ""; position: absolute; right: 28px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg);
  transition: transform .25s ease;
}
.acc[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.acc__body { padding: 0 28px 32px; }
.acc__body .info-table { background: transparent; border-radius: 0; }
.acc__body .info-table th { padding-left: 0; }
.acc__body .info-table td { padding-right: 0; }
@media (max-width: 767px) {
  .acc > summary { padding: 16px 52px 16px 20px; font-size: 1.0625rem; }
  .acc > summary::after { right: 22px; }
  .acc__body { padding: 0 20px 24px; }
  .acc__body .info-table th, .acc__body .info-table td { padding-left: 0; padding-right: 0; }
}
.more { margin-top: 12px; }
.more > summary {
  cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; list-style: none;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "＋"; margin-right: 6px; }
.more[open] > summary::before { content: "－"; }
.more .gallery { margin-top: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- スタッフ ---------- */
.staff { background: #fff; border-radius: var(--radius); padding: 36px 32px; }
.staff__name { font-size: 1.75rem; font-weight: 600; }
.staff__meta { color: var(--accent); font-weight: 600; font-size: 14px; margin: 4px 0 16px; }
.staff p { color: var(--muted); font-size: 15.5px; }

/* 漫画 */
.manga { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.manga img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.manga a { display: block; }
@media (max-width: 767px) { .manga { grid-template-columns: minmax(0, 1fr); } }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item a {
  display: grid; grid-template-columns: 120px 120px minmax(0, 1fr); gap: 8px 24px; align-items: center;
  padding: 24px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); min-height: 44px;
}
.news-item:first-child a { border-top: 1px solid var(--line); }
.news-item a:hover .news-item__title { color: var(--accent); }
.news-item time { color: var(--muted); font-size: 15px; }
.news-item__title { font-weight: 600; }
@media (max-width: 767px) {
  .news-item a { grid-template-columns: auto minmax(0, 1fr); padding: 20px 0; }
  .news-item__title { grid-column: 1 / -1; }
}

.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filter button {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 15px; cursor: pointer; color: var(--text);
}
.filter button:hover { border-color: var(--accent); color: var(--accent); }
.filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.filter-status { margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.card--text .card__body { padding-top: 32px; }
.card[hidden] { display: none; }

/* 記事本文 */
.article-head { padding: calc(var(--section) * 0.6) 0 40px; }
.article-head .card__meta { margin: 20px 0 16px; font-size: 14px; }
.article-title { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 3rem); font-weight: 600; line-height: 1.4; }
.article-hero img { width: 100%; border-radius: var(--radius); max-height: 640px; object-fit: cover; }
.prose { font-size: 17px; line-height: 2; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4em; padding-bottom: .5em; border-bottom: 2px solid var(--line); }
.prose h3 { font-size: 1.3rem; margin-top: 2em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.2em 0; padding: 16px 24px; background: var(--bg-alt); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose img { border-radius: var(--radius-sm); margin: 0 auto; }
.prose a { word-break: break-all; }
.article-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (max-width: 767px) { .prose { font-size: 16px; } .prose h2 { font-size: 1.35rem; } }

/* ---------- お問い合わせ ---------- */
.contact-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.contact-box--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-left: auto; margin-right: auto; }
.contact-box__item { background: #fff; border-radius: var(--radius); padding: 32px; }
.section:not(.section--alt) .contact-box__item { background: var(--bg-alt); }
.contact-box__label { font-size: 14px; color: var(--muted); font-weight: 600; }
.contact-box__value { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 600; margin-top: 6px; line-height: 1.4; }
.contact-box__value a { color: var(--text); text-decoration: none; display: inline-block; min-height: 44px; }
.contact-box__value a:hover { color: var(--accent); }
@media (max-width: 1079px) { .contact-box { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .contact-box__item { padding: 24px 22px; } }

.form { display: grid; gap: 28px; }
.form-row label, .form-row legend { display: block; font-weight: 600; margin-bottom: 10px; }
.form-row fieldset { border: 0; padding: 0; margin: 0; }
.req { display: inline-block; margin-left: 8px; font-size: 12px; color: #fff; background: #b4432f; border-radius: 4px; padding: 0 6px; vertical-align: 2px; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 16px;
  border: 1px solid #c9cdca; border-radius: var(--radius-sm); background: #fff; color: var(--text);
}
.form textarea { min-height: 200px; resize: vertical; line-height: 1.7; }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(31,122,62,.35); border-color: var(--accent); }
.radio-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.radio-list label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; margin: 0; cursor: pointer; }
.radio-list input { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.form-message {
  padding: 18px 22px; border-radius: var(--radius-sm); background: #fff5e6; color: #6b3a00; border: 1px solid #f0d2a6; font-weight: 600;
}
.form-message[hidden] { display: none; }
/* 迷惑メール対策の欄（人には見せない） */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-result { margin-bottom: 24px; }
.form button[disabled] { opacity: .6; cursor: progress; }

.privacy h3 { font-size: 1.1rem; margin: 2em 0 .6em; }
.privacy h3:first-child { margin-top: 0; }
.privacy p, .privacy li { color: var(--muted); font-size: 15.5px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--bg-alt); padding: 80px 0 40px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
.site-footer__logo { width: 260px; max-width: 100%; }
.site-footer__name { font-size: 16px; font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer address a { color: var(--muted); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.copyright { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; }
@media (max-width: 767px) { .site-footer { padding: 56px 0 32px; } .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- スクロールでふわっと出る（控えめ） ---------- */
.js .reveal {
  opacity: 0; transform: translateY(36px); filter: blur(8px);
  transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.2,.7,.2,1), filter 1.1s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---------- 写真と文字の動き（動きを減らす設定では止める） ---------- */
.card__media, .split__media, .page-hero__media, .hero { overflow: hidden; }
.split__media, .page-hero__media { border-radius: var(--radius); }
@media (max-width: 767px) { .split__media, .page-hero__media { border-radius: var(--radius-sm); } }
@media (prefers-reduced-motion: no-preference) {
  /* 写真だけの塊は、塊ごとは動かさず、中の写真を左から右へ現す */
  .js .split__media.reveal, .js figure.reveal { opacity: 1; transform: none; filter: none; }

  /* 写真：左から右へ幕が開くように現れ、少し右へ流れて止まる */
  .js .reveal img {
    clip-path: inset(0 100% 0 0);
    transform: translateX(-6%) scale(1.08);
    transition: clip-path 1.3s cubic-bezier(.77,0,.18,1), transform 1.8s cubic-bezier(.2,.7,.2,1);
  }
  .js .reveal.is-visible img {
    clip-path: inset(0 0 0 0);
    transform: none;
  }
  .js .reveal-img { clip-path: inset(0 100% 0 0); transform: translateX(-4%); transition: clip-path 1.3s cubic-bezier(.77,0,.18,1), transform 1.6s cubic-bezier(.2,.7,.2,1); }
  .js .reveal-img.is-visible { clip-path: inset(0 0 0 0); transform: none; }
  /* 並べた写真（開閉の中・記事本文）：見えたとき・開いたときに左から右へ */
  .js details[open] .gallery img { animation: wipe-in 1.2s cubic-bezier(.77,0,.18,1) both; }
  .js details[open] .gallery img:nth-child(2) { animation-delay: .12s; }
  .js details[open] .gallery img:nth-child(3) { animation-delay: .24s; }
  .js details[open] .gallery img:nth-child(4) { animation-delay: .36s; }
  /* 図の説明文は写真のあとにふわっと */
  .js figure.reveal figcaption { opacity: 0; transform: translateY(12px); transition: opacity .9s ease .6s, transform .9s ease .6s; }
  .js figure.reveal.is-visible figcaption { opacity: 1; transform: none; }
  /* カードの文字は写真のあとに少し遅れて浮き出る */
  .js .reveal .card__body { opacity: 0; transform: translateY(16px); transition: opacity 1s ease .45s, transform 1s cubic-bezier(.2,.7,.2,1) .45s; }
  .js .reveal.is-visible .card__body { opacity: 1; transform: none; }

  /* カードに指・マウスを乗せると少し寄る（現れたあと） */
  .js a.card.is-visible .card__media img { transition: clip-path 1.3s cubic-bezier(.77,0,.18,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .js a.card.reveal.is-visible:hover .card__media img, .js a.card.reveal.is-visible:focus-visible .card__media img,
  a.card:hover .card__media img { transform: scale(1.05); }

  /* ページ上部の大きな写真：開いたときに左から右へ現れる */
  .hero__img { animation: wipe-in 1.6s cubic-bezier(.77,0,.18,1) both, hero-drift 14s ease-out both; }
  .page-hero__media img { animation: wipe-in 1.4s cubic-bezier(.77,0,.18,1) .3s both, slide-settle 2s cubic-bezier(.2,.7,.2,1) .3s both; }
  @keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes hero-drift { from { transform: translateX(-4%) scale(1.14); } to { transform: none; } }
  @keyframes slide-settle { from { transform: translateX(-6%) scale(1.08); } to { transform: none; } }

  /* ページ上部の文字：順番にふわっと浮き出る */
  .hero__title > span, .hero__sub, .hero .btn-row,
  .page-hero .breadcrumb, .page-hero .eyebrow, .page-hero .h-display, .page-hero .lead, .page-hero .btn-row {
    animation: float-in 1.2s cubic-bezier(.2,.7,.2,1) backwards;
  }
  .hero__title > span:nth-child(1) { animation-delay: .6s; }
  .hero__title > span:nth-child(2) { animation-delay: .85s; }
  .hero__sub { animation-delay: 1.15s; }
  .hero .btn-row { animation-delay: 1.35s; }
  .page-hero .breadcrumb { animation-delay: 0s; }
  .page-hero .eyebrow { animation-delay: .1s; }
  .page-hero .h-display { animation-delay: .2s; }
  .page-hero .lead { animation-delay: .35s; }
  .page-hero .btn-row { animation-delay: .5s; }
  @keyframes float-in { from { opacity: 0; transform: translateY(28px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
}

/* ---------- 印刷 ---------- */
@media print {
  .site-header, .menu-toggle, .filter { display: none; }
  main { padding-top: 0; }
  .js .reveal, .js .reveal .card__body, .js figure.reveal figcaption { opacity: 1; transform: none; filter: none; }
  .js .reveal img, .js .reveal-img, .hero__img, .page-hero__media img { clip-path: none !important; transform: none !important; animation: none !important; }
  .hero__title > span, .hero__sub, .hero .btn-row,
  .page-hero .breadcrumb, .page-hero .eyebrow, .page-hero .h-display, .page-hero .lead, .page-hero .btn-row {
    animation: none !important; opacity: 1; transform: none; filter: none;
  }
}

/* 見出しの中で、言葉の途中で改行させない部分 */
.nw { display: inline-block; }

/* 押せる大きさ（44px以上）：文中の電話・メール・地図などのリンク */
.site-footer address a,
.info-table td a,
.note a,
.tap {
  display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle;
}
.breadcrumb a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0; }
.footer-nav a { min-width: 44px; }

/* 会社概要の本社の地図（Google マップの埋め込み） */
.map-embed { margin: 16px 0 4px; width: 100%; max-width: 720px; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt, #f5f5f7); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-note { margin: 4px 0 0; font-size: .875rem; color: var(--muted); }
@media print { .map-embed, .map-note { display: none; } }
