/*
Theme Name: MOLPREX
Theme URI: https://molprex.co.jp
Author: MOLPREX株式会社
Author URI: https://molprex.co.jp
Description: MOLPREX株式会社 公式サイトテーマ
Version: 1.0.0
License: Proprietary
Text Domain: molprex
*/

/* =============================================
   CSS Variables
   ============================================= */
:root {
  --navy-dark:  #0D1340;
  --navy-mid:   #1E2B80;
  --navy:       #3E49AB;
  --navy-light: #ECEEFA;
  --yellow:     #FFC121;
  --yellow-bg:  #FFF8E1;
  --yellow-text:#8B6500;
  --text:       #0D1340;
  --gray:       #6b7280;
  --gray-light: #9ca3af;
  --border:     #D4D8F0;
  --bg-light:   #F5F6FB;
  --white:      #ffffff;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

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

ul { list-style: none; }

/* =============================================
   Layout
   ============================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 80px 0;
}

.section--light { background: var(--bg-light); }
.section--dark  { background: var(--navy-dark); position: relative; overflow: hidden; }

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section__eyebrow-line {
  width: 22px;
  height: 1px;
  background: var(--yellow);
}

.section__eyebrow span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 400;
}

.section--dark .section__eyebrow-line { background: rgba(255,193,33,0.45); }
.section--dark .section__eyebrow span { color: var(--yellow); }

.section__title {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.section--dark .section__title { color: var(--white); }

.section__sub {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
  max-width: 560px;
}

.section--dark .section__sub { color: rgba(255,255,255,0.38); }

/* =============================================
   Navigation
   ============================================= */
.site-nav {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.site-nav__logo-dot {
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__links a {
  color: rgba(255,255,255,0.42);
  font-size: 12px;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.site-nav__links a:hover { color: var(--white); }

.site-nav__cta {
  background: transparent;
  color: var(--yellow);
  font-size: 12px;
  padding: 7px 18px;
  border-radius: 3px;
  border: 1px solid rgba(255,193,33,0.5);
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.site-nav__cta:hover { background: rgba(255,193,33,0.1); }

/* =============================================
   Hero
   ============================================= */
.hero {
  background: var(--navy-dark);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: -100px;
  right: -50px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(62,73,171,0.22) 0%, transparent 65%);
  pointer-events: none;
}

.hero__glow2 {
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,193,33,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero__eyebrow-line {
  width: 22px;
  height: 1px;
  background: var(--yellow);
}

.hero__eyebrow span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

.hero__heading {
  color: var(--white);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__heading .highlight { color: var(--yellow); }

.hero__desc {
  color: rgba(255,255,255,0.44);
  font-size: 15px;
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__btns {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn--primary {
  background: var(--yellow);
  color: var(--navy-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: opacity 0.2s;
}

.btn--primary:hover { opacity: 0.9; }

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  padding: 0;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  transition: color 0.2s;
}

.btn--ghost:hover { color: var(--white); }

.hero__metrics {
  display: flex;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__metric { flex: 1; }

.hero__metric + .hero__metric {
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.hero__metric-val {
  color: var(--white);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero__metric-val em {
  color: var(--yellow);
  font-style: normal;
  font-size: 11px;
  margin-left: 3px;
}

.hero__metric-label {
  color: rgba(255,255,255,0.28);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* =============================================
   Markets
   ============================================= */
.markets-primary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.market-card {
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.market-card__head {
  background: var(--navy-mid);
  padding: 20px 22px 16px;
}

.market-card__num {
  color: rgba(255,193,33,0.55);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.market-card__title {
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.market-card__body {
  padding: 16px 22px;
}

.market-card__body p {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
}

.tag--blue  { background: var(--navy-light); color: var(--navy); }
.tag--yellow{ background: var(--yellow-bg);  color: var(--yellow-text); }

.markets-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.market-mini {
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.market-mini__icon {
  width: 20px;
  height: 20px;
  background: var(--navy-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--yellow);
  font-size: 11px;
}

.market-mini h4 {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.market-mini p {
  color: var(--gray-light);
  font-size: 12px;
  line-height: 1.55;
}

/* =============================================
   Partnership
   ============================================= */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.biz-card {
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 22px;
}

.biz-card--highlight {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

.biz-card__num {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.biz-card--highlight .biz-card__num { color: rgba(255,193,33,0.6); }

.biz-card__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.biz-card--highlight .biz-card__title { color: var(--white); }

.biz-card__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray);
}

.biz-card--highlight .biz-card__desc { color: rgba(255,255,255,0.52); }

.biz-card__badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-top: 10px;
  background: var(--yellow);
  color: var(--navy-dark);
  font-weight: 500;
}

.flow {
  display: flex;
  align-items: stretch;
  margin-top: 20px;
}

.flow__step {
  flex: 1;
  text-align: center;
  padding: 16px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flow__step--highlight { background: var(--yellow); }

.flow__arrow {
  color: var(--border);
  font-size: 18px;
  padding: 0 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.flow__num {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 2px;
}

.flow__step--highlight .flow__num { color: rgba(13,19,64,0.5); }

.flow__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.flow__desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.65;
  margin-top: 6px;
  text-align: left;
}

.flow__step--highlight .flow__desc { color: rgba(13,19,64,0.65); }

/* =============================================
   Technology
   ============================================= */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.tech-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 20px;
}

.tech-card__icon {
  width: 32px;
  height: 32px;
  background: rgba(255,193,33,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--yellow);
}

.tech-card__title {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.tech-card__desc {
  color: rgba(255,255,255,0.44);
  font-size: 13px;
  line-height: 1.7;
}

/* =============================================
   Team
   ============================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.team-card {
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.team-card__head {
  background: var(--navy-mid);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-dark);
}

.team-card__name {
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 3px;
}

.team-card__role {
  color: rgba(255,193,33,0.8);
  font-size: 11px;
}

.team-card__body { padding: 18px 20px; }

.team-card__affil {
  font-size: 12px;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-card__career {
  list-style: none;
  margin-bottom: 14px;
}

.team-card__career li {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.6;
  padding-left: 12px;
  position: relative;
  margin-bottom: 3px;
}

.team-card__career li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--border);
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--navy-light);
  color: var(--navy);
}

/* =============================================
   CTA Strip
   ============================================= */
.cta-strip {
  background: var(--yellow);
  padding: 48px 0;
}

.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-strip h2 {
  color: var(--navy-dark);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}

.cta-strip p {
  color: rgba(13,19,64,0.55);
  font-size: 14px;
}

.btn--dark {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: opacity 0.2s;
}

.btn--dark:hover { opacity: 0.85; }

/* =============================================
   News
   ============================================= */
.news-list { margin-top: 28px; }

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child { border-bottom: none; }

.news-item__date {
  font-size: 12px;
  color: var(--gray-light);
  white-space: nowrap;
  min-width: 72px;
  margin-top: 2px;
}

.news-item__cat {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cat--pr    { background: var(--navy-light); color: var(--navy); }
.cat--info  { background: var(--yellow-bg);  color: var(--yellow-text); }
.cat--grant { background: #F0FDF4; color: #166534; }

.news-item__title {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.news-item__title a:hover { color: var(--navy); }

/* =============================================
   Company
   ============================================= */
.company-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
  align-items: start;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr { border-bottom: 1px solid var(--border); }
.company-table tr:last-child { border-bottom: none; }

.company-table th {
  font-size: 12px;
  color: var(--gray-light);
  font-weight: 400;
  padding: 13px 16px 13px 0;
  width: 110px;
  vertical-align: top;
  white-space: nowrap;
}

.company-table td {
  font-size: 14px;
  color: var(--text);
  padding: 13px 0;
  line-height: 1.7;
}

.company-table td.capital {
  font-weight: 500;
  color: var(--navy-mid);
  font-variant-numeric: tabular-nums;
}

/* Access Box */
.access-box {
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.access-map {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--border) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 本番ではここをGoogle Maps埋め込みに差し替えてください */
/* .access-map iframe { width:100%; height:100%; border:0; } */

.access-map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.7;
}

.access-map__pin {
  position: relative;
  z-index: 1;
  text-align: center;
}

.access-map__pin-dot {
  width: 16px;
  height: 16px;
  background: var(--yellow);
  border: 3px solid var(--navy-dark);
  border-radius: 50%;
  margin: 0 auto 6px;
}

.access-map__pin-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.access-info { padding: 20px; }

.access-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.access-row:last-child { margin-bottom: 0; }

.access-row .icon {
  color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}

.access-row p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--navy);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  width: 100%;
  transition: opacity 0.2s;
}

.maps-link:hover { opacity: 0.7; }

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--navy-dark);
  padding: 56px 0 24px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.site-footer__logo {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-footer__logo-dot {
  width: 5px;
  height: 5px;
  background: var(--yellow);
  border-radius: 50%;
}

.site-footer__brand p {
  color: rgba(255,255,255,0.24);
  font-size: 12px;
  line-height: 1.8;
}

.site-footer__col h4 {
  color: rgba(255,255,255,0.32);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer__col a {
  display: block;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.site-footer__col a:hover { color: rgba(255,255,255,0.7); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer__bottom p {
  color: rgba(255,255,255,0.16);
  font-size: 11px;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .hero__heading { font-size: 32px; }
  .markets-primary,
  .markets-secondary,
  .biz-grid,
  .tech-grid,
  .team-grid,
  .company-layout,
  .site-footer__grid { grid-template-columns: 1fr; }
  .company-layout { gap: 20px; }
  .cta-strip__inner { flex-direction: column; align-items: flex-start; }
  .site-nav__links { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 56px; }
  .hero__heading { font-size: 26px; }
  .hero__metrics { flex-direction: column; gap: 16px; }
  .hero__metric + .hero__metric { padding-left: 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }
  .flow { flex-wrap: wrap; gap: 4px; }
  .flow__arrow { display: none; }
  .flow__step { flex: 1 1 40%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* =============================================
   Partnership Overview Cards (連携形式サマリー)
   ============================================= */
.partner-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 8px;
}

.partner-overview__card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}

.partner-overview__icon {
  width: 44px;
  height: 44px;
  background: var(--navy-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--yellow);
  font-size: 20px;
}

.partner-overview__body {
  min-width: 0;
}

.partner-overview__card h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.partner-overview__card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray);
  margin: 0;
}

/* Biz grid label */
.biz-grid-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin: 24px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Biz card list */
.biz-card__list {
  list-style: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.biz-card__list li {
  font-size: 12px;
  color: var(--gray);
  padding-left: 12px;
  position: relative;
  margin-bottom: 4px;
  line-height: 1.5;
}

.biz-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-size: 11px;
}

.biz-card__list--light {
  border-top-color: rgba(255,255,255,0.15);
}

.biz-card__list--light li {
  color: rgba(255,255,255,0.55);
}

.biz-card__list--light li::before {
  color: var(--yellow);
}

/* biz-card desc strong */
.biz-card__desc strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 6px;
}

.biz-card--highlight .biz-card__desc strong {
  color: rgba(255,193,33,0.7);
}

/* Responsive additions */
@media (max-width: 900px) {
  .partner-overview { grid-template-columns: 1fr; }
}
