/* ============================================================
   大鈴建設株式会社 — DAIRIN CONSTRUCTION
   style.css  (ブラッシュアップ版)
   ============================================================ */

:root {
  --black:      #0a0a0a;
  --white:      #f5f5f0;
  --gray-dark:  #1a1a1a;
  --gray-mid:   #3a3a3a;
  --gray-light: #b0b0b0;
  --gray-pale:  #e8e8e3;
  --accent:     #c8c8c0;
  --line:       rgba(255, 255, 255, 0.08);
  --header-h:   72px;
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

section { position: relative; }
img { display: block; max-width: 100%; }

/* ─── HEADER ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s, box-shadow 0.4s;
}

header.scrolled {
  background: rgba(10, 10, 10, 0.97);
  box-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.header-brand { display: flex; align-items: center; gap: 1rem; }

.logo-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  background: #fff;
}

.logo-mark img { width: 100%; height: 100%; object-fit: cover; }

.header-title { display: flex; flex-direction: column; }
.header-title .en { font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: 0.2em; color: var(--white); line-height: 1.1; }
.header-title .ja { font-size: 0.6rem; color: var(--gray-light); letter-spacing: 0.15em; line-height: 1.6; }

nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav ul li a {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
nav ul li a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--white); transition: width 0.3s var(--ease-out); }
nav ul li a:hover { color: var(--white); }
nav ul li a:hover::after { width: 100%; }

.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-btn span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: transform 0.3s, opacity 0.3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: rgba(10,10,10,0.97);
  z-index: 99;
  padding: 2rem;
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease-out);
  border-bottom: 1px solid var(--line);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav ul { list-style: none; }
.mobile-nav ul li { border-bottom: 1px solid var(--line); }
.mobile-nav-link { display: block; padding: 1.2rem 0; font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.2em; color: var(--white); text-decoration: none; transition: opacity 0.3s; }
.mobile-nav-link:hover { opacity: 0.6; }

/* ─── HERO ─── */
#hero { height: 100vh; min-height: 600px; display: grid; grid-template-columns: 1fr 1fr; position: relative; overflow: hidden; }

.hero-left { display: flex; flex-direction: column; justify-content: flex-end; padding: 8rem 4rem 6rem; position: relative; z-index: 2; }

.hero-eyebrow { font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.3em; color: var(--gray-light); margin-bottom: 1.5rem; text-transform: uppercase; animation: fadeInUp 0.8s var(--ease-out) 0.1s both; }

.hero-headline { font-family: 'Bebas Neue', sans-serif; font-size: clamp(4rem, 7vw, 8rem); line-height: 0.9; letter-spacing: 0.02em; color: var(--white); margin-bottom: 2rem; }

.hero-headline .hl { display: block; opacity: 0; animation: slideInLeft 0.7s var(--ease-out) forwards; }

.hero-sub { font-size: 0.9rem; color: var(--gray-light); line-height: 2; max-width: 340px; margin-bottom: 3rem; animation: fadeInUp 0.8s var(--ease-out) 0.7s both; }

.hero-cta { display: inline-flex; align-items: center; gap: 1rem; font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.2em; color: var(--white); text-transform: uppercase; text-decoration: none; border: 1px solid var(--white); padding: 1rem 2rem; transition: background 0.3s, color 0.3s, gap 0.3s; animation: fadeInUp 0.8s var(--ease-out) 0.85s both; width: fit-content; }
.hero-cta:hover { background: var(--white); color: var(--black); gap: 1.5rem; }

.hero-right { position: relative; overflow: hidden; }
.hero-image-grid { height: 100%; display: grid; grid-template-rows: 1fr 1fr; gap: 2px; }
.hero-img { overflow: hidden; position: relative; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.1); transition: transform 0.8s var(--ease-out); }
.hero-img:hover img { transform: scale(1.04); }
.hero-img::after { content: ''; position: absolute; inset: 0; background: rgba(10,10,10,0.3); }

.hero-scroll { position: absolute; bottom: 2.5rem; left: 4rem; display: flex; align-items: center; gap: 1rem; font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--gray-light); animation: fadeIn 1s 1.2s both; }
.scroll-line { width: 48px; height: 1px; background: var(--gray-mid); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--white); animation: slideLine 2s ease-in-out infinite; }

