/* ========================================
   株式会社ミネルバ - Clean Professional Theme
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #2a6bb5;
  --blue-bright: #3a7bd5;
  --blue-dark: #1a3a5c;
  --blue-pale: #eef4fb;
  --blue-mist: #f5f9fc;
  --text-main: #2c3e50;
  --text-sub: #5a7a9a;
  --text-faint: #8aaac8;
  --border-light: #e0eaf5;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,"MS PGothic",sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-main);
  background: #fff;
}

a { color: var(--blue-bright); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }

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

/* ---- HEADER (fixed) ---- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow .3s;
}
#header.scrolled { box-shadow: 0 2px 16px rgba(42, 107, 181, .12); }
#header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img { max-height: 44px; width: auto; display: block; }

/* ---- NAV ---- */
#nav ul { list-style: none; display: flex; gap: 2px; flex-wrap: wrap; }
#nav ul li a {
  display: block;
  padding: 8px 16px;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: bold;
  border-radius: 6px;
  transition: all .2s;
  position: relative;
}
#nav ul li a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transition: transform .25s;
}
#nav ul li a:hover { color: var(--blue-dark); }
#nav ul li a:hover::after,
#nav ul li.current a::after { transform: scaleX(1); }
#nav ul li.current a { color: var(--blue-dark); }

#nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* ---- HERO ---- */
#hero {
  padding: 140px 20px 70px;
  background: linear-gradient(135deg, var(--blue-pale) 0%, #fafcfe 55%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-deco1 {
  position: absolute;
  right: -80px; top: -60px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: #dce8f8;
  opacity: .45;
}
.hero-deco2 {
  position: absolute;
  right: 120px; top: 160px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--blue-bright);
  opacity: .07;
}
.hero-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--blue-bright);
  border: 1px solid var(--blue-bright);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  background: #fff;
}
.hero-catch {
  font-size: 38px;
  font-weight: bold;
  color: var(--blue-dark);
  line-height: 1.45;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 2.1;
  max-width: 640px;
}
.hero-image {
  margin-top: 34px;
  text-align: center;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 30px rgba(42, 107, 181, .08);
}

/* ---- SECTION ---- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 50px 20px;
}
.section.alt { max-width: none; background: var(--blue-mist); }
.section.alt .section-inner { max-width: 1080px; margin: 0 auto; padding: 0 0; }
.section-title {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 8px;
  font-weight: bold;
}
.section-heading {
  font-size: 26px;
  color: var(--blue-dark);
  font-weight: bold;
  margin-bottom: 26px;
}

/* ---- SERVICE ICONS (5分野) ---- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.service-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 26px 14px;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(42, 107, 181, .14);
  border-color: var(--blue-bright);
}
.service-icon {
  width: 54px; height: 54px;
  margin: 0 auto 12px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-bright);
  transition: background .3s, color .3s;
}
.service-item:hover .service-icon {
  background: var(--blue-bright);
  color: #fff;
}
.service-icon svg { width: 28px; height: 28px; }
.service-name { font-size: 15px; font-weight: bold; color: var(--blue-dark); }
.service-desc { font-size: 11px; color: var(--text-faint); margin-top: 6px; line-height: 1.6; }

/* ---- POST CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 24px;
  transition: transform .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(42, 107, 181, .12);
}
.card .thumb {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  text-align: center;
  background: var(--blue-mist);
  padding: 10px;
}
.card .thumb img { max-height: 110px; width: auto; }
.card h3 { font-size: 17px; color: var(--blue-dark); margin-bottom: 10px; }
.card p { font-size: 13px; color: var(--text-sub); line-height: 1.9; }
.card .read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: bold;
}
.card .read-more::after { content: " →"; transition: margin-left .2s; }
.card:hover .read-more::after { margin-left: 4px; }

/* ---- STATS ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.stat {
  background: #fff;
  border-radius: 12px;
  padding: 26px 16px;
  text-align: center;
  border: 1px solid var(--border-light);
}
.stat-num {
  font-size: 38px;
  font-weight: bold;
  color: var(--blue-bright);
  line-height: 1.2;
}
.stat-num .unit { font-size: 15px; color: var(--text-faint); margin-left: 3px; }
.stat-label { font-size: 12px; color: var(--text-sub); margin-top: 6px; }

/* ---- PAGE CONTENT (sub pages) ---- */
#main {
  max-width: 900px;
  margin: 0 auto;
  padding: 130px 20px 40px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.breadcrumb a { color: var(--text-sub); }
