/* ==========================================================================
   DG-COM.NET common stylesheet
   ========================================================================== */

:root {
  --color-primary: #0ea5e9;      /* sky blue - telecom */
  --color-primary-dark: #0369a1;
  --color-secondary: #22c55e;    /* green - eco/solar */
  --color-accent: #f59e0b;       /* solar orange/yellow */
  --color-accent-dark: #d97706;
  --color-ink: #0f172a;
  --color-ink-soft: #475569;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f9fd;
  --color-bg-alt: #eef6ff;
  --color-border: #e2e8f0;
  --gradient-brand: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
  --gradient-sun: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", Meiryo, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.brand__mark {
  width: 36px;
  height: 36px;
  display: block;
}

.brand__name-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__link:hover { background: var(--color-bg-alt); color: var(--color-primary-dark); }

.nav__link.is-active {
  background: var(--gradient-brand);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  position: relative;
  transition: all 0.2s ease;
}
.nav-toggle__bar::before { position: absolute; top: -7px; width: 22px; }
.nav-toggle__bar::after { position: absolute; top: 7px; width: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    display: none;
    padding: 12px 24px 20px;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__link { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 90px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 20px;
}

.hero__title .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--color-ink-soft);
  margin: 0 0 32px;
  max-width: 46ch;
}

.hero__art { position: relative; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 48px; }
  .hero__art { order: -1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(14, 165, 233, 0.38); }

.btn--ghost {
  background: #fff;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--gradient-brand);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}

.page-header__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.85;
  text-transform: uppercase;
}

.page-header__title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  margin: 10px 0 12px;
}

.page-header__lead {
  max-width: 60ch;
  margin: 0 auto;
  opacity: 0.95;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  padding: 14px 24px;
}
.breadcrumb a:hover { color: var(--color-primary-dark); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--soft { background: var(--color-bg-soft); }
.section--alt { background: var(--color-bg-alt); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.section__eyebrow {
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 10px 0 14px;
}

.section__lead { color: var(--color-ink-soft); }

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon img { width: 30px; height: 30px; }

.card__title { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px; }
.card__text { color: var(--color-ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.is-reverse .split__art { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.is-reverse .split__art { order: -1; }
}

.split__eyebrow {
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.split__title { font-size: 1.6rem; font-weight: 800; margin: 10px 0 16px; }
.split__text { color: var(--color-ink-soft); }

.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-ink);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--gradient-brand);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2l-3.5-3.6L4 14l5 5 11-11-1.5-1.4z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2l-3.5-3.6L4 14l5 5 11-11-1.5-1.4z"/></svg>') no-repeat center / contain;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat__num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { color: var(--color-ink-soft); font-size: 0.9rem; margin-top: 6px; }

/* ---------- Table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.info-table th, .info-table td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.info-table th {
  width: 200px;
  color: var(--color-ink-soft);
  font-weight: 700;
  background: var(--color-bg-soft);
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

@media (max-width: 620px) {
  .info-table th, .info-table td { display: block; width: 100%; padding: 12px 20px; }
  .info-table th { background: none; padding-bottom: 4px; }
}

.info-table td strong {
  display: block;
  font-size: 0.92rem;
  margin-top: 14px;
}
.info-table td strong:first-child { margin-top: 0; }
.info-table td ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
.info-table td ul li { margin-bottom: 4px; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--color-border);
}
.timeline__item { position: relative; padding-bottom: 32px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-brand);
}
.timeline__year { font-weight: 800; color: var(--color-primary-dark); }
.timeline__text { color: var(--color-ink-soft); margin-top: 4px; }

/* ---------- Job cards (recruit) ---------- */
.job-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.job-card__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.job-card__title { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.job-card__meta { color: var(--color-ink-soft); font-size: 0.9rem; }

/* ---------- CTA ---------- */
.cta {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta__title { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 800; margin: 0 0 14px; }
.cta__lead { opacity: 0.95; margin: 0 0 28px; }
.cta .btn--ghost { background: #fff; color: var(--color-primary-dark); border: none; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1424;
  color: #cbd5e1;
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 14px;
}
.footer__brand img { width: 30px; height: 30px; }
.footer__desc { color: #94a3b8; font-size: 0.9rem; max-width: 34ch; }

.footer__heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__list a { color: #94a3b8; font-size: 0.9rem; transition: color 0.2s ease; }
.footer__list a:hover { color: #fff; }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #64748b;
}

/* ---------- Form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-card);
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 620px) {
  .form-card { padding: 28px 22px; }
}

.form-group { margin-bottom: 26px; }
.form-group:last-of-type { margin-bottom: 0; }

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.form-label .required,
.form-label .optional {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-label .required { color: #b91c1c; background: #fee2e2; }
.form-label .optional { color: var(--color-ink-soft); background: var(--color-bg-soft); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-ink);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.form-textarea { resize: vertical; min-height: 150px; }

.form-radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-radio input { accent-color: var(--color-primary); }
.form-radio:has(input:checked) { border-color: var(--color-primary); background: var(--color-bg-alt); }

.form-hint {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  margin-top: 8px;
}

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  cursor: pointer;
}
.form-checkbox-row input { margin-top: 4px; accent-color: var(--color-primary); }

.form-submit { text-align: center; margin-top: 32px; }
.form-submit .btn { min-width: 220px; justify-content: center; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
