/*
Theme Name: Kensho Lab
Theme URI: https://example.com/
Author: 自動売買検証ラボ
Description: 自動売買検証ラボ公式サイト用オリジナルテーマ。お知らせ(投稿)をトップページのスライダー・ニュース一覧に自動反映します。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: kensho-lab
*/
:root {
  --bg: #f4f7fb;
  --bg-2: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f8fbfe;
  --surface-blue: #f1f7fc;
  --text: #1b2a3a;
  --muted: #5b6978;
  --line: #d7e2ec;
  --line-strong: #b7ccde;
  --brand: #004987;
  --brand-2: #0f74b8;
  --brand-3: #35b7ef;
  --brand-soft: #eaf5fd;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(11, 37, 63, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 18px;
  line-height: 1.9;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
  left: 16px; top: 16px; z-index: 1000; background: #fff; color: #000;
  border: 2px solid var(--brand-2); padding: 12px 16px; border-radius: 10px;
}

.topbar {
  background: var(--brand);
  color: rgba(255,255,255,0.94);
  font-size: 14px;
}
.topbar .wrap {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0;
}

header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0; flex-wrap: wrap;
}
.brand-area { display: flex; flex-direction: column; gap: 4px; }
.site-name {
  font-size: 31px; font-weight: 700; color: var(--brand); line-height: 1.35; letter-spacing: 0.03em;
}
.site-sub { font-size: 15px; color: var(--muted); }
nav ul {
  list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; flex-wrap: wrap;
}
nav a {
  display: inline-block; padding: 12px 16px; border-radius: 999px; color: var(--text);
  font-size: 16px; border: 1px solid transparent;
}
nav a:hover, nav a.is-current {
  text-decoration: none; background: var(--surface-blue); border-color: var(--line-strong);
}

main { padding: 28px 0 52px; }
section { padding: 18px 0; }

.news-hero,
.hero,
.panel,
.card,
.article,
.notice,
.table-card,
.news-list,
.contact-box,
.feature-card,
.value-card,
.mini-panel,
.news-stage,
.news-teasers,
.side-panel,
.profile-card,
.section-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero,
.panel,
.card,
.article,
.notice,
.contact-box,
.feature-card,
.value-card,
.mini-panel,
.side-panel,
.profile-card,
.section-banner { padding: 28px; }

.section-head {
  display: flex; justify-content: space-between; gap: 16px; align-items: end;
  margin-bottom: 18px; flex-wrap: wrap;
}
.section-main { max-width: 760px; }
.section-kicker {
  color: var(--brand-2); font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 6px;
}
.section-title {
  margin: 0 0 8px; color: var(--brand); font-size: 36px; line-height: 1.45;
}
.section-text { margin: 0; color: var(--muted); font-size: 18px; }

.news-slider {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.news-slider-viewport {
  overflow: hidden;
  border-radius: 18px;
  background: #0d2340;
  touch-action: pan-y;
  cursor: grab;
}
.news-slider-viewport:active { cursor: grabbing; }
.news-slider-track {
  display: flex;
  width: 100%;
  will-change: transform;
}
.news-slide {
  min-width: 100%;
  display: block;
  background: #0d2340;
}
.news-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.news-slider-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 16px;
}
.news-slider-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
}
.news-slider-btn:hover {
  background: var(--surface-blue);
}
.news-slider-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
  transform-origin: center;
}
.news-slider-btn.prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}
.news-slider-btn.next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}
.news-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.news-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #cfdae6;
  cursor: pointer;
  padding: 0;
}
.news-slider-dot.is-active {
  background: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(15, 116, 184, 0.12);
}

.grid-2 { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

h1, h2, h3 { color: var(--brand); }
h1 { margin: 0 0 14px; font-size: 46px; line-height: 1.4; }
h3 { margin: 0 0 10px; font-size: 25px; line-height: 1.55; }
p { margin: 0 0 14px; }
ul.clean { margin: 10px 0 0; padding-left: 22px; }
ul.clean li { margin-bottom: 10px; }

.news-hero {
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.news-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr); gap: 22px; align-items: start;
}
.news-stage {
  overflow: hidden;
  padding: 0;
  position: relative;
  background: #0d2340;
}
.news-stage img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
}
.news-stage-caption { display: none; }

