/*
Theme Name: Lawyer LP Theme
Theme URI: https://example.com
Description: 士業向けLP型WordPressテーマ。ACFによる管理画面編集対応。マルチサイト対応。
Author: Your Company
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: lawyer-lp
*/

/* ─── RESET & BASE ───────────────────────── */
:root {
  --navy:       #0f1f3d;
  --navy-mid:   #1a3060;
  --navy-light: #2a4a8a;
  --gold:       #b8964a;
  --gold-light: #d4af6a;
  --cream:      #f8f5ef;
  --white:      #ffffff;
  --gray-light: #f2f0eb;
  --gray-mid:   #c8c4bb;
  --text-dark:  #1a1a2e;
  --text-mid:   #3d3d5c;
  --serif: 'Noto Serif JP', serif;
  --sans:  'Noto Sans JP', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--serif);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.8;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

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

/* ─── HEADER ─────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid #e0dbd0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px 10px;
  border-bottom: 1px solid #f0ece4;
}

.header-logo { color: var(--navy); text-decoration: none; }
.header-logo-ja {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  display: block;
  line-height: 1.2;
  font-family: var(--serif);
}
.header-logo-en {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--navy-light);
  display: block;
  margin-top: 3px;
}

.header-contact { display: flex; align-items: center; gap: 16px; }
.header-tel { text-align: right; }
.header-tel-number {
  font-family: var(--sans);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.header-tel-number::before { content: '📞'; font-size: 1.1rem; }
.header-tel-hours {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: #888;
  margin-top: 4px;
  letter-spacing: 0.06em;
}
.header-tel-badges { display: flex; gap: 6px; margin-top: 5px; }
.header-badge {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--navy-light);
  border: 1px solid var(--navy-light);
  padding: 2px 8px;
  letter-spacing: 0.06em;
  border-radius: 2px;
}
.header-mail-btn {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.header-mail-btn:hover { background: var(--navy-light); }

.header-nav {
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: var(--navy);
}
.header-nav a {
  color: rgba(255,255,255,0.8);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  transition: color 0.2s, background 0.2s;
}
.header-nav a:hover { color: var(--gold-light); background: rgba(255,255,255,0.05); }
.header-nav .nav-cta {
  margin-left: auto;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 24px;
  letter-spacing: 0.08em;
}
.header-nav .nav-cta:hover { background: var(--gold-light); color: var(--navy); }

/* ─── HERO ───────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 44% 56%;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.hero-left {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 56px 72px 48px;
  position: relative;
  overflow: hidden;
}
.hero-left::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(42,74,138,0.6) 0%, transparent 60%),
    linear-gradient(225deg, rgba(26,48,96,0.8) 0%, transparent 50%);
  pointer-events: none;
}

.hero-poly {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}
.hero-poly svg { width: 100%; height: 100%; opacity: 0.18; }

.hero-left-content { position: relative; z-index: 2; }

.hero-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
}

.btn-primary {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  background: var(--gold);
  color: var(--navy);
  padding: 16px 32px;
  text-decoration: none;
  border-radius: 2px;
  display: block;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.35);
  display: block;
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-light); }

.hero-note {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 0.73rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-note span::before { content: '✓ '; color: var(--gold); }

.hero-right { position: relative; background: #c8c4bb; overflow: hidden; }
.hero-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #b0aaa0 0%, #8a8478 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-family: var(--sans);
}
.hero-photo-placeholder-icon { font-size: 3rem; opacity: 0.4; }
.hero-photo-placeholder-text { font-size: 0.8rem; letter-spacing: 0.15em; }
.hero-photo-placeholder-sub { font-size: 0.68rem; letter-spacing: 0.1em; opacity: 0.6; }

/* ─── SECTION COMMON ─────────────────────── */
section { padding: 100px 40px; }

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

.section-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.6;
}
.section-lead {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 2;
}
.divider {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 20px 0 48px;
}

