/* =========================================================
   ゆう｜PT × Web Writer Portfolio — shared stylesheet
   Editorial / medical-clean design. No framework.
   ========================================================= */

:root {
  --ink: #172723;
  --text: #374742;
  --muted: #66807a;
  --faint: #93a8a3;
  --bg: #f6f9f8;
  --surface: #ffffff;
  --surface-soft: #eef4f2;
  --primary: #0d7a63;
  --primary-deep: #085945;
  --primary-soft: #e2f1ec;
  --accent: #b45309;
  --accent-soft: #fdf3e3;
  --blue: #22617d;
  --blue-soft: #e5eff4;
  --line: #dfe9e6;
  --dark: #10211c;
  --dark-2: #16302a;
  --radius: 18px;
  --serif: "Shippori Mincho", "Noto Serif JP", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --en: "Inter", "Noto Sans JP", sans-serif;
  --shadow-sm: 0 1px 2px rgba(23, 39, 35, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(23, 39, 35, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(8, 89, 69, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  font-feature-settings: "palt";
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

img, svg { max-width: 100%; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong { color: var(--ink); font-weight: 700; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--primary-soft); color: var(--primary-deep); }

/* ---------- typography helpers ---------- */
.en { font-family: var(--en); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
}
.section-label::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--primary);
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.5;
  color: var(--ink);
  margin: 14px 0 10px;
}

.section-lede {
  color: var(--muted);
  font-size: 15px;
  max-width: 620px;
}

.center { text-align: center; }
.center .section-label::before { display: none; }
.center .section-label::after { display: none; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(246, 249, 248, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(223, 233, 230, 0.8);
}
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.brand .dot { color: var(--primary); }
.brand small {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--primary);
  transition: right 0.3s ease;
}
.site-nav a:hover::after { right: 0; }
.site-nav .nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--primary-deep); }
@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .brand small { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn svg { transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-deep); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 12% -10%, rgba(13, 122, 99, 0.09), transparent 65%),
    radial-gradient(640px 420px at 95% 8%, rgba(34, 97, 125, 0.08), transparent 60%),
    linear-gradient(180deg, #fdfefe 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { padding: 132px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-side { order: -1; justify-self: center; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  font-family: var(--en);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 30px;
}
.hero-eyebrow .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(13, 122, 99, 0.4);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 122, 99, 0.35); }
  70% { box-shadow: 0 0 0 9px rgba(13, 122, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 122, 99, 0); }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 54px);
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.hero h1 .hl {
  background: linear-gradient(transparent 68%, rgba(13, 122, 99, 0.18) 68%);
  padding: 0 2px;
}
.hero h1 .hl-b {
  background: linear-gradient(transparent 68%, rgba(180, 83, 9, 0.16) 68%);
  padding: 0 2px;
}
.hero-lede {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 54px; }

/* hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.hero-stats > div { padding: 20px 22px 0 0; }
.hero-stats > div + div { border-left: 1px solid var(--line); padding-left: 22px; }
.hero-stats .num {
  font-family: var(--en);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ink);
  line-height: 1.2;
}
.hero-stats .num small { font-size: 0.55em; font-weight: 700; color: var(--primary); margin-left: 2px; }
.hero-stats .label { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; gap: 0; }
  .hero-stats > div { display: flex; align-items: baseline; gap: 14px; padding: 14px 0 0; }
  .hero-stats > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; margin-top: 14px; }
}

/* hero side card */
.hero-side { position: relative; }
.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 30px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: auto 18px -10px 18px;
  height: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  z-index: -1;
}
.avatar { width: 132px; height: 132px; margin: 0 auto 18px; display: block; }
.profile-card .p-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.profile-card .p-name small { font-size: 12px; font-weight: 500; color: var(--muted); display: block; letter-spacing: 0.2em; font-family: var(--en); text-transform: uppercase; margin-top: 2px; }
.profile-card .p-role {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
}
.profile-card .p-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.profile-card .p-tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  background: var(--bg);
}

