
:root {
  --ink: #e9e6dc;
  --muted: #b8b5ab;
  --paper: #f3f0e7;
  --paper-ink: #242a27;
  --forest-950: #07110f;
  --forest-900: #0a1814;
  --forest-800: #10231d;
  --forest-700: #17352a;
  --gold: #d4b46a;
  --gold-soft: #ead8a4;
  --line: rgba(212, 180, 106, .26);
  --danger: #efc1b8;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 0%, rgba(212,180,106,.10), transparent 28rem),
    linear-gradient(180deg, var(--forest-950), #0a1512 60%, #08100e);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.9;
  letter-spacing: .02em;
}
a { color: var(--gold-soft); }
img { max-width: 100%; }
.kte-progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), #fff0b8);
  z-index: 1000;
}
.kte-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7,17,15,.86);
  border-bottom: 1px solid var(--line);
}
.kte-header-inner {
  max-width: var(--max); margin: auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.kte-brand {
  color: white; text-decoration: none; font-size: .82rem; letter-spacing: .16em;
  font-weight: 700;
}
.kte-brand span { color: var(--gold); }
.kte-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.kte-nav a {
  text-decoration: none; color: var(--muted); padding: 8px 10px;
  border-radius: 999px; font-size: .78rem;
}
.kte-nav a:hover, .kte-nav a[aria-current="page"] {
  color: white; background: rgba(212,180,106,.13);
}
.kte-hero {
  min-height: 72vh; display: grid; place-items: end start;
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4,10,9,.90) 0%, rgba(4,10,9,.46) 55%, rgba(4,10,9,.74) 100%),
    linear-gradient(0deg, rgba(4,10,9,.92), transparent 52%),
    url("kte_hero_2026_kumamoto_earthquake_v2.png") center/cover no-repeat;
}
.kte-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 60%, rgba(212,180,106,.12));
  pointer-events: none;
}
.kte-hero-content {
  position: relative; z-index: 2; max-width: 980px;
  padding: clamp(48px, 8vw, 100px) max(24px, calc((100vw - var(--max))/2 + 24px));
}
.kte-kicker {
  color: var(--gold); font-weight: 700; letter-spacing: .18em;
  font-size: .78rem; text-transform: uppercase;
}
.kte-hero h1 {
  margin: 14px 0 12px; line-height: 1.15; letter-spacing: .04em;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(2.5rem, 7vw, 6.7rem);
}
.kte-hero p { max-width: 760px; font-size: clamp(1rem, 2vw, 1.3rem); color: #e2ded3; }
.kte-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.kte-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
  color: white; background: rgba(13,31,25,.78);
}
.kte-btn-primary { background: var(--gold); color: #182018; border-color: var(--gold); font-weight: 700; }
.kte-section { max-width: var(--max); margin: auto; padding: 74px 24px; }
.kte-section-head { max-width: 820px; margin-bottom: 34px; }
.kte-section-head h2 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.8rem, 4vw, 3.4rem); margin: 8px 0;
}
.kte-section-head p { color: var(--muted); }
.kte-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.kte-card {
  grid-column: span 4; min-height: 300px; border: 1px solid var(--line);
  border-radius: 22px; background: linear-gradient(145deg, rgba(23,53,42,.72), rgba(10,24,20,.88));
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.kte-card-media {
  aspect-ratio: 16/9; background-size: cover; background-position: center;
  position: relative;
}
.kte-card-media::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(7,17,15,.8), transparent); }
.kte-card-body { padding: 22px; display:flex; flex-direction:column; flex:1; }
.kte-card-label { color: var(--gold); font-size: .72rem; letter-spacing: .14em; font-weight: 700; }
.kte-card h3 { margin: 8px 0 10px; font-size: 1.25rem; line-height: 1.45; }
.kte-card p { color: var(--muted); font-size: .91rem; }
.kte-card a.kte-card-link { margin-top:auto; text-decoration:none; font-weight:700; }
.kte-ai-card { grid-column: span 3; min-height: 340px; }
.kte-ai-mark {
  width: 52px; height: 52px; border-radius: 50%; display:grid; place-items:center;
  border: 1px solid var(--line); color: var(--gold); font-family: Georgia, serif;
  font-size: 1.2rem; margin-bottom: 18px;
}
.kte-notice {
  border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  background: rgba(212,180,106,.07); color: var(--gold-soft);
}
.kte-timeline { display:grid; gap: 1px; background: var(--line); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.kte-timeline-row { display:grid; grid-template-columns: 160px 1fr; gap:20px; padding:18px 22px; background: var(--forest-900); }
.kte-timeline time { color: var(--gold); font-weight:700; }
.kte-footer { border-top:1px solid var(--line); padding:40px 24px; color:var(--muted); }
.kte-footer-inner { max-width:var(--max); margin:auto; display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.kte-research-hero {
  max-width: var(--max); margin:auto; padding:70px 24px 34px;
  display:grid; grid-template-columns: 1fr auto; gap:28px; align-items:end;
}
.kte-research-hero h1 {
  font-family:"Hiragino Mincho ProN","Yu Mincho",serif;
  font-size:clamp(2.2rem,5vw,4.8rem); line-height:1.2; margin:10px 0;
}
.kte-research-hero p { color:var(--muted); max-width:800px; }
.kte-badge {
  display:inline-block; color:var(--gold); border:1px solid var(--line); border-radius:999px;
  padding:6px 11px; font-size:.74rem; letter-spacing:.1em;
}
.kte-research-layout {
  max-width: var(--max); margin:auto; padding: 0 24px 80px;
  display:grid; grid-template-columns: minmax(0, 1fr) 270px; gap:34px; align-items:start;
}
.kte-paper {
  background: var(--paper); color: var(--paper-ink); border-radius:22px;
  padding: clamp(24px, 5vw, 68px); box-shadow: var(--shadow);
  overflow-wrap:anywhere;
}
.kte-paper h1,.kte-paper h2,.kte-paper h3,.kte-paper h4 {
  font-family:"Hiragino Mincho ProN","Yu Mincho",serif; line-height:1.45;
  scroll-margin-top:90px;
}
.kte-paper h2 { border-top:1px solid #d4cdbd; padding-top:1.4em; margin-top:2.6em; }
.kte-paper h3 { margin-top:2em; }
.kte-paper a { color:#365a4c; }
.kte-paper blockquote {
  margin:1.5em 0; padding:1px 20px; border-left:4px solid #9b7b34;
  background:#ebe5d7;
}
.kte-paper pre {
  overflow:auto; padding:18px; border-radius:12px; background:#17221e; color:#f2eee3;
}
.kte-paper code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.kte-paper table {
  width:100%; border-collapse:collapse; display:block; overflow:auto;
  font-size:.86rem; margin:1.5em 0;
}
.kte-paper th,.kte-paper td { border:1px solid #cfc6b3; padding:9px 10px; vertical-align:top; }
.kte-paper th { background:#e3dccd; }
.kte-paper img { border-radius:12px; }
.kte-raw-banner {
  margin-bottom:28px; padding:18px; border-radius:14px;
  background:#ede4cf; border:1px solid #d7c69d; color:#5c4c2b;
}
.kte-report-divider {
  margin:64px 0 30px; border-top:6px double #b6a982; padding-top:32px;
}
.kte-sidebar { position:sticky; top:84px; max-height:calc(100vh - 110px); overflow:auto; }
.kte-sidebox { border:1px solid var(--line); border-radius:18px; padding:18px; background:rgba(10,24,20,.82); margin-bottom:14px; }
.kte-sidebox h2 { font-size:.82rem; color:var(--gold); letter-spacing:.12em; text-transform:uppercase; margin:0 0 12px; }
.kte-toc { list-style:none; margin:0; padding:0; }
.kte-toc li { margin:6px 0; }
.kte-toc a { color:var(--muted); text-decoration:none; font-size:.78rem; line-height:1.35; display:block; padding:4px 0; }
.kte-toc a:hover { color:white; }
.kte-page-tools { display:flex; flex-wrap:wrap; gap:8px; }
.kte-page-tools a,.kte-page-tools button {
  border:1px solid var(--line); background:transparent; color:var(--ink);
  padding:8px 10px; border-radius:999px; font-size:.76rem; cursor:pointer; text-decoration:none;
}
.kte-backtop {
  position:fixed; right:20px; bottom:20px; width:46px; height:46px; border-radius:50%;
  border:1px solid var(--line); background:rgba(7,17,15,.92); color:var(--gold);
  display:none; place-items:center; cursor:pointer; z-index:30;
}
@media (max-width: 980px) {
  .kte-ai-card { grid-column:span 6; }
  .kte-card { grid-column:span 6; }
  .kte-research-layout { grid-template-columns:1fr; }
  .kte-sidebar { position:static; max-height:none; }
}
@media (max-width: 680px) {
  .kte-header-inner { padding:12px 16px; align-items:flex-start; }
  .kte-nav { display:none; }
  .kte-hero { min-height:66vh; }
  .kte-section { padding:54px 18px; }
  .kte-card,.kte-ai-card { grid-column:span 12; }
  .kte-timeline-row { grid-template-columns:1fr; gap:2px; }
  .kte-research-hero { grid-template-columns:1fr; padding:52px 18px 26px; }
  .kte-research-layout { padding:0 14px 60px; }
  .kte-paper { border-radius:16px; padding:24px 18px; }
}
@media print {
  .kte-header,.kte-sidebar,.kte-backtop,.kte-progress,.kte-footer { display:none !important; }
  body { background:white; color:black; }
  .kte-research-layout { display:block; max-width:none; padding:0; }
  .kte-paper { box-shadow:none; padding:0; }
}

.kte-video-panel {
  margin-top: 22px; border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; background: rgba(10,24,20,.86); box-shadow: var(--shadow);
}
.kte-video-wrap { position: relative; aspect-ratio: 16/9; background: #000; }
.kte-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kte-video-caption { padding: 18px 22px; color: var(--muted); }

/* FEATURED COVERAGE (note 2件) 均等2列グリッドレイアウト */
#featured .kte-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
#featured .kte-grid .kte-card {
  grid-column: span 1;
}
@media (max-width: 680px) {
  #featured .kte-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ChatGPT Deep Research & Math/Mermaid/Part Divider Styles
   ========================================================================== */
.kte-part-divider {
  margin: 64px 0 40px;
  padding: 32px 28px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(23, 53, 42, 0.92), rgba(10, 24, 20, 0.96));
  box-shadow: var(--shadow);
}

.kte-part-divider__badge {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kte-part-divider h2 {
  margin: 0 0 14px;
  color: #faf7f2;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.5rem, 3.8vw, 2.4rem);
  line-height: 1.3;
}

.kte-part-divider p {
  margin: 0;
  color: rgba(245, 241, 232, 0.88);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* Math Block */
.math-block {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px;
  background: rgba(4, 10, 9, 0.75);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 24px 0;
  color: var(--ivory);
  font-size: 1.05rem;
}

/* Mermaid Diagram */
.mermaid-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(4, 10, 9, 0.85);
  padding: 24px 20px;
  border-radius: 14px;
  margin: 28px 0;
  border: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.mermaid-wrap pre.mermaid {
  background: transparent;
  padding: 0;
  margin: 0;
  border: 0;
  color: var(--ivory);
  font-family: monospace;
}

/* Tables Responsive */
.kte-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}

.kte-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.kte-report-h1 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin: 20px 0 28px;
  line-height: 1.25;
  color: #faf7f2;
}

.kte-report-divider {
  margin: 48px 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   ChatGPT Page Dedicated Contrast & Styling (Scoped with body.kte-chatgpt-page)
   ========================================================================== */

body.kte-chatgpt-page .kte-paper {
  background: #f5f0e5;
  color: #202b27;
}

body.kte-chatgpt-page .kte-paper p,
body.kte-chatgpt-page .kte-paper li,
body.kte-chatgpt-page .kte-paper td {
  color: #24312c;
  line-height: 1.8;
}

body.kte-chatgpt-page .kte-paper h1,
body.kte-chatgpt-page .kte-paper h2,
body.kte-chatgpt-page .kte-paper h3,
body.kte-chatgpt-page .kte-paper h4,
body.kte-chatgpt-page .kte-paper strong {
  color: #10231d;
}

body.kte-chatgpt-page .kte-paper h2 {
  border-bottom: 1px solid #c9b681;
  padding-bottom: 6px;
  margin-top: 40px;
}

body.kte-chatgpt-page .kte-paper .kte-kicker,
body.kte-chatgpt-page .kte-paper .kte-card-label,
body.kte-chatgpt-page .kte-paper .kte-badge {
  color: #6b5018;
}

body.kte-chatgpt-page .kte-paper a {
  color: #17523e;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 600;
}

body.kte-chatgpt-page .kte-paper a:hover,
body.kte-chatgpt-page .kte-paper a:focus-visible {
  color: #0b382a;
  background: rgba(23, 82, 62, 0.08);
}

body.kte-chatgpt-page .kte-raw-banner {
  background: #eee3c9;
  border-color: #c9b681;
  color: #493b1e;
  font-weight: 500;
  line-height: 1.7;
}

body.kte-chatgpt-page .kte-raw-banner strong,
body.kte-chatgpt-page .kte-raw-banner a {
  color: #2e230d;
}

body.kte-chatgpt-page .kte-paper table {
  color: #202b27;
  border: 1px solid #c9b681;
}

body.kte-chatgpt-page .kte-paper th {
  color: #10231d;
  background: #ded3bd;
  font-weight: 700;
  border: 1px solid #c9b681;
}

body.kte-chatgpt-page .kte-paper td {
  color: #24312c;
  background: #faf7ef;
  border: 1px solid #ded3bd;
}

body.kte-chatgpt-page .kte-paper code:not(pre code) {
  color: #4b2f00;
  background: #e8dfca;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-family: monospace;
}

body.kte-chatgpt-page .kte-paper pre {
  background: #101a17;
  color: #f7f3e8;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
}

body.kte-chatgpt-page .kte-paper .math-block {
  color: #10231d;
  background: #e8dfca;
  border: 1px solid #c9b681;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}

body.kte-chatgpt-page .kte-report-h1 {
  color: #10231d;
}

body.kte-chatgpt-page .kte-part-divider {
  background: linear-gradient(135deg, #17352a, #0a1814);
  border-color: #d4b46a;
}

/* --------------------------------------------------------------------------
   1. Mermaid Diagram Sizing & Responsive Scroll
   -------------------------------------------------------------------------- */
body.kte-chatgpt-page .mermaid,
body.kte-chatgpt-page .kte-mermaid-wrap,
body.kte-chatgpt-page .mermaid-wrap {
  width: 100%;
  margin: 28px auto;
  padding: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  background: #2f3231;
  text-align: center;
  border: 1px solid #8a6b27;
  display: block;
}

body.kte-chatgpt-page .mermaid svg,
body.kte-chatgpt-page .kte-mermaid-wrap svg,
body.kte-chatgpt-page .mermaid-wrap svg {
  display: block;
  width: 100% !important;
  max-width: 1100px !important;
  height: auto !important;
  margin: 0 auto;
}

@media (max-width: 680px) {
  body.kte-chatgpt-page .mermaid,
  body.kte-chatgpt-page .kte-mermaid-wrap,
  body.kte-chatgpt-page .mermaid-wrap {
    padding: 14px;
    text-align: left;
  }

  body.kte-chatgpt-page .mermaid svg,
  body.kte-chatgpt-page .kte-mermaid-wrap svg,
  body.kte-chatgpt-page .mermaid-wrap svg {
    width: 760px !important;
    max-width: none !important;
  }
}

/* --------------------------------------------------------------------------
   2. Part 2 Audit Intro Block & Audit Report Body Dedicated Contrast
   -------------------------------------------------------------------------- */
body.kte-chatgpt-page .kte-audit-intro {
  background: #0d2b22 !important;
  color: #f5f0e5 !important;
  border: 1px solid #b89545 !important;
  border-radius: 20px;
  padding: clamp(28px, 5vw, 54px);
  margin: 72px 0 40px;
}

body.kte-chatgpt-page .kte-audit-intro .kte-kicker {
  color: #e4bd5d !important;
  font-weight: 700;
  letter-spacing: 0.14em;
}

body.kte-chatgpt-page .kte-audit-intro h1,
body.kte-chatgpt-page .kte-audit-intro h2,
body.kte-chatgpt-page .kte-audit-intro h3 {
  color: #fffaf0 !important;
}

body.kte-chatgpt-page .kte-audit-intro p,
body.kte-chatgpt-page .kte-audit-intro li {
  color: #e4e0d5 !important;
}

body.kte-chatgpt-page .kte-audit-intro a {
  color: #e4bd5d !important;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  font-weight: 700;
}

body.kte-chatgpt-page .kte-audit-intro a:hover,
body.kte-chatgpt-page .kte-audit-intro a:focus-visible {
  color: #fff2bd !important;
  background: rgba(255, 255, 255, 0.06);
}

body.kte-chatgpt-page .kte-audit-intro hr,
body.kte-chatgpt-page .kte-audit-intro::before,
body.kte-chatgpt-page .kte-audit-intro::after {
  border-color: rgba(228, 189, 93, 0.65);
}

/* ==========================================================================
   4-AI Pages Common Header Sizing & Layout (1-Column Structure)
   ========================================================================== */

.kte-ai-hero,
.kte-research-hero {
  display: block !important;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 96px) 24px 42px;
}

.kte-ai-hero-copy,
.kte-hero-content {
  max-width: 1120px;
}

.kte-ai-page-title,
.kte-research-hero h1 {
  margin: 18px 0 22px;
  max-width: 1100px;
  color: #f7f2e7 !important;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(3rem, 6.3vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}

.kte-ai-page-title .kte-title-line {
  display: block;
}

.kte-ai-page-title .kte-title-ja {
  margin-top: 0.12em;
  color: #f7f2e7 !important;
  font-size: 0.70em;
  letter-spacing: 0.015em;
  line-height: 1.18;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: nowrap;
}

.kte-ai-page-lead,
.kte-research-hero p {
  max-width: 850px;
  margin: 0;
  color: #d8d5cc !important;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.9;
}

.kte-ai-hero .kte-kicker,
.kte-research-hero .kte-kicker {
  color: #e2ba58 !important;
}

.kte-ai-hero .kte-badge,
.kte-research-hero .kte-badge {
  color: #e6c66f !important;
  background: rgba(212, 180, 106, 0.06) !important;
  border: 1px solid rgba(212, 180, 106, 0.45) !important;
}

.kte-ai-hero .kte-page-tools,
.kte-research-hero .kte-page-tools {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 28px;
}

.kte-ai-hero .kte-page-tools a,
.kte-ai-hero .kte-page-tools button,
.kte-research-hero .kte-page-tools a,
.kte-research-hero .kte-page-tools button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: #f7f2e7 !important;
  border: 1px solid rgba(212, 180, 106, 0.55) !important;
  background: rgba(8, 24, 19, 0.72) !important;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.kte-ai-hero .kte-page-tools a:hover,
.kte-ai-hero .kte-page-tools button:hover,
.kte-research-hero .kte-page-tools a:hover,
.kte-research-hero .kte-page-tools button:hover {
  color: #132019 !important;
  background: #d4b46a !important;
}

/* 上部固定ナビゲーションの視認性向上 */
.kte-header .kte-nav a {
  color: #c9c6bd;
}

.kte-header .kte-nav a:hover,
.kte-header .kte-nav a[aria-current="page"] {
  color: #ffffff !important;
}

.kte-header .kte-nav a[aria-current="page"] {
  background: rgba(212, 180, 106, 0.14) !important;
}

/* ページ固有アクセント (微細な色調整) */
body.kte-chatgpt-page .kte-kicker { color: #e2ba58 !important; }
body.kte-gemini-page .kte-kicker { color: #e5ab3c !important; }
body.kte-grok-page .kte-kicker { color: #f0d886 !important; }
body.kte-claude-page .kte-kicker { color: #d98e48 !important; }

/* レスポンシブ調整 */
@media (max-width: 820px) {
  .kte-ai-page-title,
  .kte-research-hero h1 {
    font-size: clamp(2.9rem, 10vw, 5rem);
    line-height: 1.03;
  }

  .kte-ai-page-title .kte-title-line:not(.kte-title-ja) {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .kte-ai-hero .kte-page-tools,
  .kte-research-hero .kte-page-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kte-ai-hero .kte-page-tools a,
  .kte-ai-hero .kte-page-tools button,
  .kte-research-hero .kte-page-tools a,
  .kte-research-hero .kte-page-tools button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .kte-ai-hero,
  .kte-research-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .kte-ai-page-title,
  .kte-research-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .kte-ai-page-title .kte-title-ja {
    font-size: 0.66em;
  }
}

/* --------------------------------------------------------------------------
   3. ChatGPT Page Hero Section 1-Column & Title Layout Fixes
   -------------------------------------------------------------------------- */
body.kte-chatgpt-page .kte-research-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

body.kte-chatgpt-page .kte-hero-content {
  max-width: 1100px;
}

body.kte-chatgpt-page .kte-chatgpt-title {
  margin: 18px 0 22px;
  max-width: 1000px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: #10231d;
}

body.kte-chatgpt-page .kte-chatgpt-title-en,
body.kte-chatgpt-page .kte-chatgpt-title-ja {
  display: block;
}

body.kte-chatgpt-page .kte-chatgpt-title-en {
  white-space: nowrap;
}

body.kte-chatgpt-page .kte-chatgpt-title-ja {
  margin-top: 0.12em;
  white-space: nowrap;
  font-size: 0.72em;
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: normal;
}

body.kte-chatgpt-page .kte-research-hero p {
  max-width: 820px;
  margin: 0 0 24px;
  color: #d8d5cc;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.9;
}

body.kte-chatgpt-page .kte-research-hero .kte-page-tools {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 16px;
}

body.kte-chatgpt-page .kte-page-tools a,
body.kte-chatgpt-page .kte-page-tools button {
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 820px) {
  body.kte-chatgpt-page .kte-chatgpt-title {
    font-size: clamp(3rem, 11vw, 5.2rem);
    line-height: 1;
  }

  body.kte-chatgpt-page .kte-chatgpt-title-en {
    white-space: normal;
    max-width: 10em;
  }

  body.kte-chatgpt-page .kte-chatgpt-title-ja {
    white-space: nowrap;
    font-size: 0.68em;
  }
}

@media (max-width: 520px) {
  body.kte-chatgpt-page .kte-page-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.kte-chatgpt-page .kte-page-tools a,
  body.kte-chatgpt-page .kte-page-tools button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body.kte-chatgpt-page .kte-chatgpt-title {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  body.kte-chatgpt-page .kte-chatgpt-title-en {
    max-width: 7em;
  }

  body.kte-chatgpt-page .kte-chatgpt-title-ja {
    font-size: 0.62em;
  }
}
