/* ===========================================
   Reset & Base
   =========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #1f1f1f;
  font-family:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}
a {
  color: #2a6db5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #1a5856;
  text-decoration: none;
}
b,
strong {
  color: #1f1f1f;
  font-weight: 700;
}
img {
  max-width: 100%;
  height: auto;
}

/* ===========================================
   Header
   =========================================== */
#header {
  background: #fff;
  border-top: solid 6px #1a5856;
  color: #1f1f1f;
  height: 3em;
  line-height: 3em;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  box-shadow: 0 0 0.1em 0 rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25em;
}
#header h1 {
  margin: 0;
  padding: 0;
  color: #666f77;
  font-weight: 500;
  font-size: 1em;
  line-height: inherit;
}
#header h1 a {
  font-size: 1.25em;
  text-decoration: none;
  color: inherit;
}
#header h1 a img {
  margin: 5px 0 0;
  vertical-align: middle;
}
#header nav {
  line-height: inherit;
}
#header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
#header nav ul li {
  display: inline-block;
  margin-left: 1.6em;
  padding: 0;
}
#header nav ul li:first-child {
  margin-left: 0;
}
#header nav ul li a {
  color: #004181;
  font-weight: 500;
  font-size: 0.85em;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  display: inline-block;
}
#header nav ul li a:hover {
  color: #629dd1;
}

/* ── Hamburger button ── */
#menuToggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10001;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
#menuToggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a5856;
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
#menuToggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menuToggle.active span:nth-child(2) {
  opacity: 0;
}
#menuToggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================================
   Banner
   =========================================== */
#banner {
  background-color: #666;
  background-image: url(https://www.secom.co.jp/isl/assets/img/banner.JPG);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #d8d8d8;
  padding: 8em 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center;
  margin-top: 3em;
}
#banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 27, 54, 0.25);
}
#banner .inner {
  position: relative;
  z-index: 1;
}
#banner h2 {
  font-size: 3.5em;
  font-weight: 600;
  line-height: 1em;
  margin: 0 0 0.5em;
  padding: 0;
  color: #fff;
  letter-spacing: 0.125em;
}
#banner p {
  font-size: 1.5em;
  margin-bottom: 0;
  color: #fcfcfc;
}
#banner p a {
  color: #fff;
  text-decoration: none;
}

/* ===========================================
   Footer
   =========================================== */
#footer {
  background: #1a5856;
  padding: 1em 0 2em;
}
#footer a {
  color: inherit;
}
#footer .container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
#footer .copyright {
  color: #dbe5e5;
  font-size: 0.9em;
  margin: 1em 0 0;
  padding: 0;
  text-align: center;
  list-style: none;
}
#footer .copyright li {
  border-left: solid 1px rgba(144, 144, 144, 0.25);
  display: inline-block;
  list-style: none;
  margin-left: 1.5em;
  padding-left: 1.5em;
}
#footer .copyright li:first-child {
  border-left: 0;
  margin-left: 0;
  padding-left: 0;
}

/* ===========================================
   Font Awesome icon
   =========================================== */
.icon {
  border-bottom: none;
  position: relative;
  text-decoration: none;
}
.icon::before {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: 400;
  text-transform: none !important;
}

/* ===========================================
   Main content
   =========================================== */
[id="internship-detail"],
[id="shortprogram-detail"] {
  scroll-margin-top: 80px;
}

.mc-section {
  padding: 56px 0;
}
.mc-section:nth-child(odd) {
  background: #f7f8fa;
}
.mc-section:nth-child(even) {
  background: #fff;
}
.mc-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.mc-heading {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0b66c3;
  letter-spacing: 0.05em;
}

/* ── Section heading (centered) ── */
.mc-heading--center {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin: 0 0 32px;
  letter-spacing: 0.08em;
}

/* ── Intro lead ── */
.intro-lead {
  font-size: 1.02rem;
  color: #444;
  line-height: 1.9;
  max-width: 680px;
  margin: 0 auto 28px;
}

/* ── Program cards ── */
.program-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.program-col {
  flex: 1 1 280px;
  min-width: 0;
}
.program-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 22px 24px;
  background: #fff;
  height: 100%;
}
.program-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid #0b66c3;
  letter-spacing: 0.05em;
}
.program-card p {
  color: #555;
  font-size: 0.93rem;
  margin: 10px 0;
}

/* ── CTA button ── */
a.btn-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 32px;
  font-size: 0.88em;
  font-weight: 500;
  color: #fff;
  background: #197570;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: background-color 0.2s;
}
a.btn-cta:hover {
  background: #145e5c;
  color: #fff;
  text-decoration: none;
}