@keyframes slideLine { 0% { left: -100%; } 100% { left: 100%; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── セクションラベル ─── */
.section-label { font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.35em; color: var(--gray-light); text-transform: uppercase; display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; }
.section-label::before { content: ''; width: 32px; height: 1px; background: var(--gray-light); }

/* ─── WORKS ─── */
#works { padding: 8rem 4rem; background: var(--black); }
.works-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.works-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 5vw, 5rem); letter-spacing: 0.05em; line-height: 1; }
.works-title-ja { font-size: 0.85rem; color: var(--gray-light); letter-spacing: 0.2em; margin-top: 0.5rem; }
.works-note { font-family: 'Space Mono', monospace; font-size: 0.6rem; color: var(--gray-mid); letter-spacing: 0.1em; align-self: flex-end; }

.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 4rem; }
.filter-btn { font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-light); background: none; border: 1px solid var(--gray-mid); padding: 0.5rem 1rem; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.filter-btn:hover { border-color: var(--gray-light); color: var(--white); }
.filter-btn.active { background: var(--white); color: var(--black); border-color: var(--white); }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.work-card { position: relative; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; transition: opacity 0.4s; }
.work-card.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.work-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.05); transition: transform 0.7s var(--ease-out), filter 0.4s; }
.work-card:hover img { transform: scale(1.06); filter: grayscale(50%) contrast(1.1); }
.work-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 60%); opacity: 0; transition: opacity 0.4s; }
.work-card:hover .work-card-overlay { opacity: 1; }
.work-card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; transform: translateY(8px); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.4s; }
.work-card:hover .work-card-info { transform: translateY(0); opacity: 1; }
.work-category { font-family: 'Space Mono', monospace; font-size: 0.55rem; letter-spacing: 0.25em; color: var(--gray-light); text-transform: uppercase; margin-bottom: 0.4rem; }
.work-name { font-size: 0.9rem; font-weight: 500; color: var(--white); letter-spacing: 0.1em; }

.work-placeholder { background: var(--gray-dark); cursor: default; }
.placeholder-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.placeholder-inner .placeholder-logo { width: 80px; height: 80px; object-fit: contain; opacity: 0.15; filter: grayscale(100%); }
.placeholder-text { font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--gray-mid); text-transform: uppercase; }
.work-placeholder:hover img { transform: none !important; filter: grayscale(100%) !important; }
.work-placeholder:hover .work-card-overlay { opacity: 0.4; }

/* ─── DIVIDER ─── */
.divider { width: 100%; height: 1px; background: rgba(255,255,255,0.06); }

