/* ===========================
   行政書士日本橋中央パートナーズ
   共通スタイル
=========================== */

:root {
  --navy:       #1a2744;
  --navy-dark:  #111c35;
  --navy-light: #243258;
  --navy-mid:   #1e2f50;
  --gold:       #c8a44a;
  --gold-light: #e2c27d;
  --gold-dark:  #a0802e;
  --white:      #ffffff;
  --cream:      #f8f6f1;
  --text:       #2a2a2a;
  --text-light: #666666;
  --border:     rgba(200,164,74,0.3);
  --serif: "游明朝", "YuMincho", "Noto Serif JP", "Times New Roman", serif;
  --sans:  "游ゴシック", "YuGothic", "Noto Sans JP", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== HEADER ===== */
.site-header {
  background: var(--navy-dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.header-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.header-text .label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}
.header-text .line1 {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.header-text .line2 {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  transition: color 0.2s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--gold-light); }
.site-nav a.nav-cta {
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 2px;
  transition: background 0.2s;
}
.site-nav a.nav-cta:hover { background: var(--gold-dark); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--gold-light); }

/* ===== HERO (top page) ===== */
.hero {
  background: var(--navy);
  text-align: center;
  padding: 80px 24px 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(200,164,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 24px;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.hero-catch {
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 34px);
  color: var(--white);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 14px 40px;
  border-radius: 2px;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }

/* ===== SECTIONS ===== */
.section { padding: 72px 24px; }
.section.bg-navy { background: var(--navy); }
.section.bg-navy-mid { background: var(--navy-mid); }
.section.bg-cream { background: var(--cream); }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.45;
}
.section.bg-navy .section-title,
.section.bg-navy-mid .section-title { color: var(--white); }
.section.bg-navy,
.section.bg-navy-mid { color: rgba(255,255,255,0.85); }
.section-lead {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.9;
  max-width: 680px;
  margin-bottom: 48px;
}
.section.bg-navy .section-lead,
.section.bg-navy-mid .section-lead { color: rgba(255,255,255,0.7); }
.gold-rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 32px;
}

/* ===== OFFICE CARDS (top page) ===== */
.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.office-card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  padding: 36px 32px;
  display: block;
  transition: border-color 0.2s, transform 0.15s;
  position: relative;
}
.office-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.office-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.office-card:hover::after { transform: scaleX(1); }
.office-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.office-name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.office-charge {
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.office-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.85;
  margin-bottom: 24px;
}
.office-link {
  font-size: 13px;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-item {
  background: var(--white);
  border: 1px solid #e8e4db;
  padding: 28px 24px;
}
.feature-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1;
}
.feature-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--navy);
}
.feature-desc { font-size: 13px; color: var(--text-light); line-height: 1.8; }

/* ===== VOICES ===== */
.voices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.voice-item {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 24px 24px 24px 28px;
}
.voice-quote {
  font-size: 13px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 12px;
}
.voice-meta { font-size: 11px; color: var(--text-light); }

/* ===== CHECKER BANNER ===== */
.checker-banner {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.checker-banner-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 8px;
}
.checker-banner-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 8px;
}
.checker-banner-desc { font-size: 13px; color: rgba(255,255,255,0.7); }
.btn-checker {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.btn-checker:hover { background: var(--gold-dark); }

/* ===== FACEBOOK ===== */
.fb-box {
  text-align: center;
}
.fb-box iframe { margin: 0 auto; max-width: 100%; }

/* ===== ACCESS ===== */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.access-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}
.access-info { }
.access-address {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 24px;
}
.access-dl { }
.access-dl dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 4px;
}
.access-dl dd { font-size: 13px; color: var(--text); line-height: 1.8; }

