/* =========================================================
   Source: 01-design-tokens.css
   ========================================================= */

/* =========================================================
   Global Design Tokens
   2030 minimal / soft medical editorial style
   ========================================================= */
:root {
  /* Palette */
  --color-primary: #0056b3;
  --color-primary-light: #007bff;
  --color-secondary: #2c3e50;
  --color-text: #26323f;
  --color-muted: #6f7f8f;
  --color-bg: #f7fbfd;
  --color-card-bg: rgba(255, 255, 255, 0.92);
  --color-card-shadow: rgba(15, 45, 75, 0.06);
  --color-card-shadow-hover: rgba(15, 45, 75, 0.12);

  /* Soft surfaces */
  --surface-white: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(250, 253, 255, 0.72);
  --surface-blue: rgba(0, 123, 255, 0.055);
  --border-soft: rgba(0, 86, 179, 0.08);

  /* Sizing */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --gap-md: 1.25rem;

  /* Typography */
  --font-base:
    "Helvetica Neue",
    "Arial",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;

  /* Motion */
  --ease-fast: 0.28s cubic-bezier(.16, .84, .28, 1);
  --ease-slow: 0.8s cubic-bezier(.16, .84, .28, 1);
}


/* =========================================================
   Source: 02-base-reset.css
   ========================================================= */

/* =========================================================
   Basic Reset
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #004494;
}


/* =========================================================
   Source: 04-headings.css / basic headings only
   ========================================================= */

/* =========================================================
   Headings
   Global defaults are intentionally calm.
   Page-specific heading designs are handled in later files.
   ========================================================= */

h1,
h2,
h3,
h4,
h5 {
  margin: 1.15em 0 0.55em;
  color: var(--color-secondary);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

h3 {
  font-size: clamp(1.28rem, 2.1vw, 1.65rem);
}

h4 {
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  font-weight: 700;
}

h5 {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 700;
  color: var(--color-muted);
}


/* =========================================================
   Source: 05-text-elements.css
   ========================================================= */

/* =========================================================
   Text Elements
   ========================================================= */

.page-content p {
  margin: 0 0 1.35em;
  color: rgba(38, 50, 63, 0.84);
  font-size: 1rem;
  line-height: 1.9;
}

.M-h3 h3 {
  margin: 2em 0 1em;
  color: var(--color-secondary);
  font-size: 1.18rem;
}

/* Blockquote should be quiet, not a heavy blue bar */
.page-content blockquote {
  margin: 2em 0;
  padding: 1.15em 1.25em;
  border: 0;
  border-radius: var(--radius-md);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(250, 253, 255, 0.58) 100%
    );
  box-shadow:
    0 1px 0 rgba(0, 86, 179, 0.05),
    0 10px 28px rgba(15, 45, 75, 0.035);
  color: rgba(38, 50, 63, 0.82);
  font-style: normal;
}

.page-content blockquote strong {
  color: var(--color-secondary);
  font-style: normal;
}

.page-content .signature {
  margin-top: 2em;
  color: var(--color-muted);
  font-style: normal;
  text-align: right;
}


/* =========================================================
   Source: 07-media-elements.css
   ========================================================= */

/* =========================================================
   Media Elements
   ========================================================= */

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

a img {
  display: block;
  border-radius: var(--radius-lg);
  transition:
    transform var(--ease-fast),
    opacity var(--ease-fast),
    filter var(--ease-fast);
}

/* 過剰なズームは古く見えるため、控えめにする */
a:hover img {
  transform: scale(1.018);
  opacity: 0.96;
  filter: saturate(1.02) contrast(1.01);
}

.hover-effect {
  transition:
    transform var(--ease-fast),
    opacity var(--ease-fast),
    filter var(--ease-fast);
}

.hover-effect:hover {
  transform: translateY(-1px);
  opacity: 0.96;
  filter: saturate(1.02) contrast(1.01);
}


/* =========================================================
   Source: 11-enhanced-text-tables.css
   ========================================================= */

/* =========================================================
   Enhanced Text & Tables
   旧デザインの太い左線は使わない。
   本文は余白・文字組み・薄い面で階層を出す。
   ========================================================= */

.enhanced-text {
  max-width: none;
  margin: 0 0 1.55em;
  padding: 0;
  border: 0;
  border-left: 0;
  border-inline-start: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(30, 43, 56, 0.84);
  font-size: 1rem;
  line-height: 1.95;
  letter-spacing: 0.012em;
  text-align: left;
}

/* 料金・注記のように strong を含む短文だけ、控えめな情報行にする */
.enhanced-text:has(strong) {
  padding: 0.85em 1em;
  border-radius: 12px;
  background: rgba(15, 45, 75, 0.035);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  margin-block-end: 24px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(15, 45, 75, 0.045);
}

th,
td {
  padding: 0.8rem 0.9rem;
  border: 0;
  border-bottom: 1px solid rgba(0, 86, 179, 0.075);
  color: rgba(38, 50, 63, 0.84);
  font-size: 0.94rem;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(0, 123, 255, 0.06);
  color: var(--color-secondary);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.classification {
  width: 150px;
}

@media (max-width: 768px) {
  .classification {
    width: 100px;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  th,
  td {
    font-size: 0.9rem;
    white-space: normal;
  }
}

figcaption {
  margin-top: 0.55em;
  color: rgba(38, 50, 63, 0.56);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}


/* =========================================================
   Source: 12-accessibility-reduced-motion.css
   ========================================================= */

/* =========================================================
   Accessibility & Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
