/*
Theme Name:  やまなし事業支援行政書士事務所
Template:    kadence
Description: やまなし事業支援行政書士事務所の子テーマ
Version:     1.0.0
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Text (pamphlet-based warm near-black) */
  --c-text:         #231815;
  --c-text-sub:     #4A3F38;
  --c-text-muted:   #857872;

  /* Background & Border (Brillance-based) */
  --c-bg:           #F8F6F3;
  --c-bg-white:     #FFFFFF;
  --c-border:       #E0DEDB;
  --c-divider:      rgba(55, 50, 47, 0.12);
  --c-shadow:       rgba(55, 50, 47, 0.10);

  /* Accent */
  --c-accent:       #2563eb;
  --c-accent-bg:    #EEF3FC;
  --c-accent-hover: #1d4ed8;
  --c-success:      #16a34a;

  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, '游明朝', serif;
  --font-sans:  'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-w:        1060px;
  --section-py:   96px;
  --card-radius:  14px;
  --btn-radius:   9999px;
  --side-line:    1px solid var(--c-border);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================================
   Layout Utilities
   ============================================================ */
.site-wrap {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Brillance-style vertical side lines */
.site-wrap::before,
.site-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--c-border);
  pointer-events: none;
}
.site-wrap::before { left: 0; }
.site-wrap::after  { right: 0; }

.section {
  padding: var(--section-py) 0;
  border-bottom: 1px solid var(--c-divider);
}
.section:last-child { border-bottom: none; }

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--c-text-sub);
  max-width: 600px;
  line-height: 1.8;
}

/* ============================================================
   Badge
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 90px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: var(--c-bg-white);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text);
  box-shadow: 0 0 0 4px rgba(55, 50, 47, 0.05);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--btn-radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .2s ease, transform .15s ease;
  border: none;
  text-decoration: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .28);
}

.btn-dark {
  background: var(--c-text);
  color: #fff;
  box-shadow: 0 0 0 2.5px rgba(255,255,255,.08) inset;
}

.btn-outline {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-outline:hover { background: var(--c-bg); }

.btn-lg { padding: 15px 36px; font-size: 16px; }

/* ============================================================
   Header / Navigation
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 243, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-divider);
}

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

.site-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}
.site-logo span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--c-text-muted);
}

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

.nav-menu a {
  font-size: 14px;
  color: var(--c-text-sub);
  transition: color .2s;
}
.nav-menu a:hover { color: var(--c-text); }

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-text);
  transition: transform .3s, opacity .3s;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-menu, .header-cta .btn-dark { display: none; }
  .hamburger { display: flex; }

  #site-header.menu-open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-divider);
    padding: 16px 24px 24px;
  }

  #site-header.menu-open .nav-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--c-divider);
    width: 100%;
    font-size: 16px;
  }
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  padding: 80px 0 96px;
  text-align: center;
  border-bottom: 1px solid var(--c-divider);
}

.hero-badge { margin-bottom: 32px; }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(52px, 8vw, 80px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: 24px;
  letter-spacing: -.02em;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--c-text-sub);
  line-height: 1.85;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--c-text-muted);
}

/* ============================================================
   Issues Section (こんなお悩みありませんか？)
   ============================================================ */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.issue-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--c-bg-white);
  border-radius: var(--card-radius);
  border: 1px solid var(--c-border);
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.6;
}

.issue-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.issue-check svg { width: 11px; height: 11px; color: var(--c-accent); }

/* ============================================================
   Subsidy Cards (補助金の種類)
   ============================================================ */
.subsidy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.subsidy-card {
  background: var(--c-bg-white);
  border-radius: var(--card-radius);
  border: 1px solid var(--c-border);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  display: block;
}
.subsidy-card:hover {
  box-shadow: 0 8px 32px var(--c-shadow);
  transform: translateY(-2px);
}