/* ─── OFFICES ─── */
#office { padding: 8rem 4rem; background: var(--gray-dark); }
.map { margin-top: 1.5rem; width: 100%; height: 260px; overflow: hidden; border-radius: 4px; border: 1px solid rgba(255,255,255,0.06); }
.map iframe { width: 100%; height: 100%; border: 0; }
.offices-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 6rem; align-items: start; }
.offices-intro h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1; margin-bottom: 1.5rem; letter-spacing: 0.05em; }
.offices-intro p { font-size: 0.85rem; color: var(--gray-light); line-height: 2; margin-top: 1.5rem; }
.office-cards { display: grid; gap: 1px; }
.office-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); padding: 2.5rem; display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; transition: background 0.3s; }
.office-card:hover { background: rgba(255,255,255,0.06); }
.office-num { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: rgba(255,255,255,0.1); line-height: 1; }
.office-info h3 { font-size: 1rem; font-weight: 500; letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.office-badge { display: inline-block; font-family: 'Space Mono', monospace; font-size: 0.55rem; letter-spacing: 0.2em; border: 1px solid var(--gray-light); color: var(--gray-light); padding: 0.2rem 0.6rem; margin-left: 0.75rem; vertical-align: middle; }
.office-address { font-size: 0.82rem; color: var(--gray-light); line-height: 1.9; }

/* ─── CONTACT ─── */
#contact { padding: 8rem 4rem; background: var(--black); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.contact-text h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 5vw, 5rem); line-height: 0.95; letter-spacing: 0.04em; margin-bottom: 2rem; }
.contact-text p { font-size: 0.85rem; color: var(--gray-light); line-height: 2; max-width: 360px; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { border-left: 1px solid rgba(255,255,255,0.12); padding-left: 1.5rem; transition: border-color 0.3s; }
.contact-item:hover { border-color: rgba(255,255,255,0.4); }
.contact-item-label { font-family: 'Space Mono', monospace; font-size: 0.55rem; letter-spacing: 0.25em; color: var(--gray-light); text-transform: uppercase; margin-bottom: 0.5rem; }
.contact-item-value { font-size: 0.9rem; color: var(--white); letter-spacing: 0.05em; }
.contact-item-value a { color: var(--white); text-decoration: none; transition: opacity 0.3s; }
.contact-item-value a:hover { opacity: 0.6; }

/* ─── FOOTER ─── */
footer { padding: 3rem 4rem; background: var(--gray-dark); border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 0.2em; }
.footer-copy { font-family: 'Space Mono', monospace; font-size: 0.6rem; color: var(--gray-light); letter-spacing: 0.1em; }

/* ─── ライトボックス ─── */
.lightbox-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 200; cursor: pointer; }
.lightbox-bg.open { display: block; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 201; align-items: center; justify-content: center; pointer-events: none; }
.lightbox.open { display: flex; pointer-events: auto; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 85vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-inner img { max-width: 90vw; max-height: 75vh; object-fit: contain; border: 1px solid rgba(255,255,255,0.08); }
.lightbox-caption { padding: 1rem 0; text-align: center; }
.lightbox-caption p:first-child { font-family: 'Space Mono', monospace; font-size: 0.55rem; letter-spacing: 0.25em; color: var(--gray-light); text-transform: uppercase; margin-bottom: 0.3rem; }
.lightbox-caption p:last-child { font-size: 0.9rem; color: var(--white); letter-spacing: 0.1em; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: fixed; background: none; border: 1px solid rgba(255,255,255,0.2); color: var(--white); cursor: pointer; transition: background 0.2s, border-color 0.2s; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.lightbox-close { top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; font-size: 1rem; border-radius: 50%; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.5rem; }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.5rem; }

/* ─── フェードアップ ─── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
    @media (prefers-reduced-motion: reduce) {
    .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── レスポンシブ（〜900px） ─── */
@media (max-width: 900px) {
  header { padding: 0 1.5rem; }
  nav { display: none; }
  .menu-btn { display: flex; }
  .mobile-nav { display: block; }
  #hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 8rem 1.5rem 4rem; }
  #works, #office, #contact { padding: 5rem 1.5rem; }
  .works-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-card.wide { grid-column: span 2; }
  .offices-layout, .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

@media (max-width: 540px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-card.wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .filter-bar { gap: 0.4rem; }
}


/* ============================================================
   ABOUT PAGE — 会社概要ページ専用スタイル
   ============================================================ */

/* ─── ヘッダーブランドをリンク化 ─── */
.header-brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

/* ─── アクティブナビ ─── */
nav ul li a.nav-active {
  color: var(--white);
}
nav ul li a.nav-active::after {
  width: 100%;
}

/* ─── ページヒーロー ─── */
.page-hero {
  height: 55vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 4rem) 4rem 5rem;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(100%) brightness(0.18);
  transform: scale(1.05);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 8vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.page-hero-title .hl {
  display: block;
  opacity: 0;
  animation: slideInLeft 0.7s var(--ease-out) forwards;
}

.page-hero-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gray-light);
  text-transform: uppercase;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

/* ─── 共通見出し ─── */
.about-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
}

.about-lead {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 2.2;
}

/* ─── 会社概要セクション ─── */
.about-section {
  padding: 8rem 4rem;
  background: var(--black);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

/* ─── 概要テーブル ─── */
.about-table-wrap {
  overflow-x: auto;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s;
}

.about-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.about-table th {
  width: 180px;
  padding: 1.4rem 1.5rem 1.4rem 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gray-light);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.about-table td {
  padding: 1.4rem 0;
  font-size: 0.88rem;
  color: var(--white);
  line-height: 2;
  vertical-align: top;
}

.about-table td a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.3s;
}

.about-table td a:hover {
  border-color: var(--white);
}

.table-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  border: 1px solid #c8a84e;
  color: #c8a84e;
  padding: 0.2rem 0.6rem;
  margin-top: 0.4rem;
  vertical-align: middle;
}

