﻿:root {
  --bg-dark: #0a0e1a;
  --bg-dark2: #0d1220;
  --accent-cyan: #00d4ff;
  --accent-teal: #00b8a0;
  --text-primary: #f0f4ff;
  --text-secondary: #9ea5af;
  --text-muted: #4a5a70;
  --border: rgba(0, 212, 255, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --gradient-accent: linear-gradient(90deg, #00d4ff, #00b8a0);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: #f0f4f8;
  color: #13243a;
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 26, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
}

.header-logo img {
  display: block;
  height: 28px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-outline-sm,
.btn-primary-sm {
  min-height: 36px;
  padding: 8px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}

.btn-outline-sm {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
}

.btn-outline-sm:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline-sm.header-login-link {
  padding: 8px 0;
  border: none;
  border-radius: 0;
  font-weight: 500;
}

.btn-primary-sm {
  border: none;
  color: var(--bg-dark);
  background: var(--gradient-accent);
}

.btn-primary-sm:hover {
  opacity: 0.85;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: auto;
  padding: 130px 40px 56px;
  background:
    radial-gradient(circle at top, rgba(0, 212, 255, 0.14) 0%, rgba(0, 212, 255, 0.03) 36%, transparent 60%),
    linear-gradient(180deg, #1a2638 0%, #152031 52%, #101827 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url("/image/bgimg_sub.svg") center / cover no-repeat,
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.12) 0%, transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(0, 184, 160, 0.08) 0%, transparent 30%);
  opacity: 0.06;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 46%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
}

.hero-inner,
.content {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-heading {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  margin-bottom: 10px;
  color: var(--accent-cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 50px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.news-detail-title {
  margin: 0 auto 10px;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
}

.divider {
  width: 64px;
  height: 3px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--gradient-accent);
}

.terms-breadcrumb-wrap {
  max-width: none;
  margin: 0 auto;
  padding: 24px 40px 0;
  background: #f0f4f8;
}

.terms-breadcrumb {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #66758a;
  font-size: 16px;
}

.terms-breadcrumb a {
  color: #66758a;
  text-decoration: none;
  transition: color 0.2s;
}

.terms-breadcrumb a:hover {
  color: #0098c7;
}

.content {
  max-width: none;
  padding: 48px 40px 80px;
  background: #f0f4f8;
}

.news-page .hero {
  min-height: auto;
  padding: 130px 40px 56px;
}

.news-page .hero-inner,
.news-page .content {
  max-width: 1120px;
  margin: 0 auto;
  padding-right: 40px;
  padding-left: 40px;
}

.news-page .content {
  max-width: none;
  padding: 30px 40px 80px;
}

.news-page .hero-heading {
  max-width: 860px;
}

.news-page .section-title {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 50px;
  line-height: 1.25;
}

.news-page .terms-breadcrumb-wrap {
  max-width: none;
  padding: 24px 40px 0;
}

.news-page .terms-breadcrumb {
  max-width: 1120px;
  color: #66758a;
  font-size: 16px;
}

.news-page .terms-breadcrumb a {
  color: #66758a;
}

.news-page .news-heading-row h2 {
  color: #13243a;
  font-size: 32px;
  line-height: 1.4;
}

.news-body {
  max-width: 1120px;
  margin: 0 auto;
}

.terms-section {
  padding: 0;
}

.news-heading-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}

.news-heading-row h2 {
  color: #13243a;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.4;
}

.news-list {
  display: block;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 38, 66, 0.06);
}

.news-card {
  overflow: visible;
  border-bottom: 1px solid #e1e9f2;
  background: transparent;
  transition: background 0.2s;
}

.news-card:last-child {
  border-bottom: none;
}

.news-card:hover {
  background: #f8fbfe;
}

.news-card-link {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px 22px;
  padding: 22px 26px;
  color: inherit;
  text-decoration: none;
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.news-index-page .news-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 2px;
}

.news-index-page .news-meta span {
  color: #00CDE7;
}

.news-meta time {
  color: #66758a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-card h3 {
  grid-column: 2;
  color: #13243a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.news-card p {
  grid-column: 2;
  color: #66758a;
  font-size: 14px;
  line-height: 1.75;
}

.news-empty {
  padding: 28px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  color: #66758a;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 38, 66, 0.06);
}

.news-pagination {
  position: static;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.news-pagination a,
.news-pagination .current {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  color: #66758a;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.news-pagination a:hover,
.news-pagination .current {
  border-color: rgba(0, 152, 199, 0.42);
  color: #13243a;
  background: #e7f6fb;
}

.news-detail-page .news-body {
  max-width: 920px;
}

.news-detail-page .hero {
  padding: 96px 40px 32px;
}

.news-detail-article {
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 38, 66, 0.08);
}

.news-detail-article > .news-meta {
  margin: 40px 48px 14px;
}

.news-detail-page .news-detail-article > .news-meta span {
  color: #00CDE7;
}

.news-detail-article-title {
  margin: 0 48px 18px;
  padding: 0;
  color: #13243a;
  background: none;
  border-radius: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
}

.news-detail-article-title-no-lead {
  margin-bottom: 0;
  padding-bottom: 30px;
  border-bottom: 1px solid #e1e9f2;
}

.news-detail-lead {
  margin: 0 48px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e1e9f2;
  color: #13243a;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.news-detail-content {
  padding: 44px 48px 8px;
}

.news-detail-image-section {
  margin: 0 0 40px;
}

.news-detail-image-section img {
  display: block;
  width: 100%;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
}

.news-detail-image-section figcaption {
  margin-top: 12px;
  color: #66758a;
  font-size: 13px;
  line-height: 1.7;
}

.news-detail-content section + section {
  margin-top: 40px;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
  color: #13243a;
  letter-spacing: 0;
}

.news-detail-content h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 44px 0 16px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.45;
}

.news-detail-content > h2:first-child {
  margin-top: 0;
}

.news-detail-content h2::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: var(--gradient-accent);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

.news-detail-content h3 {
  position: relative;
  margin: 34px 0 10px;
  padding-left: 18px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
}

.news-detail-content h3::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--gradient-accent);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.16);
  transform: translateY(-50%);
}