.subsidy-card-accent {
  display: inline-block;
  width: 4px;
  height: 28px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.accent-monozukuri { background: #2563eb; }
.accent-shinjigyo  { background: #c026d3; }
.accent-shoryokuka { background: #1e3a8a; }
.accent-jizokuka   { background: #ea580c; }

.subsidy-card-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.subsidy-card-sub {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}

.subsidy-card-amount {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: 16px;
}

.subsidy-card-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.subsidy-card-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-sub);
}
.subsidy-card-check::before {
  content: '✓';
  color: var(--c-success);
  font-weight: 700;
  flex-shrink: 0;
}

.subsidy-card-link {
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   Reasons Section (選ばれる理由)
   ============================================================ */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.reason-card {
  background: var(--c-bg-white);
  border-radius: var(--card-radius);
  border: 1px solid var(--c-border);
  padding: 32px 24px;
  text-align: center;
}

.reason-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--c-accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.reason-icon svg { width: 26px; height: 26px; color: var(--c-accent); }

.reason-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.reason-desc {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.75;
}

/* ============================================================
   Flow Section (ご依頼の流れ)
   ============================================================ */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 1px;
  background: var(--c-border);
  z-index: 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.flow-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-bg-white);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: .05em;
  box-shadow: 0 0 0 4px var(--c-bg);
}

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

.flow-step-desc {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.7;
}

/* ============================================================
   Fee Section (報酬体系)
   ============================================================ */
.fee-highlight {
  background: var(--c-bg-white);
  border-radius: var(--card-radius);
  border: 1px solid var(--c-border);
  padding: 32px;
  margin-bottom: 32px;
  text-align: center;
}

.fee-highlight-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: var(--c-text);
  margin-bottom: 8px;
}

.fee-highlight-sub {
  font-size: 15px;
  color: var(--c-text-sub);
}

.fee-table-wrap {
  overflow-x: auto;
  border-radius: var(--card-radius);
  border: 1px solid var(--c-border);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.fee-table th,
.fee-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--c-border);
}

.fee-table th {
  background: var(--c-bg);
  font-weight: 600;
  color: var(--c-text-sub);
  font-size: 12px;
}

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

.fee-table .label-cell {
  text-align: left;
  font-weight: 600;
  color: var(--c-text);
}

.fee-table .rate-cell {
  font-weight: 700;
  font-size: 16px;
  color: var(--c-text);
}

.fee-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ============================================================
   About / Profile Section
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c-border);
  background: var(--c-bg);
  flex-shrink: 0;
}

.about-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-photo-placeholder svg {
  width: 60px;
  height: 60px;
  color: var(--c-border);
}

.about-name {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 4px;
}

.about-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 20px;
}

.about-text {
  font-size: 15px;
  color: var(--c-text-sub);
  line-height: 1.85;
}

.about-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 24px;
  padding: 12px 20px;
  background: var(--c-bg);
  border-radius: 10px;
  border: 1px solid var(--c-border);
}
.about-stat-num {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--c-text);
}
.about-stat-unit { font-size: 14px; color: var(--c-text-sub); }

/* ============================================================
   FAQ Section
   ============================================================ */
.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.faq-item {
  background: var(--c-bg-white);
  border-bottom: 1px solid var(--c-border);
}
.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--c-text);
  gap: 16px;
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--c-bg); }

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 300;
  color: var(--c-text-muted);
  transition: transform .3s;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.8;
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  padding: var(--section-py) 0;
  text-align: center;
}

.cta-box {
  background: var(--c-bg-white);
  border-radius: 20px;
  border: 1px solid var(--c-border);
  padding: 64px 48px;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  color: var(--c-text);
  margin-bottom: 16px;
  line-height: 1.25;
}

.cta-desc {
  font-size: 16px;
  color: var(--c-text-sub);
  margin-bottom: 36px;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-note {
  font-size: 12px;
  color: var(--c-text-muted);
}
.cta-note strong { color: var(--c-text); }

/* ============================================================
   Footer
   ============================================================ */
#site-footer {
  background: var(--c-text);
  color: rgba(255,255,255,.7);
  padding: 56px 0 32px;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.footer-address {
  font-size: 13px;
  line-height: 1.9;
}

.footer-contact a {
  color: rgba(255,255,255,.85);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.footer-bottom-note {
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   Inner Page Styles
   ============================================================ */
.page-hero {
  padding: 64px 0;
  border-bottom: 1px solid var(--c-divider);
}

.page-hero-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: var(--c-text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-hero-desc {
  font-size: 17px;
  color: var(--c-text-sub);
  line-height: 1.8;
  max-width: 620px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--c-text);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}

.prose p {
  font-size: 16px;
  color: var(--c-text-sub);
  line-height: 1.85;
  margin-bottom: 20px;
}

.prose ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--c-text-sub);
  margin-bottom: 20px;
}
.prose ul li { margin-bottom: 8px; font-size: 15px; line-height: 1.7; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-py: 72px; }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .flow-steps::before { display: none; }

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

  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-photo-placeholder { margin: 0 auto; }
}

@media (max-width: 640px) {
  :root { --section-py: 56px; }

  .site-wrap { padding: 0 20px; }

  .issues-grid,
  .subsidy-grid,
  .reasons-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-box { padding: 40px 24px; }

  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-nav { align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 44px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .subsidy-grid { grid-template-columns: 1fr; }
}
