/*
Theme Name:  TOKUTOKU
Theme URI:   https://tokutoku.xyz/
Description: TOKUTOKU 公式 WordPress テーマ。Lステップ認定代理店・観光業DX支援サービスサイト。
Author:      TOKUTOKU / 株式会社株式会社TOKU徳
Version:     1.1.0
License:     Private
Text Domain: linestep
*/

/* ==========================================================
   CSS カスタムプロパティ（デザイントークン）
   ========================================================== */
:root {
  --primary:    #005a9c;   /* メインブルー（フロントページと統一） */
  --primary-dk: #1e293b;   /* ダークネイビー（slate-900系） */
  --primary-lt: #5ba3d0;   /* ライトブルー */
  --navy:       #0f172a;   /* フッター背景（slate-900） */
  --green:      #1a8c5c;   /* アクセントグリーン */
  --bg-light:   #f7fafc;   /* ライト背景 */
  --text:       #1e293b;
  --text-sub:   #64748b;
  --border:     #e2e8f0;
  --max-w:      1100px;
}

/* ==========================================================
   リセット & ベース
   ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}
a:hover {
  color: var(--primary-dk);
}

/* ==========================================================
   ユーティリティ
   ========================================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
.section-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

/* ==========================================================
   ナビゲーション
   ========================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .35s, padding .35s, box-shadow .35s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}
.site-logo .logo-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  transition: background .2s, border-color .2s;
}
.site-header.scrolled .site-logo { color: var(--text); }
.site-header.scrolled .logo-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* デスクトップメニュー */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav a {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.primary-nav a:hover { color: #fff; }
.site-header.scrolled .primary-nav a { color: var(--text-sub); }
.site-header.scrolled .primary-nav a:hover { color: var(--primary); }

.nav-cta {
  padding: 9px 22px;
  background: #fff;
  color: var(--primary) !important;
  border-radius: 100px;
  font-size: .75rem !important;
  font-weight: 700 !important;
  transition: background .2s, transform .2s !important;
}
.nav-cta:hover {
  background: var(--bg-light) !important;
  transform: translateY(-1px);
}
.site-header.scrolled .nav-cta {
  background: var(--primary);
  color: #fff !important;
}
.site-header.scrolled .nav-cta:hover {
  background: var(--primary-dk) !important;
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}
.site-header.scrolled .hamburger span { background: var(--text); }

/* モバイルドロワー */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mobile-drawer.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-drawer a {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.mobile-drawer a:hover { color: #fff; }
.drawer-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.drawer-close:hover { color: #fff; }

/* ==========================================================
   ページヒーロー（サブページ共通）
   ========================================================== */
.page-hero {
  padding: 120px 24px 56px;
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  text-align: center;
  color: #fff;
}
.page-hero-eyebrow {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary-lt);
  border: 1.5px solid var(--primary-lt);
  border-radius: 100px;
  padding: 3px 14px;
  margin-bottom: 16px;
}
.page-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
}
.page-hero-sub {
  margin-top: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}

/* ==========================================================
   お知らせリスト
   ========================================================== */
.news-list { list-style: none; }
.news-item { border-bottom: 1px solid var(--border); }
.news-item:first-child { border-top: 1px solid var(--border); }
.news-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 4px;
  color: var(--text);
  transition: color .2s;
}
.news-link:hover { color: var(--primary); }
.news-date {
  font-size: .8rem;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}
.news-tag {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .06em;
  background: rgba(0,90,156,.1);
  color: var(--primary);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-title { font-size: .95rem; line-height: 1.6; }

/* ==========================================================
   コラムカード（アーカイブ）
   ========================================================== */
.col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.col-card {
  border: 1px solid #e6eff5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.col-card:hover {
  box-shadow: 0 8px 32px rgba(0,90,156,.12);
  transform: translateY(-3px);
}
.col-card.featured {
  grid-column: span 2;
  flex-direction: row;
}
.col-card-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-light);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.col-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.col-card.featured .col-card-thumb {
  width: 260px;
  aspect-ratio: unset;
}
.col-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.col-card-cat {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(0,90,156,.1);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.col-card-title {
  font-size: .98rem; font-weight: 700;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 10px;
  flex: 1;
}
.col-card.featured .col-card-title { font-size: 1.05rem; }
.col-card-title a { color: inherit; }
.col-card-title a:hover { color: var(--primary); }
.col-card-excerpt {
  font-size: .82rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.col-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: #a0aec0;
}
.col-card-readmore {
  font-size: .78rem; font-weight: 700;
  color: var(--primary);
  display: flex; align-items: center; gap: 3px;
}
.col-card-readmore:hover { color: var(--primary-dk); }

/* カテゴリフィルター */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.cat-btn {
  display: inline-block;
  padding: 7px 18px;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .06em;
  border-radius: 100px;
  border: 1.5px solid #dde7ef;
  background: #fff;
  color: var(--text-sub);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.cat-btn:hover,
.cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ==========================================================
   記事コンテンツ（コラム詳細・お知らせ本文）
   ========================================================== */
.entry-content {
  font-size: .97rem;
  line-height: 1.95;
  color: #334155;
}
.entry-content h2 {
  font-size: 1.25rem; font-weight: 700;
  color: var(--primary-dk);
  margin: 2.4em 0 .8em;
  padding: .7em 1em;
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 6px 6px 0;
}
.entry-content h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text);
  margin: 1.8em 0 .6em;
  padding-bottom: .4em;
  border-bottom: 1.5px solid var(--border);
}
.entry-content p  { margin-bottom: 1.2em; }
.entry-content ul,
.entry-content ol { padding-left: 1.6em; margin-bottom: 1.2em; }
.entry-content li { margin-bottom: .5em; }
.entry-content a  { color: var(--primary); text-decoration: underline; }
.entry-content strong { color: var(--primary-dk); font-weight: 700; }
.entry-content img { border-radius: 8px; margin: 1.2em 0; }
.entry-content blockquote {
  border-left: 3px solid var(--primary-lt);
  padding: 12px 20px;
  margin: 1.4em 0;
  background: var(--bg-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-sub);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: .9rem;
}
.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.entry-content th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--primary-dk);
}
.entry-content .callout {
  background: #eef6ff;
  border: 1px solid #c3dcf0;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 1.6em 0;
  font-size: .92rem;
}
.entry-content .callout-green {
  background: #edfaf3;
  border-color: #a3d9be;
}

