/* ============================================================
   CARD HACK® — Subpage Shared Styles
   共通: ヘッダー / フッター / ページヒーロー / テーブル / ボタン
   ============================================================ */

:root {
  --gold-light:  #e8c96d;
  --gold-main:   #c9a84c;
  --gold-dark:   #8b6914;
  --gold-accent: #b8902a;
  --bg-dark:     #1a1008;
  --bg-cream:    #f9f5ee;
  --bg-white:    #ffffff;
  --text-main:   #1a1008;
  --text-mid:    #4a3f2f;
  --text-muted:  #7a6a55;
  --text-faint:  #b0a090;
  --border-gold: rgba(184,144,42,0.3);
  --border-light:rgba(0,0,0,0.08);
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  all 0.25s ease;
  --shadow-gold: 0 8px 40px rgba(139,105,20,0.18);
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  padding-top: 80px;
}

/* ── HEADER ── */
.sub-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center;
  padding: 0 3rem;
}
.sub-header-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.sub-header-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-main);
  text-decoration: none;
}
.sub-header-logo sup { font-size: 0.52em; color: var(--gold-accent); }
.sub-header-nav {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.sub-header-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.sub-header-nav a:hover { color: var(--gold-accent); }
.sub-header-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-main));
  color: #fff !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.08em;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(139,105,20,0.25);
}
.sub-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139,105,20,0.38);
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--bg-dark);
  padding: 7rem 3rem 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: attr(data-label);
  position: absolute;
  right: -1rem; bottom: -1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 10rem;
  font-weight: 600;
  color: rgba(201,168,76,0.045);
  letter-spacing: 0.06em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}
.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.page-hero-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  color: var(--gold-main);
  display: flex; align-items: center; gap: 1rem;
}
.page-hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--gold-main);
}
.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
}
.page-hero-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.1em;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.8;
}
.page-hero-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold-main), transparent);
  margin-top: 0.5rem;
}

/* ── MAIN WRAPPER ── */
.subpage-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
}
.subpage-wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
}

/* ── SECTION LABEL ── */
.section-label-gold {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  color: var(--gold-main);
  margin-bottom: 1.5rem;
}
.section-label-gold::before,
.section-label-gold::after {
  content: '';
  display: inline-block;
  width: 30px; height: 1px;
  background: var(--border-gold);
}
.section-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 3rem;
  letter-spacing: 0.06em;
}

/* ── TABLE (company / legal) ── */
.sp-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4rem;
  font-size: 0.9rem;
}
.sp-table th,
.sp-table td {
  border: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  line-height: 2;
  vertical-align: top;
}
.sp-table th {
  background: var(--bg-cream);
  color: var(--text-main);
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  width: 26%;
  white-space: nowrap;
  border-left: 3px solid var(--gold-main);
  letter-spacing: 0.04em;
}
.sp-table td { color: var(--text-mid); background: #fff; }
.sp-table tr:hover th,
.sp-table tr:hover td { background-color: rgba(184,144,42,0.025); }

/* member rows */
.member-label {
  font-size: 0.65rem; letter-spacing: 0.2em;
  color: var(--gold-main); font-weight: 700;
  margin: 1.1rem 0 0.5rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.member-label:first-child { margin-top: 0; }
.member-label::before {
  content: '';
  display: inline-block; width: 14px; height: 1px;
  background: var(--gold-main);
}
.member-row {
  display: flex; align-items: baseline; gap: 1.5rem;
  margin-bottom: 0.3rem;
}
.member-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem; color: var(--text-main);
  font-weight: 600; white-space: nowrap; min-width: 7em;
}
.member-role { font-size: 0.81rem; color: var(--text-faint); line-height: 1.6; }

/* biz / partner lists */
.biz-list { list-style: none; padding: 0; margin: 0; }
.biz-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-bottom: 0.5rem; font-size: 0.9rem;
  color: var(--text-mid); line-height: 1.8;
}
.biz-list li::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; background: var(--gold-main);
  border-radius: 50%; margin-top: 0.6em; flex-shrink: 0;
}
.partner-list { list-style: none; padding: 0; margin: 0; }
.partner-list li {
  font-size: 0.9rem; color: var(--text-mid);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-light); line-height: 1.8;
}
.partner-list li:last-child { border-bottom: none; }

