/* style.warm.css — Bright, welcoming theme focused on comfort and clarity */
:root{
  --bg: #faf7f2;           /* warm off-white */
  --surface: #ffffff;
  --elev: #fff9f3;
  --text: #1b2540;         /* deep slate */
  --muted: #5b677d;
  --line: #e9e3db;
  --accent: #0ea5a7;       /* teal */
  --accent-2: #f59e0b;     /* amber */
  --radius: 16px;
  --shadow: 0 10px 24px rgba(8, 15, 40, .08);
}

/* Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth;color-scheme:light}
body{
  margin:0; font:16px/1.7 "Hiragino Sans", "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 80% -20%, rgba(14,165,167,.08), transparent 60%),
    radial-gradient(1200px 800px at 10% 120%, rgba(245,158,11,.09), transparent 60%),
    var(--bg);
}

/* Containers */
.container{ max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.surface{ background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Header (hero) */
.hero-header{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding: 28px 0;
}
.hero-left h1{
  margin:0 0 8px; font-weight:800; letter-spacing:.01em;
  font-size: clamp(24px, 3.2vw, 36px);
  background: linear-gradient(90deg, #0ea5a7, #f59e0b);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.lab-subtitle{ margin: 4px 0 16px; color: var(--muted); font-size: 14px; }

/* Nav */
nav{ display:flex; flex-wrap:wrap; gap:10px; }
nav a{
  display:inline-block; padding:10px 14px; border-radius: 999px;
  border:1px solid var(--line); background: #fff;
  color: var(--text); text-decoration:none; transition: .2s ease; box-shadow: var(--shadow);
}
nav a:hover{ transform: translateY(-1px); border-color: color-mix(in oklab, var(--accent) 35%, var(--line)); }
nav a.nav-current{
  border-color: color-mix(in oklab, var(--accent) 50%, var(--line));
  background: linear-gradient(135deg, rgba(14,165,167,.10), rgba(245,158,11,.08));
  font-weight:700;
}

/* Hero image placeholder */
.hero-image{ width:min(360px, 42vw); }
.hero-placeholder{
  height: 160px; border-radius: 18px; border:1px dashed #e7dccf;
  background: linear-gradient(135deg, #fff9f3, #ffffff);
}

/* Sections */
main{ padding: 20px 0 40px; }
section{ margin: 24px 0; }
h2{ font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 12px; }
h3{ font-size: 18px; margin: 20px 0 10px; }
.muted{ color: var(--muted); }

/* Card */
.card{ padding:16px; border-radius:18px; border:1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }

/* Accordion (details/summary) */
details.accordion{ border:1px solid var(--line); border-radius:18px; margin:12px 0; background: var(--surface); box-shadow: var(--shadow); }
details.accordion + details.accordion{ margin-top: 12px; }
details.accordion[open]{ background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.85)); }
details.accordion > summary{
  cursor:pointer; list-style:none; padding:14px 16px; user-select:none; position:relative;
  font-weight:700;
}
details.accordion > summary::-webkit-details-marker{ display:none; }
details.accordion > .content{ padding: 10px 16px 16px; color: var(--text); }
.accordion .accordion-panel, .accordion .accordion-content{ padding: 0; } /* 互換 */

/* Tables */
table{ width:100%; border-collapse: collapse; border-spacing:0; overflow:hidden; border-radius: 14px; }
thead th{
  text-align:left; background: #fff5ea; color:#3a3f52; font-weight:700;
  border-bottom: 1px solid var(--line); padding: 12px 12px;
}
tbody td{ padding: 12px; border-bottom: 1px solid #f0eadf; color: #2b3553; }
tbody tr:hover{ background: #fffaf3; }

/* Lists */
ul{ padding-left: 18px; }
li{ margin: 6px 0; }

/* Footer */
footer{ padding: 28px 0 40px; margin-top: 24px; color: var(--muted); border-top: 1px solid var(--line); }

/* External link indicator */
a[target="_blank"]::after{ content:"↗"; display:inline-block; margin-left:6px; opacity:.6; }

/* Responsive */
@media (max-width: 768px){
  .hero-header{ flex-direction:column; align-items:flex-start; }
  .hero-image{ width:100%; }
  nav a{ padding:10px 12px; }
}
