/* ===================================================
   東京都電気工事士免状交付申請 - リニューアルサイト
   Modern Redesign Stylesheet
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0f2942;
  --navy-light: #1a3a5c;
  --navy-lighter: #264a6e;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #dbeafe;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-pale: #fef3c7;
  --green: #059669;
  --green-pale: #d1fae5;
  --red: #dc2626;
  --red-pale: #fee2e2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* --- Skip Navigation (アクセシビリティ：第4-8-6) --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  z-index: 200;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom-right-radius: var(--radius);
}
.skip-nav:focus {
  top: 0;
  color: var(--white);
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* --- Focus Styles (アクセシビリティ：第10-2) --- */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

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

/* --- Header --- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #333;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
    background-color: #fff;
    padding: 5px 20px 7px;
    border-radius: 10px;
    line-height: 1em;
}

.site-logo:hover {
  color: var(--amber-light);
  text-decoration: none;
}

.logo-icon {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 1.2rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  text-decoration: none;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background: var(--amber);
  border-radius: 3px 3px 0 0;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-lighter) 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero .breadcrumb {
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.85);
}

.hero .breadcrumb a {
  color: rgba(255,255,255,0.85);
}
.hero .breadcrumb a:hover {
  color: var(--white);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.hero .subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--amber-light);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* --- Main Content --- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-100);
}

.card-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.card-header-icon.blue {
  background: var(--blue-pale);
  color: var(--blue);
}
.card-header-icon.amber {
  background: var(--amber-pale);
  color: var(--amber);
}
.card-header-icon.green {
  background: var(--green-pale);
  color: var(--green);
}
.card-header-icon.red {
  background: var(--red-pale);
  color: var(--red);
}

.card-header h2,
.card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
}

/* --- Notice / Alert Boxes --- */
.notice {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  border-left: 4px solid;
}

.notice.info {
  background: var(--blue-pale);
  border-color: var(--blue);
  color: var(--navy);
}

.notice.warning {
  background: var(--amber-pale);
  border-color: var(--amber);
  color: var(--gray-800);
}

.notice.success {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--gray-800);
}

.notice.danger {
  background: var(--red-pale);
  border-color: var(--red);
  color: var(--gray-800);
}

.notice strong {
  font-weight: 700;
}

/* --- Section Title --- */
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 1.5em;
  background: linear-gradient(to bottom, var(--blue), var(--amber));
  border-radius: 4px;
  flex-shrink: 0;
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 0.85rem 1rem;
  text-align: left;
  white-space: nowrap;
    border-right: solid 1px var(--gray-500);
}

table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
  line-height: 1.7;
    
    border-right: solid 1px var(--gray-200);
}
table th:last-child,
table td:last-child {
    border-right: none;
}

table tr:last-child td {
  border-bottom: none;
}

table tr:nth-child(even) td {
  background: var(--gray-50);
}

/* --- FAQ Accordion --- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-800);
  transition: background var(--transition);
  user-select: none;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-question .q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.faq-question .arrow {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform var(--transition);
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0.5rem 1.5rem 1.5rem 4rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--gray-600);
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer .a-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-light);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-amber {
  background: var(--amber);
  color: var(--white);
}
.btn-amber:hover {
  background: var(--amber-light);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

/* --- Link Cards (Navigation) --- */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.nav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray-800);
  transition: all var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--blue);
}

.nav-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.nav-card .arrow-r {
  margin-left: auto;
  color: var(--gray-400);
  transition: transform var(--transition);
}

.nav-card:hover .arrow-r {
  transform: translateX(3px);
  color: var(--blue);
}

/* --- Office Cards (窓口一覧) --- */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1rem;
}

.office-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}

.office-card:hover {
  box-shadow: var(--shadow-md);
}

.office-card.main-office {
  border: 2px solid var(--blue);
  grid-column: 1 / -1;
}

.office-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.office-card .office-badge {
  font-size: 0.7rem;
  background: var(--blue);
  color: var(--white);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-weight: 600;
}

.office-card .office-info {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.office-card .office-info p {
  margin-bottom: 0.3rem;
}

.office-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.service-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-weight: 600;
}

.service-tag.new {
  background: var(--green-pale);
  color: var(--green);
}
.service-tag.renew {
  background: var(--blue-pale);
  color: var(--blue);
}
.service-tag.rewrite {
  background: var(--amber-pale);
  color: #92400e;
}
.service-tag.disabled {
  background: var(--gray-100);
  color: var(--gray-600);
  text-decoration: line-through;
}

/* --- Contact Form --- */
.contact-section {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 1.5rem;
  margin-top: 3rem;
}

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

.contact-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
}

.contact-section .contact-lead {
  text-align: center;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.contact-section .phone-info {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
}

.contact-section .phone-info span {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group label .required {
  font-size: 0.7rem;
  background: var(--red);
  color: var(--white);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.3);
  outline: none;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.form-group select option {
  color: var(--gray-800);
  background: var(--white);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin-top: 1rem;
  line-height: 1.6;
}

.btn-submit {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 1.5rem auto 0;
  padding: 0.9rem 2rem;
  background: var(--amber);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: var(--amber-light);
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
  transform: translateY(-1px);
}
p.thanks {
    margin: 50px 0;
    font-size: 1.2rem;
}

/* --- Steps (手順) --- */
.steps {
  counter-reset: step;
  position: relative;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.step-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.step-num {
  counter-increment: step;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  padding-top: 0.4rem;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* プライバシーポリシー  */
.privacy ol,
.privacy ul {
    margin-left: 1em;
}
.privacy h4 {
    margin: 1em 0;
}
.privacy_table {
    margin: 20px 0;
}
.privacy_table th {
    white-space: normal;
    width: 50%;
    border-bottom: solid 1px #999;
}
.privacy_table td ul {
    
}
.privacy_table.col3 th {
    width: 37.5%;
}
.privacy_table.col3 th:first-child {
  
    width: 25%;

}
.privacy a {
    overflow-wrap: break-word;
  word-break: break-word; /* Safari対策 */
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iOSでスムーズスクロール */
}

.table-wrap table {
  min-width: 600px; /* テーブルが縮みすぎないように最小幅を指定 */
}

/* --- PDF / Download Links --- */
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--red-pale);
  border-radius: var(--radius);
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
  margin: 0.25rem 0;
}

.download-link:hover {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
}

.download-link .icon-pdf {
  font-weight: 800;
  font-size: 0.7rem;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.external-link::after {
  content: '↗';
  font-size: 0.75rem;
  opacity: 0.6;
}

/* --- Footer --- */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem 1.5rem;
  font-size: 0.82rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-info h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-info p {
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}

.tab-btn:hover {
  color: var(--gray-800);
}

.tab-btn.active {
  color: var(--blue);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- Two-column info --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.info-box {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.info-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.info-box p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* --- Utility --- */
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.78rem; }
.text-muted { color: var(--gray-600); }
.text-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.content-prose {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--gray-700);
}

.content-prose p {
  margin-bottom: 0.8rem;
}

.content-prose strong {
  color: var(--gray-900);
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 0.5rem;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav a.active::after {
    display: none;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .office-grid {
    grid-template-columns: 1fr;
  }

  .nav-cards {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* --- Print --- */
@media print {
  .site-header,
  .back-to-top,
  .contact-section,
  .menu-toggle {
    display: none;
  }

  .hero {
    background: var(--gray-100);
    color: var(--gray-900);
    padding: 1rem;
  }

  .card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
}
