.article-page{
  background:
    radial-gradient(circle at top left, rgba(34,211,238,.10), transparent 22%),
    radial-gradient(circle at top right, rgba(139,92,246,.12), transparent 24%),
    linear-gradient(180deg, #071120 0%, #0b1730 28%, #eef3f8 28%, #eef3f8 100%);
}

.article-hero{
  padding: 42px 0 34px;
}

.article-breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:18px;
  color:rgba(255,255,255,.76);
  font-size:13px;
}

.article-breadcrumbs a{ color:#fff; opacity:.88; }

.article-hero-card{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) 420px;
  gap:28px;
  align-items:stretch;
  padding:28px;
  border-radius:30px;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 28px 80px rgba(0,0,0,.24);
  backdrop-filter:blur(10px);
}

.article-category-chip{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  font-weight:700;
  font-size:13px;
}

.article-title{
  margin:16px 0 14px;
  color:#fff;
  font-size:clamp(34px, 4.5vw, 62px);
  line-height:1.08;
  letter-spacing:-.03em;
}

.article-lead{
  margin:0 0 20px;
  color:rgba(255,255,255,.84);
  font-size:clamp(16px,1.7vw,18px);
  line-height:1.9;
}

.article-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  color:rgba(255,255,255,.68);
  font-size:13px;
}

.article-meta-row span{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}

.article-hero-media img{
  width:100%;
  height:100%;
  min-height:320px;
  object-fit:cover;
  border-radius:24px;
  box-shadow:0 18px 54px rgba(0,0,0,.24);
}

.article-body-section{
  padding: 24px 0 90px;
}

.article-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:26px;
  align-items:start;
}

.article-content-shell{
  padding:40px;
  border-radius:30px;
  box-shadow:0 24px 60px rgba(15,23,42,.10);
}

.article-entry{
  font-size:17px;
  line-height:2;
}

.article-entry > * + *{
  margin-top:1.15em;
}

.article-entry p{
  color:#334155;
  font-size:17px;
  line-height:2;
  letter-spacing:.01em;
}

.article-entry strong{
  color:#0f172a;
  font-weight:800;
}

.article-entry a{
  color:#2563eb;
  text-decoration:underline;
  text-underline-offset:3px;
}

.article-entry h2,
.article-entry h3,
.article-entry h4{
  position:relative;
  margin-top:1.9em;
  color:#0f172a;
  scroll-margin-top:90px;
}

.article-entry h2{
  padding:18px 20px 18px 22px;
  border-radius:22px;
  background:linear-gradient(135deg, rgba(79,124,255,.10), rgba(34,211,238,.08));
  border-left:5px solid #4f7cff;
  font-size:clamp(24px,2.8vw,32px);
  line-height:1.35;
}

.article-entry h3{
  padding-left:18px;
  font-size:clamp(20px,2.2vw,26px);
  line-height:1.45;
}

.article-entry h3::before{
  content:"";
  position:absolute;
  left:0;
  top:.25em;
  width:8px;
  height:calc(100% - .5em);
  border-radius:999px;
  background:linear-gradient(180deg, #22d3ee, #4f7cff);
}

.article-entry ul,
.article-entry ol{
  padding-left:1.2em;
  color:#334155;
}

.article-entry li{
  margin:.5em 0;
  padding-left:.2em;
}

.article-entry blockquote{
  margin:1.8em 0;
  padding:22px 24px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(15,23,42,.04), rgba(15,23,42,.02));
  border-left:4px solid #8b5cf6;
  color:#334155;
  font-weight:600;
}

.article-entry mark{
  background:linear-gradient(transparent 55%, rgba(250,204,21,.45) 55%);
  color:inherit;
  padding:0 .15em;
}

.article-entry img{
  border-radius:22px;
  box-shadow:0 18px 44px rgba(15,23,42,.10);
}

.article-entry .wp-block-image,
.article-entry figure{
  margin:2em 0;
}

.article-entry table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.10);
}

.article-entry th,
.article-entry td{
  padding:14px 16px;
  border-bottom:1px solid rgba(15,23,42,.08);
}

.article-entry th{
  background:#eff6ff;
  color:#0f172a;
  text-align:left;
}

.article-entry code{
  padding:.18em .45em;
  border-radius:8px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:.95em;
}

.article-entry hr{
  border:none;
  border-top:1px solid rgba(15,23,42,.10);
  margin:2.4em 0;
}

