/* =============================================
   東洋自然療法研究所 — メインスタイルシート
   ============================================= */

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

:root {
  --primary: #1a2e4a;
  --accent: #2a9d8f;
  --accent-dark: #238a7e;
  --accent-light: #e8f5f4;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e4ea;
  --max-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1rem;
}
.logo { color: white; text-decoration: none; line-height: 1.3; }
.logo:hover { text-decoration: none; }
.logo-main { font-size: 1rem; font-weight: 700; display: block; }
.logo-sub { font-size: 0.7rem; opacity: 0.65; display: block; }

nav ul { list-style: none; display: flex; gap: 0; padding-left: 0; }
nav ul li a {
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  padding: 0.65rem 0.8rem;
  display: block;
  border-radius: 5px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
nav ul li a:hover,
nav ul li a.active {
  color: white;
  background: var(--accent);
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(140deg, var(--primary) 0%, #1e4060 60%, #2a4a3a 100%);
  color: white;
  padding: 5.5rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 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%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  opacity: 0.65;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  line-height: 1.35;
  position: relative;
}
.hero p {
  font-size: 1rem;
  opacity: 0.82;
  max-width: 580px;
  margin: 0 auto 2.25rem;
  position: relative;
}
.hero-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn-outline { border: 2px solid rgba(255,255,255,0.55); color: white; background: transparent; }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); text-decoration: none; }
.btn-dark { background: var(--primary); color: white; }
.btn-dark:hover { background: #0f1e33; text-decoration: none; }
.btn-lg { padding: 0.9rem 2.5rem; font-size: 1rem; }

/* ===== SECTIONS ===== */
section { padding: 4.5rem 0; }
.section-gray { background: var(--bg-gray); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.section-header h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.section-header p { color: var(--text-light); max-width: 560px; margin: 0 auto; font-size: 0.95rem; }

/* ===== CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; }
.card {
  background: white;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 18px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(0,0,0,0.1); }
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.card h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.6rem; }
.card p { color: var(--text-light); font-size: 0.875rem; line-height: 1.75; margin-bottom: 1rem; }
.card-link { color: var(--accent); font-size: 0.875rem; font-weight: 600; }
.card-link:hover { text-decoration: underline; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary), #1e4060);
  color: white;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}
.breadcrumb { font-size: 0.78rem; opacity: 0.6; margin-bottom: 0.75rem; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: white; text-decoration: none; }
.breadcrumb span { margin: 0 0.4rem; }
.page-header h1 { font-size: 1.8rem; font-weight: 700; }

/* ===== GOALS LIST ===== */
.goals-list { list-style: none; max-width: 740px; margin: 0 auto; padding-left: 0; }
.goals-list li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.goals-list li:last-child { border-bottom: none; }
.goal-num {
  min-width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.goal-text { font-size: 0.95rem; padding-top: 0.4rem; }

/* ===== INFO BOX ===== */
.info-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.75rem 0;
}
.info-box p { color: var(--primary); font-size: 0.9rem; }

/* ===== NEWS LIST ===== */
.news-list { list-style: none; padding-left: 0; }
.news-list li {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.news-list li:last-child { border-bottom: none; }
.news-date { font-size: 0.82rem; color: var(--text-light); min-width: 90px; padding-top: 0.1rem; }
.news-body { flex: 1; }
.news-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.6rem;
  border-radius: 50px;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.news-tag.tag-info { background: #e8f0fe; color: #3b5bdb; }
.news-tag.tag-event { background: #fff3e0; color: #e67700; }
.news-title { font-size: 0.925rem; color: var(--text); }

/* ===== CONSULTATION ===== */
.consultation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.consultation-card {
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  text-align: center;
  background: white;
}
.consultation-card.featured { border-color: var(--accent); background: var(--accent-light); }
.consultation-card h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 0.75rem; }
.price { font-size: 1.8rem; font-weight: 700; color: var(--primary); margin: 0.75rem 0; }
.price span { font-size: 0.85rem; font-weight: 400; color: var(--text-light); }
.consultation-card p { font-size: 0.85rem; color: var(--text-light); }

/* ===== ACCESS ===== */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.access-dl dt { font-weight: 600; color: var(--primary); font-size: 0.85rem; margin-bottom: 0.2rem; }
.access-dl dd { color: var(--text-light); font-size: 0.875rem; margin-bottom: 1rem; margin-left: 0; }
.map-embed { border-radius: 12px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
.map-embed iframe { width: 100%; height: 320px; border: none; display: block; }

/* ===== SYMPTOM PAGES ===== */
.symptom-section { margin-bottom: 3.5rem; }
.symptom-section h2 {
  font-size: 1.3rem;
  color: var(--primary);
  padding: 0 0 0.6rem 1rem;
  border-left: 4px solid var(--accent);
  margin-bottom: 1.5rem;
}
.treatment-block {
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
}
.treatment-block h4 { color: var(--accent); margin-bottom: 0.75rem; font-size: 0.9rem; letter-spacing: 0.05em; }
.treatment-block ul { list-style: none; padding-left: 0; }
.treatment-block ul li {
  padding: 0.3rem 0 0.3rem 1.3rem;
  position: relative;
  font-size: 0.9rem;
}
.treatment-block ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.6rem;
  top: 0.5rem;
}

/* ===== RESEARCH TAGS ===== */
.research-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.research-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  border-top: 4px solid var(--accent);
}
.research-card h3 { color: var(--primary); font-size: 1rem; margin-bottom: 0.75rem; }
.research-card ul { font-size: 0.875rem; color: var(--text-light); }
.research-card ul li { margin-bottom: 0.4rem; }

/* ===== WORKS PAGE ===== */
.works-frame-wrap {
  background: var(--bg-gray);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
}
.works-frame-wrap p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.25rem; }
.works-btn-external {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.9rem 2.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.25s, transform 0.2s;
}
.works-btn-external:hover { background: #0f1e33; text-decoration: none; transform: translateY(-2px); }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 660px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.45rem;
}
.required-mark { color: #e63946; font-size: 0.75rem; margin-left: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.12);
}
.form-group textarea { resize: vertical; min-height: 150px; }
.form-submit { text-align: center; margin-top: 0.5rem; }

/* ===== HIGHLIGHT BOXES ===== */
.highlight-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--bg-gray);
  border-radius: 16px;
}
.highlight-row .hl-icon { font-size: 3.5rem; flex-shrink: 0; }
.highlight-row h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 0.5rem; }
.highlight-row p { color: var(--text-light); font-size: 0.9rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.78);
}
.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand .logo-main { font-size: 0.95rem; color: white; display: block; margin-bottom: 0.5rem; font-weight: 700; }
.footer-brand .logo-sub { font-size: 0.72rem; opacity: 0.6; display: block; margin-bottom: 1rem; }
.footer-brand address { font-style: normal; font-size: 0.78rem; opacity: 0.65; line-height: 1.9; }
.footer-nav h4 { color: white; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: 0.08em; }
.footer-nav ul { list-style: none; padding-left: 0; }
.footer-nav ul li { margin-bottom: 0.4rem; }
.footer-nav ul li a { color: rgba(255,255,255,0.6); font-size: 0.78rem; }
.footer-nav ul li a:hover { color: white; text-decoration: none; }
.footer-copy {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.72rem;
  opacity: 0.45;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding: 0.25rem 0 0.75rem; gap: 0; }
  nav ul li a { border-radius: 0; padding: 0.65rem 1.25rem; }
  .hamburger { display: flex; }
  .header-inner { flex-wrap: wrap; }

  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero h1 { font-size: 1.55rem; }
  .hero p { font-size: 0.9rem; }

  section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 1.4rem; }

  .access-grid { grid-template-columns: 1fr; }
  .highlight-row { flex-direction: column; padding: 1.75rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1.5rem 1.5rem; }
  .page-header h1 { font-size: 1.4rem; }
  .page-header { padding: 2.75rem 1.25rem 2.25rem; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .consultation-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; text-align: center; }
}
