/* ==========================================================
   小田行政書士事務所 サイト共通スタイル
   ========================================================== */

:root {
  --navy: #16273f;
  --navy-2: #1f3a5f;
  --navy-3: #2c5282;
  --accent: #d69433;
  --accent-dark: #b87a1f;
  --bg: #eaf5ea;
  --surface: #f4faf2;
  --white: #ffffff;
  --text: #262e38;
  --text-light: #5c6773;
  --border: #d9e9d7;
  --shadow: 0 4px 20px rgba(22, 39, 63, 0.08);
  --radius: 10px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.5;
  font-weight: 700;
}

p {
  margin: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cfd8e3;
  font-size: 0.82rem;
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.topbar a {
  color: #cfd8e3;
}

.topbar a:hover {
  color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo .logo-main {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.logo .logo-sub {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: #eef2f7;
  color: var(--navy-3);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.25;
}

.header-phone .phone-label {
  font-size: 0.7rem;
  color: var(--text-light);
}

.header-phone .phone-number {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle::before { top: 13px; }
.nav-toggle span { top: 20px; }
.nav-toggle::after { top: 27px; }

.nav-toggle.is-open::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle.is-open span { opacity: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(214, 148, 51, 0.25) 0%, rgba(214, 148, 51, 0) 70%);
}

.hero .container {
  padding-top: 76px;
  padding-bottom: 76px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(214, 148, 51, 0.18);
  color: var(--accent);
  border: 1px solid rgba(214, 148, 51, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p.lead {
  font-size: 1.05rem;
  color: #d7dfe9;
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #e6ebf2;
}

.hero-badges li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

/* ---------- News / Topics ---------- */
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 28px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  flex: none;
  width: 108px;
  color: var(--text-light);
  font-size: 0.86rem;
  font-weight: 600;
}

.news-tag {
  flex: none;
  background: #eaf1fb;
  color: var(--navy-3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.news-title {
  color: var(--text);
  font-size: 0.94rem;
}

a.news-title:hover {
  color: var(--navy-3);
}

@media (max-width: 600px) {
  .news-item {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .news-title {
    width: 100%;
  }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: var(--white);
  padding: 52px 0;
}

.page-header .container > p {
  color: #cfd8e3;
  margin-top: 10px;
}

.breadcrumb {
  font-size: 0.82rem;
  color: #b9c3d1;
  margin-bottom: 12px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.page-header h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-eyebrow {
  display: block;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--navy);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-light);
}

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #eaf1fb;
  color: var(--navy-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.08rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-light);
  font-size: 0.94rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card .tag {
  align-self: flex-start;
  background: #f1e5cd;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.service-card ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card ul li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding-left: 18px;
  position: relative;
}

.service-card ul li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
}

.service-card .more {
  margin-top: 18px;
  font-weight: 700;
  color: var(--navy-3);
  font-size: 0.9rem;
}

/* ---------- Strengths (numbered) ---------- */
.strength {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.strength-num {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
}

.strength h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.strength p {
  color: var(--text-light);
  font-size: 0.93rem;
}

/* ---------- Flow (steps) ---------- */
.flow-list {
  counter-reset: flow;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.flow-item {
  counter-increment: flow;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  position: relative;
}

.flow-item::before {
  content: counter(flow);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  margin: 0 auto 14px;
}

.flow-item h3 {
  font-size: 0.96rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.flow-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: #d7dfe9;
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Tables (fees) ---------- */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.fee-table caption {
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  padding: 18px 20px 4px;
}

.fee-table th,
.fee-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

.fee-table thead th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.88rem;
}

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

.fee-table tbody tr:hover {
  background: #f8fafc;
}

.fee-note {
  background: #fdf6ea;
  border: 1px solid #f0dfb8;
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 18px;
}

.fee-note strong {
  color: var(--accent-dark);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
}

/* ---------- Area / results ---------- */
.area-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.area-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
}

.area-list li small {
  display: block;
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 4px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-grid .stat-num {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
}

.stat-grid .stat-num span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
}

.stat-grid .stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 6px;
}

.voice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.voice-card .voice-quote {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.voice-card .voice-meta {
  color: var(--text-light);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.placeholder-note {
  display: inline-block;
  background: #fdf6ea;
  border: 1px dashed #d69433;
  color: var(--accent-dark);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* ---------- About page ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dfe6ee, #c7d2e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-3);
  font-size: 0.85rem;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

.info-table th {
  width: 150px;
  color: var(--navy);
  background: #f8fafc;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map-frame iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-method:last-child {
  border-bottom: none;
}

.contact-method .icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #eaf1fb;
  color: var(--navy-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-method h3 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-method .value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.contact-method .value a:hover {
  color: var(--accent-dark);
}

.contact-method .desc {
  font-size: 0.84rem;
  color: var(--text-light);
  margin-top: 2px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group .required {
  color: #c0392b;
  font-size: 0.75rem;
  margin-left: 6px;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}

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

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

.form-note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
}

.faq-item h3 {
  color: var(--navy);
  font-size: 0.98rem;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.faq-item h3 span {
  color: var(--accent-dark);
}

.faq-item p {
  color: var(--text-light);
  font-size: 0.92rem;
  padding-left: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c3ccd8;
  padding: 56px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-grid .logo-main {
  color: var(--white);
}

.footer-grid p {
  font-size: 0.88rem;
  color: #b6c0cd;
}

.footer-grid ul li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.footer-grid ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #93a0b1;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .flow-list { grid-template-columns: repeat(3, 1fr); }
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo { max-width: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .topbar .container { justify-content: center; }
  .main-nav { position: fixed; inset: 64px 0 0 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; overflow-y: auto; }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 14px 16px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero .container { padding-top: 52px; padding-bottom: 52px; }
}
