/* ==========================================================================
   IKOMAオープン・ラボ  —  site styles (Bootstrap 5 拡張)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand: #0d3b85;          /* メイン（紺） */
  --brand-dark: #082655;
  --brand-sky: #22a6e6;      /* サブ（空色） */
  --accent: #f08c1e;         /* CTA（オレンジ） */
  --accent-dark: #d47512;
  --light-blue: #f2f7fc;
  --text: #2b2f36;
  --nav-h: 72px;

  --bs-body-font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --bs-body-color: var(--text);
  --bs-body-line-height: 1.9;
  --bs-link-color-rgb: 13, 59, 133;
  --bs-link-hover-color-rgb: 8, 38, 85;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { letter-spacing: .03em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* ---------- Buttons ---------- */
.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--accent-dark);
  --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 240, 140, 30;
  font-weight: 700;
}
.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-color: #fff;
}

/* ---------- Navbar ---------- */
.site-nav {
  min-height: var(--nav-h);
  background: rgba(8, 38, 85, .55);
  backdrop-filter: blur(6px);
  transition: background-color .3s, box-shadow .3s;
}
.site-nav.is-scrolled { background: var(--brand-dark); box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.site-nav .navbar-brand img { height: 44px; width: auto; }
.site-nav .nav-link { font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.9); }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: #fff; }
@media (max-width: 991.98px) {
  .site-nav { background: var(--brand-dark); }
  .site-nav .navbar-nav { padding: 1rem 0; }
  .site-nav .btn-accent { margin-top: .5rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; max-height: 960px; overflow: hidden; background: var(--brand-dark); }
.hero-carousel, .hero-carousel .carousel-inner, .hero-carousel .carousel-item { height: 100%; }
.hero-carousel img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,38,85,.55) 0%, rgba(8,38,85,.35) 45%, rgba(8,38,85,.75) 100%);
}
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; padding-top: var(--nav-h); }
.hero-logo { width: min(640px, 86vw); height: auto; filter: drop-shadow(0 4px 16px rgba(0,0,0,.35)); }
.hero-lead { font-size: clamp(.8rem, 2.2vw, 1rem); opacity: .9; }
.hero-catch { font-size: clamp(1.25rem, 3.6vw, 2rem); font-weight: 700; letter-spacing: .12em; text-shadow: 0 2px 10px rgba(0,0,0,.35); }

/* ---------- Audience shortcuts ---------- */
.audience-nav { position: relative; z-index: 3; margin-top: -48px; }
.audience-card {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.25rem 1.5rem; border-radius: .75rem;
  background: #fff; color: var(--brand); font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px rgba(8,38,85,.12);
  transition: transform .2s, box-shadow .2s;
}
.audience-card > .bi:first-child { font-size: 1.6rem; color: var(--brand-sky); }
.audience-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(8,38,85,.18); color: var(--brand); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
@media (max-width: 767.98px) { .section { padding: 64px 0; } }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-en { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: .25em; color: var(--brand-sky); margin-bottom: .25rem; }
.section-title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; color: var(--brand); }
.section-lead { margin: 1rem 0 0; color: #5a6270; }
.sub-title { text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--brand); margin: 3.5rem 0 2rem; }
.sub-title::after { content: ""; display: block; width: 40px; height: 3px; margin: .75rem auto 0; background: var(--brand-sky); border-radius: 2px; }

