@charset "UTF-8";

:root {
  --brand: #2f6b4f;
  --brand-dark: #214d39;
  --brand-soft: #e8f2ec;
  --accent: #b9792d;
  --accent-dark: #8c571c;
  --paper: #fffdf8;
  --page: #f3f1e8;
  --text: #27322c;
  --muted: #657168;
  --border: #d9dfd8;
  --shadow: 0 12px 32px rgba(42, 62, 50, 0.10);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.85;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 107, 79, 0.10), transparent 34rem),
    var(--page);
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-dark);
}

header {
  width: min(920px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 28px 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.content,
.index-main {
  width: min(920px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: clamp(22px, 4vw, 38px);
  background: var(--paper);
  border: 1px solid rgba(47, 107, 79, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content > :first-child,
.index-main > :first-child {
  margin-top: 0;
}

.content > :last-child,
.index-main > :last-child {
  margin-bottom: 0;
}

h2 {
  margin: 2.1rem 0 0.9rem;
  padding: 0.35rem 0 0.35rem 0.8rem;
  color: var(--brand-dark);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  line-height: 1.5;
  border-left: 5px solid var(--accent);
}

p {
  margin: 0 0 1.15rem;
}

ul {
  margin: 0.75rem 0 1.4rem;
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.45rem;
}

strong {
  color: var(--brand-dark);
}

.document-link {
  margin-top: 2rem;
  padding: 14px 16px;
  background: var(--brand-soft);
  border: 1px solid #c9dfd0;
  border-radius: 12px;
}

.action-area {
  margin: 28px 0;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 50px;
  padding: 12px 22px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(140, 87, 28, 0.20);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(140, 87, 28, 0.27);
}

.product-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* index */
.site-intro {
  padding: 18px 20px;
  background: var(--brand-soft);
  border: 1px solid #c9dfd0;
  border-radius: 14px;
}

.index-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 22px 0 8px;
}

.index-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 9px 16px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: var(--brand);
  border-radius: 999px;
}

.medicine-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.medicine-item a {
  display: block;
  height: 100%;
  padding: 14px 16px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.medicine-item a:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.medicine-name {
  display: block;
  color: var(--brand-dark);
  font-weight: 750;
}

.medicine-summary {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.symptom-card {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.symptom-card h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.symptom-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* AdSense：本文直下に置き，固定表示しない */
.ad-panel {
  width: min(920px, calc(100% - 32px));
  margin: 16px auto 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7e6f8;
  border-radius: 12px;
}

.ad-panel[hidden] {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.ad-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  padding: 5px 8px;
  background: #f4f8ff;
  border-bottom: 1px solid #d7e6f8;
}

.ad-label,
.ad-wait {
  color: #4f6f91;
  font-size: 0.72rem;
  line-height: 1.35;
}

.ad-wait {
  margin-left: auto;
  text-align: right;
}

.ad-close-btn {
  margin: 0;
  padding: 4px 9px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  background: #1565c0;
  border: 0;
  border-radius: 999px;
}

.ad-close-btn:hover {
  background: #0d47a1;
}

.ad-close-btn[hidden],
.ad-wait[hidden] {
  display: none !important;
}

.ad-body {
  min-height: 90px;
  padding: 8px;
  background: #fff;
}

.ad-body .adsbygoogle {
  display: block;
}

footer {
  width: min(920px, calc(100% - 32px));
  margin: 14px auto 24px;
  padding: 10px 12px;
  color: #1565c0;
  font-size: 0.9rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(21, 101, 192, 0.18);
}

footer p {
  margin: 0;
}

footer a {
  color: #1565c0;
  font-weight: 700;
  text-decoration: none;
}

footer a:hover {
  color: #0d47a1;
}

@media (max-width: 600px) {
  header,
  .content,
  .index-main,
  .ad-panel,
  footer {
    width: min(100% - 20px, 920px);
  }

  header {
    margin-top: 10px;
    padding: 22px 16px;
    border-radius: 13px;
  }

  .content,
  .index-main {
    margin-top: 10px;
    padding: 20px 16px;
    border-radius: 13px;
  }

  .medicine-list,
  .symptom-grid {
    grid-template-columns: 1fr;
  }

  .ad-panel-head {
    align-items: flex-start;
  }

  .ad-wait {
    max-width: 72%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* wakan.chousei.in 共通要素 */
.site-domain {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.site-notice {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid #c9dfd0;
}

.page-nav {
  width: min(920px, calc(100% - 32px));
  margin: 12px auto 0;
  text-align: right;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 107, 79, 0.22);
  border-radius: 999px;
}

.page-nav a:hover {
  color: #fff;
  background: var(--brand);
}

@media (max-width: 600px) {
  .page-nav {
    width: min(100% - 20px, 920px);
  }
}
