/* ===================== */
/* 共通設定 */
/* ===================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
  color: #222;
  background-color: #f7f9fc;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===================== */
/* ヘッダー */
/* ===================== */

header {
  background: linear-gradient(90deg, #0b5fa5, #1d8f6a);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  padding: 14px 0 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-area img {
  height: 70px;
  width: auto;
  display: block;
  background: #fff;
  padding: 3px 3px;
  border-radius: 6px;
}

.site-text {
  flex: 1;
}

.site-title {
  font-size: 1.7rem;
  font-weight: bold;
  letter-spacing: 0.03em;
}

.site-subtitle {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-top: 4px;
}

/* ===================== */
/* ナビゲーション */
/* ===================== */

nav {
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-list li {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-list li:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-list a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.nav-list a:hover,
.nav-list a.current {
  background-color: rgba(255, 255, 255, 0.22);
}

/* ===================== */
/* メインビジュアル */
/* ===================== */

.hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: url("../images/hero1.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(11, 95, 165, 0.65),
    rgba(29, 143, 106, 0.55)
  );
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
  line-height: 1.4;
}

.hero p {
  font-size: 1.1rem;
  max-width: 780px;
  margin: 0 auto;
}

/* ===================== */
/* 下層ページ共通 */
/* ===================== */

.page-header {
  background: linear-gradient(90deg, #eaf3fb, #eef9f4);
  padding: 50px 0;
  border-bottom: 1px solid #dbe5ef;
}

.page-header h1 {
  color: #0b5fa5;
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.page-header p {
  color: #555;
}

/* ===================== */
/* セクション共通 */
/* ===================== */

section {
  padding: 70px 0;
}

section.white {
  background-color: #fff;
}

.section-title {
  font-size: 2rem;
  color: #0b5fa5;
  margin-bottom: 18px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #1d8f6a;
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-lead {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555;
}

.content-box {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.content-box p + p {
  margin-top: 1em;
}

/* ===================== */
/* index 用カード */
/* ===================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.card {
  background: #fff;
  padding: 28px 24px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.card h3 {
  color: #0b5fa5;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

/* ===================== */
/* index お知らせ */
/* ===================== */

.news-list {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-weight: bold;
  color: #0b5fa5;
}

.news-text a:hover {
  color: #1d8f6a;
}

/* ===================== */
/* access.html */
/* ===================== */

.access-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin-top: 30px;
}

.access-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.access-card h2 {
  color: #0b5fa5;
  font-size: 1.4rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #1d8f6a;
}

.access-card p {
  margin-bottom: 12px;
  color: #333;
  line-height: 1.8;
}

.access-card p:last-child {
  margin-bottom: 0;
}

.access-label {
  font-weight: bold;
  color: #0b5fa5;
}

.map-box {
  width: 100%;
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  background: #dfe8f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5b6775;
  font-size: 1rem;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.transport-list {
  margin-top: 10px;
}

.transport-list li {
  margin-bottom: 12px;
  line-height: 1.8;
  color: #333;
}

.transport-list li:last-child {
  margin-bottom: 0;
}

/* ===================== */
/* contact.html */
/* ===================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 30px;
}

.contact-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.contact-card h2 {
  color: #0b5fa5;
  font-size: 1.4rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #1d8f6a;
}

.contact-card p {
  margin-bottom: 12px;
  color: #333;
  line-height: 1.8;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-weight: bold;
  color: #0b5fa5;
}

.contact-mail {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: bold;
  color: #1d8f6a;
  word-break: break-all;
}

.contact-mail:hover {
  text-decoration: underline;
}

.contact-list {
  margin-top: 10px;
  padding-left: 1.2em;
}

.contact-list li {
  margin-bottom: 10px;
  line-height: 1.8;
  color: #333;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

/* ===================== */
/* education.html */
/* ===================== */

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.program-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.program-card h3 {
  color: #0b5fa5;
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.5;
}

.program-card p {
  color: #333;
  line-height: 1.8;
}

.course-list-box,
.connection-box,
.credit-box,
.minor-box {
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  margin-top: 30px;
}

.subsection-title {
  font-size: 1.5rem;
  color: #0b5fa5;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 3px solid #1d8f6a;
}

.course-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.course-tag {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eaf3fb;
  color: #0b5fa5;
  font-weight: bold;
  line-height: 1.4;
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.connection-card {
  background: #f8fbff;
  border: 1px solid #d9e7f4;
  border-radius: 12px;
  padding: 22px;
}

.connection-card h3 {
  color: #0b5fa5;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.connection-card p {
  color: #333;
  line-height: 1.8;
}

.credit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 18px;
}

.credit-card {
  background: #f8fbff;
  border: 1px solid #d9e7f4;
  border-radius: 12px;
  padding: 22px;
}

.credit-card h3 {
  color: #0b5fa5;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.credit-card ul,
.minor-box ul {
  padding-left: 1.2em;
  line-height: 1.9;
  color: #333;
}

.highlight-box {
  margin-top: 18px;
  background: #eef9f4;
  border-left: 5px solid #1d8f6a;
  padding: 18px 20px;
  border-radius: 8px;
  line-height: 1.8;
  color: #333;
}

/* ===================== */
/* members.html */
/* ===================== */

.member-section {
  margin-top: 40px;
}

.member-section:first-of-type {
  margin-top: 0;
}

.member-section-title {
  font-size: 1.5rem;
  color: #0b5fa5;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid #1d8f6a;
}

.member-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.member-item {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.member-photo {
  flex: 0 0 110px;
}

.member-photo img,
.member-photo .photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  background: #e6edf5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  padding: 5px;
}

.member-info {
  flex: 1;
}

.member-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: #0b5fa5;
  margin-bottom: 6px;
  line-height: 1.4;
}

.member-role {
  display: inline-block;
  background: #eaf3fb;
  color: #0b5fa5;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.member-belonging {
  color: #555;
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.member-field {
  color: #333;
  font-size: 0.96rem;
  line-height: 1.8;
}

.member-link {
  margin-top: 12px;
}

.member-link a {
  color: #1d8f6a;
  font-weight: bold;
}

.member-link a:hover {
  text-decoration: underline;
}

/* ===================== */
/* news.html */
/* ===================== */

.news-page-list {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.news-page-item {
  display: grid;
  grid-template-columns: 140px 120px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 26px;
  border-bottom: 1px solid #e5e7eb;
}

.news-page-item:last-child {
  border-bottom: none;
}

.news-page-date {
  font-weight: bold;
  color: #0b5fa5;
  font-size: 0.98rem;
  white-space: nowrap;
}

.news-page-category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  white-space: nowrap;
}

.category-info {
  background-color: #0b5fa5;
}

.category-event {
  background-color: #1d8f6a;
}

.category-report {
  background-color: #7a5cc2;
}

.category-recruit {
  background-color: #d97706;
}

.news-page-content h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-page-content h2 a {
  color: #222;
  transition: color 0.3s ease;
}

.news-page-content h2 a:hover {
  color: #1d8f6a;
}

.news-page-content p {
  color: #555;
  line-height: 1.8;
  font-size: 0.97rem;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pager a,
.pager span {
  display: inline-block;
  min-width: 42px;
  padding: 10px 14px;
  text-align: center;
  border-radius: 8px;
  background: #fff;
  color: #0b5fa5;
  border: 1px solid #d9e2ec;
  font-weight: bold;
}

.pager .current-page {
  background: #0b5fa5;
  color: #fff;
  border-color: #0b5fa5;
}

/* ===================== */
/* research.html */
/* ===================== */

.research-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  margin-top: 30px;
}

.research-name {
  font-size: 1.6rem;
  font-weight: bold;
  color: #0b5fa5;
  margin-bottom: 6px;
  line-height: 1.5;
}

.research-belonging {
  color: #666;
  margin-bottom: 12px;
  font-size: 0.96rem;
}

.research-author {
  font-size: 1.05rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

.research-field {
  display: inline-block;
  background: #eaf3fb;
  color: #0b5fa5;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: bold;
  margin-bottom: 14px;
}

.research-description p {
  color: #333;
  line-height: 1.9;
  margin-bottom: 1em;
}

.research-link {
  margin-top: 14px;
}

.research-link a {
  color: #1d8f6a;
  font-weight: bold;
}

.research-link a:hover {
  text-decoration: underline;
}

.notice-box {
  margin-top: 30px;
  background: #eef9f4;
  border-left: 5px solid #1d8f6a;
  border-radius: 10px;
  padding: 18px 20px;
  color: #333;
  line-height: 1.8;
}

/* ===================== */
/* フッター */
/* ===================== */

footer {
  background: #16324a;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  margin-top: 30px;
}

footer p {
  font-size: 0.95rem;
  opacity: 0.92;
}

/* ===================== */
/* レスポンシブ */
/* ===================== */

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .access-layout {
    grid-template-columns: 1fr;
  }

  .map-box {
    min-height: 300px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .program-grid,
  .connection-grid,
  .credit-layout {
    grid-template-columns: 1fr;
  }

  .member-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .news-page-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .news-page-date,
  .news-page-category {
    width: fit-content;
  }
}

@media (max-width: 600px) {
  .header-top {
    text-align: center;
  }

  .header-inner {
    align-items: center;
  }

  .site-title {
    font-size: 1.35rem;
  }

  .logo-area img {
    height: 56px;
  }

@media (max-width: 600px) {
  .header-top {
    text-align: center;
    padding: 10px 0 8px;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo-area img {
    height: 52px;
  }

  .site-title {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .site-subtitle {
    font-size: 0.85rem;
    margin-top: 2px;
  }

  nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: max-content;
  }

  .nav-list li {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    flex: 0 0 auto;
  }

  .nav-list li:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
  }

  .nav-list a {
    padding: 10px 16px;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .hero-inner {
    padding: 50px 16px;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.5;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  section {
    padding: 50px 0;
  }

  .page-header {
    padding: 36px 0;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .member-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .member-photo {
    flex: none;
  }

  .member-role {
    margin-bottom: 12px;
  }
}

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .member-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 50px 0;
  }

  .page-header {
    padding: 36px 0;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .member-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .member-photo {
    flex: none;
  }

  .member-role {
    margin-bottom: 12px;
  }
}