.page-title {
  font-size: 28px;
  color: var(--blue-dark);
  font-weight: bold;
  border-left: 4px solid var(--blue-bright);
  padding-left: 16px;
  margin-bottom: 30px;
}

/* ---- INFO LIST ---- */
dl.info-list { margin-bottom: 24px; }
dl.info-list dt {
  font-weight: bold;
  color: var(--blue);
  margin-top: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
dl.info-list dd {
  padding: 10px 0 4px 18px;
  color: var(--text-main);
  line-height: 2;
}

/* ---- SECURITY POLICY ---- */
.security-policy {
  background: var(--blue-mist);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 30px;
  font-size: 13px;
}
.security-policy h3 {
  font-size: 17px;
  color: var(--blue-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.security-policy ol { padding-left: 20px; }
.security-policy ol li { margin-bottom: 12px; line-height: 1.9; color: var(--text-sub); }
.security-policy ol li strong { color: var(--text-main); }

/* ---- SERVICE PAGE ---- */
.service-section dl { margin-bottom: 24px; }
.service-section dt {
  font-weight: bold;
  color: var(--blue-dark);
  background: var(--blue-pale);
  border-left: 3px solid var(--blue-bright);
  padding: 8px 16px;
  margin-top: 16px;
  border-radius: 0 6px 6px 0;
}
.service-section dd {
  padding: 12px 16px 8px 24px;
  color: var(--text-sub);
  line-height: 2;
}

/* ---- RECRUIT PAGE ---- */
.recruit-section dt {
  font-weight: bold;
  color: var(--blue);
  margin-top: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}
.recruit-section dd { padding: 10px 0 4px 18px; line-height: 2; }
.mail-note {
  background: var(--blue-mist);
  border: 1px solid var(--blue-bright);
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 2.1;
}
.mail-note img { background: #fff; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border-light); }

/* ---- GREETING ---- */
.greeting-box {
  background: var(--blue-mist);
  border-left: 4px solid var(--blue-bright);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
}
.greeting-box .ceo {
  font-size: 16px;
  font-weight: bold;
  color: var(--blue-dark);
  margin-bottom: 18px;
}
.greeting-box p { line-height: 2.3; font-size: 14px; }

/* ---- FOOTER ---- */
#footer {
  background: var(--blue-dark);
  margin-top: 60px;
  font-size: 13px;
  color: #c8dcf0;
}
#footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #2a4a6c;
}
.footer-col { flex: 1; min-width: 180px; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8ab8e8;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #2a4a6c;
}
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 5px 0; border-bottom: 1px dotted #2a4a6c; }
.footer-col ul li:last-child { border-bottom: none; }
.footer-col ul li a { color: #a8c8e8; font-size: 13px; }
.footer-col ul li a:hover { color: #fff; }
.footer-col dl dt { font-weight: bold; color: #c8dcf0; margin-top: 10px; font-size: 12px; }
.footer-col dl dd { color: #a8c8e8; padding-left: 10px; line-height: 1.8; }
.footer-col dl dd a { color: #a8c8e8; font-size: 12px; }

#footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-tagline { color: #fff; font-weight: bold; font-size: 14px; }
.page-top-link a { color: #7aa8d8; font-size: 12px; }
.page-top-link a:hover { color: #fff; }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 760px) {
  .hero-catch { font-size: 26px; }
  #hero { padding-top: 110px; }
  #nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 10px 20px;
    box-shadow: 0 8px 20px rgba(42,107,181,.1);
  }
  #nav ul.open { display: flex; }
  #nav-toggle { display: block; }
  #header-inner { position: relative; }
  #footer-inner { flex-direction: column; gap: 24px; }
}
