/*
Theme Name: ASK solution
Theme URI: https://ask-solution.co.jp
Author: ASK solution
Description: ASK solution コーポレートサイト カスタムテーマ
Version: 1.0.0
License: Private
Text Domain: ask-solution
*/

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --black: #0a0a0a;
  --white: #f8f8f6;
  --gray-light: #e8e8e4;
  --gray-mid: #c0c0ba;
  --gray-dark: #888880;
}
html { scroll-behavior: smooth; }
body { width: 100%; background: var(--white); color: var(--black); font-family: 'Noto Sans JP', sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: 72px; background: rgba(248,248,246,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
nav.scrolled { border-color: var(--gray-light); }
.nav-logo { font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: 0.02em; color: var(--black); text-decoration: none; display: flex; align-items: baseline; gap: 6px; }
.nav-logo span { font-family: 'Noto Sans JP', sans-serif; font-weight: 300; font-size: 13px; letter-spacing: 0.12em; }
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-links a { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--black); text-decoration: none; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--black); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.nav-menu-btn { width: 36px; height: 36px; border: 1px solid var(--black); border-radius: 50%; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; transition: background 0.2s; }
.nav-menu-btn:hover { background: var(--black); }
.nav-menu-btn:hover span { background: var(--white); }
.nav-menu-btn span { display: block; width: 14px; height: 1px; background: var(--black); transition: transform 0.25s, background 0.2s; }
.nav-menu-btn.active span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-menu-btn.active span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ── DRAWER ── */
#drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 200; opacity: 0; transition: opacity 0.3s; }
#drawer-overlay.open { display: block; opacity: 1; }
#mobile-drawer { position: fixed; top: 0; right: 0; width: min(280px, 85vw); height: 100%; background: var(--white); z-index: 300; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); display: flex; flex-direction: column; justify-content: flex-start; padding: 100px 40px 40px; }
#mobile-drawer.open { transform: translateX(0); }
.drawer-close { position: absolute !important; top: 20px !important; right: 20px !important; width: 40px !important; height: 40px !important; border: 1px solid #0a0a0a !important; border-radius: 50% !important; background: none !important; cursor: pointer !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; z-index: 10 !important; }
.drawer-close:hover { background: var(--black); }




.drawer-nav { display: flex; flex-direction: column; gap: 32px; width: 100%; margin-top: 80px; }
.drawer-link { font-family: 'Anton', sans-serif; font-size: 28px; letter-spacing: 0.06em; color: var(--black); text-decoration: none; position: relative; width: fit-content; }
.drawer-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px; background: var(--black); transition: width 0.3s; }
.drawer-link:hover::after { width: 100%; }

/* ── 共通セクション ── */
.section { padding: 120px 48px; position: relative; }
.section-dark { background: var(--black); color: var(--white); }
.section-light { background: var(--white); }
.section-gray { background: #f0f0ec; }
.section-label { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.3em; color: var(--gray-dark); margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.section-label::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gray-dark); }
.section-dark .section-label { color: var(--gray-mid); }
.section-dark .section-label::before { background: var(--gray-mid); }
.section-title { font-family: 'Anton', sans-serif; font-size: clamp(36px,4.5vw,64px); line-height: 0.95; letter-spacing: 0.01em; margin-bottom: 48px; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.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; }
.btn-outline { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--black); padding: 14px 32px; text-decoration: none; color: var(--black); font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.18em; transition: background 0.3s, color 0.3s; cursor: pointer; background: none; }
.btn-outline:hover { background: var(--black); color: var(--white); }
.arrow-icon { width: 10px; height: 10px; stroke: var(--black); stroke-width: 1.5; fill: none; transition: stroke 0.2s; }

/* ── PAGE HEADER ── */
.page-header { padding: 140px 48px 80px; border-bottom: 1px solid var(--gray-light); }
.page-header-label { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.3em; color: var(--gray-dark); margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.page-header-label::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gray-dark); }
.page-header-title { font-family: 'Anton', sans-serif; font-size: clamp(48px, 7vw, 96px); line-height: 0.95; letter-spacing: 0.01em; }

