/* ==========================================================
   株式会社DNS コーポレートサイト 共通スタイル
   （dnsco.jp のトーン＆マナーを踏襲）
   ========================================================== */
:root {
  --navy: #132b54;
  --navy-dark: #0d1f3d;
  --navy-mid: #2a4478;
  --gold: #b39c7c;
  --gold-dark: #96805f;
  --bg-gray: #ccd4e3;
  --text: #333333;
  --muted: #666a72;
  --line: #d9dee8;
  --white: #ffffff;
  --serif: "Times New Roman", "Georgia", "Yu Mincho", serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 1px 6px rgba(19,43,84,.08);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
}
.brand .brand-name {
  font-weight: 900;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: .04em;
}
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
}
.menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text);
  margin: 5px 0;
  transition: .3s;
}
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.gnav {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 84vw);
  height: 100vh;
  background: var(--navy);
  padding: 110px 34px 40px;
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 1001;
}
body.menu-open .gnav { transform: translateX(0); }
.gnav ul { list-style: none; }
.gnav li { border-bottom: 1px solid rgba(255,255,255,.18); }
.gnav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 4px;
  letter-spacing: .05em;
}
.gnav a .en {
  display: block;
  font-size: .7rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gnav a:hover { opacity: .75; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,31,61,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 999;
}
body.menu-open .nav-overlay { opacity: 1; pointer-events: auto; }

/* ---------- 固定CTA ---------- */
.cta-fixed {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: background .2s;
}
.cta-fixed:hover { background: var(--gold-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 20px 90px;
  overflow: hidden;
  background:
    radial-gradient(circle 130px at 86% 16%, rgba(42,68,120,.85), rgba(42,68,120,.85) 99%, transparent 100%),
    radial-gradient(circle 60px at 72% 9%, rgba(84,110,160,.8), rgba(84,110,160,.8) 99%, transparent 100%),
    radial-gradient(circle 46px at 60% 46%, rgba(84,110,160,.65), rgba(84,110,160,.65) 99%, transparent 100%),
    linear-gradient(160deg, #f6f8fc 0%, #ffffff 55%, #eef2f9 100%);
}
.hero-inner { max-width: 1160px; margin: 0 auto; }
.hero h1 {
  color: var(--navy);
  font-size: clamp(1.6rem, 4.6vw, 2.9rem);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.hero .hero-band {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: clamp(.95rem, 2.4vw, 1.45rem);
  padding: 8px 22px;
  margin-bottom: 40px;
}
.hero .note {
  font-size: .74rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- ボタン ---------- */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 42px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: background .2s, transform .2s;
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 40px;
  transition: background .2s;
}
.btn-navy:hover { background: var(--navy-mid); }

/* ---------- セクション共通 ---------- */
section { padding: 78px 20px; }
.inner { max-width: 1160px; margin: 0 auto; }
.sec-title {
  display: inline-block;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: .02em;
  border-bottom: 3px solid var(--navy);
  padding-bottom: 2px;
  line-height: 1.3;
}
.sec-sub {
  font-weight: 700;
  color: var(--navy);
  margin: 10px 0 26px;
}
.on-navy { background: var(--navy); color: #fff; }
.on-navy .sec-title { color: var(--gold); border-color: var(--gold); }
.on-navy .sec-sub { color: var(--gold); }
.on-gray { background: var(--bg-gray); }

/* ---------- カード ---------- */
.card {
  background: var(--white);
  color: var(--text);
  padding: 40px 34px;
  box-shadow: 6px 6px 14px rgba(0,0,0,.18);
  text-align: center;
}
.card + .card { margin-top: 26px; }
.card h3 {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.card p { text-align: left; }
.card .card-icon { width: 64px; height: 64px; margin: 18px auto 6px; display: block; }
.card .btn-navy { margin-top: 22px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.card-grid .card + .card { margin-top: 0; }

/* ---------- Flow ---------- */
.flow-arrow {
  position: relative;
  height: 2px;
  background: var(--navy);
  margin: 8px 4px 42px;
}
.flow-arrow::after {
  content: "";
  position: absolute;
  right: -2px; top: -7px;
  border-left: 16px solid var(--navy);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 22px;
}
.step {
  background: var(--white);
  border: 1px solid var(--navy);
  display: flex;
  flex-direction: column;
}
.step .step-head {
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .08em;
  text-align: center;
  padding: 8px 0;
}
.step .step-body { padding: 24px 18px 26px; text-align: center; }
.step .step-icon { width: 58px; height: 58px; margin: 4px auto 16px; display: block; }
.step h3 {
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.5;
}
.step p { font-size: .86rem; text-align: left; color: var(--text); }

/* ---------- 会社概要テーブル ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
.company-table th, .company-table td {
  border-bottom: 1px solid var(--line);
  padding: 20px 14px;
  text-align: left;
  vertical-align: top;
  font-size: .95rem;
}
.company-table th {
  width: 28%;
  min-width: 110px;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- パンくず ---------- */
.breadcrumb {
  max-width: 1160px;
  margin: 0 auto;
  padding: 96px 20px 0;
  font-size: .8rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- 下層ページタイトル ---------- */
.page-title {
  padding: 34px 20px 44px;
  background: linear-gradient(160deg, #f6f8fc 0%, #ffffff 60%, #eef2f9 100%);
}
.page-title .inner p { font-weight: 700; color: var(--navy); margin-top: 8px; }

/* ---------- Message ---------- */
.message-photo-note {
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  margin: 8px 0 26px;
}
.message-body p { margin-bottom: 1.2em; }

/* ---------- ブログ ---------- */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 4px 4px 10px rgba(0,0,0,.1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 6px 8px 14px rgba(0,0,0,.16); }
.post-card .post-head {
  background: var(--navy);
  color: #fff;
  padding: 18px 20px;
  min-height: 86px;
  display: flex;
  align-items: center;
  font-weight: 700;
  line-height: 1.6;
}
.post-card .post-body { padding: 18px 20px 22px; }
.post-card .post-meta {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.post-card .post-tag {
  background: #eef1f7;
  color: var(--navy);
  font-weight: 700;
  padding: 1px 10px;
  border-radius: 999px;
}
.post-card .post-excerpt { font-size: .88rem; color: var(--text); }
.post-card .post-more {
  color: var(--navy);
  font-weight: 700;
  font-size: .85rem;
  margin-top: 12px;
}

/* 記事本文 */
.article { max-width: 780px; margin: 0 auto; }
.article .article-meta {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 26px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.article .post-tag {
  background: #eef1f7;
  color: var(--navy);
  font-weight: 700;
  padding: 1px 10px;
  border-radius: 999px;
}
.article h2 {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
  border-left: 5px solid var(--navy);
  background: #f2f5fa;
  padding: 10px 16px;
  margin: 44px 0 18px;
  line-height: 1.5;
}
.article h3 {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 30px 0 12px;
}
.article p { margin-bottom: 1.2em; }
.article ul, .article ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.article li { margin-bottom: .4em; }
.article .article-cta {
  background: #f2f5fa;
  border: 1px solid var(--line);
  padding: 26px;
  text-align: center;
  margin-top: 46px;
}
.article .article-cta p { font-weight: 700; color: var(--navy); }
.back-to-list { text-align: center; margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.85);
  padding: 54px 20px 30px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 22px;
}
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; }
.footer-brand span { color: #fff; font-weight: 900; }
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin-bottom: 26px;
}
.footer-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .88rem;
}
.footer-nav a:hover { color: #fff; }
.copyright { font-size: .78rem; color: rgba(255,255,255,.55); }

/* ---------- スマホ ---------- */
@media (max-width: 768px) {
  section { padding: 58px 18px; }
  .hero { padding: 120px 18px 66px; }
  .card { padding: 30px 22px; }
  .cta-fixed { font-size: .82rem; padding: 11px 20px; }
  .steps { grid-template-columns: 1fr; }
  .step p { text-align: center; }
  .breadcrumb { padding-top: 88px; }
}
