/*
Theme Name: Cotobank Corporate
Theme URI: https://cotobank.net
Author: COTOBANK INC.
Author URI: https://cotobank.net
Description: コトバンク株式会社 コーポレートサイト用WordPressテーマ
Version: 1.0.0
License: Proprietary
Text Domain: cotobank
*/

/* ═══════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════ */
:root {
  --navy: #0d2240;
  --navyD: #091a33;
  --cyan: #00c2e0;
  --cyan2: #00a8c4;
  --cyanL: #ecfafd;
  --cyanLL: #f4fcfe;
  --text: #1c2a3a;
  --sub: #5d6d7e;
  --light: #f6f8fb;
  --line: #e4e9ef;
}

/* ═══════════════════════════════════
   RESET & BASE
═══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ═══════════════════════════════════
   NAV (shared)
═══════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: transparent;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.solid {
  background: rgba(255,255,255,.96); backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(13,34,64,.05);
}
/* Page nav (always solid) */
.nav--page {
  background: rgba(255,255,255,.96); backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(13,34,64,.05);
}
.nav-logo img { height: 24px; width: auto; transition: filter .3s; }
.nav:not(.solid):not(.nav--page) .nav-logo img { filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  letter-spacing: .03em; transition: color .2s, opacity .2s;
}
.nav:not(.solid):not(.nav--page) .nav-links a { color: rgba(255,255,255,.7); }
.nav:not(.solid):not(.nav--page) .nav-links a:hover { color: #fff; }
.nav.solid .nav-links a,
.nav--page .nav-links a { color: var(--sub); }
.nav.solid .nav-links a:hover,
.nav--page .nav-links a:hover { color: var(--navy); }
.nav-cta {
  font-size: 13px; font-weight: 600; color: #fff !important;
  background: var(--navy); padding: 9px 22px; border-radius: 980px;
  transition: background .2s; letter-spacing: .03em;
}
.nav:not(.solid):not(.nav--page) .nav-cta {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
}
.nav-cta:hover { background: var(--cyan) !important; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  position: relative; z-index: 1001;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--navy); margin: 4px auto;
  transition: all .3s;
}
.nav:not(.solid):not(.nav--page) .nav-hamburger span {
  background: #fff;
}

/* ═══════════════════════════════════
   LAYOUT
═══════════════════════════════════ */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.section { padding: 100px 0; }
.sec-label {
  font-size: 11px; font-weight: 600; letter-spacing: .22em;
  color: var(--cyan2); text-transform: uppercase; margin-bottom: 14px;
}
.sec-title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700; color: var(--navy); line-height: 1.5; margin-bottom: 14px;
}
.sec-lead { font-size: 15px; color: var(--sub); line-height: 2; max-width: 780px; }

/* ═══════════════════════════════════
   PAGE HERO (sub pages)
═══════════════════════════════════ */
.page-hero {
  padding: 140px 0 60px;
  background: var(--light);
}
.page-hero .breadcrumb {
  font-size: 12px; color: var(--sub); margin-bottom: 24px;
}
.page-hero .breadcrumb a { color: var(--cyan2); transition: color .2s; }
.page-hero .breadcrumb a:hover { color: var(--navy); }
.page-hero h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700; color: var(--navy); line-height: 1.5;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer { background: var(--navyD); padding: 56px 0 32px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-logo img { height: 20px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.footer-logo-sub { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 8px; }
.footer-nav { display: flex; gap: 36px; }
.footer-nav-col h4 {
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  color: rgba(255,255,255,.5); margin-bottom: 12px; text-transform: uppercase;
}
.footer-nav-col a {
  display: block; font-size: 12px; color: rgba(255,255,255,.65);
  margin-bottom: 8px; transition: color .2s;
}
.footer-nav-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; padding-top: 24px;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,.4); }
.footer-policy { font-size: 11px; }
.footer-policy a { color: rgba(255,255,255,.55); transition: color .2s; }
.footer-policy a:hover { color: var(--cyan); }

/* ═══════════════════════════════════
   ANIMATIONS (shared)
═══════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94), transform .7s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

@keyframes fade-in { to { opacity: 1; } }
@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════
   NEWS (shared: top & archive)
═══════════════════════════════════ */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid; grid-template-columns: 110px 100px 1fr; gap: 20px;
  align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  transition: all .2s;
}
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item:hover { background: var(--cyanLL); padding-left: 16px; padding-right: 16px; margin: 0 -16px; }
.news-date { font-size: 13px; font-weight: 400; color: var(--sub); font-variant-numeric: tabular-nums; }
.news-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--cyan2); background: var(--cyanL);
  padding: 2px 10px; border-radius: 980px; text-align: center; white-space: nowrap;
}
.news-tag--release { color: #2e7d32; background: #e8f5e9; }
.news-tag--media { color: #e65100; background: #fff3e0; }
.news-tag--event { color: #6a1b9a; background: #f3e5f5; }
.news-title { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.7; }

/* ═══════════════════════════════════
   SINGLE POST
═══════════════════════════════════ */
.single-content { padding: 64px 0 100px; }
.single-inner { max-width: 780px; margin: 0 auto; }
.single-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.single-body { font-size: 15px; line-height: 2.2; color: var(--text); }
.single-body p { margin-bottom: 24px; }
.single-body h2 {
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin: 48px 0 16px; padding-left: 12px;
  border-left: 3px solid var(--cyan);
}
.single-body h3 {
  font-size: 17px; font-weight: 700; color: var(--navy);
  margin: 32px 0 12px;
}
.single-body img { border-radius: 8px; margin: 24px 0; }
.single-body a { color: var(--cyan2); border-bottom: 1px solid var(--cyan2); }
.single-body a:hover { color: var(--navy); border-color: var(--navy); }
.single-body ul, .single-body ol {
  padding-left: 24px; margin-bottom: 24px;
}
.single-body li { margin-bottom: 8px; }
.single-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.single-nav a {
  font-size: 13px; font-weight: 600; color: var(--cyan2);
  transition: color .2s;
}
.single-nav a:hover { color: var(--navy); }
.single-nav-back a {
  padding: 8px 20px; border: 1px solid var(--line);
  border-radius: 980px; color: var(--sub);
}
.single-nav-back a:hover { border-color: var(--cyan); color: var(--cyan2); }

/* ═══════════════════════════════════
   PAGINATION
═══════════════════════════════════ */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--sub);
  border: 1px solid var(--line); transition: all .2s;
}
.pagination a:hover { border-color: var(--cyan); color: var(--cyan2); }
.pagination .current {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 960px) {
  .nav { padding: 0 24px; }
  .wrap { padding: 0 24px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-nav { flex-wrap: wrap; gap: 20px; }
  .news-item { grid-template-columns: 90px 80px 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(255,255,255,.98); backdrop-filter: blur(20px);
    justify-content: center; align-items: center; gap: 24px;
    z-index: 1000;
  }
  .nav-links.open a { color: var(--navy) !important; font-size: 18px; }
  .section { padding: 64px 0; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .page-hero { padding: 120px 0 40px; }
}