.article-share-wrap{
  margin-top:34px;
  padding-top:26px;
  border-top:1px solid rgba(15,23,42,.10);
}

.article-share-label{
  margin:0 0 12px;
  color:#64748b;
  font-weight:800;
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.article-share-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.article-share-links a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  color:#0f172a;
  font-weight:700;
}

.author-profile-card,
.article-related-section,
.article-sidebar-card{
  border-radius:28px;
  box-shadow:0 24px 60px rgba(15,23,42,.10);
}

.author-profile-card{
  margin-top:24px;
  padding:28px;
  background:#ffffff;
  color:#0f172a;
}

.author-profile-head{
  display:flex;
  gap:18px;
  align-items:center;
  margin-bottom:14px;
}

.author-profile-avatar{
  width:84px;
  height:84px;
  border-radius:999px;
  object-fit:cover;
  background:#e2e8f0;
}

.author-profile-kicker,
.article-sidebar-kicker{
  margin:0 0 6px;
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#0f766e;
  font-weight:800;
}

.author-profile-head h2{
  margin:0;
  color:#0f172a;
  font-size:28px;
}

.author-profile-text{
  margin:0;
  color:#334155;
  line-height:1.9;
}

.article-related-section{
  margin-top:24px;
  padding:28px;
  background:#fff;
}

.article-related-head{
  margin-bottom:18px;
}

.article-related-head h2{
  margin:8px 0 0;
  color:#0f172a;
}

.article-related-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.article-related-card{
  border-radius:22px;
  overflow:hidden;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
}

.article-related-link{ display:block; height:100%; }

.article-related-media img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
}

.article-related-body{
  padding:16px;
}

.article-related-date{
  margin:0 0 8px;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}

.article-related-card h3{
  margin:0;
  color:#0f172a;
  font-size:17px;
  line-height:1.6;
}

.article-sidebar{
  display:grid;
  gap:18px;
  position:sticky;
  top:92px;
}

.article-sidebar-card{
  padding:22px;
  background:#ffffff;
  color:#0f172a;
}

.article-sidebar-card h2{
  margin:8px 0 14px;
  color:#0f172a;
  font-size:26px;
}

.article-toc-content:empty::before{
  content:"目次を準備中です";
  color:#94a3b8;
}

.article-toc-content ol{
  margin:0;
  padding-left:1.2em;
  display:grid;
  gap:10px;
  color:#334155;
}

.article-toc-content a{
  color:#334155;
  font-weight:700;
}

.article-toc-content .toc-child-list{
  margin-top:10px;
  padding-left:1.1em;
  border-left:1px solid rgba(15,23,42,.10);
}

.article-cta-card p{
  color:#475569;
  line-height:1.85;
}

.article-cta-actions{
  display:grid;
  gap:10px;
  margin-top:18px;
}

.article-mobile-toc{
  display:none;
  margin-bottom:18px;
  padding:16px;
  border-radius:20px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
}

.article-toc-toggle{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 14px;
  border:0;
  border-radius:14px;
  background:#fff;
  color:#0f172a;
  font-weight:800;
  cursor:pointer;
}

.article-toc-toggle::after{
  content:"⌄";
  font-size:20px;
  transition:transform .18s ease;
}

.article-toc-toggle[aria-expanded="true"]::after{
  transform:rotate(180deg);
}

.article-toc-panel{
  margin-top:12px;
}

@media (max-width: 1180px){
  .article-hero-card{
    grid-template-columns:1fr;
  }

  .article-layout{
    grid-template-columns:1fr;
  }

  .article-sidebar{
    position:static;
  }

  .article-related-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 720px){
  .article-hero{
    padding:26px 0 24px;
  }

  .article-hero-card{
    padding:18px;
    border-radius:24px;
    gap:18px;
  }

  .article-title{
    font-size:clamp(30px, 9vw, 44px);
  }

  .article-meta-row{
    gap:8px;
  }

  .article-meta-row span{
    font-size:12px;
  }

  .article-content-shell,
  .author-profile-card,
  .article-related-section{
    padding:20px;
    border-radius:22px;
  }

  .article-entry,
  .article-entry p{
    font-size:16px;
    line-height:1.95;
  }

  .article-entry h2{
    padding:16px 16px 16px 18px;
    border-radius:18px;
    font-size:24px;
  }

  .article-entry h3{
    font-size:21px;
  }

  .article-mobile-toc{
    display:block;
  }

  .article-sidebar{
    display:none;
  }
}