/* ─── INTRO ──────────────────────────────── */
.intro { background: var(--white); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-image { position: relative; }
.intro-image-box {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  border-radius: 2px;
  overflow: hidden;
}
.intro-image-box img { width: 100%; height: 100%; object-fit: cover; }
.intro-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.8rem;
  color: rgba(255,255,255,0.3); letter-spacing: 0.2em;
  aspect-ratio: 4/3;
}
.intro-image-accent {
  position: absolute; bottom: -16px; right: -16px;
  width: 120px; height: 120px;
  border: 1px solid var(--gold); z-index: -1;
}

/* ─── REASONS ────────────────────────────── */
.reasons { background: var(--cream); }
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.reason-card {
  background: var(--white);
  padding: 40px 32px;
  position: relative;
  transition: transform 0.2s;
}
.reason-card:hover { transform: translateY(-4px); }
.reason-num {
  font-family: var(--sans);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(15,31,61,0.07);
  line-height: 1;
  margin-bottom: 16px;
}
.reason-card h3 {
  font-size: 1.05rem; font-weight: 500;
  color: var(--navy); margin-bottom: 12px;
  letter-spacing: 0.04em; line-height: 1.6;
}
.reason-card p { font-size: 0.85rem; color: var(--text-mid); line-height: 2; }
.reason-line {
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--navy); opacity: 0;
  transition: opacity 0.2s;
}
.reason-card:hover .reason-line { opacity: 1; }

/* ─── SERVICES ───────────────────────────── */
.services { background: var(--navy); color: var(--white); }
.services .section-title { color: var(--white); }
.services .section-lead { color: rgba(255,255,255,0.6); }
.services-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.service-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 36px 40px;
  display: flex; gap: 24px; align-items: flex-start;
  transition: background 0.2s;
}
.service-item:hover { background: rgba(184,150,74,0.08); }
.service-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.65rem;
  font-weight: 700; color: var(--gold); letter-spacing: 0.05em;
}
.service-item h3 { font-size: 1.0rem; font-weight: 500; margin-bottom: 8px; letter-spacing: 0.05em; }
.service-item p { font-family: var(--sans); font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.9; }

/* ─── PROFILE ────────────────────────────── */
.profile { background: var(--white); }
.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px; align-items: start; margin-top: 48px;
}
.profile-photo {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 2px; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-mid), var(--navy));
  position: relative;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.8rem;
  color: rgba(255,255,255,0.3); letter-spacing: 0.2em;
  aspect-ratio: 3/4;
}
.profile-photo-accent {
  position: absolute; top: -10px; right: -10px; bottom: 10px; left: 10px;
  border: 1px solid rgba(184,150,74,0.4); border-radius: 2px; pointer-events: none;
}
.profile-name { font-size: 1.8rem; font-weight: 400; letter-spacing: 0.1em; color: var(--navy); margin-bottom: 4px; }
.profile-role { font-family: var(--sans); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.15em; margin-bottom: 24px; }
.profile-bio { font-size: 0.92rem; color: var(--text-mid); line-height: 2.2; margin-bottom: 32px; }
.profile-career { border-top: 1px solid var(--gray-mid); padding-top: 24px; }
.profile-career h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 16px; text-transform: uppercase; }
.career-item { display: flex; gap: 24px; margin-bottom: 10px; font-size: 0.85rem; }
.career-year { font-family: var(--sans); font-weight: 500; color: var(--navy-mid); white-space: nowrap; min-width: 60px; }

/* ─── FAQ ────────────────────────────────── */
.faq { background: var(--gray-light); }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: var(--white); }
.faq-q {
  width: 100%; text-align: left;
  padding: 24px 32px;
  display: flex; align-items: center; gap: 20px;
  cursor: pointer; background: none; border: none;
  font-family: var(--serif); font-size: 0.95rem;
  color: var(--navy); letter-spacing: 0.03em;
  transition: background 0.15s;
}
.faq-q:hover { background: rgba(15,31,61,0.02); }
.faq-q-mark { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; color: var(--gold); flex-shrink: 0; width: 24px; }
.faq-q-text { flex: 1; text-align: left; }
.faq-toggle {
  width: 20px; height: 20px;
  border: 1px solid var(--gray-mid); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.9rem; color: var(--navy-mid);
  flex-shrink: 0; transition: transform 0.2s, background 0.2s;
}
.faq-item.open .faq-toggle { background: var(--navy); color: var(--white); border-color: var(--navy); transform: rotate(45deg); }
.faq-a { display: none; padding: 0 32px 24px 76px; font-size: 0.88rem; color: var(--text-mid); line-height: 2.1; }
.faq-item.open .faq-a { display: block; }

