/* news.css — Stepping Stones Theme */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
  }

  

  /* HEADER */
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 52px;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border-dim);
    backdrop-filter: blur(12px);
  }

  .logo {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 22px; font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--accent-light);
    text-decoration: none;
    display: flex; flex-direction: column;
    line-height: 1; gap: 3px;
  }
  .logo span {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 9px; font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
  }

  nav { display: flex; align-items: center; gap: 40px; }
  nav a {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px; font-weight: 400;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-muted); text-decoration: none;
    transition: color 0.3s ease;
  }
  nav a:hover, nav a.active { color: var(--accent-light); }
  nav a.active { position: relative; }
  nav a.active::after {
    content: ''; position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 1px; background: var(--accent);
  }
  .nav-contact {
    border: 1px solid var(--border);
    padding: 9px 22px;
    color: var(--accent) !important;
    transition: background 0.3s ease, color 0.3s ease !important;
  }
  .nav-contact:hover {
    background: var(--accent) !important;
    color: var(--bg) !important;
  }

  /* PAGE HERO */
  .page-hero {
    padding: 160px 52px 80px;
    border-bottom: 1px solid var(--border-dim);
    position: relative;
    overflow: hidden;
  }
  .page-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, #ffffff 0%, #f5f5f5 60%, #f0f0f0 100%);
  }
  .page-hero-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2) 40%, transparent);
  }
  .page-hero-content { position: relative; z-index: 1; }
  .page-eyebrow {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--accent);
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 24px;
  }
  .page-eyebrow::before {
    content: ''; display: block;
    width: 28px; height: 1px;
    background: var(--accent); opacity: 0.6;
  }
  .page-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(44px, 6vw, 80px);
    font-weight: 400; line-height: 1.05;
    letter-spacing: -0.02em; color: var(--text);
    margin-bottom: 24px;
  }
  .page-title em { font-style: italic; color: var(--accent-light); }
  .page-subtitle {
    font-size: 13px; font-weight: 300;
    line-height: 2; color: var(--text-muted);
    letter-spacing: 0.06em; max-width: 560px;
  }

  /* COMMON SECTION */
  .section { padding: 100px 52px; }
  .section-label {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 52px;
    display: flex; align-items: center; gap: 16px;
  }
  .section-label::after {
    content: ''; flex: 1; max-width: 52px;
    height: 1px; background: var(--border);
  }
  .section-heading {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 400; line-height: 1.1;
  }

  /* BUTTONS */
  .btn-primary {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px; letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bg); background: var(--accent);
    padding: 16px 36px; text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .btn-primary:hover { background: var(--accent-light); transform: translateX(4px); }
  .btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 11px; letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent); border: 1px solid var(--border);
    padding: 13px 28px; text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
  }
  .btn-outline:hover { background: var(--accent); color: var(--bg); }

  /* FOOTER */
  footer {
    padding: 60px 52px 40px;
    border-top: 1px solid var(--border-dim);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px; align-items: start;
  }
  .footer-logo {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px; font-weight: 600;
    color: var(--accent-light); letter-spacing: 0.06em;
    margin-bottom: 14px;
  }
  .footer-tagline {
    font-size: 11px; font-weight: 300;
    color: var(--text-dim); letter-spacing: 0.1em; line-height: 1.9;
  }
  .footer-nav h4 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 9px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
  }
  .footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .footer-nav a {
    font-size: 12px; font-weight: 300;
    color: var(--text-dim); text-decoration: none;
    letter-spacing: 0.06em; transition: color 0.3s ease;
  }
  .footer-nav a:hover { color: var(--text-muted); }
  .footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-dim);
    padding-top: 28px; margin-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .footer-copy {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px; letter-spacing: 0.14em; color: var(--text-dim);
  }

  /* HAMBURGER */
  .hamburger {
    display: none; flex-direction: column;
    justify-content: center; gap: 5px;
    width: 36px; height: 36px; cursor: pointer;
    background: none; border: none; padding: 4px; z-index: 200;
  }
  .hamburger span {
    display: block; width: 100%; height: 1px;
    background: var(--accent-light);
    transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
    transform-origin: center;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .mobile-menu {
    display: none; position: fixed; inset: 0;
    background: var(--bg); z-index: 150; border-top: 1px solid var(--border-dim);
    flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(-16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
  }
  .mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: all; }
  .mobile-menu a {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 40px; font-weight: 300;
    letter-spacing: 0.04em; color: var(--text-muted);
    text-decoration: none; padding: 18px 0;
    border-bottom: 1px solid var(--border-dim);
    width: 80%; text-align: center;
    transition: color 0.3s ease;
  }
  .mobile-menu a:first-child { border-top: 1px solid var(--border-dim); }
  .mobile-menu a:hover { color: var(--accent-light); }
  .mobile-menu .mobile-contact {
    margin-top: 40px;
    border: 1px solid var(--border) !important;
    padding: 14px 48px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px !important; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--accent);
  }

  /* REVEAL ANIMATIONS */
  .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }

  /* MOBILE */
  @media (max-width: 768px) {
    header { padding: 20px 24px; }
    nav { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }

    .page-hero { padding: 120px 24px 60px; }
    .page-title { font-size: clamp(36px, 10vw, 56px); }
    .section { padding: 64px 24px; }
    footer { padding: 48px 24px 32px; grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

    @media (max-width: 390px) {
      .mobile-menu a { font-size: 32px; padding: 14px 0; }
    }
  }
  @media (max-width: 1024px) {
    header { padding: 24px 32px; }
    .page-hero { padding: 140px 32px 72px; }
    .section { padding: 80px 32px; }
    footer { padding: 52px 32px 36px; }
  }


  /* NEWS PAGE */
  .news-layout {
    display: grid; grid-template-columns: 1fr 300px;
    gap: 80px; align-items: start;
  }

  .news-list { display: flex; flex-direction: column; gap: 0; }

  .news-item {
    display: grid; grid-template-columns: 120px 1fr;
    gap: 32px; align-items: start;
    padding: 36px 0; border-top: 1px solid var(--border-dim);
    text-decoration: none; color: inherit;
    transition: background 0.3s ease;
    position: relative;
  }
  .news-item:last-child { border-bottom: 1px solid var(--border-dim); }
  .news-item::after {
    content: ''; position: absolute;
    left: 0; bottom: 0; width: 0; height: 1px;
    background: var(--accent); transition: width 0.4s ease;
  }
  .news-item:hover::after { width: 100%; }

  .news-date {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px; font-weight: 300;
    color: var(--text-dim); letter-spacing: 0.08em;
    padding-top: 2px;
  }
  .news-date span {
    display: block; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 9px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--accent);
    margin-top: 6px;
  }
  .news-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px; font-weight: 400;
    color: var(--text); letter-spacing: 0.05em;
    line-height: 1.7; margin-bottom: 8px;
    transition: color 0.3s ease;
  }
  .news-item:hover .news-title { color: var(--accent-light); }
  .news-excerpt {
    font-size: 12px; font-weight: 300;
    color: var(--text-dim); letter-spacing: 0.05em;
    line-height: 1.9;
  }

  /* Sidebar */
  .news-sidebar { position: sticky; top: 100px; }
  .sidebar-section { margin-bottom: 48px; }
  .sidebar-label {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 9px; letter-spacing: 0.24em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border-dim);
  }
  .sidebar-cats { display: flex; flex-direction: column; gap: 0; }
  .sidebar-cat {
    display: flex; justify-content: space-between;
    align-items: center; padding: 12px 0;
    border-bottom: 1px solid var(--border-dim);
    font-size: 11px; font-weight: 300;
    color: var(--text-muted); letter-spacing: 0.07em;
    cursor: pointer; transition: color 0.3s ease;
    text-decoration: none;
  }
  .sidebar-cat:hover { color: var(--accent-light); }
  .sidebar-cat-count {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px; font-weight: 300; color: var(--text-dim);
  }

  @media (max-width: 1024px) {
    .news-layout { grid-template-columns: 1fr; gap: 60px; }
    .news-sidebar { position: static; }
  }
  @media (max-width: 768px) {
    .news-item { grid-template-columns: 1fr; gap: 12px; }
    .news-date { display: flex; align-items: center; gap: 16px; }
    .news-date span { margin-top: 0; }
  }


  .hl { color: var(--accent); font-style: normal; font-weight: 500; }

  


  /* ── White mode overrides ── */
  .solution-card { background: var(--bg-2); border: 1px solid var(--border-dim); }
  .solution-card:hover { background: var(--bg-3); }
  .work-overlay { background: linear-gradient(to top, rgba(255,255,255,0.96) 0%, transparent 60%); }
  .work-tag { color: var(--accent); }
  .work-title { color: var(--text); }
  .work-client { color: var(--text-muted); }
  .hero-grid, .page-hero-grid {
    background-image:
      linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  }
  .about-img-accent img { filter: grayscale(5%) brightness(0.93); }
  .form-input, .form-textarea, .form-select { color: var(--text); }
  .form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
  .btn-primary { background: var(--accent); color: #ffffff; }
  .btn-primary:hover { background: var(--accent-light); color: #ffffff; }
  .nav-contact { color: var(--accent) !important; }
  .nav-contact:hover { background: var(--accent) !important; color: #ffffff !important; }
  .mobile-menu { background: #ffffff; }
  .hamburger span { background: var(--accent); }

/* ── Single article typography (single.php / page.php) ── */
.single-content h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px; font-weight: 400; color: var(--text);
  letter-spacing: 0.02em; line-height: 1.5;
  margin: 48px 0 20px;
}
.single-content h3 {
  font-size: 17px; font-weight: 500; color: var(--text);
  margin: 36px 0 14px; letter-spacing: 0.03em;
}
.single-content p { margin: 0 0 22px; }
.single-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.single-content ul,
.single-content ol { margin: 0 0 22px; padding-left: 1.4em; }
.single-content li { margin: 0 0 10px; }
.single-content img { margin: 28px 0; border: 1px solid var(--border-dim); }
.single-content blockquote {
  margin: 28px 0; padding: 16px 24px;
  background: var(--bg-2); border-left: 2px solid var(--accent);
  font-size: 13px; color: var(--text-muted);
}

/* ── Filter buttons (taxonomy.php) ── */
.works-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.works-filter .filter-btn {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg-2);
  border: 1px solid var(--border-dim);
  padding: 10px 22px; text-decoration: none; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.works-filter .filter-btn:hover,
.works-filter .filter-btn.active {
  background: var(--accent); color: #ffffff; border-color: var(--accent);
}