/* ── BREADCRUMB ── */
.breadcrumb { padding: 100px 48px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.breadcrumb a, .breadcrumb span { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--gray-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb-sep { color: var(--gray-mid); }

/* ── FILTER BAR ── */
.filter-bar { display: flex; align-items: center; gap: 8px; padding: 32px 48px; border-bottom: 1px solid var(--gray-light); flex-wrap: wrap; }
.filter-btn { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.16em; padding: 8px 20px; border: 1px solid var(--gray-light); background: none; cursor: pointer; color: var(--gray-dark); transition: all 0.2s; text-decoration: none; display: inline-block; }
.filter-btn:hover, .filter-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── NEWS ── */
.news-list-wrap { max-width: 960px; margin: 0 auto; padding: 0 48px 120px; }
.news-item { display: grid; grid-template-columns: 120px 80px 1fr 24px; align-items: center; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--gray-light); text-decoration: none; color: var(--black); transition: opacity 0.2s; }
.news-item:first-child { border-top: 1px solid var(--gray-light); margin-top: 48px; }
.news-item:hover { opacity: 0.5; }
.news-item-date { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--gray-dark); }
.news-item-cat { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.16em; border: 1px solid var(--gray-mid); padding: 3px 10px; color: var(--gray-dark); text-align: center; }
.news-item-title { font-size: 15px; line-height: 1.6; letter-spacing: 0.04em; }
.news-item-arrow { font-family: "Space Mono", monospace; font-size: 16px; color: var(--gray-mid); transition: transform 0.2s, color 0.2s; letter-spacing: -0.05em; }
.news-item:hover .news-item-arrow { transform: translateX(6px); color: var(--black); }

/* ── ARTICLE (NEWS/INSIGHTS 共通) ── */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 48px 48px 120px; }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 80px; max-width: 1100px; margin: 0 auto; padding: 48px 48px 120px; align-items: start; }
.article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.article-cat { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.16em; border: 1px solid var(--gray-mid); padding: 3px 12px; color: var(--gray-dark); }
.article-date { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--gray-dark); }
.article-title { font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.5; letter-spacing: 0.04em; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--gray-light); }
.article-thumb { width: 100%; aspect-ratio: 16/9; background: var(--gray-light); margin-bottom: 48px; overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 15px; line-height: 2.2; letter-spacing: 0.04em; }
.article-body p { margin-bottom: 28px; }
.article-body h2 { font-family: 'Anton', sans-serif; font-size: 28px; letter-spacing: 0.01em; margin: 56px 0 24px; padding-bottom: 16px; border-bottom: 2px solid var(--black); }
.article-body h3 { font-size: 18px; font-weight: 700; margin: 40px 0 16px; }
.article-body blockquote { border-left: 3px solid var(--black); padding: 16px 24px; margin: 32px 0; background: var(--gray-light); font-style: italic; color: var(--gray-dark); }
.back-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--gray-light); text-decoration: none; color: var(--black); font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.14em; transition: opacity 0.2s; }
.back-link:hover { opacity: 0.5; }