/* ---------- generic section ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 52px; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 44px; } }

.about-visual {
  position: sticky;
  top: 108px;
}
@media (max-width: 860px) { .about-visual { position: static; } }
.about-visual .frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.about-visual .caption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--faint);
  text-align: center;
  letter-spacing: 0.06em;
}

.about-copy p { margin-bottom: 1.4em; }
.about-copy .lead {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  line-height: 2;
  margin-bottom: 1.6em;
}

.fact-list { display: grid; gap: 14px; margin: 34px 0; }
.fact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.fact-list .ic {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.fact-list .ic.blue { background: var(--blue-soft); color: var(--blue); }
.fact-list .ic.amber { background: var(--accent-soft); color: var(--accent); }
.fact-list h4 { font-size: 13px; color: var(--faint); font-weight: 700; letter-spacing: 0.08em; }
.fact-list p { font-size: 14.5px; color: var(--ink); font-weight: 600; margin: 0; line-height: 1.7; }
.genre-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.genre-tags span {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

/* timeline */
.timeline { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.timeline h3 {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
  font-weight: 700;
}
.timeline ol { position: relative; padding-left: 26px; }
.timeline ol::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1.5px;
  background: linear-gradient(var(--line), var(--primary-soft));
}
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -26px; top: 9px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--primary);
}
.timeline .year {
  font-family: var(--en);
  font-weight: 800;
  font-size: 13px;
  color: var(--primary-deep);
  letter-spacing: 0.06em;
}
.timeline p { font-size: 14.5px; margin-top: 2px; line-height: 1.8; }

