/* =====================================================
   offices.php + office.php — shared page styles
   Depends on home.css for :root variables and base classes
   ===================================================== */

/* ── Page hero ─────────────────────────────────────── */
.offices-hero {
    background: var(--blue);
    color: #fff;
    padding: var(--s6) 0 var(--s5);
    border-bottom: 3px solid var(--gold);
}
.offices-hero .section-label {
    color: rgba(200, 150, 12, 0.85);
    margin-bottom: var(--s2);
}
.offices-hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 var(--s2);
    line-height: 1.15;
}
.offices-hero p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}
.offices-breadcrumb-nav {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--s3);
}
.offices-breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}
.offices-breadcrumb-nav a:hover { color: #fff; }
.offices-breadcrumb-nav span { color: rgba(255, 255, 255, 0.9); font-weight: 600; }

/* ── Main content wrapper ───────────────────────────── */
.offices-main {
    padding: var(--s5) 0 var(--s7);
}

/* ── Region tabs ────────────────────────────────────── */
.area-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
    margin-bottom: var(--s4);
    padding: var(--s3) var(--s3);
    background: var(--bg);
    border-radius: 4px;
    border: 1px solid var(--border);
}
.area-tab-button {
    padding: 0.45rem 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    letter-spacing: .02em;
}
.area-tab-button:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(25, 47, 96, 0.04);
}
.area-tab-button.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

/* ── Prefecture filter ──────────────────────────────── */
.pref-filter {
    padding: var(--s3);
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
    margin-bottom: var(--s4);
}
.pref-filter-header {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: var(--s2);
}
.pref-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}
.pref-link-button {
    padding: 0.3rem 0.8rem;
    background: rgba(25, 47, 96, 0.04);
    border: 1px solid rgba(25, 47, 96, 0.14);
    border-radius: 20px;
    color: var(--blue);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.pref-link-button:hover {
    background: rgba(25, 47, 96, 0.1);
    border-color: var(--blue);
}
.pref-link-button.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    font-weight: 700;
}

/* ── Results counter ────────────────────────────────── */
.office-counter {
    display: flex;
    align-items: baseline;
    gap: var(--s2);
    margin-bottom: var(--s4);
    padding-bottom: var(--s3);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.office-counter-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}
.office-counter-label {
    font-size: 0.9375rem;
    color: var(--ink);
}
#pagination-info {
    font-size: 0.8125rem;
    color: rgba(30, 41, 59, 0.5);
    margin-left: auto;
}

/* ── Pagination ─────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--s1);
    margin: var(--s5) 0;
    flex-wrap: wrap;
}
.pagination button {
    padding: 0.4rem 0.85rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.pagination button:hover:not(:disabled) {
    background: rgba(25, 47, 96, 0.06);
    border-color: var(--blue);
    color: var(--blue);
}
.pagination button.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── Offices CTA section ────────────────────────────── */
.offices-cta-section {
    background: var(--blue);
    color: #fff;
    padding: var(--s6) var(--s5);
    margin-top: var(--s6);
    border-radius: 4px;
}
.offices-cta-section .section-label {
    color: rgba(200, 150, 12, 0.85);
    margin-bottom: var(--s2);
}
.offices-cta-section h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 var(--s3);
    line-height: 1.2;
}
.offices-cta-section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 0 var(--s4);
}
.offices-cta-buttons {
    display: flex;
    gap: var(--s3);
    flex-wrap: wrap;
}
.offices-cta-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
.offices-cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* ── Office detail page — content wrapper ───────────── */
.office-content-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--s5) 0 var(--s7);
}
.office-pref-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(25, 47, 96, 0.5);
    margin-bottom: var(--s2);
}
.office-breadcrumb {
    font-size: 0.8125rem;
    color: rgba(30, 41, 59, 0.45);
    margin-bottom: var(--s4);
}
.office-breadcrumb a {
    color: rgba(25, 47, 96, 0.6);
    text-decoration: none;
}
.office-breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.office-breadcrumb span { color: var(--ink); }

.office-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--blue);
    line-height: 1.15;
    margin: 0 0 var(--s5);
}

/* ── Office sections ────────────────────────────────── */
.office-section {
    margin-bottom: var(--s5);
    padding-bottom: var(--s5);
    border-bottom: 1px solid var(--border);
}
.office-section:last-of-type { border-bottom: none; }

.office-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(25, 47, 96, 0.5);
    margin: 0 0 var(--s3);
}
.office-section-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 var(--s2);
}

/* ── Definition list ────────────────────────────────── */
.office-dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.office-dl-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--s3);
    padding: var(--s2) 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.office-dl-item:last-child { border-bottom: none; }