/* ─── 沿革セクション ─── */
.history-section {
  padding: 8rem 4rem;
  background: var(--gray-dark);
}

.history-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.history-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-items: start;
}

.history-item.highlight {
  background: rgba(200,168,78,0.05);
  border-left: 2px solid #c8a84e;
  padding-left: 1.5rem;
  margin-left: -1.5rem;
}

.history-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: rgba(255,255,255,0.2);
  line-height: 1;
}

.history-item.highlight .history-year {
  color: #c8a84e;
}

.history-year span {
  font-size: 0.75rem;
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.history-title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.history-desc p:last-child {
  font-size: 0.82rem;
  color: var(--gray-light);
  line-height: 2;
}

/* ─── 事業内容セクション ─── */
.services-section {
  padding: 8rem 4rem;
  background: var(--black);
}

.services-layout {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.service-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 2.5rem;
  transition: background 0.3s;
}

.service-card:hover {
  background: rgba(255,255,255,0.05);
}

.service-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.1);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
  color: var(--white);
}

.service-card p {
  font-size: 0.8rem;
  color: var(--gray-light);
  line-height: 2;
}

/* ─── CTAセクション ─── */
.about-cta-section {
  padding: 9rem 4rem;
  background: var(--gray-dark);
  text-align: center;
}

.about-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.about-cta-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--gray-light);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.about-cta-label::before,
.about-cta-label::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gray-light);
}

.about-cta-inner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 6vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.about-cta-sub {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 2;
  margin-bottom: 3rem;
}

.about-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta--ghost {
  background: transparent;
  color: var(--gray-light);
  border-color: var(--gray-mid);
}

.hero-cta--ghost:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-color: var(--white);
}

/* ─── レスポンシブ（〜900px） ─── */
@media (max-width: 900px) {
  .page-hero {
    padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
    min-height: 320px;
  }

  .about-section,
  .history-section,
  .services-section,
  .about-cta-section {
    padding: 5rem 1.5rem;
  }

  .about-layout,
  .history-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-table th {
    width: 120px;
    font-size: 0.55rem;
  }

  .history-item {
    grid-template-columns: 80px 1fr;
    gap: 1.2rem;
  }

  .history-item.highlight {
    padding-left: 1rem;
    margin-left: -1rem;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-cta-btns {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 540px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .history-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .history-year {
    font-size: 1.4rem;
  }
}


/* ─── 保有資格セクション ─── */
.qual-section {
  padding: 8rem 4rem;
  background: var(--black);
}

.qual-layout {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.qual-group {
  background: var(--black);
  padding: 2.2rem 2rem;
  transition: background 0.3s;
}

.qual-group:hover {
  background: rgba(255,255,255,0.03);
}

.qual-group-header {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.qual-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.2);
  line-height: 1;
  flex-shrink: 0;
}

.qual-group-header h3 {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--white);
  line-height: 1.5;
}

.qual-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.qual-list li {
  font-size: 0.78rem;
  color: var(--gray-light);
  line-height: 1.7;
  padding-left: 1rem;
  position: relative;
}

.qual-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.15);
  font-size: 0.6rem;
  top: 0.1em;
}

@media (max-width: 900px) {
  .qual-section { padding: 5rem 1.5rem; }
  .qual-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .qual-grid { grid-template-columns: 1fr; }
}

/* ─── コンタクトページ メインセクション ─── */
.contact-page-section {
  padding: 8rem 4rem;
  background: var(--black);
}

.contact-page-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 7rem;
  align-items: start;
}

/* ─── 左カラム：連絡先情報 ─── */
.contact-direct-list {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-direct-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s;
}

.contact-direct-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-direct-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--gray-light);
  text-transform: uppercase;
}

