/* ============================================
   Innovation Plus - Global Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary:       #0A2540;
  --color-primary-mid:   #0D3461;
  --color-accent:        #0A6EB4;
  --color-accent-light:  #3391D4;
  --color-accent-soft:   rgba(10, 110, 180, 0.08);
  --color-white:         #FFFFFF;
  --color-bg:            #F7F9FC;
  --color-bg-dark:       #EEF2F7;
  --color-text:          #1A2B3C;
  --color-text-mid:      #4A5E72;
  --color-text-light:    #7A8FA3;
  --color-border:        rgba(0, 0, 0, 0.10);
  --color-border-light:  rgba(0, 0, 0, 0.06);

  --font-sans: 'Noto Sans JP', 'Hiragino Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(10,37,64,.06);
  --shadow-md:  0 6px 24px rgba(10,37,64,.10);
  --shadow-lg:  0 16px 48px rgba(10,37,64,.14);

  --nav-height: 72px;
  --container:  1120px;
  --section-py: 96px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--color-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent-light); }

ul, ol { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { color: var(--color-text-mid); }

/* --- Section Common --- */
.section {
  padding: var(--section-py) 0;
}
.section--bg {
  background: var(--color-bg);
}
.section--dark {
  background: var(--color-primary);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.section-title {
  margin-bottom: 16px;
}
.section-lead {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-mid);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .22s ease;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,110,180,.3);
}
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--color-white);
}
.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

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

/* --- Tag / Badge --- */
.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  margin: 2px;
}
.tag-dark {
  background: rgba(10,37,64,.08);
  color: var(--color-primary);
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 60%, #1a5280 100%);
  padding: 100px 0 64px;
  margin-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header-inner {
  position: relative;
}
.page-header-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 12px;
}
.page-header h1 {
  color: var(--color-white);
  margin-bottom: 12px;
}
.page-header p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 560px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-white);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: .85rem;
  color: var(--color-text-light);
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--color-border);
}
.breadcrumb a {
  color: var(--color-text-light);
}
.breadcrumb a:hover { color: var(--color-accent); }

/* --- Number / Stat --- */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}
.stat-unit {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
}
.stat-label {
  font-size: .85rem;
  color: var(--color-text-light);
  margin-top: 6px;
}

/* --- Icon Box --- */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 2px;
  margin: 0 auto 20px;
}
.divider-left { margin: 0 0 20px; }

/* --- Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th,
.info-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  font-size: .95rem;
}
.info-table th {
  width: 200px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-bg);
  white-space: nowrap;
}
.info-table td {
  color: var(--color-text-mid);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-light));
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-accent);
}
.timeline-year {
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.timeline-title {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
}
.timeline-text {
  font-size: .9rem;
  color: var(--color-text-mid);
  margin-top: 4px;
}

/* --- Step Flow --- */
.step-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}
.step-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '›';
  position: absolute;
  right: -12px;
  top: 20px;
  font-size: 1.6rem;
  color: var(--color-accent);
  font-weight: 900;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 800;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.step-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}
.faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
  font-size: .95rem;
  user-select: none;
}
.faq-q-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}
.faq-arrow {
  margin-left: auto;
  font-size: 1rem;
  color: var(--color-accent);
  transition: transform .25s;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 0 0 20px 46px;
  color: var(--color-text-mid);
  font-size: .93rem;
  line-height: 1.8;
}
.faq-item.open .faq-answer {
  display: block;
}

/* ============================================
   NAVIGATION
   ============================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow .3s;
}
#site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.site-header-inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 32px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -.04em;
}
.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -.02em;
}
.logo-text span {
  color: var(--color-accent);
}

.global-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.global-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.global-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.global-nav a:hover,
.global-nav a.active {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* Dropdown */
.nav-item-has-dropdown {
  position: relative;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
  min-width: 180px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: all .2s;
  z-index: 100;
}
.nav-item-has-dropdown:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: .85rem;
  border-radius: var(--radius-sm);
}

/* Contact Nav Button */
.nav-cta {
  margin-left: 12px;
}
.nav-cta a {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-md) !important;
}
.nav-cta a:hover {
  background: var(--color-accent-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10,110,180,.3);
}

/* Mobile Nav */
.mobile-nav-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
}
.mobile-nav-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all .3s;
}
.mobile-nav-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  overflow-y: auto;
  z-index: 999;
  padding: 24px;
}
#mobile-nav.open {
  display: block;
}
#mobile-nav ul {
  list-style: none;
}
#mobile-nav > ul > li > a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border-light);
  text-decoration: none;
}
#mobile-nav .mobile-sub-menu {
  padding: 8px 16px 16px;
}
#mobile-nav .mobile-sub-menu a {
  display: block;
  padding: 10px 0;
  font-size: .95rem;
  color: var(--color-text-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-light);
}

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-text {
  color: var(--color-white);
  margin-bottom: 12px;
  display: block;
  font-size: 1.2rem;
}
.footer-brand p {
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  line-height: 1.7;
}
.footer-col h4 {
  color: var(--color-white);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  transition: color .2s;
  text-decoration: none;
}
.footer-col ul li a:hover {
  color: var(--color-white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: rgba(255,255,255,.4);
  font-size: .82rem;
  text-decoration: none;
}
.footer-bottom-links a:hover {
  color: rgba(255,255,255,.7);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }
.fade-in-delay-4 { transition-delay: .4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }
  .global-nav, .nav-cta { display: none; }
  .mobile-nav-btn { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .step-flow { flex-direction: column; align-items: stretch; }
  .step-item::after { display: none; }
  .info-table th { width: 120px; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { justify-content: center; }
  .page-header { padding: 80px 0 48px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card { padding: 24px 20px; }
}