.news-detail-content h4 {
  display: inline-block;
  position: relative;
  margin: 28px 0 10px;
  padding-bottom: 4px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.news-detail-content h4::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gradient-accent);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.14);
}

.news-detail-content p,
.news-detail-content li,
.news-detail-table {
  color: #4d5d72;
  font-size: 15px;
  line-height: 1.9;
}

.news-detail-content a {
  color: #0066c0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.news-detail-content a:hover {
  color: #004f94;
}

.news-detail-list {
  margin-top: 12px;
  padding-left: 22px;
}

.news-detail-content ul {
  margin-top: 12px;
  padding-left: 22px;
}

.news-detail-list li::marker,
.news-detail-content li::marker {
  color: var(--accent-cyan);
}

.news-detail-list li + li,
.news-detail-content li + li {
  margin-top: 8px;
}

.news-detail-table-wrap,
.news-detail-content > table {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
}

.news-detail-table,
.news-detail-content > table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}

.news-detail-table th,
.news-detail-table td,
.news-detail-content > table th,
.news-detail-content > table td {
  padding: 16px 18px;
  border-bottom: 1px solid #e1e9f2;
  text-align: left;
  vertical-align: top;
}

.news-detail-table tr:last-child th,
.news-detail-table tr:last-child td,
.news-detail-content > table tr:last-child th,
.news-detail-content > table tr:last-child td {
  border-bottom: none;
}

.news-detail-table thead th,
.news-detail-content > table thead th {
  color: #13243a;
  background: #edf6fb;
  font-weight: 800;
}

.news-detail-table tbody th,
.news-detail-content > table tbody th {
  width: 180px;
  color: #13243a;
  background: #f8fbfe;
  font-weight: 800;
}

