/* =============================================
   行政書士事務所 デモHP スタイルシート
   カラーパレット：紺・白・薄グレー系
   ============================================= */

:root {
  --navy: #1a3558;
  --navy-dark: #0f2240;
  --navy-light: #2a4a72;
  --accent: #c8a84b;
  --white: #ffffff;
  --light-gray: #f5f6f8;
  --mid-gray: #e8eaed;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #7a7a9a;
  --border: #d0d4dc;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
  color: var(--text-dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.8;
}

/* ============ HEADER ============ */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

.site-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.site-title span.prefix {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.8;
  display: block;
  letter-spacing: 0.08em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

nav ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 22px 14px;
  display: block;
  transition: color 0.2s, background 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
}

nav ul li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ハンバーガー（モバイル） */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
  font-size: 1.4rem;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}

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

.hero-label {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.hero-office-name {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 24px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 28px;
}

.hero-desc {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.9;
  font-weight: 400;
  font-family: 'Noto Sans JP', sans-serif;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy-dark);
  padding: 14px 36px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  font-family: 'Noto Sans JP', sans-serif;
  transition: opacity 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* ============ SECTION共通 ============ */
section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
  font-family: 'Noto Sans JP', sans-serif;
}

.section-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 16px auto 0;
}

/* ============ 業務案内 ============ */
#services {
  background: var(--light-gray);
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  padding: 32px 28px;
  transition: box-shadow 0.2s, border-top-color 0.2s;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(26,53,88,0.12);
  border-top-color: var(--accent);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.2rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.8;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ============ 事務所概要 ============ */
#about {
  background: var(--white);
}

.about-table-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Noto Sans JP', sans-serif;
}

.about-table tr {
  border-bottom: 1px solid var(--mid-gray);
}

.about-table tr:first-child {
  border-top: 1px solid var(--mid-gray);
}

.about-table th {
  width: 160px;
  padding: 20px 24px 20px 0;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  vertical-align: top;
  white-space: nowrap;
}

.about-table td {
  padding: 20px 0;
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.about-table th::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}

/* ============ アクセス ============ */
#access {
  background: var(--light-gray);
}

.map-container {
  margin-top: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.map-container iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: none;
}

.access-address {
  text-align: center;
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--text-mid);
  font-family: 'Noto Sans JP', sans-serif;
}

.access-address i {
  color: var(--accent);
  margin-right: 6px;
}

/* ============ お問い合わせ ============ */
#contact {
  background: var(--navy);
  color: var(--white);
}

#contact .section-header h2 {
  color: var(--white);
}

#contact .section-header p {
  color: rgba(255,255,255,0.75);
}

.contact-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.tel-block {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 40px 48px;
  margin-bottom: 24px;
}

.tel-label {
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-bottom: 12px;
  font-family: 'Noto Sans JP', sans-serif;
}

.tel-number {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
  display: block;
  transition: opacity 0.2s;
}

.tel-number:hover {
  opacity: 0.85;
}

.tel-number i {
  font-size: 1.6rem;
  margin-right: 10px;
}

.tel-hours {
  margin-top: 14px;
  font-size: 0.85rem;
  opacity: 0.7;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
}

.contact-note {
  font-size: 0.84rem;
  opacity: 0.65;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
}

/* ============ FOOTER ============ */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 24px 28px;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-name {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.footer-info {
  margin-bottom: 20px;
  line-height: 1.9;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 20px 0;
}

.footer-copy {
  font-size: 0.78rem;
  opacity: 0.5;
}

/* ============ 行政書士バッジ ============ */
.gyosei-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,168,75,0.15);
  border: 1px solid rgba(200,168,75,0.4);
  color: var(--accent);
  padding: 8px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-family: 'Noto Sans JP', sans-serif;
  margin-top: 32px;
}

/* ============ レスポンシブ ============ */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li a {
    padding: 14px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 70px 20px 60px;
  }

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

  .hero-office-name {
    font-size: 0.95rem;
  }

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

  section {
    padding: 60px 20px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .about-table th {
    width: 120px;
    font-size: 0.82rem;
    padding-right: 12px;
  }

  .about-table td {
    font-size: 0.87rem;
  }

  .tel-block {
    padding: 28px 24px;
  }

  .tel-number {
    font-size: 1.7rem;
  }

  .site-title {
    max-width: 220px;
    font-size: 0.92rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
