@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

/* ============================================
   新NISA証券口座比較2026 - Refined UI
   ============================================ */

:root {
  --ink-900: #0f1f2a;
  --ink-800: #162c3a;
  --ink-700: #1f3b46;
  --ink-600: #2a4a55;
  --teal-600: #0f766e;
  --teal-500: #14b8a6;
  --teal-300: #5eead4;
  --gold-500: #d97706;
  --gold-300: #fcd34d;
  --sand-100: #f7f3ea;
  --sand-50: #fbfaf7;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --white: #ffffff;

  --gradient-hero: linear-gradient(135deg, #0f1f2a 0%, #0f4c5c 45%, #0f766e 100%);
  --gradient-accent: linear-gradient(120deg, rgba(20, 184, 166, 0.12), rgba(245, 158, 11, 0.12));

  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 30px 60px rgba(15, 23, 42, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container-max: 1120px;

  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;

  --transition: 0.25s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.8;
  color: var(--gray-700);
  background:
    radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.12), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.14), transparent 40%),
    linear-gradient(180deg, var(--sand-50) 0%, var(--white) 40%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--ink-900);
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--teal-600);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.35);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Header / Hero
   ============================================ */
header {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 2rem 1.5rem;
}

header h1 {
  color: var(--white);
}

header p a {
  color: rgba(255, 255, 255, 0.85);
}

header p a:hover {
  color: var(--teal-300);
}

.site-header {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 1.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(0px);
  z-index: 0;
}

.site-header::before {
  top: -120px;
  left: -80px;
}

.site-header::after {
  bottom: -140px;
  right: -60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-sub {
  font-size: 0.8rem;
  opacity: 0.85;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--white);
  opacity: 0.85;
  transition: var(--transition);
}

.site-nav a:hover {
  opacity: 1;
  color: var(--teal-300);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
  padding-top: 2.5rem;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-content h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  margin: 0.9rem 0 1rem;
  color: var(--white);
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-weight: 700;
  transition: var(--transition);
  border: 1px solid transparent;
}

.button-primary {
  background: var(--gold-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: #e58b14;
  color: var(--white);
  transform: translateY(-2px);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.stat {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.panel-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  max-width: 420px;
}

.panel-title {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.panel-list {
  margin-left: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.panel-list li {
  margin-bottom: 0.5rem;
}

.panel-note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-content {
  animation: fadeUp 0.7s ease both;
}

.hero-panel {
  animation: fadeUp 0.9s ease both;
}

/* ============================================
   Main Content
   ============================================ */
main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.section {
  margin: 3rem 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  margin-bottom: 0.4rem;
}

.section-heading p {
  color: var(--gray-600);
}

.pr-notice {
  background: rgba(15, 118, 110, 0.08);
  color: var(--ink-700);
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.info-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.info-card p {
  margin-bottom: 0.4rem;
  color: var(--gray-700);
}

.muted {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.source-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.source-note a {
  color: var(--teal-600);
  text-decoration: underline;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.split-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.checklist {
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--gray-700);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-600);
  font-weight: 700;
}

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.link-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.3);
  color: var(--teal-600);
}

.note-box {
  margin-top: 1.5rem;
  background: var(--sand-100);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.note-box h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.note-links {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.note-links a {
  color: var(--teal-600);
  text-decoration: underline;
  font-size: 0.9rem;
}

.category-list {
  display: grid;
  gap: 1rem;
}

.category-list details {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 1rem 1rem;
}

.category-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-800);
  padding: 0.4rem 0;
  list-style: none;
}

.category-list summary::-webkit-details-marker {
  display: none;
}

.category-list summary::after {
  content: "+";
  float: right;
  color: var(--teal-600);
  font-size: 1.2rem;
}

.category-list details[open] summary::after {
  content: "−";
}

.category-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.category-list li {
  background: var(--sand-50);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.category-list li a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--gray-700);
  font-weight: 500;
}

.category-list li a:hover {
  color: var(--teal-600);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-800);
}

.faq-list p {
  margin-top: 0.6rem;
  color: var(--gray-700);
}

/* ============================================
   Article Pages
   ============================================ */
article {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

article h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(15, 118, 110, 0.12);
  padding-bottom: 0.8rem;
}

article h2 {
  font-size: 1.25rem;
  margin: 1.8rem 0 0.9rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--teal-600);
}

article h3 {
  font-size: 1.1rem;
  margin-top: 1.6rem;
  margin-bottom: 0.7rem;
  padding-left: 0.6rem;
  border-left: 3px solid rgba(15, 118, 110, 0.5);
}

article p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.article-meta {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
}

.lead {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

article ul {
  list-style: none;
  margin: 1rem 0;
}

article ul li {
  background: var(--sand-50);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
}

article ul li a {
  color: var(--teal-600);
  font-weight: 600;
}

.simple-list {
  list-style: disc;
  padding-left: 1.2rem;
}

.simple-list li {
  background: none;
  padding: 0;
  margin-bottom: 0.4rem;
}

.toc {
  background: var(--sand-50);
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
}

.toc-title {
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.toc li {
  margin-bottom: 0.4rem;
  padding-left: 0.8rem;
  border-left: 2px solid rgba(15, 118, 110, 0.5);
}

.toc a {
  color: var(--teal-600);
}

.highlight-box,
.notice-box,
.summary-box,
.cta-box,
.warning-box {
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}

.highlight-box {
  background: var(--gradient-accent);
  border-left: 4px solid var(--teal-600);
}

.notice-box {
  background: rgba(250, 204, 21, 0.18);
  border-left: 4px solid var(--gold-500);
}

.warning-box {
  background: rgba(248, 113, 113, 0.12);
  border-left: 4px solid #ef4444;
}

.summary-box {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.cta-box {
  background: var(--gradient-hero);
  color: var(--white);
  text-align: center;
}

.cta-box p {
  color: var(--white);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-500);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.cta-button:hover {
  background: #e58b14;
  transform: translateY(-2px);
}

.related-articles {
  background: var(--sand-50);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-top: 2rem;
}

.related-articles li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
}

.related-articles li:last-child {
  border-bottom: none;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--teal-600);
}

/* ============================================
   Tables
   ============================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: var(--gradient-hero);
  color: var(--white);
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  font-size: 0.95rem;
}

tbody tr {
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
}

tbody tr:hover {
  background: rgba(20, 184, 166, 0.08);
}

/* ============================================
   Affiliate
   ============================================ */
.affiliate-banners {
  background: var(--gradient-accent);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.affiliate-label {
  font-weight: 700;
  color: var(--gold-500);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.banner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.banner-row a {
  display: inline-block;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.banner-row a:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--teal-300);
}

footer small {
  font-size: 0.85rem;
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 920px) {
  .site-nav {
    justify-content: center;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding-bottom: 2.5rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  main {
    padding: 2rem 1rem 3rem;
  }

  article {
    padding: 1.5rem;
  }

  th,
  td {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Article Images
   ============================================ */
.article-image {
  margin: 2rem 0;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-500);
}

article h4 {
  font-size: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--ink-800);
}

article .split {
  margin: 1.5rem 0;
}

article .split-card {
  background: var(--sand-50);
}

article .split-card h4 {
  margin-top: 0;
}
/* SNS Share Buttons */
.share-buttons {
  margin: 3rem 0;
  text-align: center;
}

.share-buttons h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-left: none;
  padding-left: 0;
}

.share-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.share-btn:hover {
  opacity: 0.9;
  color: #fff;
}

.share-btn.twitter {
  background: #000;
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.line {
  background: #06c755;
}