/* ===== ARTICLE MEMBER LINK / TITLE WIDTH ===== */
.article-hero-container{
  max-width: 1440px;
}

.author-profile-subname{
  margin: 6px 0 0;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}

.member-profile-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.member-profile-pill{
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,.10);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.author-profile-link{
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
}

@media (min-width: 1181px){
  .article-hero-card{
    grid-template-columns: minmax(0, 1.55fr) 360px;
    gap: 22px;
  }

  .article-title{
    white-space: nowrap;
    font-size: clamp(32px, 3.3vw, 58px);
  }
}

@media (max-width: 1180px){
  .article-title{
    white-space: normal;
  }
}




/* ===== ARTICLE MEMBER SNS / SIDEBAR CTA ===== */
.author-profile-subname{
  display:none !important;
}

.article-member-socials{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0 0;
}

.article-member-social{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  color:#0f172a;
  font-size:13px;
  font-weight:700;
}

.article-cta-actions .btn{
  justify-content:center;
}

.article-cta-actions .btn-line{
  background:#06c755;
  color:#fff;
}

.article-cta-actions .btn-consult{
  background:#4f7cff;
  color:#fff;
}

@media (max-width: 720px){
  .article-member-socials{
    gap:8px;
  }
}

/* ===== POSTS ARCHIVE PAGE ===== */
.posts-archive-page{
  background:
    radial-gradient(circle at top left, rgba(34,211,238,.10), transparent 22%),
    radial-gradient(circle at top right, rgba(139,92,246,.12), transparent 24%),
    linear-gradient(180deg, #071120 0%, #0b1730 26%, #eef3f8 26%, #eef3f8 100%);
}

.posts-archive-hero{
  padding:48px 0 28px;
  color:#fff;
}

.posts-archive-hero h1{
  margin:10px 0 12px;
  font-size:clamp(36px,5vw,62px);
  line-height:1.06;
}

.posts-archive-lead{
  max-width:760px;
  color:rgba(255,255,255,.82);
  font-size:17px;
  line-height:1.9;
}

.archive-toolbar{
  margin-top:26px;
  display:grid;
  grid-template-columns:minmax(0, 1.5fr) 220px 180px 140px;
  gap:12px;
  align-items:center;
}

.archive-toolbar input,
.archive-toolbar select{
  width:100%;
  min-height:56px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.10);
  color:#fff;
  outline:none;
}

.archive-toolbar input::placeholder{
  color:rgba(255,255,255,.60);
}

.archive-toolbar select option{
  color:#0f172a;
}

.archive-submit{
  min-height:56px;
  border:0;
  border-radius:16px;
  background:#4f7cff;
  color:#fff;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(79,124,255,.24);
}

.archive-category-chips{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.archive-chip{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-weight:700;
}

.archive-chip.is-active{
  background:#22d3ee;
  border-color:#22d3ee;
  color:#062033;
}

.posts-archive-list-section{
  padding:24px 0 90px;
}

.archive-results-meta{
  margin-bottom:18px;
  color:#475569;
  font-weight:700;
}

.posts-archive-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:20px;
}

.posts-archive-card{
  border-radius:24px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 20px 48px rgba(15,23,42,.08);
  transition:transform .18s ease, box-shadow .18s ease;
}

.posts-archive-card:hover{
  transform:translateY(-4px);
  box-shadow:0 26px 54px rgba(15,23,42,.12);
}

.posts-archive-link{
  display:block;
  height:100%;
}

.posts-archive-media img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  display:block;
}

.posts-archive-body{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:18px;
}

