/* ==========================================================================
   TSK Holding — コーポレートサイト（ネイビー基調 + ゴールドアクセント）
   ========================================================================== */

:root {
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-surface-alt: #eef2f7;
  --color-border: #dbe2ec;
  --color-text: #1f2937;
  --color-text-muted: #5b6472;
  --color-primary: #0b2545;
  --color-primary-strong: #123a68;
  --color-accent: #b9922f;
  --color-accent-strong: #96751f;
  --color-success: #1f8a5f;
  --color-warning: #b45309;
  --color-danger: #c0392b;

  --font-sans: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container-width: 1080px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-strong);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-strong);
  text-decoration: underline;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-primary);
}

h1 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); margin: 0 0 0.6em; }
h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 2.2em 0 0.8em;
  padding-left: 14px;
  border-left: 4px solid var(--color-accent);
}
h3 { font-size: 1.15rem; margin: 1.6em 0 0.6em; color: var(--color-primary-strong); }

p { margin: 0 0 1.2em; }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

strong { color: var(--color-primary); }

/* ── ヘッダー / ナビゲーション ───────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  height: var(--header-height);
  box-shadow: 0 2px 10px rgba(11, 37, 69, 0.15);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.site-logo:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
}

.site-nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  height: 100%;
}

.site-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav__item > a {
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav__item:hover > a,
.site-nav__item.is-active > a {
  color: var(--color-primary);
  background: var(--color-accent);
  text-decoration: none;
}

.site-nav__item--lang > a {
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.site-nav__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px;
  list-style: none;
  margin: 6px 0 0;
  box-shadow: 0 20px 40px rgba(11, 37, 69, 0.2);
}

.site-nav__item:hover .site-nav__submenu {
  display: block;
}

.site-nav__submenu li { margin: 0; }

.site-nav__submenu a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.88rem;
}

.site-nav__submenu a:hover {
  background: var(--color-surface-alt);
  color: var(--color-primary-strong);
  text-decoration: none;
}

/* ── パンくずリスト ───────────────────────────────────── */
.breadcrumb {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 14px 20px 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: var(--color-border);
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary-strong); }

/* ── メインコンテンツ ─────────────────────────────────── */
.site-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.article-header {
  padding: 28px 0 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
}

/* ── カード ───────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 1.6em 0;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 2px 8px rgba(11, 37, 69, 0.05);
}

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ── テーブル ───────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: 1.6em 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

table.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 0.92rem;
  background: var(--color-surface);
}

table.compare-table th,
table.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

table.compare-table thead th {
  background: var(--color-primary);
  color: #fff;
}

table.compare-table tbody tr:hover {
  background: var(--color-surface-alt);
}

/* ── コールアウト / 目次 ─────────────────────────────── */
.callout {
  background: var(--color-surface-alt);
  border-left: 4px solid var(--color-primary-strong);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 1.6em 0;
}

.callout p:last-child { margin-bottom: 0; }

.callout--warning {
  border-left-color: var(--color-warning);
  background: #fdf3e7;
}

.contact-success {
  border-left-color: var(--color-success);
  background: #eaf7f1;
  font-weight: 700;
}

.toc {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 1.6em 0;
}

.toc p { margin: 0 0 0.6em; font-weight: 700; color: var(--color-primary); }
.toc ol { margin: 0; padding-left: 1.2em; }

/* ── CTAボタン ───────────────────────────────────────── */
.cta-button {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-button:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(185, 146, 47, 0.4);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.4em 0;
}

/* ── お問い合わせフォーム ─────────────────────────────── */
.contact-form-wrap {
  margin: 1.6em 0;
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--color-text);
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-error {
  color: var(--color-danger);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ハニーポット: 通常ユーザーには見えないbot対策フィールド */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── フッター ───────────────────────────────────────── */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 60px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: 28px;
  padding: 48px 20px;
}

.site-footer__logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0 0 0.6em; }
.site-footer__desc { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; margin-bottom: 0.4em; }
.site-footer__address { color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; margin-bottom: 0.3em; }
.site-footer__heading { color: #fff; font-weight: 700; margin: 0 0 0.6em; }
.site-footer__heading a { color: inherit; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: 0.4em; }
.site-footer__col a { color: rgba(255, 255, 255, 0.75); font-size: 0.86rem; }
.site-footer__col a:hover { color: var(--color-accent); }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

/* ── レスポンシブ ───────────────────────────────────── */
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .site-nav.is-open { display: block; }

  .site-nav > ul {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .site-nav__item { flex-direction: column; align-items: stretch; }

  .site-nav__submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    margin-top: 4px;
  }

  .site-nav__submenu a {
    color: rgba(255, 255, 255, 0.85);
  }

  .site-nav__submenu a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-accent);
  }

  .site-nav__item.is-open .site-nav__submenu { display: block; }

  .site-footer__inner { grid-template-columns: 1fr; }
}
