/* ========================================
   行政書士事務所テンプレート
   地方都市向け — 親しみやすく、信頼感のあるデザイン
   ======================================== */

:root {
  --primary: #2d6a4f;        /* 落ち着いた緑 — 信頼・安心感 */
  --primary-hover: #357a5c;
  --primary-light: #e8f5ee;
  --heading: #1a3a2a;        /* 深い緑系ネイビー */
  --body: #4a5a52;
  --body-light: #6b7d73;
  --surface: #ffffff;
  --surface-alt: #f5f8f6;    /* ほんのり緑がかったオフホワイト */
  --surface-warm: #faf8f5;   /* 温かみのあるクリーム */
  --border: #dce5df;
  --accent: #c17817;         /* 温かいオレンジ — アクセント */
  --accent-light: #f5e6ce;

  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif JP', serif;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);

  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--body);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  background: var(--surface);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
}

.logo-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
}

.logo-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--body-light);
}

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

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: var(--surface) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 500;
}

.nav-cta:hover {
  background: var(--primary-hover) !important;
  color: var(--surface) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background: var(--surface-warm);
  overflow: hidden;
  padding-top: 68px;
  border-bottom: 1px solid var(--border);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 85% 50%, rgba(45,106,79,0.05) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0;
  max-width: 580px;
}

.hero-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.5;
  margin-bottom: 18px;
}

.hero-text {
  font-size: 16px;
  color: var(--body);
  line-height: 1.9;
  margin-bottom: 32px;
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-full {
  width: 100%;
}

/* ---- Section Common ---- */
.section-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--heading);
}

.section-title.left {
  text-align: left;
}

.section-title.white {
  color: var(--surface);
}

.section-sub {
  text-align: center;
  color: var(--body-light);
  font-size: 15px;
  margin-bottom: 48px;
}

.section-sub.white {
  color: rgba(255,255,255,0.65);
}

/* ---- Services ---- */
.services {
  padding: 88px 0;
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.2s;
}

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

.service-icon {
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  color: var(--primary);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 16px;
  line-height: 1.9;
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card li {
  font-size: 13px;
  color: var(--body-light);
  padding-left: 18px;
  position: relative;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.35;
}

/* ---- About ---- */
.about {
  padding: 88px 0;
  background: var(--surface-warm);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body-light);
  font-size: 16px;
}

.about-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  margin: 20px 0 16px;
}

.about-name span {
  display: block;
  font-size: 12px;
  color: var(--body-light);
  font-family: var(--font-sans);
  font-weight: 400;
  margin-top: 4px;
}

.about-text p {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 12px;
  line-height: 2;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--body-light);
  margin-top: 2px;
}

/* ---- Flow ---- */
.flow {
  padding: 88px 0;
  background: var(--surface);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.flow-step {
  text-align: center;
  padding: 28px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.flow-number {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  opacity: 0.7;
}

.flow-step h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 13px;
  color: var(--body-light);
  line-height: 1.7;
}

/* ---- Price ---- */
.price {
  padding: 88px 0;
  background: var(--surface-warm);
}

.price-table-wrap {
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

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

.price-table th {
  background: var(--primary);
  color: var(--surface);
  font-weight: 500;
  font-size: 13px;
}

.price-table th:last-child,
.price-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

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

.price-table tr:nth-child(even) td {
  background: var(--surface-alt);
}

/* ---- Access ---- */
.access {
  padding: 88px 0;
  background: var(--surface);
}

.access-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.access-dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px 20px;
  font-size: 14px;
}

.access-dl dt {
  font-weight: 600;
  color: var(--heading);
  font-size: 13px;
}

.access-dl dd {
  color: var(--body);
}

.access-dl dd a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.access-dl dd a:hover {
  text-decoration: underline;
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body-light);
  font-size: 15px;
  border: 1px solid var(--border);
}

/* ---- Contact ---- */
.contact {
  padding: 88px 0;
  background: var(--heading);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.contact-phone {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-phone-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

.contact-phone-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-light);
  text-decoration: none;
  margin-bottom: 10px;
}

.contact-phone-number:hover {
  color: #fff;
}

.contact-phone-hours {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
  font-weight: 500;
}

.required {
  font-size: 11px;
  color: var(--accent-light);
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.2s;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.2);
}

.form-group select option {
  color: var(--heading);
  background: var(--surface);
}

/* ---- Footer ---- */
.footer {
  background: #0f2219;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.footer-logo .logo-icon {
  display: flex;
  align-items: center;
}

.footer-logo .logo-icon svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 16px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-text {
    font-size: 14px;
  }

  .hero {
    min-height: auto;
  }

  .section-title {
    font-size: 22px;
  }

  .services, .about, .flow, .price, .access, .contact {
    padding: 64px 0;
  }

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

  .about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image-placeholder {
    aspect-ratio: 16/9;
    max-width: 280px;
    margin: 0 auto;
  }

  .section-title.left {
    text-align: center;
  }

  .flow-steps {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .access-inner {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