.posts-archive-topline,
.posts-archive-bottomline{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.posts-archive-category{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:800;
}

.posts-archive-views,
.posts-archive-bottomline span{
  color:#64748b;
  font-size:12px;
  font-weight:700;
}

.posts-archive-card h2{
  margin:0;
  color:#0f172a;
  font-size:24px;
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.posts-archive-card p{
  margin:0;
  color:#475569;
  line-height:1.8;
}

.posts-archive-pagination{
  margin-top:28px;
}

.posts-archive-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:42px;
  margin-right:8px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  color:#0f172a;
  font-weight:800;
}

.posts-archive-pagination .page-numbers.current{
  background:#4f7cff;
  border-color:#4f7cff;
  color:#fff;
}

.posts-archive-empty{
  padding:34px;
  border-radius:24px;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 20px 48px rgba(15,23,42,.08);
}

.posts-archive-empty h2{
  margin:0 0 10px;
  color:#0f172a;
}

.posts-archive-empty p{
  margin:0;
  color:#475569;
}

@media (max-width: 1100px){
  .archive-toolbar{
    grid-template-columns:1fr 1fr;
  }

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

@media (max-width: 720px){
  .posts-archive-hero{
    padding:34px 0 22px;
  }

  .posts-archive-lead{
    font-size:15px;
  }

  .archive-toolbar{
    grid-template-columns:1fr;
  }

  .posts-archive-grid{
    grid-template-columns:1fr;
  }

  .posts-archive-card h2{
    font-size:21px;
  }
}

/* ==== ARCHIVE VISIBILITY FIX ==== */
.posts-archive-hero{
  color:#0f172a;
  background:#ffffff;
}

.posts-archive-lead{
  color:#334155;
}

.archive-toolbar input,
.archive-toolbar select{
  background:#ffffff;
  color:#0f172a;
  border:1px solid rgba(15,23,42,.15);
}

.archive-chip{
  background:#f1f5f9;
  color:#0f172a;
  border:1px solid rgba(15,23,42,.1);
}

.archive-chip.is-active{
  background:#4f7cff;
  color:#fff;
}

.archive-submit{
  background:#0f172a;
}



/* ===== ARCHIVE CONTRAST FIX ===== */
.posts-archive-hero{
  color:#0f172a;
  background:#ffffff;
  border-radius:28px;
  margin:20px auto 0;
}

.posts-archive-hero .eyebrow,
.posts-archive-hero h1{
  color:#0f172a;
}

.posts-archive-lead{
  color:#334155;
}

.archive-toolbar input,
.archive-toolbar select{
  background:#ffffff;
  color:#0f172a;
  border:1px solid rgba(15,23,42,.15);
}

.archive-chip{
  background:#f1f5f9;
  color:#0f172a;
  border:1px solid rgba(15,23,42,.10);
}

.archive-chip.is-active{
  background:#4f7cff;
  color:#ffffff;
  border-color:#4f7cff;
}

.archive-submit{
  background:#0f172a;
  color:#ffffff;
}


/* ===== ARTICLE IMAGE ALIGNMENT ===== */
.article-entry .wp-block-gallery,
.article-entry .blocks-gallery-grid,
.article-entry .gallery{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin: 2em 0;
}

.article-entry .wp-block-gallery.has-nested-images figure.wp-block-image,
.article-entry .blocks-gallery-item,
.article-entry .gallery-item{
  width: 100% !important;
  margin: 0 !important;
}

.article-entry .wp-block-gallery img,
.article-entry .blocks-gallery-item img,
.article-entry .gallery-item img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.article-entry .wp-block-image.alignleft,
.article-entry .wp-block-image.alignright,
.article-entry .wp-block-image.aligncenter{
  float: none;
  margin-left: 0;
  margin-right: 0;
}

.article-entry .image-row-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 2em 0;
}

.article-entry .image-row-2 > *{
  margin: 0 !important;
}

@media (max-width: 720px){
  .article-entry .wp-block-gallery,
  .article-entry .blocks-gallery-grid,
  .article-entry .gallery,
  .article-entry .image-row-2{
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.ad-youtoo img{background:#fff;padding:10px;border-radius:12px;}



/* ===== ARTICLE TITLE OVERLAP FIX ===== */
.article-hero-card{
  align-items:start !important;
}

.article-hero-copy{
  min-width:0 !important;
  position:relative;
  z-index:2;
}

.article-title{
  white-space:normal !important;
  word-break:break-word !important;
  overflow-wrap:anywhere !important;
  max-width:100% !important;
  position:relative;
  z-index:2;
}

.article-hero-media,
.article-hero-visual,
.article-hero-image{
  min-width:0 !important;
}

.article-hero-media img,
.article-hero-visual img,
.article-hero-image img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}

@media (min-width:1181px){
  .article-hero-card{
    grid-template-columns:minmax(0,1.35fr) 320px !important;
    gap:20px !important;
  }

  .article-title{
    font-size:clamp(28px,3vw,52px) !important;
    line-height:1.12 !important;
  }
}

@media (max-width:1180px){
  .article-hero-card{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  .article-title{
    font-size:clamp(28px,5vw,42px) !important;
    line-height:1.15 !important;
  }
}

@media (max-width:640px){
  .article-title{
    font-size:30px !important;
    line-height:1.2 !important;
  }

  .article-hero-card{
    gap:14px !important;
  }
}
