@charset "UTF-8";
/* =========================================================
   ソフトサイエンス株式会社 コーポレートサイト 共通スタイル
   ========================================================= */
:root {
  --navy: #023894;
  --blue: #008bd9;
  --text: #222;
  --muted: #666;
  --line: #ddd;
  --bg-gray: #f5f6f8;
  --white: #fff;
  --header-h: 72px;
  --inner: 1180px;
  --font: "Segoe UI", Verdana, "游ゴシック", YuGothic, "Yu Gothic Medium", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.9;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
img, video { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--blue); }
a:hover { opacity: .8; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0; }
p { margin: 0 0 1.2em; }
table { border-collapse: collapse; width: 100%; }

.inner { max-width: var(--inner); margin: 0 auto; padding: 0 24px; }
.sp-only { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.site-header__inner {
  height: 100%; display: flex; align-items: center; gap: 24px;
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
}
.site-header__logo { margin: 0; flex-shrink: 0; }
.site-header__logo img { width: 200px; }
.site-header__mynavi { flex-shrink: 0; }
.site-header__mynavi img { height: 28px; width: auto; }

.gnav { margin-left: auto; }
.gnav > ul { list-style: none; margin: 0; padding: 0; display: flex; }
.gnav > ul > li { position: relative; }
.gnav a {
  display: block; padding: 0 16px; line-height: var(--header-h);
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.gnav > ul > li > a:hover, .gnav > ul > li.is-current > a { color: var(--navy); opacity: 1; }
.gnav > ul > li.is-current > a { box-shadow: inset 0 -3px 0 var(--navy); }
.gnav .sub {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--navy); visibility: hidden; opacity: 0; transition: opacity .2s;
}
.gnav li:hover > .sub, .gnav li:focus-within > .sub { visibility: visible; opacity: 1; }
.gnav .sub a { color: #fff; line-height: 1.6; padding: 10px 20px; font-weight: 400; font-size: 14px; }
.gnav .sub a:hover { background: rgba(255,255,255,.12); opacity: 1; }
.gnav__toggle { display: none; }

.menu-btn {
  display: none; margin-left: auto;
  width: 48px; height: 48px; border: 0; background: none; cursor: pointer; position: relative;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 12px; width: 24px; height: 2px; background: var(--text); transition: .25s;
}
.menu-btn::before { top: 16px; } .menu-btn span { top: 23px; } .menu-btn::after { top: 30px; }
.is-menu-open .menu-btn::before { top: 23px; transform: rotate(45deg); }
.is-menu-open .menu-btn span { opacity: 0; }
.is-menu-open .menu-btn::after { top: 23px; transform: rotate(-45deg); }

main { padding-top: var(--header-h); display: block; }

/* ---------- Hero (top) ---------- */
.hero { position: relative; height: calc(100vh - var(--header-h)); min-height: 420px; max-height: 860px; overflow: hidden; background: #0b2a5a; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__title {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; font-size: clamp(24px, 4vw, 44px); font-weight: 700; line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0,0,0,.45); padding: 0 16px;
}

/* ---------- Page cover (lower pages) ---------- */
.cover {
  position: relative; height: 340px; background: #333 center / cover no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center;
}
.cover::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.cover > * { position: relative; }
.cover__title { font-size: 40px; font-weight: 700; letter-spacing: .05em; }
.cover__sub { font-size: 15px; margin: 0; letter-spacing: .1em; }
.cover--plain { height: 220px; background: var(--navy); }
.cover--plain::before { display: none; }

.lead {
  position: relative; max-width: var(--inner); margin: -80px auto 0; background: #fff;
  padding: 56px 40px 24px; text-align: center;
}
.lead__title { color: var(--blue); font-size: 32px; font-weight: 700; margin-bottom: 24px; }
.lead__desc { font-size: 15px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { list-style: none; margin: 0 auto; padding: 14px 24px; max-width: var(--inner); font-size: 13px; display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; margin: 0 .6em; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }

/* ---------- Content ---------- */
.content { padding: 24px 0 96px; }
.section { margin-top: 72px; }
.sec-title {
  background: var(--navy); color: #fff; text-align: center; font-size: 22px; font-weight: 700;
  padding: 14px 16px; margin: 0 0 40px;
}
.sec-title small { font-size: 14px; font-weight: 400; margin-left: .5em; }
.sub-title { font-size: 18px; color: var(--navy); border-left: 4px solid var(--navy); padding-left: 12px; margin: 32px 0 12px; }
.page-title { font-size: 28px; color: var(--navy); text-align: center; margin: 48px 0 40px; }
.q-title { font-size: 19px; color: var(--navy); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.q-title .q { display: inline-block; background: var(--navy); color: #fff; font-size: 14px; padding: 0 10px; margin-right: 10px; vertical-align: 2px; }
.center { text-align: center; }
.right { text-align: right; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 48px; }
.cols--center { align-items: center; }
.cols--3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols img { width: 100%; }

.table th, .table td { border: 1px solid var(--line); padding: 16px 20px; text-align: left; vertical-align: top; }
.table th { background: var(--bg-gray); width: 22%; font-weight: 600; white-space: nowrap; }
.table--grid th { width: auto; background: var(--navy); color: #fff; text-align: center; }
.table p { margin: 0 0 .4em; }
.table ul { margin: 0; padding-left: 1.2em; }

.btn {
  display: inline-block; min-width: 260px; padding: 16px 40px; background: var(--blue); color: #fff;
  text-decoration: none; text-align: center; font-weight: 600; transition: background .2s;
}
.btn:hover { background: var(--navy); opacity: 1; }
.btn-wrap { text-align: center; margin: 40px 0 0; }
.btn-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 40px; }
.btn-row .btn { min-width: 0; }

.text-link::before { content: "≫ "; }

/* ---------- Top page ---------- */
.top-intro { text-align: center; padding: 80px 0 48px; }
.top-intro h2 { font-size: 32px; color: var(--navy); margin-bottom: 24px; }
.top-sec { padding: 72px 0; }
.top-sec--gray { background: var(--bg-gray); }
.top-sec__head { text-align: center; margin-bottom: 40px; }
.top-sec__title { font-size: 40px; color: var(--navy); letter-spacing: .04em; }
.top-sec__sub { margin: 0; color: var(--muted); }
.top-sec__desc { margin-top: 20px; }

.three-box { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.three-box a { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; background: #fff; border: 1px solid var(--line); }
.three-box a:hover { opacity: 1; }
.three-box a:hover img { transform: scale(1.05); }
.three-box__head { text-align: center; padding: 24px 16px 8px; }
.three-box__head h3 { font-size: 22px; color: var(--navy); }
.three-box__head p { margin: 0; font-size: 13px; color: var(--muted); }
.three-box__desc { padding: 8px 24px 20px; font-size: 14px; flex-grow: 1; margin: 0; }
.three-box__img { overflow: hidden; aspect-ratio: 4 / 3; }
.three-box__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }

/* ---------- News ---------- */
.news-tabs { list-style: none; display: flex; gap: 4px; margin: 0 0 0; padding: 0; border-bottom: 2px solid var(--navy); }
.news-tabs a, .news-tabs button {
  display: block; padding: 10px 28px; background: #e9ecf2; color: var(--text); text-decoration: none;
  border: 0; font: inherit; font-size: 15px; cursor: pointer;
}
.news-tabs .is-active a, .news-tabs .is-active button { background: var(--navy); color: #fff; }
.news-panel { display: none; }
.news-panel.is-active { display: block; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 20px 8px; color: var(--text); text-decoration: none; }
.news-list a:hover { background: var(--bg-gray); opacity: 1; }
.news-list time { color: var(--muted); font-size: 14px; }
.news-list h3 { font-size: 16px; font-weight: 400; flex: 1 1 100%; }
.cat { display: inline-block; font-size: 12px; line-height: 1; padding: 6px 10px; color: #fff; background: var(--blue); }
.cat--recruit { background: #d80100; }

.article { max-width: 860px; margin: 0 auto; }
.article__meta { display: flex; gap: 16px; align-items: center; margin: 40px 0 8px; }
.article__meta time { color: var(--muted); }
.article__title { font-size: 26px; color: var(--navy); padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.article__body { min-height: 120px; }

/* ---------- Company ---------- */
.philosophy { text-align: center; font-size: 26px; font-weight: 700; color: var(--navy); line-height: 2.2; }
.philosophy span { background: linear-gradient(transparent 60%, #cfe9fb 60%); }
.guideline { text-align: center; margin-bottom: 32px; }
.guideline h3 { font-size: 22px; color: var(--navy); margin-bottom: 4px; }
.map { width: 100%; height: 450px; border: 0; }

/* ---------- Recruit ---------- */
.recruit-cards { display: grid; gap: 40px; margin-top: 64px; }
.recruit-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-gray); color: var(--text); text-decoration: none; overflow: hidden; }
.recruit-card:nth-child(even) .recruit-card__body { order: 2; }
.recruit-card:hover { opacity: 1; }
.recruit-card:hover img { transform: scale(1.04); }
.recruit-card__body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.recruit-card__title { font-size: 28px; color: var(--navy); }
.recruit-card__sub { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.recruit-card__desc { font-size: 20px; font-weight: 700; line-height: 1.8; }
.recruit-card__more { color: var(--blue); font-weight: 600; margin: 0; }
.recruit-card__more::after { content: " ›"; }
.recruit-card__img { overflow: hidden; }
.recruit-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }

.profile { font-weight: 700; font-size: 18px; color: var(--navy); line-height: 1.7; }
.data-item { text-align: center; background: var(--bg-gray); padding: 24px 16px; }
.data-item h3 { font-size: 16px; color: var(--navy); margin-bottom: 12px; }
.data-item img { max-width: 120px; }
.data-item p { margin: 12px 0 0; font-size: 18px; }
.data-item .num { font-size: 44px; font-weight: 700; color: var(--blue); margin-right: 4px; }
.check-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.check-list li { padding-left: 1.6em; position: relative; margin-bottom: 6px; break-inside: avoid; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.check-list--1 { columns: 1; }
.banner { text-align: center; margin: 48px 0 0; }

/* ---------- Contact ---------- */
.contact-box { max-width: 720px; margin: 0 auto; border: 1px solid var(--line); padding: 40px; text-align: center; }
.contact-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 16px 24px; text-align: left; align-items: baseline; }
.contact-box dt { font-weight: 700; color: var(--navy); }
.contact-box dd { margin: 0; font-size: 22px; font-weight: 700; }
.contact-box dd small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.contact-box dd a { color: var(--text); text-decoration: none; }

/* ---------- Sitemap ---------- */
.sitemap { columns: 2; column-gap: 48px; padding: 0; list-style: none; }
.sitemap > li { break-inside: avoid; margin-bottom: 24px; }
.sitemap > li > a { font-weight: 700; color: var(--navy); }
.sitemap ul { list-style: none; padding-left: 1em; margin: 4px 0 0; }
.sitemap ul li::before { content: "- "; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__top { padding: 48px 0 24px; }
.site-footer__logo { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.site-footer__logo img { width: 170px; }
.site-footer__logo p { margin: 0; font-size: 13px; color: var(--muted); }
.site-footer__address { font-size: 13px; color: var(--muted); margin: -16px 0 32px; }
.fnav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; }
.fnav h2 { font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.fnav h2 a { color: inherit; text-decoration: none; }
.fnav ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.fnav li { margin-bottom: 4px; }
.fnav li a { color: var(--text); text-decoration: none; }
.fnav li a:hover { color: var(--blue); }
.site-footer__links { list-style: none; margin: 0; padding: 20px; display: flex; justify-content: center; gap: 32px; font-size: 13px; border-top: 1px solid var(--line); }
.site-footer__links a { color: var(--text); text-decoration: none; }
.copyright { background: var(--navy); color: #fff; text-align: center; font-size: 12px; margin: 0; padding: 16px; }

.pagetop {
  position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; background: rgba(2,56,148,.85); color: #fff;
  display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 18px;
  opacity: 0; visibility: hidden; transition: .3s; z-index: 50;
}
.pagetop.is-show { opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --header-h: 60px; }
  .site-header__logo img { width: 160px; }
  .menu-btn { display: block; }
  .site-header__mynavi { margin-left: auto; }
  .menu-btn { margin-left: 0; }
  .gnav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--navy);
    overflow-y: auto; transform: translateX(100%); transition: transform .3s; margin: 0;
  }
  .is-menu-open .gnav { transform: none; }
  .is-menu-open { overflow: hidden; }
  .gnav > ul { display: block; padding: 8px 0 40px; }
  .gnav > ul > li { border-bottom: 1px solid rgba(255,255,255,.15); }
  .gnav a { color: #fff; line-height: 1.6; padding: 16px 24px; }
  .gnav > ul > li > a:hover, .gnav > ul > li.is-current > a { color: #fff; box-shadow: none; }
  .gnav .sub { position: static; visibility: visible; opacity: 1; display: none; background: rgba(0,0,0,.18); padding: 0; min-width: 0; }
  .gnav li.is-open > .sub { display: block; }
  .gnav .sub a { padding: 12px 40px; }
  .gnav__toggle {
    display: block; position: absolute; right: 0; top: 0; width: 58px; height: 58px; border: 0; background: none;
    color: #fff; font-size: 20px; cursor: pointer;
  }
  .gnav li.is-open > .gnav__toggle { transform: rotate(45deg); }
}
@media (max-width: 767px) {
  body { font-size: 15px; }
  .inner { padding: 0 16px; }
  .sp-only { display: inline; }
  .site-header__inner { padding: 0 8px 0 16px; gap: 8px; }
  .site-header__logo img { width: 130px; }
  .site-header__mynavi img { height: 22px; }
  .cover { height: 220px; }
  .cover__title { font-size: 28px; }
  .cover--plain { height: 160px; }
  .lead { margin: -40px 16px 0; padding: 32px 16px 8px; }
  .lead__title { font-size: 21px; }
  .lead__desc br, .top-intro br { display: none; }
  .content { padding-bottom: 64px; }
  .section { margin-top: 48px; }
  .sec-title { font-size: 19px; margin-bottom: 24px; }
  .cols, .cols--3, .three-box, .recruit-card, .btn-row { grid-template-columns: 1fr; gap: 24px; }
  .recruit-card:nth-child(even) .recruit-card__body { order: 0; }
  .recruit-card__body { padding: 28px 20px; }
  .recruit-card__title { font-size: 22px; }
  .recruit-card__desc { font-size: 17px; }
  .top-intro { padding: 48px 0 24px; }
  .top-intro h2 { font-size: 24px; }
  .top-sec { padding: 48px 0; }
  .top-sec__title { font-size: 30px; }
  .philosophy { font-size: 19px; }
  .table th, .table td { display: block; width: 100%; padding: 10px 14px; }
  .table th { border-bottom: 0; }
  .table--grid { display: block; overflow-x: auto; }
  .table--grid th, .table--grid td { display: table-cell; width: auto; min-width: 110px; }
  .table--grid tr { display: table-row; }
  .check-list, .sitemap { columns: 1; }
  .fnav { grid-template-columns: 1fr 1fr; }
  .site-footer__links { gap: 16px; }
  .contact-box { padding: 24px 16px; }
  .contact-box dl { grid-template-columns: 1fr; gap: 4px; }
  .contact-box dd { font-size: 18px; margin-bottom: 12px; overflow-wrap: anywhere; }
  .btn { min-width: 0; width: 100%; }
  .page-title { font-size: 21px; margin: 32px 0 24px; }
  .map { height: 320px; }
}