/* ── SIDEBAR ── */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-label { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.2em; color: var(--gray-dark); margin-bottom: 16px; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.toc-list a { font-size: 12px; letter-spacing: 0.04em; color: var(--gray-dark); text-decoration: none; display: block; padding-left: 12px; border-left: 1px solid var(--gray-light); transition: color 0.2s, border-color 0.2s; line-height: 1.5; }
.toc-list a:hover { color: var(--black); border-color: var(--black); }
.sidebar-related { border-top: 1px solid var(--gray-light); padding-top: 32px; }
.related-card { display: block; text-decoration: none; color: var(--black); margin-bottom: 24px; }
.related-thumb { aspect-ratio: 16/9; background: var(--gray-light); margin-bottom: 10px; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-cat { font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.16em; color: var(--gray-dark); margin-bottom: 6px; }
.related-title { font-size: 12px; line-height: 1.6; letter-spacing: 0.03em; transition: opacity 0.2s; }
.related-card:hover .related-title { opacity: 0.5; }

/* ── INSIGHTS GRID ── */
.insights-wrap { padding: 64px 48px 120px; }
.insights-featured { padding: 64px 48px 0; }
.insights-featured-label { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: var(--gray-dark); margin-bottom: 24px; }
.featured-card { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--gray-light); text-decoration: none; color: var(--black); transition: opacity 0.2s; }
.featured-card:hover { opacity: 0.7; }
.featured-thumb { aspect-ratio: 16/10; background: var(--gray-light); overflow: hidden; }
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.featured-cat { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.2em; color: var(--gray-dark); margin-bottom: 16px; }
.featured-title { font-size: clamp(20px,2.5vw,28px); font-weight: 700; line-height: 1.5; letter-spacing: 0.04em; margin-bottom: 20px; }
.featured-excerpt { font-size: 14px; line-height: 1.9; color: var(--gray-dark); margin-bottom: 24px; }
.featured-date { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.1em; color: var(--gray-mid); }
.insights-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px 40px; }
.insight-card { text-decoration: none; color: var(--black); display: block; }
.insight-thumb { aspect-ratio: 16/10; background: var(--gray-light); margin-bottom: 20px; overflow: hidden; }
.insight-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.insight-card:hover .insight-thumb img { transform: scale(1.04); }
.insight-cat { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.2em; color: var(--gray-dark); margin-bottom: 10px; }
.insight-title { font-size: 15px; font-weight: 500; line-height: 1.6; letter-spacing: 0.04em; margin-bottom: 12px; transition: opacity 0.2s; }
.insight-card:hover .insight-title { opacity: 0.5; }
.insight-date { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.1em; color: var(--gray-dark); }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 48px 0 80px; }
.pagination a, .pagination span { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.1em; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-light); text-decoration: none; color: var(--gray-dark); transition: all 0.2s; }
.pagination a:hover, .pagination .current { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── FOOTER ── */
footer { background: var(--black); color: var(--gray-dark); padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-logo { font-family: 'Anton', sans-serif; font-size: 18px; color: var(--white); text-decoration: none; display: flex; align-items: baseline; gap: 6px; }
.footer-logo span { font-family: 'Noto Sans JP', sans-serif; font-weight: 300; font-size: 12px; color: var(--gray-dark); }
.footer-copy { font-family: 'Space Mono', monospace; font-size: 10px; }
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--gray-dark); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; height: 60px; }
  .nav-links { display: none; }
  .section { padding: 80px 20px; }
  .section-title { font-size: clamp(32px,9vw,52px); }
  .page-header { padding: 100px 20px 48px; }
  .breadcrumb { padding: 80px 20px 0; }
  .filter-bar { padding: 20px; }
  .news-list-wrap { padding: 0 20px 80px; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-item-arrow { display: none; }
  .article-wrap { padding: 32px 20px 80px; }
  .article-layout { grid-template-columns: 1fr; gap: 48px; padding: 32px 20px 80px; }
  .article-sidebar { position: static; }
  .insights-featured { padding: 40px 20px 0; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-body { padding: 28px 20px; }
  .insights-wrap { padding: 40px 20px 80px; }
  .insights-grid { grid-template-columns: 1fr; gap: 32px; }
  footer { flex-direction: column; gap: 20px; text-align: center; padding: 32px 20px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
}

/* ── PRIVACY ── */
.privacy-wrap { max-width: 800px; margin: 0 auto; padding: 80px 48px 120px; }
.privacy-intro { font-size: 15px; line-height: 2; color: var(--gray-dark); margin-bottom: 64px; padding-bottom: 48px; border-bottom: 1px solid var(--gray-light); }
.privacy-section { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--gray-light); }
.privacy-section:last-of-type { border-bottom: none; }
.privacy-heading { font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: 0.02em; margin-bottom: 20px; color: var(--black); }
.privacy-section p { font-size: 14px; line-height: 2; color: var(--gray-dark); margin-bottom: 16px; }
.privacy-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.privacy-list li { font-size: 14px; line-height: 1.8; color: var(--gray-dark); padding-left: 16px; position: relative; }
.privacy-list li::before { content: '—'; position: absolute; left: 0; color: var(--gray-mid); font-family: 'Space Mono', monospace; font-size: 11px; }
.privacy-contact { margin-top: 24px; padding: 24px 32px; background: #f0f0ec; }
.privacy-contact p { font-size: 14px; line-height: 1.9; color: var(--gray-dark); margin-bottom: 4px; }
.privacy-contact a { color: var(--black); text-decoration: underline; }
.privacy-date { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--gray-light); }
.privacy-date p { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--gray-dark); }

@media (max-width: 768px) {
  .privacy-wrap { padding: 48px 20px 80px; }
  .privacy-heading { font-size: 18px; }
}