/* ===== CONTACT ===== */
.contact-form {
  background: var(--cream);
  padding: 40px;
  max-width: 620px;
  margin: 0 auto;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid #d8d3c8;
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--gold); }
.form-row textarea { min-height: 120px; resize: vertical; }
.req {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 14px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--navy-light); }
.form-note {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 12px;
  text-align: center;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  text-align: center;
}
.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  margin: 0 auto 14px;
}
.footer-name {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 4px;
}
.footer-name-sub {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.footer-nav a {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--cream);
  padding: 12px 24px;
  font-size: 12px;
  color: var(--text-light);
  max-width: 100%;
  border-bottom: 1px solid #e8e4db;
}
.breadcrumb a { color: var(--gold-dark); }
.breadcrumb span { margin: 0 6px; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--navy);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(200,164,74,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(20px, 3.5vw, 30px);
  color: var(--white);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== PROFILE ===== */
.profile-box {
  background: var(--white);
  border: 1px solid #e8e4db;
  padding: 40px;
  max-width: 760px;
}
.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  margin-bottom: 16px;
}
.profile-role {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.profile-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.profile-ruby {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}
.profile-num {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.profile-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 2px;
  margin: 0 4px 8px 0;
  letter-spacing: 0.03em;
}
.profile-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.95;
  margin-top: 20px;
  white-space: pre-wrap;
  border-top: 1px solid #e8e4db;
  padding-top: 20px;
}
.profile-message {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.9;
  margin-top: 20px;
  padding: 20px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  font-style: italic;
}

/* ===== SERVICE LIST ===== */
.service-list { display: flex; flex-direction: column; gap: 40px; }
.service-block { }
.service-block-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.service-block-en {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.service-block-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 16px;
}
.service-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tag {
  background: var(--cream);
  border: 1px solid #e8e4db;
  font-size: 12px;
  color: var(--text);
  padding: 5px 12px;
  border-radius: 2px;
}

/* ===== SERVICE DETAIL (tabs) ===== */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  font-family: var(--sans);
  transition: color 0.2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
  font-weight: 700;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== FEE BOX ===== */
.fee-box {
  background: var(--cream);
  border: 1px solid #e8e4db;
  padding: 36px 40px;
}
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.fee-table th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.fee-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e8e4db;
  color: var(--text);
  line-height: 1.7;
}
.fee-table tr:nth-child(even) td { background: #f0ede6; }
.fee-note {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.8;
}

/* ===== CHECKER PAGE ===== */
.checker-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.checker-step {
  background: var(--white);
  border: 1px solid #e8e4db;
  padding: 36px 40px;
}
.checker-q {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.6;
}
.checker-qnum {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.checker-btns {
  display: flex;
  gap: 12px;
}
.checker-btn {
  flex: 1;
  padding: 13px;
  border: 2px solid var(--navy);
  background: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--navy);
  transition: all 0.2s;
  border-radius: 2px;
}
.checker-btn:hover,
.checker-btn.yes { background: var(--navy); color: var(--white); }
.checker-btn.no { background: var(--cream); border-color: #ccc; color: var(--text); }
.checker-result {
  padding: 32px;
  text-align: center;
}
.result-ok { color: #1a7a4a; }
.result-ng { color: #b83232; }
.result-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
.result-text { font-size: 14px; line-height: 1.85; color: var(--text); }
.progress-bar {
  height: 3px;
  background: #e8e4db;
  border-radius: 2px;
  margin-bottom: 28px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  transition: width 0.3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .header-text .line1 { font-size: 11px; }
  .header-text .line2 { font-size: 9px; }

  .hero { padding: 56px 20px 48px; }

  .offices-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; gap: 32px; }

  .office-card { padding: 28px 24px; }
  .profile-box { padding: 28px 20px; }
  .contact-form { padding: 28px 20px; }
  .fee-box { padding: 28px 20px; }
  .checker-step { padding: 28px 20px; }

  .page-hero { padding: 48px 20px 40px; }
  .tab-btn { font-size: 12px; padding: 8px 12px; }

  .checker-banner { padding: 28px 24px; }

  .service-detail-grid { grid-template-columns: 1fr; }
}
