@charset "UTF-8";
/* ============================================================
   BASE CSS — なんよう眼科クリニック
   normalize.css v8.0.1 ベース拡張スタイル
   ============================================================ */
/* ============================================================
   1. CSS Variables
   ============================================================ */ :root {
  /* ── Brand Colors ── */
  --color-primary: #5aab5a; /* メインの緑（ロゴ・ボタン） */
  --color-primary-dark: #3d8c3d; /* ホバー・アクセント用の濃い緑 */
  --color-primary-light: #d4edda; /* 淡い緑（セクション背景など） */
  --color-accent: #f57d51;
  --color-accent-light: #ddcd28;
  /* ── Neutral Colors ── */
  --color-text: #333; /* 本文テキスト */
  --color-text-mid: #333; /* サブテキスト */
  --color-text-light: #555; /* 補足・日付など */
  --color-text-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-accent: #ddcd28;
  --color-border: #b4d3c5;
  --color-border-light: #eeeeee;
  --color-primary-pale: #e6fcd9;
  /* ── Typography ── */
  --font-base: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "ヒラギノ丸ゴ ProN W4", "メイリオ", Meiryo, sans-serif;
  --font-en: "Lato", "Montserrat", sans-serif; /* 英語見出しに */
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --line-height: 1.8; 
  --line-height-tight: 1.4;
  /* ── Spacing Scale ── */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  /* ── Border Radius ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 36px;
  --radius-full: 9999px;
  /* ── Shadow ── */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 12px rgba(90, 171, 90, 0.12); /* 緑みのある影 */
  /* ── Transition ── */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
  /* ── Layout ── */
  --max-width: 1280px;
  --content-width: 960px; /* 本文コンテンツ幅 */
  --content-padding: 24px;
}
/* ── PC (base) ───────────────────────────────────── */
:root {
  --font-size:      18px;
  --font-size-sm:   15px;
  --font-size-xs:   14px;
  --font-size-lg:   17px;
  --font-size-xl:   20px;
  --font-size-2xl:  24px;
  --font-size-3xl:  32px;
  --font-size-hero: 42px;
}

/* ── ≤1025px: タブレット横 ───────────────────────── */
@media (max-width: 1025px) {
  :root {
    --font-size:      17px;
    --font-size-sm:   15px;
    --font-size-xs:   13px;
    --font-size-lg:   17px;
    --font-size-xl:   19px;
    --font-size-2xl:  23px;
    --font-size-3xl:  30px;
    --font-size-hero: 40px;
  }
}

/* ── ≤821px: タブレット縦 ────────────────────────── */
@media (max-width: 821px) {
  :root {
    --font-size:      16px;
    --font-size-sm:   14px;
    --font-size-xs:   13px;
    --font-size-lg:   16px;
    --font-size-xl:   18px;
    --font-size-2xl:  22px;
    --font-size-3xl:  28px;
    --font-size-hero: 36px;
  }
}

/* ── ≤600px: 大きめスマホ ────────────────────────── */
@media (max-width: 600px) {
  :root {
    --font-size:      16px;
    --font-size-sm:   14px;
    --font-size-xs:   12px;
    --font-size-lg:   16px;
    --font-size-xl:   17px;
    --font-size-2xl:  21px;
    --font-size-3xl:  26px;
    --font-size-hero: 32px;
	--line-height: 2; 
  }
}

/* ── ≤390px: 標準スマホ (iPhone 14など) ─────────── */
@media (max-width: 390px) {
  :root {
    --font-size:      16px; 
    --font-size-sm:   13px;
    --font-size-xs:   12px;
    --font-size-lg:   15px;
    --font-size-xl:   16px;
    --font-size-2xl:  20px;
    --font-size-3xl:  24px;
    --font-size-hero: 28px;
  }
}

/* ── ≤320px: 小型スマホ (iPhone SEなど) ─────────── 
@media (max-width: 320px) {
  :root {
    --font-size:      14px;
    --font-size-sm:   13px;
    --font-size-xs:   11px;
    --font-size-lg:   15px;
    --font-size-xl:   15px;
    --font-size-2xl:  19px;
    --font-size-3xl:  22px;
    --font-size-hero: 26px;
  }
}*/
/* ============================================================
   2. normalize.css v8.0.1
   ============================================================ */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
}
main {
  display: block;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}
a {
  background-color: transparent;
}
abbr[title] {
  border-bottom: none;
  text-decoration: underline dotted;
}
b, strong {
  font-weight: bolder;
}
code, kbd, samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
small {
  font-size: 80%;
}
sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
img {
  border-style: none;
}
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button, input {
  overflow: visible;
}
button, select {
  text-transform: none;
}
button, [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button;
}
button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
textarea {
  overflow: auto;
}
[type="checkbox"], [type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button {
  height: auto;
}
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
details {
  display: block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none;
}
/* ============================================================
   3. Box Sizing
   ============================================================ */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
/* ============================================================
   4. Base Styles
   ============================================================ */
html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-base);
  font-weight: 400;
  color: var(--color-text);
  background-image: url('../img/bg-body.webp');
  background-repeat: repeat-x; /* or repeat, no-repeat */
  background-position: top -1.5rem center;
  background-size: 100% auto; /* or cover, contain */
  line-height: var(--line-height);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.03em;
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin: 0;
  padding: 0;
  color: var(--color-text);
}
/* Paragraph */
p {
  margin: 0 0 1.5rem;
  font-weight: 500;
  line-height: var(--line-height);
}
/* Lists */
ul, ol, dl {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition), opacity var(--transition);
}
a:hover {
  
  opacity: 0.85;
}
/* Images & Media */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
/* Table */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}
/* Form elements */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
/* HR */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
  padding: 0;
}
address {
  font-style: normal;
}
figure {
  margin: 0;
}
blockquote {
  margin: 0;
  padding: 0;
}
/* ============================================================
   5. Typography
   ============================================================ */