/* サイドバー付き記事レイアウト */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}
.article-sidebar { position: sticky; top: 90px; }
.sidebar-toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.sidebar-toc-title {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-dk);
  margin-bottom: 12px;
}
.sidebar-toc ol { padding-left: 1.2em; }
.sidebar-toc li { font-size: .82rem; margin-bottom: 8px; line-height: 1.5; }
.sidebar-toc a { color: var(--text-sub); }
.sidebar-toc a:hover { color: var(--primary); }
.sidebar-cta {
  background: var(--primary-dk);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
}
.sidebar-cta p {
  color: rgba(255,255,255,.8);
  font-size: .83rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.sidebar-cta a {
  display: block;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: .85rem;
  padding: 11px;
  border-radius: 100px;
  text-decoration: none;
}
.sidebar-cta a:hover { background: var(--bg-light); }

/* 記事ヒーロー */
.article-hero {
  padding: 120px 24px 48px;
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  text-align: center;
  color: #fff;
}
.article-hero-cat {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary-lt);
  border: 1.5px solid var(--primary-lt);
  border-radius: 100px;
  padding: 3px 14px;
  margin-bottom: 16px;
}
.article-hero h1 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  max-width: 820px;
  margin: 0 auto 16px;
}
.article-hero-meta {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* 記事後CTAバナー */
.cta-banner {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 56px;
}
.cta-banner h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--primary-dk);
  margin-bottom: 4px;
}
.cta-banner p {
  font-size: .875rem;
  color: var(--text-sub);
}
.cta-banner-btn {
  background: var(--primary);
  color: #fff;
  font-size: .88rem; font-weight: 700;
  padding: 12px 28px;
  border-radius: 100px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.cta-banner-btn:hover {
  background: var(--primary-dk);
  color: #fff;
  transform: translateY(-1px);
}

/* 記事の戻りリンク */
.back-link {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.back-link a {
  font-size: .88rem; font-weight: 700;
  color: var(--primary);
}

/* ==========================================================
   ページネーション
   ========================================================== */
.ls-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.ls-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .85rem; font-weight: 700;
  color: var(--text-sub);
  transition: all .2s;
}
.ls-pagination .page-numbers:hover,
.ls-pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ==========================================================
   固定ページ共通（会社情報・プライバシー・お問い合わせ）
   ========================================================== */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.section-title {
  font-size: 1.5rem; font-weight: 700;
  color: var(--primary-dk);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid #dde7ef;
}

/* ==========================================================
   フッター
   ========================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  align-items: start;
}
.footer-logo {
  display: inline-block;
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 12px;
  text-decoration: none;
}
.footer-tagline {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-nav {
  display: flex;
  gap: 48px;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-heading {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-bottom: 4px;
}
.footer-nav-col a {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
  text-decoration: none;
}
.footer-nav-col a:hover { color: #fff; }
.footer-bottom {
  padding: 20px 0;
  font-size: .72rem;
  text-align: center;
  color: rgba(255,255,255,.2);
  letter-spacing: .06em;
}

/* ==========================================================
   レスポンシブ
   ========================================================== */
@media (max-width: 900px) {
  .col-grid { grid-template-columns: repeat(2, 1fr); }
  .col-card.featured { grid-column: span 2; flex-direction: column; }
  .col-card.featured .col-card-thumb { width: 100%; aspect-ratio: 16/9; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { flex-wrap: wrap; gap: 32px; }
}
@media (max-width: 768px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .page-hero { padding: 100px 20px 48px; }
  .article-hero { padding: 100px 20px 40px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 560px) {
  .col-grid { grid-template-columns: 1fr; }
  .col-card.featured { grid-column: span 1; }
  .page-wrap { padding: 40px 20px 60px; }
  .cta-banner { flex-direction: column; }
}