/* ── Detail button ── */
a.btn-detail {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: #0b66c3;
  border: 1px solid #0b66c3;
  border-radius: 6px;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
a.btn-detail:hover {
  background: #0b66c3;
  color: #fff;
  text-decoration: none;
}

/* ── Info table ── */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.info-table th,
.info-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.93rem;
  vertical-align: top;
  border-bottom: 1px solid #eee;
}
.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}
.info-table th {
  background: #f6f8fb;
  font-weight: 600;
  white-space: nowrap;
  width: 120px;
  color: #444;
}

/* ── Search / Filter ── */
.muted {
  color: #666;
  font-size: 0.92rem;
}
.warn {
  background: #e9f3f2;
  border: 1px solid #b8d8d6;
  padding: 14px 16px;
  border-radius: 10px;
}
.filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.filter-block {
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.filter-block:last-child {
  border-bottom: none;
}
.filter-block .muted {
  font-weight: 500;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
}
.checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}
.checks input[type="checkbox"] {
  transform: translateY(1px);
}
input[type="search"] {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  min-width: 260px;
  font-size: 0.93rem;
  font-family: inherit;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chip {
  background: #f2f2f2;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}
.chip.active {
  background: #e6f2ff;
  border-color: #b6d7ff;
}
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fafafa;
  border: 1px solid #eee;
  font-size: 0.85rem;
}
details {
  margin-top: 10px;
}
summary {
  cursor: pointer;
}

/* ── Result cards ── */
.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  margin: 12px 0;
}
.card ul {
  margin: 4px 0 0 18px;
  padding: 0;
  list-style: disc;
}
.card li {
  margin: 2px 0;
}

/* ── Contact card ── */
.contact-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 24px 28px;
  background: #fff;
  max-width: 520px;
  margin: 0 auto;
}
.contact-card dl {
  margin: 0;
}
.contact-card dt {
  font-size: 0.8rem;
  color: #888;
  margin-top: 14px;
}
.contact-card dt:first-child {
  margin-top: 0;
}
.contact-card dd {
  margin: 2px 0 0;
  font-size: 0.95rem;
}
.contact-card a {
  color: #2a6db5;
}

/* ===========================================
   News list
   =========================================== */
.news-list {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.news-list li {
  padding: 20px 0;
  border-bottom: 1px solid #ccc;
}
.news-list li:last-child {
  border-bottom: none;
}
.news-date {
  display: inline-block;
  font-size: 0.8rem;
  color: #777;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.news-list p {
  margin: 4px 0 0;
  line-height: 1.7;
  font-size: 0.93rem;
}
.news-list ul {
  margin: 8px 0 0 20px;
  padding: 0;
  list-style: disc;
}
.news-list > li ul li {
  margin: 4px 0;
  padding: 0;
  border-bottom: none;
}

.news-full {
  max-width: 780px;
  margin: 0 auto;
}
.news-full-item {
  padding: 24px 0;
  border-bottom: 1px solid #ccc;
}
.news-full-item:last-child {
  border-bottom: none;
}
.news-full-item .news-date {
  display: inline-block;
  font-size: 0.78rem;
  color: #777;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.news-full-item p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: #333;
  margin: 0 0 8px;
}
.news-full-item p:last-child {
  margin-bottom: 0;
}
.news-full-item ul {
  margin: 8px 0 0 20px;
  padding: 0;
  list-style: disc;
  font-size: 0.93rem;
  line-height: 1.8;
}
.news-full-item ul li {
  margin: 4px 0;
}
.news-full-item figure {
  margin: 12px 0 0;
}
.news-full-item figure img {
  max-width: 280px;
  border-radius: 6px;
}

.news-with-photo {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 10px;
}
.news-with-photo-body {
  flex: 1 1 0;
  min-width: 0;
}
.news-with-photo-img {
  flex-shrink: 0;
  width: 200px;
}
.news-with-photo-img img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.news-more {
  max-width: 780px;
  margin: 16px auto 0;
  font-size: 0.93rem;
}

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.year-nav a {
  display: inline-block;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #2a6db5;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  text-decoration: none;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.year-nav a:hover {
  background: #f0f4f8;
  border-color: #aaa;
  text-decoration: none;
}
.year-nav a.current {
  background: #1a5856;
  color: #fff;
  border-color: #1a5856;
}
.year-nav a.current:hover {
  background: #145e5c;
}

/* ===========================================
   Top page: Feature sections
   =========================================== */
.feature-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.feature-row--reverse {
  flex-direction: row-reverse;
}

.feature-col {
  flex: 1 1 280px;
  min-width: 0;
}
.feature-col p {
  margin-bottom: 0.8em;
}
.feature-col p:last-of-type {
  margin-bottom: 0;
}
.feature-img {
  display: block;
  text-decoration: none;
  border: none;
}
.feature-img img {
  width: 100%;
  border-radius: 6px;
  display: block;
  transition: opacity 0.2s;
}
.feature-img:hover img {
  opacity: 0.85;
}

/* ── Dark section ── */
.mc-section--dark {
  background: #001b36 !important;
  color: #e4e8ec;
}
.mc-section--dark h2 {
  color: #fff;
}
.mc-section--dark p {
  color: #e4e8ec;
}
.mc-section--dark a {
  color: #a8cef0;
}

.mc-section--dark a.btn-cta {
  color: #fff;
}
.mc-section--dark a.btn-cta:hover {
  color: #fff;
}

.article-banner {
  margin-top: 3em;
  background: url(/isl/assets/img/banner.JPG) center/cover no-repeat;
  color: #fff;
  padding: 3.5em 0;
  text-align: center;
  position: relative;
}
.article-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 26, 46, 0.75),
    rgba(26, 58, 92, 0.65)
  );
}