/* ---------- strengths ---------- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 860px) { .strength-grid { grid-template-columns: 1fr; } }
.strength-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}
.strength-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 122, 99, 0.35);
}
.strength-card .index {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--en);
  font-weight: 800;
  font-size: 40px;
  color: var(--surface-soft);
  line-height: 1;
  transition: color 0.35s ease;
}
.strength-card:hover .index { color: var(--primary-soft); }
.strength-card .ic {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #fff;
}
.strength-card .ic.g1 { background: linear-gradient(135deg, #0d7a63, #0a5945); }
.strength-card .ic.g2 { background: linear-gradient(135deg, #22617d, #174b63); }
.strength-card .ic.g3 { background: linear-gradient(135deg, #b45309, #92400e); }
.strength-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.5;
}
.strength-card > p { font-size: 14px; color: var(--muted); line-height: 1.95; }
.strength-card .points { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 16px; display: grid; gap: 8px; }
.strength-card .points li {
  font-size: 13px;
  color: var(--text);
  display: flex;
  gap: 9px;
  align-items: baseline;
  line-height: 1.7;
}
.strength-card .points li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  flex: none;
}

/* ---------- quality / dark section ---------- */
.quality {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(13, 122, 99, 0.22), transparent 60%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #d8e5e1;
  padding: 110px 0;
}
.quality .section-label { color: #5fd0b4; }
.quality .section-label::before { background: #5fd0b4; }
.quality .section-title { color: #f4f9f7; }
.quality .section-lede { color: #9db5ae; }
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 54px;
}
@media (max-width: 860px) { .quality-grid { grid-template-columns: 1fr; } }
.quality-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 30px 26px;
  backdrop-filter: blur(4px);
}
.quality-card .step {
  font-family: var(--en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #5fd0b4;
  text-transform: uppercase;
}
.quality-card h3 {
  font-family: var(--serif);
  color: #fff;
  font-size: 18.5px;
  margin: 12px 0 12px;
  line-height: 1.6;
}
.quality-card p { font-size: 13.5px; color: #9db5ae; line-height: 1.95; }
.quality-note {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(95, 208, 180, 0.08);
  border: 1px solid rgba(95, 208, 180, 0.25);
  border-radius: 14px;
  padding: 20px 22px;
  font-size: 13.5px;
  color: #c4d8d2;
  line-height: 1.9;
}
.quality-note svg { flex: none; color: #5fd0b4; margin-top: 3px; }

/* ---------- works ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary-deep); }
.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .works-grid { grid-template-columns: 1fr; } }

.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.3s ease;
}
a.work-card:hover, .work-card.linked:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 122, 99, 0.35);
}
.work-card.hidden-item { display: none; }

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.work-thumb svg.motif { width: 64%; height: auto; opacity: 0.95; }
.work-thumb .thumb-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--en);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(16, 33, 28, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(3px);
}
.t-emerald { background: linear-gradient(140deg, #0e8168 0%, #085945 90%); }
.t-teal    { background: linear-gradient(140deg, #10756f 0%, #0b4f4b 90%); }
.t-blue    { background: linear-gradient(140deg, #2a6d8c 0%, #1c4c63 90%); }
.t-indigo  { background: linear-gradient(140deg, #4a5a8c 0%, #333f66 90%); }
.t-amber   { background: linear-gradient(140deg, #c06514 0%, #92400e 90%); }
.t-slate   { background: linear-gradient(140deg, #46615b 0%, #2d423d 90%); }

.work-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.work-cat {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 8px;
}
.work-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 10px;
}
.work-card .desc { font-size: 13px; color: var(--muted); line-height: 1.85; flex: 1; }
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.work-meta span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 3px 10px;
}
.work-meta .go {
  margin-left: auto;
  background: none;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.works-note {
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
}

/* ---------- flow ---------- */
.flow-list { counter-reset: flow; display: grid; gap: 0; max-width: 780px; margin: 0 auto; }
.flow-item {
  counter-increment: flow;
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 26px 0;
}
.flow-item + .flow-item { border-top: 1px solid var(--line); }
.flow-item .no {
  font-family: var(--en);
  font-weight: 800;
  font-size: 15px;
  color: var(--primary-deep);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  display: grid;
  place-items: center;
  background: var(--surface);
  position: relative;
}
.flow-item .no::before { content: "0" counter(flow); }
.flow-item h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flow-item h3 .chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 3px 11px;
}
.flow-item p { font-size: 14px; color: var(--muted); line-height: 1.9; }
@media (max-width: 560px) {
  .flow-item { grid-template-columns: 46px 1fr; gap: 16px; }
  .flow-item .no { width: 40px; height: 40px; font-size: 13px; }
}

/* ---------- faq ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item[open] { border-color: rgba(13, 122, 99, 0.4); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q {
  flex: none;
  font-family: var(--en);
  font-weight: 800;
  color: var(--primary);
}
.faq-item summary .plus {
  margin-left: auto;
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  color: var(--faint);
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}
.faq-item summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item .a {
  padding: 0 22px 22px 60px;
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
}
@media (max-width: 560px) { .faq-item .a { padding-left: 22px; } }

/* ---------- contact ---------- */
.contact {
  background:
    radial-gradient(600px 320px at 15% 100%, rgba(13, 122, 99, 0.2), transparent 60%),
    linear-gradient(200deg, var(--dark-2) 0%, var(--dark) 100%);
  color: #d8e5e1;
  padding: 110px 0;
}
.contact .section-label { color: #5fd0b4; }
.contact .section-label::before { background: #5fd0b4; }
.contact .section-title { color: #fff; }
.contact .section-lede { color: #9db5ae; margin: 0 auto; }
.contact-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 620px;
  margin: 50px auto 0;
}
@media (max-width: 640px) { .contact-channels { grid-template-columns: 1fr; max-width: 440px; } }
.channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 30px 22px 26px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.channel:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(95, 208, 180, 0.5);
}
.channel .ic {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: #fff;
  color: var(--dark);
}
.channel h3 { color: #fff; font-size: 15.5px; font-weight: 700; }
.channel p { font-size: 12px; color: #9db5ae; line-height: 1.7; }
.channel .handle {
  margin-top: 10px;
  font-family: var(--en);
  font-size: 12px;
  font-weight: 600;
  color: #5fd0b4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.contact-foot {
  margin-top: 40px;
  text-align: center;
  font-size: 12.5px;
  color: #71887f;
  line-height: 2;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--dark);
  color: #71887f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 34px 0;
}
.site-footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer .brand { color: #e8f1ee; font-size: 17px; }
.site-footer .fnav { display: flex; gap: 22px; font-size: 12.5px; }
.site-footer .fnav a:hover { color: #5fd0b4; }
.site-footer .copy { font-size: 11.5px; letter-spacing: 0.05em; }

/* =========================================================
   Article pages
   ========================================================= */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #5fd0b4);
  z-index: 200;
  transition: width 0.08s linear;
}

.article-hero {
  padding: 128px 0 56px;
  background: linear-gradient(180deg, #fdfefe 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 28px;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--line); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.article-tags span {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.article-tags span.alt { background: var(--blue-soft); color: var(--blue); }
.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 22px;
}
.article-hero h1 .sub { display: block; font-size: 0.62em; color: var(--muted); margin-top: 8px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12.5px;
  color: var(--faint);
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-summary {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 22px 26px;
  font-size: 14px;
  line-height: 2.1;
}
.article-summary .t { font-weight: 800; color: var(--primary-deep); display: block; margin-bottom: 4px; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 48px;
  align-items: start;
  padding: 56px 0 90px;
}
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .article-toc { display: none; } }

.article-body h2 {
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 26px);
  color: var(--ink);
  line-height: 1.6;
  margin: 60px 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.article-body h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 64px; height: 2.5px;
  background: var(--primary);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h2 .n {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-family: var(--en);
  font-size: 15px;
  font-weight: 800;
  margin-right: 12px;
  vertical-align: -6px;
}
.article-body h3 { font-size: 17px; color: var(--ink); margin: 30px 0 12px; }
.article-body p { margin-bottom: 1.3em; font-size: 15px; line-height: 2.05; }
.article-body .intro-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.a-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.a-card h3 { margin-top: 0; }
.a-card .head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.a-card .head .badge {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--en);
  font-weight: 800;
  font-size: 18px;
}
.badge.b1 { background: linear-gradient(135deg, #0d7a63, #0a5945); }
.badge.b2 { background: linear-gradient(135deg, #22617d, #174b63); }
.badge.b3 { background: linear-gradient(135deg, #6d5aa8, #52407f); }
.badge.b4 { background: linear-gradient(135deg, #b45309, #92400e); }
.a-card .head .k { font-family: var(--en); font-size: 10.5px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--primary); }
.a-card .head h3 { font-size: 17px; margin: 2px 0 0; }
.a-card p { font-size: 14px; margin-bottom: 0.9em; }
.a-card .plist { display: grid; gap: 8px; margin-top: 4px; }
.a-card .plist li {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.85;
  display: flex;
  gap: 9px;
}
.a-card .plist li::before { content: "→"; color: var(--primary); font-weight: 800; flex: none; }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
@media (max-width: 640px) { .mini-grid { grid-template-columns: 1fr; } }
.mini-cell { background: var(--surface-soft); border-radius: 12px; padding: 16px 16px 14px; }
.mini-cell .s { font-family: var(--en); font-size: 10px; font-weight: 800; letter-spacing: 0.2em; color: var(--faint); text-transform: uppercase; }
.mini-cell h4 { font-size: 13.5px; color: var(--ink); margin: 5px 0 4px; }
.mini-cell p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.8; }

.rank-list { display: grid; gap: 10px; }
.rank-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.rank-item:hover { transform: translateX(4px); border-color: rgba(13, 122, 99, 0.35); }
.rank-item .rk {
  flex: none;
  font-family: var(--en);
  font-weight: 800;
  font-size: 24px;
  color: #cfdeda;
  width: 40px;
  line-height: 1.3;
}
.rank-item.top3 .rk { color: var(--primary); }
.rank-item.top1 { border: 1.5px solid var(--primary); box-shadow: var(--shadow-md); }
.rank-item.top1 .rk {
  background: var(--primary);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.rank-item h4 { font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.rank-item p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.85; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 20px; }
@media (max-width: 640px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-cell { border-radius: 14px; padding: 22px; }
.compare-cell.ai { background: var(--surface-soft); }
.compare-cell.human { background: var(--primary-soft); }
.compare-cell .t {
  font-family: var(--en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.compare-cell.ai .t { color: var(--muted); }
.compare-cell.human .t { color: var(--primary-deep); }
.compare-cell li { font-size: 13.5px; padding: 4px 0; display: flex; gap: 8px; }
.compare-cell li::before { content: "・"; color: var(--primary); font-weight: 800; }

.takeaway {
  background: var(--surface);
  border: 1px solid var(--primary-soft);
  outline: 3px solid var(--primary-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 26px 0;
}
.takeaway .t { font-weight: 800; color: var(--ink); font-size: 14.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.takeaway .t svg { color: var(--primary); }
.takeaway li { display: flex; gap: 10px; font-size: 14px; padding: 5px 0; line-height: 1.9; }
.takeaway li::before { content: "✓"; color: var(--primary); font-weight: 800; flex: none; }

/* author box */
.author-box {
  margin-top: 56px;
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: var(--radius);
  padding: 32px;
  color: #d8e5e1;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
@media (max-width: 560px) { .author-box { flex-direction: column; } }
.author-box .avatar { width: 68px; height: 68px; margin: 0; flex: none; }
.author-box .k { font-family: var(--en); font-size: 10.5px; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; color: #5fd0b4; }
.author-box h4 { font-family: var(--serif); color: #fff; font-size: 18px; margin: 6px 0 8px; }
.author-box p { font-size: 13px; color: #9db5ae; line-height: 1.95; margin-bottom: 16px; }
.author-box .btn { padding: 11px 24px; font-size: 13px; background: var(--primary); color: #fff; box-shadow: none; }
.author-box .btn:hover { background: #0e8f74; }

/* toc */
.article-toc { position: sticky; top: 96px; }
.toc-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.toc-box .t {
  font-family: var(--en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.toc-box a {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  line-height: 1.6;
  transition: all 0.2s ease;
}
.toc-box a:hover, .toc-box a.current {
  color: var(--primary-deep);
  border-left-color: var(--primary);
  font-weight: 700;
}
.toc-box a.sub { padding-left: 26px; font-size: 12px; }
.toc-cta {
  margin-top: 16px;
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: var(--radius);
  padding: 24px 22px;
  color: #9db5ae;
}
.toc-cta .t { font-family: var(--en); font-size: 10.5px; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; color: #5fd0b4; margin-bottom: 8px; }
.toc-cta p { font-size: 12px; line-height: 1.9; margin-bottom: 14px; }
.toc-cta a {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px;
  transition: background 0.25s ease;
}
.toc-cta a:hover { background: #0e8f74; }

.back-row { text-align: center; margin-top: 44px; }