.contact-direct-value {
  font-size: 0.88rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.05em;
  line-height: 1.9;
  transition: opacity 0.3s;
}

a.contact-direct-value:hover {
  opacity: 0.6;
}

.contact-direct-address {
  line-height: 2;
  color: var(--gray-light);
  font-size: 0.84rem;
}

.contact-direct-address .table-badge {
  display: inline-block;
  margin-top: 0.5rem;
}

/* ─── 右カラム：フォームラッパー ─── */
.contact-form-wrap {
  position: relative;
}

.contact-form-inner {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem;
}

.form-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-header-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  color: var(--white);
}

/* ─── フォーム行 ─── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  position: relative;
}

.form-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-required {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  color: #c8a84e;
  border: 1px solid #c8a84e;
  padding: 0.1rem 0.45rem;
  line-height: 1.5;
  text-transform: none;
}

/* ─── 入力フィールド ─── */
.form-input,
.form-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  padding: 0.9rem 1.1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.form-input.error,
.form-textarea.error {
  border-color: rgba(200, 80, 80, 0.6);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.9;
}

/* ─── ラジオボタン ─── */
.form-radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--gray-light);
  cursor: pointer;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  line-height: 1.4;
  white-space: nowrap;
}

.form-radio-label:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.form-radio-label input[type="radio"] {
  display: none;
}

.form-radio-custom {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.25s;
}

.form-radio-custom::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0;
  transition: opacity 0.2s;
}

.form-radio-label input[type="radio"]:checked ~ .form-radio-custom {
  border-color: var(--white);
}

.form-radio-label input[type="radio"]:checked ~ .form-radio-custom::after {
  opacity: 1;
}

.form-radio-label:has(input[type="radio"]:checked) {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

/* ─── チェックボックス ─── */
.form-check-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.form-check-label input[type="checkbox"] {
  display: none;
}

.form-check-custom {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.25s, background 0.25s;
}

.form-check-custom::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border-right: 1.5px solid var(--black);
  border-bottom: 1.5px solid var(--black);
  transform: rotate(40deg);
  opacity: 0;
  transition: opacity 0.2s;
}

.form-check-label input[type="checkbox"]:checked ~ .form-check-custom {
  background: var(--white);
  border-color: var(--white);
}

.form-check-label input[type="checkbox"]:checked ~ .form-check-custom::after {
  opacity: 1;
}

.form-check-text {
  font-size: 0.82rem;
  color: var(--gray-light);
  line-height: 1.6;
}

.form-link {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: border-color 0.3s;
}

.form-link:hover {
  border-color: var(--white);
}

/* ─── エラーテキスト ─── */
.form-error {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(220, 100, 100, 0.9);
  min-height: 1rem;
}

/* ─── 送信ボタン ─── */
.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.2rem 2rem;
  margin-top: 0.5rem;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.form-submit:hover:not(:disabled) {
  background: transparent;
  color: var(--white);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-submit-text {
  position: relative;
  z-index: 1;
}

.form-submit-arrow {
  font-size: 1rem;
  transition: transform 0.3s var(--ease-out);
  position: relative;
  z-index: 1;
}

.form-submit:hover:not(:disabled) .form-submit-arrow {
  transform: translateX(4px);
}

/* ローディング状態 */
.form-submit.loading .form-submit-text::after {
  content: '...';
  animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {
  0%, 20%  { content: '.'; }
  40%      { content: '..'; }
  60%,100% { content: '...'; }
}

/* ─── 送信完了 ─── */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  gap: 1.2rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.success-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--white);
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.success-msg {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 2.2;
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

/* ─── グループfocused状態 ─── */
.form-group.focused .form-label {
  color: var(--white);
}

/* ─── レスポンシブ（〜900px） ─── */
@media (max-width: 900px) {
  .contact-page-section {
    padding: 5rem 1.5rem;
  }

  .contact-page-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .contact-form-inner {
    padding: 2.5rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-radio-group {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .form-radio-group {
    grid-template-columns: 1fr;
  }

  .contact-form-inner {
    padding: 2rem 1.2rem;
  }
}
/* ============================================================
   PRIVACY PAGE — プライバシーポリシーページ専用スタイル============================================================ */

/* ─── メインセクション ─── */
.privacy-section {
  padding: 8rem 4rem;
  background: var(--black);
}
 
.privacy-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}
 
/* ─── サイドナビ ─── */
.privacy-sidenav {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}
 
.privacy-sidenav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: nav-counter;
  margin-top: 2rem;
}
 
.privacy-sidenav-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
 
.privacy-sidenav-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.25s, padding-left 0.25s;
  line-height: 1.6;
}
 
.privacy-sidenav-list a::before {
  content: '—';
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.5rem;
  flex-shrink: 0;
  transition: color 0.25s;
}
 
.privacy-sidenav-list a:hover {
  color: var(--white);
  padding-left: 0.4rem;
}
 
.privacy-sidenav-list a.active {
  color: var(--white);
  padding-left: 0.4rem;
}
 
.privacy-sidenav-list a.active::before {
  color: var(--white);
}
 
/* ─── 前文・更新日 ─── */
.privacy-preamble {
  font-size: 0.88rem;
  color: var(--gray-light);
  line-height: 2.2;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 2rem;
}
 
.privacy-updated {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0;
}
 
.privacy-updated-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  text-transform: uppercase;
}
 