.news-detail-content > p + p,
.news-detail-content > p + ul,
.news-detail-content > ul + p,
.news-detail-content > table + p,
.news-detail-content > p + table {
  margin-top: 16px;
}

.news-detail-content > p > img {
  display: block;
  margin-top: 18px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
}

.news-detail-footer {
  padding: 34px 48px 44px;
}

.news-detail-back {
  min-height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  color: #13243a;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.news-detail-back:hover {
  border-color: rgba(0, 152, 199, 0.42);
  color: #0098c7;
  background: #e7f6fb;
}

footer {
  padding: 48px 40px 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-dark2);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 24px;
  margin-bottom: 12px;
}

.footer-tagline {
  max-width: 220px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 860px) {
  header {
    gap: 12px;
    padding: 0 8px;
  }

  .header-logo {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .header-logo img {
    width: min(42vw, 178px);
    max-width: 100%;
    height: auto;
    max-height: 28px;
  }

  .header-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
    gap: 4px;
  }

  .btn-outline-sm.header-login-link {
    display: none;
  }

  .btn-primary-sm,
  .header-actions > .btn-outline-sm:not(.header-login-link) {
    width: 104px;
    min-height: 36px;
    padding: 8px 7px;
    white-space: nowrap;
    font-size: 12px;
  }

  .header-actions > .btn-outline-sm:not(.header-login-link) {
    width: 88px;
  }

  .hero {
    padding: 96px 20px 64px;
  }

  .hero::before {
    background: url("/image/bgimg_sp.svg") center center / 100% auto no-repeat;
    opacity: 0.18;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .hero-inner,
  .content,
  .terms-breadcrumb-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .news-page .hero-inner,
  .news-page .content,
  .news-page .terms-breadcrumb-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    padding: 72px 0 40px;
  }

  .news-page .hero {
    padding: 72px 0 40px;
  }

  .section-title {
    font-size: 32px;
    line-height: 1.35;
  }

  .news-page .section-title {
    font-size: 32px;
    line-height: 1.35;
  }

  .content {
    padding-top: 48px;
  }

  .news-page .content {
    padding-top: 30px;
  }

  .news-heading-row h2 {
    font-size: 22px;
  }

  .news-card-link {
    display: block;
    padding: 18px 20px;
  }

  .news-index-page .news-meta {
    margin-bottom: 6px;
  }

  .news-card h3 {
    font-size: 16px;
  }

  .news-card p {
    margin-top: 6px;
  }

  .news-detail-page .hero {
    padding-top: 76px;
    padding-bottom: 28px;
  }

  .news-detail-title {
    font-size: 22px;
    line-height: 1.45;
  }

  .news-detail-article > .news-meta {
    margin: 28px 22px 12px;
  }

  .news-detail-article-title {
    margin-left: 22px;
    margin-right: 22px;
    font-size: 22px;
    line-height: 1.55;
  }

  .news-detail-article-title-no-lead {
    padding-bottom: 30px;
  }

  .news-detail-lead {
    margin-left: 22px;
    margin-right: 22px;
    font-size: 15px;
    line-height: 1.75;
  }

  .news-detail-content,
  .news-detail-footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .news-detail-content {
    padding-top: 34px;
  }

  .news-detail-image-section {
    margin-bottom: 34px;
    padding-bottom: 30px;
  }

  .news-detail-content h2 {
    font-size: 22px;
  }

  .news-detail-content h3 {
    font-size: 19px;
  }

  .news-detail-table {
    min-width: 560px;
  }
}

@media (max-width: 380px) {
  header {
    gap: 8px;
    padding: 0 6px;
  }

  .header-logo img {
    width: min(38vw, 148px);
  }

  .header-actions {
    gap: 3px;
  }

  .btn-primary-sm,
  .header-actions > .btn-outline-sm:not(.header-login-link) {
    width: 96px;
    min-height: 34px;
    padding: 7px 5px;
    font-size: 11px;
  }

  .header-actions > .btn-outline-sm:not(.header-login-link) {
    width: 78px;
  }
}