/* ── LEGAL / PRIVACY ── */
.sp-intro {
  background: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--gold-main);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 3.5rem;
}
.sp-intro-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem; color: var(--text-main);
  font-weight: 600; margin-bottom: 0.2rem;
}
.sp-intro-rep {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem;
}
.sp-intro p { font-size: 0.9rem; color: var(--text-mid); line-height: 2; }

.sp-section { margin-bottom: 3rem; }
.sp-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem; color: var(--text-main);
  font-weight: 600;
  padding: 0.6rem 0 0.6rem 1rem;
  border-left: 3px solid var(--gold-main);
  margin-bottom: 1.25rem; letter-spacing: 0.04em;
}
.sp-section p,
.sp-section li {
  font-size: 0.9rem; color: var(--text-mid); line-height: 2;
}
.sp-section ol,
.sp-section ul { padding-left: 1.5rem; margin-top: 0.75rem; }
.sp-section li { margin-bottom: 0.5rem; }
.sp-section .sub-list { list-style: none; padding-left: 1rem; margin-top: 0.5rem; }
.sp-section .sub-list li::before {
  content: '▶ '; color: var(--gold-main);
  font-size: 0.65rem; vertical-align: middle;
}
.sp-divider { border: none; border-top: 1px solid var(--border-light); margin: 2.5rem 0; }

/* legal note / formula */
.sp-note {
  background: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--gold-main);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.9;
}
.sp-special h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem; color: var(--text-main); font-weight: 600;
  margin: 1.2rem 0 0.6rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--gold-main);
}
.sp-special p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.9; margin-bottom: 0.5rem; }
.formula-box {
  background: rgba(184,144,42,0.06);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius);
  padding: 1rem 1.5rem; margin-top: 0.75rem;
  font-size: 0.85rem; color: var(--text-mid); line-height: 1.9;
}

/* ── ACCESS BLOCK ── */
.access-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0,0,0,0.12);
}
.access-info {
  background: var(--bg-dark);
  padding: 3.5rem 3rem;
  display: flex; flex-direction: column; justify-content: center;
}
.access-label {
  font-size: 0.62rem; letter-spacing: 0.35em;
  color: var(--gold-main); margin-bottom: 1.5rem;
}
.access-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.45rem; color: #fff;
  font-weight: 600; line-height: 1.7;
  margin-bottom: 2rem; letter-spacing: 0.06em;
}
.access-address {
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
  line-height: 2.2; margin-bottom: 2rem;
}
.access-address strong {
  display: block; color: var(--gold-light);
  font-size: 0.7rem; letter-spacing: 0.2em; margin-bottom: 0.3rem;
}
.station-list { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.station-list li {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.station-list li:last-child { border-bottom: none; }
.station-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 0.15rem;
}
.station-icon i { color: var(--gold-main); font-size: 0.75rem; }
.station-detail { flex: 1; }
.station-name {
  font-size: 0.82rem; color: rgba(255,255,255,0.88);
  letter-spacing: 0.05em; line-height: 1.5; margin-bottom: 0.2rem;
}
.station-walk {
  font-size: 0.95rem; color: var(--gold-light);
  font-weight: 600; letter-spacing: 0.03em;
}
.station-walk span {
  font-size: 0.78rem; font-weight: 400;
  color: rgba(255,255,255,0.82); margin-left: 0.4rem;
}
.map-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  color: var(--gold-light);
  font-size: 0.82rem; letter-spacing: 0.1em;
  text-decoration: none; transition: var(--transition);
}
.map-btn:hover { background: rgba(201,168,76,0.1); border-color: var(--gold-main); }
.access-map-side { position: relative; min-height: 480px; }
.access-map-side iframe {
  width: 100%; height: 100%; border: none;
  display: block; min-height: 480px;
}