.news-teasers {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}
.news-teaser-btn {
  display: block; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0; cursor: pointer;
  overflow: hidden;
}
.news-teaser-btn:hover { background: var(--surface-blue); border-color: var(--line-strong); }
.news-teaser-btn.is-active { box-shadow: inset 0 0 0 3px var(--brand-2); border-color: var(--brand-2); }
.news-teaser-btn:nth-child(5) { grid-column: 1 / -1; }
.news-teaser-thumb {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
}
.news-teaser-meta, .news-teaser-title, .news-teaser-text { display: none; }
.news-teaser-btn > span { display: none; }

.news-dots { display: flex; gap: 10px; justify-content: center; padding-top: 16px; }
.news-dot {
  width: 11px; height: 11px; border-radius: 50%; background: #d1deeb; border: none; cursor: pointer;
}
.news-dot.is-active { background: var(--brand-2); }

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f4f9fd 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--brand-soft);
  border: 1px solid var(--line-strong); color: var(--brand-2); font-size: 14px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 16px;
}
.hero-lead { font-size: 23px; margin: 0 0 12px; }
.hero-sub { font-size: 18px; color: var(--muted); margin: 0; }
.hero-actions { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 15px 22px; border-radius: 12px; font-size: 18px; font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { text-decoration: none; background: #003867; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { text-decoration: none; background: var(--surface-soft); }

.side-panel { background: linear-gradient(180deg, #f9fcff 0%, #f4f8fc 100%); }
.kpi-list { display: grid; gap: 12px; margin-top: 16px; }
.kpi {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--line); padding: 14px;
}
.kpi strong { font-size: 22px; color: var(--brand-2); }
.kpi span { font-size: 15px; color: var(--muted); }

.profile-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}
.profile-photo-wrap {
  max-width: 280px;
}
.profile-photo {
  width: 100%; border-radius: 18px; display: block; object-fit: cover; border: 1px solid var(--line);
}
.profile-name {
  font-size: 28px; color: var(--brand); margin: 0 0 8px; line-height: 1.4;
}
.profile-role {
  display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid var(--line); color: var(--brand-2); font-size: 14px; font-weight: 700;
}

.table-card { overflow: hidden; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 17px; background: var(--surface); }
.table-card th, .table-card td {
  padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.table-card tr:last-child th, .table-card tr:last-child td { border-bottom: none; }
.table-card th {
  width: 190px; background: linear-gradient(180deg, #f5fbff 0%, #fbfdff 100%); color: var(--brand);
}

.feature-card, .value-card, .mini-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}
.feature-no {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--brand); background: var(--brand-soft); border: 1px solid var(--line); font-weight: 700; margin-bottom: 12px;
}
.feature-card p, .value-card p, .mini-panel p, .article p, .panel p, .card p, .notice li,
.news-item p, .contact-item p, .contact-box p { color: var(--muted); }
.article .meta, .news-date {
  color: var(--muted); font-size: 14px; letter-spacing: 0.04em; margin-bottom: 8px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tag {
  background: var(--brand-soft); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-size: 16px;
}
.mini-panel strong { display: block; font-size: 22px; color: var(--brand); margin-bottom: 8px; }
.mini-panel span { color: var(--muted); font-size: 16px; }

.news-list { overflow: hidden; }
.news-item {
  padding: 20px 24px; border-bottom: 1px solid var(--line); background: #fff;
}
.news-item:last-child { border-bottom: none; }
.news-item h3 { margin-bottom: 6px; }
.news-item p { margin-bottom: 0; }

.contact-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  background: linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
}
.contact-item strong { display: block; color: var(--brand); font-size: 20px; margin-bottom: 6px; }
.contact-note { font-size: 16px; color: var(--muted); margin-top: 12px; }
.notice {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); border-left: 8px solid var(--brand-2);
}
.notice ul { margin: 8px 0 0; padding-left: 24px; }

footer {
  margin-top: 18px; background: #083968; color: rgba(255,255,255,0.92); border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-inner { padding: 28px 0 42px; }
.footer-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.footer-text { max-width: 760px; font-size: 16px; line-height: 1.8; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.footer-links a {
  color: #fff; border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 10px 14px; display: inline-block;
}
.footer-links a:hover { text-decoration: none; background: rgba(255,255,255,0.08); }

@media (max-width: 1024px) {
  .news-hero-grid, .hero-grid, .grid-2, .grid-3, .grid-4, .team-grid, .contact-grid, .profile-card { grid-template-columns: 1fr; }
  .profile-photo-wrap { max-width: 260px; }
}
@media (max-width: 860px) {
  .news-teasers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-teaser-btn:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { width: min(calc(100% - 20px), var(--max)); }
  .news-hero, .hero, .side-panel, .panel, .card, .article, .notice, .contact-box, .feature-card, .value-card, .mini-panel, .profile-card { padding: 22px 20px; }
  h1 { font-size: 34px; }
  .hero-lead { font-size: 20px; }
  .section-title { font-size: 30px; }
  h3 { font-size: 23px; }
  .table-card th, .table-card td { display: block; width: 100%; padding: 12px 14px; }
  .table-card th { border-bottom: none; }
  .news-teasers { grid-template-columns: 1fr; }
  .news-teaser-btn:nth-child(5) { grid-column: auto; }
  .news-slider { padding: 12px; border-radius: 20px; }
  .news-slider-ui { gap: 12px; }
  .news-slider-btn { width: 44px; height: 44px; }
}

/* KIOXIA-like homepage layout */
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.topbar-links a,
.topbar-note {
  color: rgba(255,255,255,0.94);
  font-size: 13px;
}
.topbar-links a:hover { text-decoration: underline; }
.header-kioxia-like {
  min-height: 88px;
}
.home-main {
  width: 100%;
  padding: 0 0 56px;
}
.kv-section {
  padding: 0 0 28px;
  background: #fff;
}
.kv-slider-wrap {
  position: relative;
}
.kv-slider-viewport {
  overflow: hidden;
  width: 100%;
  background: #eef3f8;
  touch-action: pan-y;
  cursor: grab;
}
.kv-slider-viewport:active { cursor: grabbing; }
.kv-slider-track {
  display: flex;
  width: 100%;
  will-change: transform;
}
.kv-slide {
  min-width: 100%;
  display: block;
  background: #eef3f8;
}
.kv-slide img {
  width: 100%;
  height: min(680px, 46vw);
  min-height: 320px;
  display: block;
  object-fit: cover;
}
.kv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.kv-arrow.prev { left: 18px; }
.kv-arrow.next { right: 18px; }
.kv-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
}
.kv-arrow.prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.kv-arrow.next::before { transform: translate(-65%, -50%) rotate(45deg); }
.kv-controls-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 16px;
}
.kv-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kv-bar {
  width: 54px;
  height: 4px;
  border: none;
  padding: 0;
  background: #d6e0ea;
  cursor: pointer;
}
.kv-bar.is-active { background: var(--brand); }
.kv-pause {
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 14px;
  cursor: pointer;
}
.news-stream-section,
.split-section,
.link-panel-section,
.wide-feature-section,
.corporate-info-section,
.important-section {
  padding: 40px 0;
}
.news-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.news-title {
  margin: 0;
  font-size: 34px;
}
.news-more {
  color: var(--brand);
  font-weight: 700;
}
.news-stream {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.news-stream li {
  display: grid;
  grid-template-columns: 160px 130px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.news-stream li a {
  color: var(--text);
}
.news-cat {
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}
.split-light { background: linear-gradient(180deg, #f8fbff 0%, #f2f7fb 100%); }
.split-blue { background: linear-gradient(180deg, #0057a4 0%, #0b6ab8 100%); }
.split-panel {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 0;
  background: #fff;
  overflow: hidden;
}
.split-panel.reverse {
  grid-template-columns: 0.95fr 1.05fr;
  background: transparent;
}
.split-image img,
.wide-feature-image img,
.corporate-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.split-image {
  min-height: 420px;
}
.split-copy {
  padding: 52px 48px;
  background: #f1f5f8;
}
.split-copy-dark {
  background: transparent;
  color: #fff;
}
.split-copy-dark h2,
.split-copy-dark p,
.split-copy-dark .split-en { color: #fff; }
.split-en {
  display: block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
}
.split-copy h2 {
  margin: 0 0 18px;
  font-size: 38px;
}
.split-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 700;
}
.split-link::after {
  content: "›";
  font-size: 22px;
  line-height: 1;
}
.split-link-light { color: #fff; }
.link-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.link-panel {
  display: block;
  padding: 34px 32px;
  background: #fff;
  border: 1px solid var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
}
.link-panel:hover {
  text-decoration: none;
  background: #f7fbff;
  transform: translateY(-2px);
}
.link-panel-en {
  display: block;
  color: var(--brand);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 12px;
}
.link-panel strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  margin-bottom: 8px;
}
.link-panel span:last-child {
  color: var(--muted);
}
.wide-feature-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.wide-feature-image { min-height: 400px; }
.wide-feature-copy {
  padding: 46px 40px;
  background: #f3f7fa;
}
.wide-feature-copy h2 {
  margin: 0 0 16px;
  font-size: 34px;
}
.profile-visual-card {
  background: rgba(255,255,255,0.12);
  padding: 30px;
  display: grid;
  gap: 18px;
  align-content: center;
}
.profile-photo.large {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 0;
  border: none;
}
.profile-visual-text {
  text-align: center;
}
.profile-visual-text .profile-name {
  color: #fff;
  margin-bottom: 0;
}
.profile-visual-text .profile-role {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.corporate-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.corporate-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.corporate-card:hover { text-decoration: none; }
.corporate-card img {
  aspect-ratio: 16 / 9;
}
.corporate-card-body {
  padding: 24px;
}
.corporate-card-body h3 {
  margin: 0 0 10px;
}
.corporate-card-body p {
  color: var(--muted);
  margin: 0;
}
.important-box {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 30px;
}
.important-lead {
  margin: 0 0 18px;
  font-size: 19px;
}
.important-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.important-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.important-list li:first-child { border-top: none; }
.important-list li span { color: var(--muted); }

@media (max-width: 1024px) {
  .news-stream li,
  .important-list li,
  .split-panel,
  .split-panel.reverse,
  .wide-feature-card,
  .corporate-info-grid,
  .link-panel-grid {
    grid-template-columns: 1fr;
  }
  .split-image,
  .wide-feature-image {
    min-height: 300px;
  }
  .split-copy,
  .wide-feature-copy {
    padding: 34px 28px;
  }
  .split-en { font-size: 38px; }
}

@media (max-width: 720px) {
  .topbar-inner,
  .news-heading-row,
  .kv-controls-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar-links { gap: 12px; }
  .kv-arrow {
    width: 44px;
    height: 44px;
  }
  .kv-arrow.prev { left: 10px; }
  .kv-arrow.next { right: 10px; }
  .kv-slide img {
    height: 58vw;
    min-height: 220px;
  }
  .news-stream li {
    gap: 6px;
    padding: 14px 0;
  }
  .split-en {
    font-size: 30px;
  }
  .split-copy h2,
  .wide-feature-copy h2,
  .news-title {
    font-size: 28px;
  }
  .link-panel strong {
    font-size: 24px;
  }
}

/* ===== 2026 UI refresh: smart / readable / premium ===== */
:root {
  --bg: #f3f6fb;
  --bg-2: #edf2f8;
  --surface: rgba(255,255,255,0.9);
  --surface-soft: #f7faff;
  --surface-blue: #eef5ff;
  --text: #16212e;
  --muted: #607084;
  --line: rgba(17, 53, 95, 0.10);
  --line-strong: rgba(17, 94, 176, 0.22);
  --brand: #0b3f74;
  --brand-2: #1268c4;
  --brand-3: #46b5ff;
  --brand-soft: #ebf5ff;
  --shadow: 0 22px 60px rgba(17, 42, 74, 0.08);
  --shadow-soft: 0 10px 30px rgba(17, 42, 74, 0.05);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1240px;
}

html {
  scroll-padding-top: 92px;
}

body {
  font-size: 18px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at top right, rgba(70, 181, 255, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(18, 104, 196, 0.09), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 54%, #eef3f8 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 60, 120, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 60, 120, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.4), transparent 70%);
}

.wrap {
  width: min(calc(100% - 40px), var(--max));
}

.topbar {
  background: linear-gradient(90deg, #092d55 0%, #0d4f8f 55%, #0c5ea9 100%);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

header {
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 64, 116, 0.08);
  box-shadow: 0 10px 30px rgba(17, 42, 74, 0.04);
}

.header-inner {
  padding: 16px 0;
  min-height: 84px;
}

.site-name {
  font-size: clamp(28px, 2.2vw, 36px);
  letter-spacing: 0.04em;
}

.site-sub {
  font-size: 14px;
  color: #63758a;
}

nav ul {
  gap: 8px;
}

nav a {
  position: relative;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 15px;
  color: #213245;
  transition: all 0.22s ease;
}

nav a:hover,
nav a.is-current {
  background: rgba(18, 104, 196, 0.08);
  border-color: rgba(18, 104, 196, 0.14);
  color: var(--brand);
  transform: translateY(-1px);
}

main.wrap,
.home-main {
  position: relative;
  z-index: 1;
}

main.wrap {
  padding-top: 34px;
  padding-bottom: 68px;
}

.home-main {
  padding-bottom: 72px;
}

section {
  padding: 28px 0;
}

.section-head {
  align-items: end;
  margin-bottom: 20px;
}

.section-kicker,
.split-en,
.link-panel-en {
  letter-spacing: 0.08em;
}

.section-title,
.news-title,
.split-copy h2,
.wide-feature-copy h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.section-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.hero,
.panel,
.card,
.article,
.notice,
.table-card,
.news-list,
.contact-box,
.feature-card,
.value-card,
.mini-panel,
.side-panel,
.profile-card,
.section-banner,
.split-panel,
.wide-feature-card,
.link-panel,
.corporate-card,
.important-box,
.news-slider,
.news-stage,
.news-teasers {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
}

.panel,
.card,
.article,
.notice,
.contact-box,
.feature-card,
.value-card,
.mini-panel,
.side-panel,
.profile-card,
.section-banner,
.link-panel,
.important-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,251,255,0.95) 100%);
}

.table-card,
.news-list,
.corporate-card,
.wide-feature-card,
.split-panel,
.news-slider {
  background: rgba(255,255,255,0.95);
}

.panel:hover,
.card:hover,
.article:hover,
.feature-card:hover,
.value-card:hover,
.link-panel:hover,
.corporate-card:hover,
.mini-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.grid-2,
.grid-3,
.grid-4,
.team-grid,
.contact-grid,
.link-panel-grid,
.corporate-info-grid {
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.value-card,
.article,
.panel,
.card,
.notice,
.contact-box,
.profile-card,
.mini-panel {
  padding: 30px;
}

.feature-no {
  width: 46px;
  height: 46px;
  background: linear-gradient(180deg, #f8fbff 0%, #eaf5ff 100%);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(18, 104, 196, 0.08);
}

.kv-section {
  background: transparent;
  padding-top: 16px;
  padding-bottom: 34px;
}

.kv-slider-wrap {
  width: min(calc(100% - 40px), 1400px);
  margin: 0 auto;
}

.kv-slider-viewport {
  border-radius: 30px;
  border: 1px solid rgba(14, 61, 112, 0.08);
  box-shadow: 0 26px 70px rgba(14, 61, 112, 0.16);
  background: #dfe9f4;
}

.kv-slide img {
  height: min(760px, 48vw);
  min-height: 360px;
}

.kv-arrow {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.74);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transition: all 0.22s ease;
}

.kv-arrow:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-50%) scale(1.04);
}

.kv-controls-wrap {
  gap: 18px;
  padding-top: 18px;
}

.kv-controls {
  gap: 12px;
}

.kv-bar {
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: #d4dfeb;
  transition: all 0.22s ease;
}

.kv-bar.is-active {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 0 0 4px rgba(18, 104, 196, 0.08);
}

.kv-pause {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf5ff;
  border: 1px solid rgba(18, 104, 196, 0.08);
  font-weight: 700;
}

.news-stream-section,
.split-section,
.link-panel-section,
.wide-feature-section,
.corporate-info-section,
.important-section {
  padding: 44px 0;
}

.news-stream {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 26px;
  box-shadow: var(--shadow-soft);
}

.news-stream li {
  grid-template-columns: 170px 120px 1fr;
  gap: 22px;
  min-height: 76px;
  transition: background 0.18s ease;
}

.news-stream li:hover {
  background: rgba(18, 104, 196, 0.03);
}

.news-stream li a {
  font-weight: 700;
  color: var(--text);
}

.news-date {
  font-variant-numeric: tabular-nums;
  color: #67788d;
}

.news-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 92px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf5ff;
  border: 1px solid rgba(18, 104, 196, 0.08);
  color: var(--brand);
}

.split-light {
  background: transparent;
}

.split-blue {
  background: linear-gradient(135deg, #0c4280 0%, #1268c4 55%, #2baef0 100%);
}

.split-panel,
.wide-feature-card {
  overflow: hidden;
}

.split-panel {
  grid-template-columns: 1.08fr 0.92fr;
}

.split-panel.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-image,
.wide-feature-image {
  position: relative;
  min-height: 430px;
  background: linear-gradient(135deg, #dce8f5 0%, #edf4fb 100%);
}

.split-image img,
.wide-feature-image img,
.corporate-card img {
  object-fit: cover;
}

.split-copy,
.wide-feature-copy {
  padding: 52px 48px;
}

.split-copy {
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
}

.split-copy-dark {
  background: transparent;
}

.split-copy p,
.wide-feature-copy p,
.link-panel span:last-child,
.corporate-card-body p,
.value-card p,
.feature-card p,
.article p,
.panel p,
.card p,
.notice li,
.contact-item p,
.contact-note,
.footer-text,
.footer-links a,
.mini-panel span {
  color: var(--muted);
}

.split-copy-dark p,
.split-copy-dark .split-en,
.split-copy-dark h2,
.profile-visual-text .profile-name,
.profile-visual-text .profile-role {
  color: #fff;
}

.split-en {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  margin-bottom: 12px;
}

.split-link,
.news-more,
.footer-links a {
  transition: all 0.2s ease;
}

.split-link:hover,
.news-more:hover {
  transform: translateX(2px);
  text-decoration: none;
}

.link-panel {
  padding: 34px 32px;
  border-radius: var(--radius);
}

.link-panel-en {
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 800;
  margin-bottom: 14px;
}

.link-panel strong {
  font-size: 28px;
  margin-bottom: 10px;
}

.profile-visual-card {
  border-radius: var(--radius);
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

.profile-photo.large {
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}

.corporate-card {
  border-radius: var(--radius);
}

.corporate-card-body {
  padding: 26px;
}

.corporate-card-body h3 {
  font-size: 28px;
}

.important-box {
  padding: 34px;
}

.important-lead {
  font-size: 20px;
  line-height: 1.8;
}

.important-list li,
.news-item {
  font-variant-numeric: tabular-nums;
}

.news-list {
  padding: 6px 0;
}

.news-item {
  padding: 24px 28px;
}

.news-item h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.table-card {
  overflow: hidden;
  border-radius: var(--radius);
}

.table-card table {
  font-size: 17px;
}

.table-card th,
.table-card td {
  padding: 18px 20px;
}

.table-card th {
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fd 100%);
  color: var(--brand);
}

.profile-card {
  gap: 34px;
  align-items: center;
}

.profile-photo {
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.contact-item {
  border-radius: 18px;
}

.notice {
  border-left: none;
  position: relative;
  overflow: hidden;
}

.notice::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-3));
}

footer {
  background: linear-gradient(180deg, #0b3360 0%, #08294c 100%);
  margin-top: 32px;
}

.footer-inner {
  padding: 34px 0 50px;
}

.footer-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.footer-text {
  max-width: 820px;
  color: rgba(255,255,255,0.76);
}

.footer-links {
  gap: 12px;
}

.footer-links a {
  color: #fff;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
}

.footer-links a:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .grid-3,
  .grid-4,
  .team-grid,
  .contact-grid,
  .corporate-info-grid,
  .link-panel-grid,
  .split-panel,
  .split-panel.reverse,
  .wide-feature-card,
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-panel,
  .split-panel.reverse,
  .wide-feature-card,
  .hero-grid,
  .grid-3,
  .grid-4,
  .contact-grid,
  .team-grid,
  .corporate-info-grid,
  .link-panel-grid {
    gap: 20px;
  }

  .split-panel,
  .split-panel.reverse,
  .wide-feature-card,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .split-image,
  .wide-feature-image {
    min-height: 320px;
  }
}

@media (max-width: 860px) {
  .wrap {
    width: min(calc(100% - 24px), var(--max));
  }

  .topbar .wrap,
  .header-inner,
  .topbar-inner {
    align-items: flex-start;
  }

  nav ul {
    gap: 6px;
  }

  nav a {
    font-size: 14px;
    padding: 10px 14px;
  }

  .news-stream li,
  .important-list li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .news-stream {
    padding: 0 18px;
  }

  .feature-card,
  .value-card,
  .article,
  .panel,
  .card,
  .notice,
  .contact-box,
  .profile-card,
  .mini-panel,
  .important-box,
  .split-copy,
  .wide-feature-copy,
  .corporate-card-body,
  .link-panel {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
    line-height: 1.75;
  }

  .site-name {
    font-size: 28px;
  }

  .section-title,
  .news-title,
  .split-copy h2,
  .wide-feature-copy h2,
  .profile-name {
    font-size: 28px;
  }

  .split-en,
  .link-panel-en {
    font-size: 26px;
  }

  .kv-slider-wrap {
    width: min(calc(100% - 16px), 1400px);
  }

  .kv-slider-viewport {
    border-radius: 22px;
  }

  .kv-slide img {
    height: 60vw;
    min-height: 220px;
  }

  .kv-arrow {
    width: 44px;
    height: 44px;
  }

  .kv-arrow.prev { left: 8px; }
  .kv-arrow.next { right: 8px; }

  .kv-controls-wrap,
  .news-heading-row,
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-3,
  .grid-4,
  .team-grid,
  .contact-grid,
  .corporate-info-grid,
  .link-panel-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo.large {
    max-width: 100%;
  }
}

/* ===== WordPress additions ===== */
.news-item h3 a { color: var(--brand); }
.news-item h3 a:hover { text-decoration: underline; }
.news-item-cat {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 92px; padding: 4px 12px; margin-left: 10px; border-radius: 999px;
  background: #edf5ff; border: 1px solid rgba(18, 104, 196, 0.08);
  color: var(--brand); font-size: 13px; font-weight: 700; vertical-align: middle;
}
.entry-header { margin-bottom: 20px; }
.entry-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.entry-thumbnail img {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft); margin-bottom: 24px;
}
.entry-content { background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,251,255,0.95) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 34px; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.entry-content h2 { font-size: 30px; margin: 28px 0 14px; }
.entry-content h3 { margin-top: 24px; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: linear-gradient(180deg, #f7fbff 0%, #eef5fd 100%); color: var(--brand); }
.entry-footer { margin-top: 28px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-strong); color: var(--brand); font-weight: 700;
}
.back-link:hover { text-decoration: none; background: var(--surface-blue); }
.wp-pagination { display: flex; justify-content: center; margin-top: 28px; }
.wp-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.wp-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
  padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong);
  color: var(--brand); font-weight: 700;
}
.wp-pagination .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.wp-pagination a.page-numbers:hover { text-decoration: none; background: var(--surface-blue); }
.no-posts { color: var(--muted); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--muted); font-size: 14px; margin-top: 6px; }
.screen-reader-text { position: absolute; left: -9999px; }