.bg-light-blue { background: var(--light-blue); }
.section-tech { background: #fff url("../images/bg-tech.jpg") center / cover no-repeat; }
.section-brand { background: linear-gradient(135deg, var(--brand) 0%, #1565b8 100%); }
.section-brand .section-title { color: #fff; }
.section-brand .section-en { color: #9fd8f5; }

/* About */
.about-quote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--brand-sky); background: rgba(255,255,255,.8); font-weight: 500; }

/* Features */
.feature-card {
  height: 100%; padding: 2rem 1.5rem; border-radius: .75rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
}
.feature-num { display: block; font-family: "Montserrat", sans-serif; font-size: 2.25rem; font-weight: 700; color: #9fd8f5; line-height: 1; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.7; margin: 0; }
.feature-card small { font-size: .8rem; font-weight: 400; opacity: .85; }

/* Business */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 1rem 0 1rem 2.25rem; border-bottom: 1px solid #e3e8ef; font-weight: 500; }
.check-list li::before {
  content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1rem;
  color: var(--brand-sky); font-size: 1.25rem; line-height: 1.9;
}
.theme-card { border: 0; border-top: 4px solid var(--brand-sky); box-shadow: 0 4px 18px rgba(8,38,85,.08); }
.theme-card .card-body { padding: 1.75rem; }
.theme-num { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--brand-sky); }
.theme-card .card-title { font-size: 1.05rem; font-weight: 700; color: var(--brand); margin: .25rem 0 1rem; }
.theme-card .card-title small { font-size: .8rem; font-weight: 500; color: #5a6270; margin-top: .25rem; }
.theme-card .card-text { font-size: .925rem; }

/* Spec cards (equipment / cases) */
.spec-card { border: 0; overflow: hidden; box-shadow: 0 4px 18px rgba(8,38,85,.08); }
.spec-card .card-img-top { aspect-ratio: 16 / 9; object-fit: cover; }
.spec-card .card-title { font-size: 1rem; font-weight: 700; color: var(--brand); }
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; margin: 0; font-size: .875rem; }
.spec-list dt { font-weight: 500; color: #5a6270; }
.spec-list dd { margin: 0; }

/* Facility */
#facilityCarousel img { aspect-ratio: 1277 / 533; object-fit: cover; }
.info-table th { width: 6em; color: var(--brand); font-weight: 700; white-space: nowrap; }
.info-table th, .info-table td { padding: 1rem .5rem; background: transparent; }

/* Audience sections */
.audience-section { padding-top: 0; }
.audience-banner {
  position: relative; padding: 88px 0 72px; margin-bottom: 64px;
  color: #fff; text-align: center;
  background: var(--brand) center / cover no-repeat;
  isolation: isolate;
}
.audience-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8,38,85,.62); }
.audience-banner .section-title { color: #fff; }
.audience-banner .section-en { color: #9fd8f5; }
.banner-startup   { background-image: url("../images/bg-startup.jpg"); }
.banner-companies { background-image: url("../images/bg-companies.jpg"); }
.banner-education { background-image: url("../images/bg-education.jpg"); }

.merit-card { height: 100%; border-radius: .75rem; overflow: hidden; background: #fff; box-shadow: 0 4px 18px rgba(8,38,85,.08); }
.merit-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.merit-body { padding: 1.5rem 1.75rem; }
.merit-body p { margin: 0; }
.merit-label {
  display: inline-block; margin-bottom: .75rem; padding: .15rem .9rem; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
}

/* Flow */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: none; }
.flow-step { position: relative; padding: 2rem 1rem; border-radius: .75rem; background: #fff; text-align: center; box-shadow: 0 4px 18px rgba(8,38,85,.08); }
.flow-step:not(:last-child)::after {
  content: "\F285"; font-family: "bootstrap-icons"; position: absolute; top: 50%; right: -1.85rem;
  transform: translateY(-50%); color: var(--brand-sky); font-size: 1.25rem;
}
.flow-num { display: block; font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--brand-sky); }
.flow-step .bi { display: block; font-size: 2.25rem; color: var(--brand); margin: .5rem 0; }
.flow-step p { margin: 0; font-weight: 700; }
@media (max-width: 767.98px) {
  .flow { grid-template-columns: 1fr; gap: 2rem; }
  .flow-step:not(:last-child)::after { content: "\F282"; top: auto; bottom: -1.75rem; right: 50%; transform: translateX(50%); }
}

.notice { padding: 2rem; border-radius: .75rem; background: #fff; border: 2px solid #f3d3b0; }
.notice-title { font-size: 1.15rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 1.25rem; }
.notice h4 { font-size: 1rem; font-weight: 700; color: var(--brand); }
.notice p { font-size: .925rem; }
.cta-text { font-size: clamp(1rem, 2.2vw, 1.2rem); font-weight: 700; color: var(--brand); margin-bottom: 1.5rem; }

/* Topics */
.topics-list li { border-bottom: 1px solid #e3e8ef; }
.topics-list li:first-child { border-top: 1px solid #e3e8ef; }
.topics-list a { display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem .5rem; color: var(--text); text-decoration: none; transition: background-color .2s; }
.topics-list a:hover { background: var(--light-blue); }
.topics-list time { flex-shrink: 0; font-family: "Montserrat", sans-serif; font-weight: 600; color: var(--brand-sky); }
.topics-list span { flex: 1; font-weight: 500; }
.topics-list .bi { color: #9aa3b0; }
@media (max-width: 575.98px) { .topics-list a { flex-wrap: wrap; gap: .25rem 1rem; } }

/* Contact */
.contact-form, .contact-tel { padding: 2rem; border-radius: .75rem; background: rgba(255,255,255,.95); box-shadow: 0 4px 18px rgba(8,38,85,.08); }
.contact-form .form-label { font-weight: 500; font-size: .9rem; }
.contact-form .badge { font-size: .65rem; vertical-align: middle; }
.contact-tel { text-align: center; }
.consult-examples { padding: 1.75rem; border-radius: .75rem; background: rgba(255,255,255,.95); box-shadow: 0 4px 18px rgba(8,38,85,.08); color: var(--brand); }
.consult-examples ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--text); }
.consult-examples li { position: relative; padding: .35rem 0 .35rem 1.5rem; }
.consult-examples li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--brand-sky); }
.tel-number { display: inline-block; font-family: "Montserrat", sans-serif; font-size: 1.75rem; font-weight: 700; color: var(--brand); text-decoration: none; }

/* Map */
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */
.footer-partners { padding: 2rem 0; background: #fff; border-top: 1px solid #e3e8ef; }
.partner-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; margin: 0; }
.partner-list img { height: 32px; width: auto; transition: opacity .2s; }
.partner-list a:hover img { opacity: .7; }
.footer-main { padding: 3rem 0 1.5rem; background: var(--brand-dark); }
.footer-main img { height: 52px; width: auto; }
.footer-main a { color: #fff; }
.copyright { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .8rem; text-align: center; opacity: .75; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 1.25rem; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--brand-dark); color: #fff; }

/* ==========================================================================
   Sub pages (topics)
   ========================================================================== */
.site-nav.is-solid { background: var(--brand-dark); }

.page-header {
  padding: calc(var(--nav-h) + 56px) 0 48px;
  background: linear-gradient(135deg, var(--brand) 0%, #1565b8 100%);
  color: #fff;
}
.page-header .section-en { color: #9fd8f5; }
.page-title { font-size: clamp(1.4rem, 3.2vw, 2.1rem); font-weight: 700; line-height: 1.6; margin: 0; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); --bs-breadcrumb-item-active-color: rgba(255,255,255,.8); font-size: .8rem; margin-bottom: 1.5rem; }
.page-header .breadcrumb a { color: #fff; }
.page-header .breadcrumb .active { max-width: 24em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-date { font-family: "Montserrat", sans-serif; font-weight: 600; color: #9fd8f5; margin-bottom: .5rem; }

/* Topics list */
.topic-card { display: block; height: 100%; border-radius: .75rem; overflow: hidden; background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 4px 18px rgba(8,38,85,.08); transition: transform .2s, box-shadow .2s; }
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(8,38,85,.16); color: var(--text); }
.topic-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.topic-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.topic-card time { display: block; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: .85rem; color: var(--brand-sky); margin-bottom: .35rem; }
.topic-card h2 { font-size: 1.05rem; font-weight: 700; line-height: 1.7; margin: 0; }

/* Article */
.article-hero { margin: 0 0 2.5rem; text-align: center; }
.article-hero img { border-radius: .75rem; box-shadow: 0 4px 18px rgba(8,38,85,.1); }
.article-hero figcaption { margin-top: .75rem; font-size: .8rem; color: #6c7480; }
.article-body { font-size: 1.05rem; }
.article-body p { margin-bottom: 1.5rem; }
.article-body a { word-break: break-all; }
.article-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid #e3e8ef; }
.article-pager a { display: flex; flex-direction: column; max-width: 48%; color: var(--text); text-decoration: none; font-size: .9rem; }
.article-pager a:hover { color: var(--brand); }
.article-pager small { color: var(--brand-sky); font-weight: 700; }
.article-pager .next { margin-left: auto; text-align: right; }

/* 記事が少ないページでもフッターを画面下に固定 */
body { display: flex; flex-direction: column; min-height: 100vh; }
#main { flex: 1 0 auto; }

/* Thank you page */
.text-brand { color: var(--brand); }
.thanks-icon { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--light-blue); color: var(--brand-sky); font-size: 2.75rem; }