/* ── OFFICE PHOTO (bottom) ── */
.office-photo-section {
  position: relative; height: 520px; overflow: hidden;
}
.office-photo-section img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  filter: brightness(0.82) saturate(0.88);
  transition: transform 12s ease; display: block;
}
.office-photo-section:hover img { transform: scale(1.03); }
.office-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,16,8,0.7) 0%, rgba(26,16,8,0.1) 50%, transparent 100%);
  pointer-events: none;
}
.office-photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 3rem 4rem;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.office-photo-caption-left { display: flex; flex-direction: column; gap: 0.5rem; }
.office-photo-tag { font-size: 0.6rem; letter-spacing: 0.35em; color: var(--gold-main); }
.office-photo-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem; color: #fff;
  letter-spacing: 0.1em; font-weight: 600;
}
.office-photo-address {
  font-size: 0.75rem; color: rgba(255,255,255,0.82);
  letter-spacing: 0.08em; line-height: 1.8;
}
.office-photo-caption-right {
  font-size: 0.62rem; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.7);
  writing-mode: vertical-rl; text-orientation: mixed;
}

/* ── BACK BUTTON ── */
.sp-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-main));
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.06em; border-radius: var(--radius);
  text-decoration: none; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(139,105,20,0.3);
}
.sp-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,105,20,0.45);
}

/* ── FOOTER ── */
.sub-footer {
  background: var(--bg-dark);
  padding: 4rem 3rem 2.5rem;
}
.sub-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  align-items: start; gap: 3rem;
}
.sub-footer-brand {}
.sub-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; color: var(--gold-light);
  letter-spacing: 0.12em; text-decoration: none;
  display: inline-block; margin-bottom: 0.75rem;
}
.sub-footer-logo sup { font-size: 0.52em; }
.sub-footer-tagline {
  font-size: 0.78rem; color: rgba(255,255,255,0.75);
  letter-spacing: 0.12em; line-height: 1;
}
.sub-footer-links {
  display: flex; flex-direction: column; gap: 0.75rem;
  align-items: flex-end;
}
.sub-footer-links a {
  font-size: 0.75rem; color: rgba(255,255,255,0.78);
  text-decoration: none; letter-spacing: 0.08em;
  transition: var(--transition);
}
.sub-footer-links a:hover { color: var(--gold-light); }
.sub-footer-copy {
  max-width: 1200px; margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.7rem; color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
}

/* ── TERMS PAGE — NDA divider ── */
.sp-nda-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem;
  margin: 4rem 0 2.5rem;
  position: relative;
}
.sp-nda-divider::before,
.sp-nda-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
}
.sp-nda-divider span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--gold-main);
  white-space: nowrap;
  padding: 0.45rem 1.5rem;
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  background: #fffdf7;
}

.sp-nda-intro {
  border-left-color: var(--gold-dark);
  background: #fffdf7;
  margin-bottom: 2.5rem;
}

/* ── inline link ── */
.sp-inline-link {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}
.sp-inline-link:hover { color: var(--gold-main); }

/* ── ordered list ── */
.sub-list-ol {
  list-style: decimal;
  padding-left: 1.75rem;
}
.sub-list-ol li { margin-bottom: 0.75rem; }

/* ── nested list ── */
.sub-list-nested {
  list-style: none;
  margin-top: 0.5rem;
  padding-left: 1rem;
}
.sub-list-nested li::before {
  content: '▶ ';
  color: var(--gold-main);
  font-size: 0.65rem;
  vertical-align: middle;
}

/* ── contact block in legal pages ── */
.sp-contact-block {
  background: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 2;
}
.sp-contact-block strong { color: var(--text-main); }

/* ── active footer link ── */
.sub-footer-links a.active { color: var(--gold-light); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sub-header { padding: 0 1.5rem; }
  .sub-header-nav { display: none; }
  .page-hero { padding: 5.5rem 1.5rem 4rem; }
  .page-hero::before { font-size: 5rem; }
  .subpage-wrap,
  .subpage-wrap-narrow { padding: 4rem 1.25rem 4rem; }
  .access-block { grid-template-columns: 1fr; }
  .access-map-side { min-height: 300px; }
  .access-map-side iframe { min-height: 300px; }
  .access-info { padding: 2.5rem 1.75rem; }
  .sp-table th { width: auto; white-space: normal; }
  .sp-table th,
  .sp-table td { display: block; width: 100%; }
  .sp-table th { border-bottom: none; }
  .member-row { flex-direction: column; gap: 0.1rem; }
  .office-photo-section { height: 320px; }
  .office-photo-caption { padding: 1.5rem 1.75rem; flex-direction: column; gap: 0.5rem; }
  .office-photo-caption-right { display: none; }
  .sub-footer-inner { grid-template-columns: 1fr; }
  .sub-footer-links { align-items: flex-start; }
}