.office-dl-item.wide-label { grid-template-columns: 200px 1fr; }
.office-dl-term {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(30, 41, 59, 0.55);
}
.office-dl-desc {
    font-size: 0.9375rem;
    color: var(--ink);
    line-height: 1.65;
}
.office-dl-desc a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Tags ───────────────────────────────────────────── */
.office-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s1);
}
.office-tag {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background: rgba(25, 47, 96, 0.06);
    color: var(--blue);
    border: 1px solid rgba(25, 47, 96, 0.16);
}
.office-tag.business {
    background: rgba(200, 150, 12, 0.08);
    color: #7a5800;
    border-color: rgba(200, 150, 12, 0.28);
}
.office-tag.tech {
    background: rgba(30, 41, 59, 0.05);
    color: var(--ink);
    border-color: var(--border);
}
.office-tag.country {
    background: rgba(25, 47, 96, 0.04);
    color: var(--blue);
    border-color: rgba(25, 47, 96, 0.14);
    font-variant-numeric: tabular-nums;
}

/* ── Map ────────────────────────────────────────────── */
.office-map-container {
    margin-top: var(--s4);
}
.office-map-wrapper iframe {
    width: 100%;
    height: 300px;
    border: 1px solid var(--border);
    border-radius: 4px;
}
.office-map-link {
    margin-top: var(--s1);
    font-size: 0.8125rem;
}
.office-map-link a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Fee section ────────────────────────────────────── */
.office-price-section {
    margin-bottom: var(--s5);
    padding-bottom: var(--s5);
    border-bottom: 1px solid var(--border);
}
.office-price-highlight {
    background: rgba(25, 47, 96, 0.03);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
    padding: var(--s3);
    margin-bottom: var(--s3);
}
.office-price-highlight h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(25, 47, 96, 0.5);
    margin: 0 0 var(--s1);
}
.office-price-highlight p {
    font-size: 0.9375rem;
    color: var(--ink);
    margin: 0;
    line-height: 1.65;
}

/* ── Info correction notice ─────────────────────────── */
.info-correction-notice {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: var(--s3);
    margin-bottom: var(--s5);
    font-size: 0.8125rem;
    color: rgba(30, 41, 59, 0.6);
    line-height: 1.65;
}
.info-correction-notice a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Office CTA section ─────────────────────────────── */
.office-cta-section {
    background: var(--blue);
    color: #fff;
    padding: var(--s5);
    border-radius: 4px;
    margin-bottom: var(--s5);
}
.office-cta-section .section-label {
    color: rgba(200, 150, 12, 0.85);
    margin-bottom: var(--s2);
}
.office-cta-section h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 var(--s3);
    line-height: 1.2;
}
.office-cta-section p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
    margin: 0 0 var(--s4);
}
.office-cta-buttons {
    display: flex;
    gap: var(--s2);
    flex-wrap: wrap;
}
.office-cta-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
.office-cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* ── Other offices section ──────────────────────────── */
.office-other-section {
    padding-top: var(--s4);
    border-top: 1px solid var(--border);
}
.office-other-section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 var(--s3);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .offices-hero h1   { font-size: 1.75rem; }
    .offices-hero p    { font-size: 0.9375rem; }
    .area-tab-button   { padding: 0.4rem 0.85rem; font-size: 0.8125rem; }
    .office-dl-item    { grid-template-columns: 1fr; gap: var(--s1); }
    .office-dl-item.wide-label { grid-template-columns: 1fr; }
    .office-dl-term    { color: rgba(30, 41, 59, 0.4); font-size: 0.75rem; }
    .office-content-wrapper { padding: var(--s4) 0; }
    .offices-cta-buttons { flex-direction: column; }
    .office-cta-buttons  { flex-direction: column; }
    .offices-cta-section { padding: var(--s4) var(--s3); }
    .office-cta-section  { padding: var(--s4) var(--s3); }
    #pagination-info { margin-left: 0; width: 100%; }
}

/* ── 事務所英語名（非公式参考表記）2026-07-16 ─────────────── */
.office-title-en {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  color: #64748b;
  font-style: italic;
}
.office-title-en-note {
  font-size: 0.78rem;
  font-style: normal;
  color: #94a3b8;
}

/* H1(英語名)直下の日本語正式名 */
.office-title-jp {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  color: #64748b;
}

.office-title-jp-note {
  font-size: 0.78rem;
  color: #94a3b8;
}
/* ── 英語住所の日本語併記（郵送・地図検索用）2026-07-17 ── */
.office-addr-jp {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: #94a3b8;
}
