@charset "UTF-8";

/* =========================================
   株式会社LeAd Off 共通スタイル
   ========================================= */

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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray: #f5f5f5;
  --text: #1a1a1a;
  --muted: #666666;
  --line: #e8e8e8;
  --accent: #2a6496;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* 到達点がナビに隠れないように */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* キーボード操作時のフォーカス可視化 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* スクリーンリーダー専用 */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 本文へスキップ */
.skip-link {
  position: absolute;
  top: -100px; left: 0;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  text-decoration: none;
  font-size: 0.875rem;
}
.skip-link:focus { top: 0; }

/* ===== NAV ===== */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-h);
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
}

/* ロゴは黒地に白線で描かれているため、明るい背景では黒地ごと置く */
.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  flex-shrink: 0;
}

/* フッターは黒背景なので、白ロゴをそのまま置ける */
.footer-logo {
  width: 76px;
  height: auto;
  margin-bottom: 18px;
  opacity: 0.92;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.5; }

.nav-links a[aria-current="page"] {
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

.nav-tel {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.2s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== SECTION BASE ===== */
section { padding: 120px 80px; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 48px;
  opacity: 0.4;
}

.inner { max-width: 1100px; margin: 0 auto; }
.inner-narrow { max-width: 800px; margin: 0 auto; }

/* ===== 下層ページ ヘッダー ===== */
.page-hero {
  margin-top: var(--nav-h);
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  position: relative;
  color: var(--white);
  background: var(--black);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.page-hero-content { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; width: 100%; }

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.page-hero .lead {
  font-size: 1rem;
  line-height: 1.9;
  opacity: 0.85;
  max-width: 720px;
  letter-spacing: 0.03em;
}

/* ===== パンくず ===== */
.breadcrumb {
  padding: 16px 80px;
  background: var(--gray);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--muted);
}

.breadcrumb li + li::before { content: '›'; margin-right: 8px; opacity: 0.5; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== 見出し ===== */
.h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  line-height: 1.5;
}

.h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.body-text { font-size: 1rem; line-height: 2; letter-spacing: 0.03em; }
.body-text + .body-text { margin-top: 24px; }

/* ===== カード ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  background: var(--white);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.9;
  letter-spacing: 0.03em;
}

/* サービスカード（写真つき） */
.service-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: var(--white);
  text-decoration: none;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-bg,
.service-card:focus-visible .service-card-bg { transform: scale(1.04); }

.service-card-content { position: relative; z-index: 2; }

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  color: var(--white);
}

.service-card ul { list-style: none; margin-bottom: 24px; }

.service-card ul li {
  font-size: 0.9rem;
  padding: 3px 0;
  opacity: 0.9;
  letter-spacing: 0.03em;
}

.service-card ul li::before { content: '・'; }

.service-card .more {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  opacity: 0.9;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 16px;
  display: inline-block;
}

.service-card .more::after { content: ' →'; }

.service-track {
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 20px;
  margin-bottom: 24px;
}

.service-track-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0.6;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.service-track ul li { font-size: 0.85rem; opacity: 0.75; }

/* ===== ビフォーアフター ===== */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.ba-set {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  position: relative;
}

.ba-cell { position: relative; }

.ba-cell img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.ba-cell span {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  background: rgba(10,10,10,0.72);
  padding: 5px 12px;
  border-radius: 3px;
}

.ba-cell.after span { background: var(--accent); }

.ba-caption {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.7;
}

/* 1枚の中にビフォーアフターが写っている写真用 */
.ba-single {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.ba-single img { width: 100%; display: block; }

.ba-single .ba-caption { border-top: 1px solid var(--line); }

/* ===== 写真ギャラリー ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.photo {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.photo:hover img { transform: scale(1.05); }

.photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 16px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--white);
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

/* 単体の大きな写真 */
.photo-feature {
  border-radius: 6px;
  overflow: hidden;
}

.photo-feature img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.photo-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 16px;
  letter-spacing: 0.02em;
}

@media (max-width: 520px) {
  .ba-pair { grid-template-columns: 1fr 1fr; }
}

/* ===== 定義リスト（会社概要） ===== */
.def-list { border-top: 1px solid var(--line); }

.def-list div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.def-list dt {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
  font-weight: 500;
  padding-top: 2px;
}

.def-list dd { font-size: 1rem; line-height: 1.8; letter-spacing: 0.03em; }

/* ===== FAQ ===== */
.faq { border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq details[open] summary::after { content: '−'; }

.faq details p {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ===== 流れ（ステップ） ===== */
.steps { counter-reset: step; display: grid; gap: 4px; }

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.35;
  font-weight: 700;
  padding-top: 4px;
}

.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.03em; }
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
  text-decoration: none;
  padding: 18px 56px;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  transition: background 0.3s, border-color 0.3s;
  background: none;
  cursor: pointer;
}

.btn:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-dark {
  border-color: var(--black);
  color: var(--black);
}

.btn-dark:hover { background: var(--black); color: var(--white); }

.btn-fill {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-fill:hover { opacity: 0.85; background: var(--black); }

/* ===== CONTACT ===== */
.contact-section {
  background: var(--black);
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.contact-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 300;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.contact-section .sub {
  font-size: 1rem;
  opacity: 0.6;
  margin-bottom: 48px;
  letter-spacing: 0.05em;
}

.contact-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-meta {
  margin-top: 32px;
  font-size: 0.875rem;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

.contact-meta a { color: inherit; }

/* ===== フォーム ===== */
.form { max-width: 720px; margin: 0 auto; }

.form-row { margin-bottom: 28px; }

.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.req {
  font-size: 0.7rem;
  color: #c0392b;
  margin-left: 8px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.opt {
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

.form input:focus,
.form textarea:focus,
.form select:focus { border-color: var(--accent); }

.form textarea { min-height: 180px; resize: vertical; }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 8px;
}

.form-actions { text-align: center; margin-top: 40px; }

/* ===== FOOTER ===== */
footer.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 56px 80px 24px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .name {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.footer-brand p { line-height: 1.9; font-size: 0.78rem; }

.footer-col h3 {
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul { list-style: none; display: grid; gap: 10px; }

.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.3);
  font-size: 0.72rem;
}

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  section { padding: 96px 40px; }
  .page-hero { padding: 64px 40px; }
  .breadcrumb { padding: 16px 40px; }
  footer.site-footer { padding: 48px 40px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  nav.site-nav { padding: 0 32px; }
  .nav-links { gap: 24px; }
}

@media (max-width: 780px) {
  nav.site-nav { padding: 0 24px; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 16px 24px; border-top: 1px solid #f0f0f0; }
  .nav-links a[aria-current="page"] { border-bottom: none; background: var(--gray); }
  .hamburger { display: flex; }
  .nav-tel { display: none; }

  section { padding: 72px 24px; }
  .page-hero { padding: 56px 24px; min-height: auto; }
  .breadcrumb { padding: 14px 24px; }
  .def-list div { grid-template-columns: 1fr; gap: 6px; }
  .step { grid-template-columns: 36px 1fr; gap: 16px; }
  .card { padding: 24px; }
  .service-card { min-height: 340px; padding: 32px 24px; }
  .btn { padding: 16px 40px; width: 100%; text-align: center; }
  .contact-actions { width: 100%; flex-direction: column; }

  footer.site-footer { padding: 40px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* 動きを減らす設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 印刷 */
@media print {
  nav.site-nav, .hamburger, .contact-section { display: none; }
  body { color: #000; }
}