/* ─── ACCESS ─────────────────────────────── */
.access { background: var(--white); }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 48px; align-items: start; }
.access-map { width: 100%; aspect-ratio: 4/3; border-radius: 2px; overflow: hidden; }
.access-map iframe { width: 100%; height: 100%; border: none; }
.access-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.access-table tr { border-bottom: 1px solid var(--gray-light); }
.access-table th { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; color: var(--gold); letter-spacing: 0.12em; padding: 14px 0; white-space: nowrap; vertical-align: top; width: 100px; }
.access-table td { padding: 14px 0; color: var(--text-mid); line-height: 1.8; }

/* ─── CTA BANNER ─────────────────────────── */
.cta-banner {
  background: var(--navy-mid);
  padding: 80px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,150,74,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,150,74,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.cta-banner-inner { position: relative; z-index: 2; }
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 400; color: var(--white); letter-spacing: 0.08em; margin-bottom: 12px; }
.cta-banner p { font-family: var(--sans); font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 36px; letter-spacing: 0.05em; }
.cta-banner .btn-primary { display: inline-block; font-size: 1rem; padding: 18px 56px; }

/* ─── FOOTER ─────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.5); padding: 48px 40px 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 24px; }
.footer-logo { color: var(--white); font-family: var(--serif); font-size: 1rem; letter-spacing: 0.12em; text-decoration: none; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--sans); font-size: 0.78rem; color: rgba(255,255,255,0.45); text-decoration: none; letter-spacing: 0.06em; transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-copy { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.08em; text-align: center; }

/* ─── FLOATING CTA ───────────────────────── */
.floating-cta { position: fixed; bottom: 28px; right: 28px; z-index: 50; }
.floating-cta a {
  display: flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--navy);
  font-family: var(--sans); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.08em; padding: 14px 24px;
  border-radius: 2px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.2s;
}
.floating-cta a:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ─── CONTACT FORM ───────────────────────── */
.contact-section { background: var(--white); }
.wpcf7 { max-width: 680px; }
.wpcf7 .form-group { margin-bottom: 24px; }
.wpcf7 label { font-family: var(--sans); font-size: 0.82rem; font-weight: 500; color: var(--navy); display: block; margin-bottom: 6px; letter-spacing: 0.06em; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--gray-mid); border-radius: 2px;
  font-family: var(--serif); font-size: 0.92rem; color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--navy); }
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input[type="submit"] {
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.1em; background: var(--gold); color: var(--navy);
  padding: 16px 48px; border: none; border-radius: 2px;
  cursor: pointer; transition: background 0.2s;
}
.wpcf7 input[type="submit"]:hover { background: var(--gold-light); }

/* ─── PRIVACY PAGE ───────────────────────── */
.privacy-content { max-width: 760px; line-height: 2.2; }
.privacy-content h2 { font-size: 1.1rem; font-weight: 500; color: var(--navy); margin: 40px 0 12px; letter-spacing: 0.05em; border-left: 3px solid var(--gold); padding-left: 16px; }
.privacy-content p { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 16px; }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  .header-top { padding: 12px 20px; }
  .header-tel-number { font-size: 1.15rem; }
  .header-tel-badges { display: none; }
  .header-nav { padding: 0 20px; }
  .header-nav a { padding: 8px 12px; font-size: 0.7rem; }
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-left { padding: 100px 24px 48px; min-height: 60vh; }
  .hero-right { min-height: 50vw; }
  section { padding: 72px 20px; }
  .intro-grid, .access-grid, .profile-grid { grid-template-columns: 1fr; gap: 40px; }
  .reasons-grid, .services-list { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 24px; }
  .cta-banner { padding: 60px 20px; }
}
