@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

a { color: #1a4d3a; text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.7; }

ul, ol { list-style: none; }

/* Accessibility helpers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.nav-toggle-label:focus-visible,
.nav-toggle:focus-visible + .nav-toggle-label {
  outline: 3px solid #c69b3e;
  outline-offset: 3px;
}

/* ===== Layout ===== */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 64px 0; }

.bg-soft { background: #f8f6f1; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 0;
  background: #1a4d3a;
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}

/* ===== Typography ===== */
h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
}
h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
  padding-bottom: 16px;
}
h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #1a4d3a;
  margin: 16px auto 0;
}
h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}

p { margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }

@media (min-width: 720px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}

/* ===== Header & Nav ===== */
.site-header {
  border-bottom: 1px solid #e8e4d8;
  padding: 14px 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.logo {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.logo a {
  color: #1a4d3a;
  text-decoration: none;
}

/* Hamburger toggle (CSS-only) */
.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  padding: 4px 0;
  background: transparent;
  border: none;
  position: relative;
  z-index: 60;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a4d3a;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
/* Open state: morph to X */
.nav-toggle:checked + .nav-toggle-label .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked + .nav-toggle-label .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked + .nav-toggle-label .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: 60px 0 0 0;
  background: #fff;
  border-top: 1px solid #e8e4d8;
  display: none;
  z-index: 55;
}
.nav-toggle:checked ~ .site-nav {
  display: block;
}
.site-nav ul {
  padding: 16px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-nav a {
  display: block;
  padding: 14px 12px;
  font-size: 16px;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #f0ece2;
}
.site-nav a:hover { background: #f8f6f1; }

/* Desktop nav */
@media (min-width: 720px) {
  .nav-toggle-label { display: none; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav {
    position: static;
    inset: auto;
    background: transparent;
    border-top: none;
    display: block;
  }
  .site-nav ul {
    padding: 0;
    flex-direction: row;
    gap: 4px;
    align-items: center;
  }
  .site-nav a {
    padding: 8px 12px;
    border-bottom: none;
    font-size: 14px;
  }
  .site-nav a:hover { background: transparent; opacity: 0.7; }
}

/* ===== Hero ===== */
.hero {
  padding: 64px 0;
  background: #fff;
  text-align: center;
}
.hero-catch {
  margin-bottom: 24px;
  color: #1a1a1a;
}
.hero-sub {
  font-size: 14px;
  color: #555;
  margin-bottom: 32px;
  line-height: 1.9;
}
.hero-cta { margin-top: 32px; }

@media (min-width: 720px) {
  .hero { padding: 88px 0; }
  .hero-sub { font-size: 15px; }
}

/* ===== Buttons ===== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}
.btn-primary {
  background: #1a4d3a;
  color: #fff;
}
.btn-primary:hover { opacity: 0.85; color: #fff; }

.btn-secondary {
  background: #fff;
  color: #1a4d3a;
  border: 2px solid #1a4d3a;
}
.btn-secondary:hover { opacity: 0.85; }

/* ===== About ===== */
.about-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.about-photo img {
  border-radius: 50%;
  width: 140px;
  height: 140px;
  object-fit: cover;
  background: #e0ddd5;
}
.about-text p {
  font-size: 15px;
  margin-bottom: 16px;
}

@media (min-width: 720px) {
  .about-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
  .about-photo {
    flex-shrink: 0;
  }
  .about-photo img {
    width: 160px;
    height: 160px;
  }
}

/* ===== Pain ===== */
.pain-list {
  max-width: 540px;
  margin: 0 auto;
}
.pain-list li {
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid #e0ddd5;
  position: relative;
  font-size: 15px;
}
.pain-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 16px;
  color: #1a4d3a;
  font-weight: 700;
}
.pain-list li:last-child { border-bottom: none; }

/* ===== Points ===== */
.points-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.point {
  background: #fff;
  border: 1px solid #e0ddd5;
  border-radius: 6px;
  padding: 28px 24px;
}
.point-num {
  font-size: 13px;
  color: #1a4d3a;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.point h3 {
  font-size: 17px;
  margin-bottom: 12px;
}
.point p {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin: 0;
}

@media (min-width: 720px) {
  .points-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Services ===== */
.service-table {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}
.service-row {
  background: #fff;
  border: 1px solid #e0ddd5;
  border-radius: 6px;
  padding: 24px;
}
.service-row h3 {
  margin-bottom: 8px;
}
.service-row .price {
  font-size: 22px;
  font-weight: 700;
  color: #1a4d3a;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 14px;
  color: #444;
  margin: 0;
}

/* ===== Process ===== */
.process-list {
  max-width: 600px;
  margin: 0 auto;
  padding-left: 0;
}
.process-list li {
  padding: 20px 0 20px 0;
  border-bottom: 1px solid #e0ddd5;
}
.process-list li:last-child { border-bottom: none; }
.process-list h3 {
  color: #1a4d3a;
  font-size: 16px;
  margin-bottom: 6px;
}
.process-list p {
  font-size: 14px;
  color: #444;
  margin: 0;
}
.process-note {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: #555;
  font-style: italic;
}
.process-cta {
  margin-top: 32px;
  text-align: center;
}

/* ===== Cases ===== */
.cases-note {
  text-align: center;
  color: #555;
  font-size: 15px;
}
.case-card {
  background: #fff;
  border: 1px solid #e0ddd5;
  border-radius: 6px;
  padding: 24px;
  max-width: 600px;
  margin: 0 auto 20px;
}
.case-card:last-child { margin-bottom: 0; }
.case-tag {
  display: inline-block;
  font-size: 12px;
  color: #1a4d3a;
  background: #e8efe9;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-weight: 500;
}
.case-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.case-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 12px;
}
.case-meta {
  font-size: 12px;
  color: #888;
  margin: 0;
}

/* ===== Contact ===== */
.contact-lead {
  text-align: center;
  margin-bottom: 40px;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}
.contact-form {
  max-width: 540px;
  margin: 0 auto 48px;
  background: #fff;
  padding: 32px 24px;
  border: 1px solid #e0ddd5;
  border-radius: 6px;
}
.form-row {
  margin-bottom: 20px;
}
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #c8c2b3;
  border-radius: 4px;
  background: #fff;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #1a4d3a;
  box-shadow: 0 0 0 3px rgba(26, 77, 58, 0.15);
}
.form-row textarea { resize: vertical; }

.form-submit {
  text-align: center;
  margin: 24px 0 0;
}

/* Honeypot：人間には見えない（BOTは入力する） */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Cloudflare Turnstile widget */
.form-turnstile {
  display: flex;
  justify-content: center;
  margin: 20px 0 0;
}

/* 送信ステータス（成功/エラー） */
.form-status {
  margin: 16px 0 0;
  padding: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  min-height: 1.6em;
}
.form-status--ok {
  color: #1a4d3a;
  background: #f0f5f2;
  border: 1px solid #c8d8cf;
  padding: 12px 16px;
  border-radius: 6px;
}
.form-status--err {
  color: #8a1a1a;
  background: #fdf2f2;
  border: 1px solid #f3c0c0;
  padding: 12px 16px;
  border-radius: 6px;
}
#contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-line {
  text-align: center;
  font-size: 14px;
  color: #555;
}
.contact-line .btn-secondary {
  margin-top: 12px;
  text-decoration: none;
}

/* ===== Footer ===== */
.site-footer {
  background: #1a4d3a;
  color: #fff;
  padding: 40px 0 32px;
  text-align: center;
}
.site-footer .footer-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.site-footer .footer-meta {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 20px;
}
.site-footer .footer-links {
  font-size: 13px;
  margin-bottom: 12px;
}
.site-footer .footer-links a {
  color: #fff;
  opacity: 0.85;
  text-decoration: underline;
}
.site-footer .footer-links a:hover {
  opacity: 1;
}
.site-footer .footer-copy {
  font-size: 12px;
  opacity: 0.6;
}

/* フォームの同意文 */
.form-consent {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}
.form-consent a {
  color: #1a4d3a;
}

/* ===== 法務ページ（プライバシーポリシー等） ===== */
.legal-page {
  background: #f8f6f1;
}
.legal {
  padding: 60px 0 80px;
}
.legal .container {
  max-width: 760px;
}
.legal h1 {
  font-size: 28px;
  color: #1a4d3a;
  margin: 0 0 8px;
  text-align: center;
}
.legal-meta {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 40px;
}
.legal h2 {
  font-size: 18px;
  color: #1a4d3a;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #c8d8cf;
}
.legal p,
.legal li {
  font-size: 14px;
  line-height: 1.9;
  color: #374151;
}
.legal ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}
.legal ul ul {
  margin: 4px 0 8px;
}
.legal-contact {
  background: #fff;
  border: 1px solid #e0ddd5;
  border-radius: 6px;
  padding: 16px 20px;
}
.legal-back {
  margin-top: 40px;
  text-align: center;
}
.legal-back a {
  color: #1a4d3a;
  text-decoration: underline;
}