.article-banner h1 {
  font-size: 1.2rem;
}

.article-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-banner-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 2px 12px;
  margin-bottom: 12px;
}

.breadcrumb {
  font-size: 0.82rem;
  color: #777;
  padding: 14px 0;
}
.breadcrumb a {
  color: #2a6db5;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  margin: 0 6px;
  color: #bbb;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
}
.article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid #1a5856;
  letter-spacing: 0.04em;
}
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5em 0 0.6em;
}
.article-body p {
  margin-bottom: 1em;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #333;
}
.article-body ol {
  margin: 0.5em 0 1.2em 1.5em;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #333;
}
.article-body ol li {
  margin-bottom: 0.3em;
}
.article-body figure {
  margin: 2em 0;
  text-align: center;
}
.article-body figure img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.article-body figcaption {
  font-size: 0.82rem;
  color: #888;
  margin-top: 8px;
}
.article-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 3em 0;
}

.article-body .ref-section {
  margin-top: 2em;
}
.article-body .ref-section h2 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.article-body .article-note {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 0.3em;
}

.ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ref-list li {
  padding: 16px 18px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #333;
  background: #fafbfc;
}
.ref-list li:hover {
  border-color: #ccc;
}
.ref-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}
.ref-tag--award {
  background: #1a5856;
}
.ref-tag--paper {
  background: #2a6db5;
}
.ref-tag--patent {
  background: #6b5b95;
}
.ref-meta {
  display: block;
  font-size: 0.78rem;
  color: #888;
  margin-top: 4px;
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 980px) {
  #header nav ul li {
    margin-left: 1em;
  }
  #header nav ul li a {
    font-size: 0.85em;
  }
  #banner h2 {
    font-size: 2.2em;
  }
  #banner p {
    font-size: 1.1em;
  }
  #banner {
    padding: 5em 1em;
  }
}

@media (max-width: 736px) {
  /* ── Header: hamburger only ── */
  #header {
    height: 48px;
    line-height: 48px;
    padding: 0 16px;
    justify-content: flex-end;
  }
  #header h1 {
    display: none;
  }
  #menuToggle {
    display: flex;
  }

  /* ── Nav: hidden by default ── */
  #header nav {
    display: none;
    position: fixed;
    top: 48px;
    left: 0;
    width: 100%;
    background: #1a5856;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    line-height: 1;
  }
  #header nav.open {
    display: block;
  }
  #header nav ul {
    flex-direction: column;
    padding: 8px 0;
  }
  #header nav ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  #header nav ul li:last-child {
    border-bottom: none;
  }
  #header nav ul li a {
    color: #fff;
    display: block;
    padding: 14px 24px;
    font-size: 0.92em;
    font-weight: 400;
  }
  #header nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  /* ── Banner ── */
  #banner {
    margin-top: 48px;
    padding: 3em 1em;
  }
  #banner h2 {
    font-size: 1.5em;
  }
  #banner p {
    font-size: 1em;
  }

  /* ── Table ── */
  .info-table th {
    display: block;
    width: 100%;
    border-bottom: none;
    padding-bottom: 2px;
  }
  .info-table td {
    display: block;
    width: 100%;
    padding-top: 2px;
  }

  /* ── Section ── */
  .mc-section {
    padding: 32px 0;
  }

  /* ── Feature ── */
  .feature-row {
    gap: 20px;
  }
}

.article-banner {
  margin-top: 48px;
  padding: 2.5em 16px;
}
.article-banner h1 {
  font-size: 1.3rem;
}