.privacy-updated-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--white);
}
 
/* ─── 各条文 ─── */
.privacy-article {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: start;
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
 
.privacy-article-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  padding-top: 0.15rem;
  transition: color 0.3s;
  flex-shrink: 0;
}
 
.privacy-article:hover .privacy-article-num {
  color: rgba(255, 255, 255, 0.2);
}

/* グリッド子要素の幅オーバーフロー防止 */
.privacy-article-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1.4rem;
  line-height: 1.5;
  min-width: 0;
}

.privacy-article-body {
  min-width: 0;
  width: 100%;
}
 
.privacy-article-body p {
  font-size: 0.86rem;
  color: var(--gray-light);
  line-height: 2.3;
  margin-bottom: 1.1rem;
  word-break: break-all;
  overflow-wrap: break-word;
}
 
.privacy-article-body p:last-child {
  margin-bottom: 0;
}
 
/* ─── 箇条書き ─── */
.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.2rem 0;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
 
.privacy-list li {
  font-size: 0.84rem;
  color: var(--gray-light);
  line-height: 1.9;
  padding-left: 1.2rem;
  position: relative;
  word-break: normal;
  overflow-wrap: break-word;
}
 
.privacy-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.6rem;
  top: 0.15em;
}
 
/* ─── お問い合わせ窓口ボックス ─── */
.privacy-contact-box {
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}
 
.privacy-contact-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  line-height: 1.8;
  align-items: baseline;
}
 
.privacy-contact-row:last-child {
  border-bottom: none;
}
 
.privacy-contact-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  text-transform: uppercase;
  padding-top: 0.15rem;
}
 
.privacy-contact-row span:last-child {
  color: var(--white);
}
 
.privacy-link {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s;
}
 
.privacy-link:hover {
  border-color: var(--white);
}
 
/* ─── 本文エリア グリッドオーバーフロー防止 ─── */
.privacy-body {
  min-width: 0;
  width: 100%;
}

/* ─── 戻るCTA ─── */
.privacy-back {
  padding: 4rem 0 1rem;
}
 
/* ─── レスポンシブ（〜900px） ─── */
@media (max-width: 900px) {
  .privacy-section {
    padding: 5rem 1.5rem;
  }
 
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
 
  .privacy-sidenav {
    position: static;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
  }
 
  .privacy-sidenav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 1.2rem;
  }
 
  .privacy-article {
    grid-template-columns: 44px 1fr;
    gap: 1.2rem;
    padding: 2.5rem 0;
  }
 
  .privacy-article-num {
    font-size: 1.6rem;
  }
 
  .privacy-contact-row {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1rem 1.2rem;
  }
}
 
@media (max-width: 540px) {
  .privacy-sidenav-list {
    grid-template-columns: 1fr;
  }
 
  .privacy-preamble {
    padding: 1.5rem;
  }
 
  .privacy-article {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
 
  .privacy-article-num {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.15);
  }
 
  .privacy-contact-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}