strong, b {
  font-weight: var(--font-weight-bold);
}
em, i {
  font-style: italic;
}
small {
  font-size: var(--font-size-sm);
}
::selection {
  background: rgba(90, 171, 90, 0.15);
  color: var(--color-text);
}
/* ============================================================
   6. Accessibility
   ============================================================ */ :focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ============================================================
   7. Layout Utilities
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--content-padding);
}
.container--section {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--content-padding);
  margin-block: var(--space-3xl);
}
.container--narrow {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--content-padding);
}
.section {
  padding-block: var(--space-2xl);
}
.section--large {
  padding-block: var(--space-3xl);
}
.sec-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.sec-title::before {
  content: attr(data-text);
  display: block;
  font-family: var(--font-en);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-light);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}
.sec-lead {
  font-size: var(--font-size-2xl);
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.sec-heading {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary-dark);
  border-left: 3px solid var(--color-primary);
  padding: var(--space-sm) var(--space-md);
  margin: 0 0 var(--space-md);
  line-height: var(--line-height-tight);
}
/* ============================================================
   8. Components — 診療サイト向け共通コンポーネント
   ============================================================ */
/* ── Button ── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85em 1.6em;
  border-radius: var(--radius-full);
  font-size: var(--font-size);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  cursor: pointer;
  min-width: 240px;
  transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn::after {
  content: '';
  width: 10px;
  height: 10px;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  right: 1rem;
  bottom: 0;
  margin: auto;
}
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border: 2px solid var(--color-primary);
}
.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-text);
  border: 2px solid var(--color-accent);
}
.btn--accent:hover {
  opacity: 0.85;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover {
  background-color: var(--color-primary-pale);
}
.btn--outline::after {
  border-top: solid 2px var(--color-primary);
  border-right: solid 2px var(--color-primary);
}
.btn--sm {
  font-size: var(--font-size-sm);
  padding: 0.5em 1.2em;
}
/* ── Card ── */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card__body {
  padding: var(--space-lg);
}
/* ── Badge / Tag ── */
.badge {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
}
.badge--primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.badge--accent {
  background-color: #fff3cd;
  color: #856404;
}
/* ── News / Info list ── */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.info-list__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
  line-height: var(--line-height);
}
.info-list__date {
  flex-shrink: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}
/* ============================================================
   9. Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ============================================================
   10. Responsive Breakpoints
   ============================================================ */
/* Tablet: 768px〜 */
@media (max-width: 821px) {
  :root {
    --space-2xl: 48px;
    --space-3xl: 64px;
    --content-padding: 16px;
  }
}
/* ============================================================
   wave — 上下ウェーブ装飾
   ============================================================ */
.wave {
  position: relative;
  overflow: visible;
  background-color: var(--color-primary-pale);
  padding: 4rem 0;
}
.wave::before, .wave::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url('../img/base-bg-wave.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.wave::before {
  top: -80px;
  background-position: top center;
}
.wave::after {
  bottom: -80px;
  background-position: top center;
  transform: scaleY(-1);
}
.wave--top-only::after {
  display: none;
}
.wave--bottom-only::before {
  display: none;
}
.wave--accent {
  background-color: var(--color-bg-accent);
}
.wave--white {
  background-color: var(--color-bg);
}
@media (max-width: 1025px) {
  .wave::before, .wave::after {
    background-size: auto 100%;
  }
}
@media (max-width: 768px) {
  .wave::before, .wave::after {
    height: 50px;
  }
  .wave::before {
    top: -50px;
  }
  .wave::after {
    bottom: -50px;
  }
}
@media (max-width: 480px) {
  .wave::before, .wave::after {
    height: 36px;
  }
  .wave::before {
    top: -36px;
  }
  .wave::after {
    bottom: -36px;
  }
}
.text-center {
  text-align: center;
}
.text-center img {
  margin-left: auto;
  margin-right: auto;
}
/* =============================================
   街並み背景ラッパー / bg-townscape
   ============================================= */
.bg-townscape {
  width: 100%;
  margin-inline: auto;
  padding: 0 0 200px;
  background-image: url("../img/bg-town-02.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100%;
}

/* ─── Tablet（〜1025px） ─── */
@media (max-width: 1025px) {
  .bg-townscape {
    padding-bottom: 160px;
    background-size: 120%;
  }
}

/* ─── Mobile（〜769px） ─── */
@media (max-width: 769px) {
  .bg-townscape {
    padding-bottom: 120px;
    background-size: 150%;
  }
}

/* ─── Mobile Small（〜480px） ─── */
@media (max-width: 480px) {
  .bg-townscape {
    padding-bottom: 80px;
    background-size: 200%;
  }
}
/* ── Display Utilities ── */
.pc-only {
  display: block;
}
.sp-only {
  display: none;
}

@media (max-width: 767px) {
  .pc-only {
    display: none !important;
  }
  .sp-only {
    display: block !important;
  }
}