@charset "UTF-8";

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #1f1f1f;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Noto Sans",
    "Noto Sans CJK JP",
    "ヒラギノ角ゴ ProN W3",
    Hiragino Kaku Gothic ProN,
    Arial,
    Meiryo,
    sans-serif;
  font-size: 14pt;
  font-weight: 400;
  line-height: 1.75em;
}
a {
  color: #629dd1;
  text-decoration: underline;
}
a:hover {
  color: #629dd1;
}
b,
strong {
  color: #1f1f1f;
  font-weight: 600;
}
img {
  max-width: 100%;
  height: auto;
}

#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;
}

/* ── ハンバーガーボタン（デスクトップでは非表示） ── */
#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 {
  background-color: #666;
  background-image: url(/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 {
  background: #1a5856;
  padding: 1em 0 2em;
}
#footer a {
  color: inherit;
}
#footer .container {
  max-width: 960px;
  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;
}

[id="internship-detail"],
[id="shortprogram-detail"] {
  scroll-margin-top: 80px;
}

.mc-section {
  padding: 48px 0;
}
.mc-section:nth-child(odd) {
  background: #f7f8fa;
}
.mc-section:nth-child(even) {
  background: #fff;
}
.mc-container {
  max-width: 960px;
  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;
}

.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;
}

.intro-lead {
  font-size: 1.02rem;
  color: #444;
  line-height: 1.9;
  max-width: 680px;
  margin: 0 auto 28px;
}

.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;
}
.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 0.2s,
    color 0.2s;
}
.btn-detail:hover {
  background: #0b66c3;
  color: #fff;
  text-decoration: none;
}

.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;
}

.muted {
  color: #666;
  font-size: 0.92rem;
}
.warn {
  background: #e9f3f2;
  border: 1px solid #1a5856;
  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;
}

.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 {
  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: #0b66c3;
}

@media (max-width: 980px) {
  #header nav ul li {
    margin-left: 1em;
  }
  #banner h2 {
    font-size: 2.2em;
  }
  #banner p {
    font-size: 1.1em;
  }
  #banner {
    padding: 5em 1em;
  }
}

@media (max-width: 736px) {
  /* ── ヘッダー：ハンバーガーのみ表示 ── */
  #header {
    height: 48px;
    line-height: 48px;
    padding: 0 16px;
    justify-content: flex-end; /* ボタンを右寄せ */
  }
  #header h1 {
    display: none; /* ロゴ非表示 */
  }
  #menuToggle {
    display: flex; /* ハンバーガー表示 */
  }

  /* ── ナビ：デフォルト非表示 ── */
  #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 {
    margin-top: 48px;
    padding: 3em 1em;
  }
  #banner h2 {
    font-size: 1.5em;
  }
  #banner p {
    font-size: 1em;
  }

  /* ── テーブル ── */
  .info-table th {
    display: block;
    width: 100%;
    border-bottom: none;
    padding-bottom: 2px;
  }
  .info-table td {
    display: block;
    width: 100%;
    padding-top: 2px;
  }
  .mc-section {
    padding: 32px 0;
  }
}
