:root {
  --main-blue: #4a90e2;
  --deep-blue: #18324a;
  --middle-blue: #234866;
  --light-blue: #eef7ff;
  --pale-blue: #f6fbff;
  --text-main: #1f2d3d;
  --text-sub: #52677a;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  line-height: 1.8;
  color: var(--text-main);
  background: var(--pale-blue);
}

/* =========================
   ナビゲーション
========================= */
.navbar {
  min-height: 78px;
}

.navbar.bg-dark {
  background: linear-gradient(90deg, var(--deep-blue), var(--middle-blue)) !important;
  box-shadow: 0 4px 18px rgba(24, 50, 74, 0.18);
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  font-weight: 600;
  margin-left: 14px;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff;
}

/* =========================
   トップ部分
========================= */
.hero {
  padding: 170px 0 120px;
  background:
    radial-gradient(circle at 82% 30%, rgba(74, 144, 226, 0.22), transparent 31%),
    linear-gradient(135deg, #f8fcff 0%, #eef7ff 55%, #e3f1ff 100%);
}

.hero-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 34px;
}

.hero-name {
  margin: 0;
  font-size: clamp(3.6rem, 5.4vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.10em;
  color: #1b2733;
  line-height: 1.08;
}

.hero-name-en {
  display: inline-block;
  padding-left: 28px;
  border-left: 3px solid rgba(74, 144, 226, 0.48);
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.13em;
  color: #2f6fa8;
  white-space: nowrap;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: #18324a;
  margin-bottom: 28px;
}

.hero-description {
  color: #24384a;
  font-size: 1.05rem;
  margin-bottom: 34px;
}

.profile-img {
  width: 330px;
  height: 330px;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 40px rgba(74, 144, 226, 0.25),
    0 6px 16px rgba(24, 50, 74, 0.12);
}

.btn-primary {
  background: var(--main-blue);
  border-color: var(--main-blue);
  border-radius: 999px;
  padding: 11px 30px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(74, 144, 226, 0.28);
}

.btn-primary:hover {
  background: #2f7ed8;
  border-color: #2f7ed8;
}

/* =========================
   セクション共通
========================= */
.section-padding {
  padding: 90px 0;
  background: #ffffff;
}

section:nth-of-type(even) {
  background: var(--pale-blue);
}

.section-title {
  margin-bottom: 45px;
  font-weight: 800;
  color: var(--deep-blue);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--main-blue);
  margin: 16px auto 0;
  border-radius: 999px;
}

/* =========================
   About
========================= */
.about-section {
  background:
    linear-gradient(135deg, #f6fbff 0%, #ffffff 50%, #eef7ff 100%);
}

/* =========================
   Personal Profile
========================= */
.personal-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(74, 144, 226, 0.14);
  border-radius: 24px;
  padding: 34px;
  box-shadow:
    0 14px 34px rgba(24, 50, 74, 0.08),
    0 0 0 1px rgba(74, 144, 226, 0.06);
}

.personal-heading {
  margin-bottom: 26px;
}

.personal-title-ja {
  margin: 0;
  color: var(--deep-blue);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.personal-title-en {
  margin: 6px 0 0;
  color: #2f6fa8;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.personal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.personal-item {
  background: linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid rgba(74, 144, 226, 0.16);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 22px rgba(24, 50, 74, 0.05);
}

.personal-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #2f6fa8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.personal-content {
  margin: 0;
  color: var(--deep-blue);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.6;
}

.personal-content.small-text {
  font-size: 0.95rem;
}

.personal-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 4px solid rgba(74, 144, 226, 0.55);
  background: rgba(74, 144, 226, 0.07);
  border-radius: 14px;
  color: #24384a;
  font-size: 0.96rem;
  line-height: 1.8;
}

/* =========================
   Academic Timeline
========================= */
.career-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 34px;
  box-shadow:
    0 14px 34px rgba(24, 50, 74, 0.10),
    0 0 0 1px rgba(74, 144, 226, 0.12);
}

.career-heading {
  margin-bottom: 10px;
}

.career-title-ja {
  margin: 0;
  color: var(--deep-blue);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.career-title-en {
  margin: 6px 0 0;
  color: #2f6fa8;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.career-subtitle {
  color: #2f6fa8;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.career-timeline {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 12px;
}

.career-timeline::-webkit-scrollbar {
  width: 6px;
}

.career-timeline::-webkit-scrollbar-track {
  background: rgba(74, 144, 226, 0.08);
  border-radius: 999px;
}

.career-timeline::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 226, 0.35);
  border-radius: 999px;
}

.career-timeline::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 144, 226, 0.55);
}

.career-list {
  position: relative;
  padding-left: 34px;
  padding-bottom: 4px;
}

.career-list::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 2px;
  height: calc(100% - 16px);
  background: rgba(74, 144, 226, 0.28);
  border-radius: 999px;
}

.career-item {
  position: relative;
  margin-bottom: 30px;
}

.career-item:last-child {
  margin-bottom: 0;
}

.career-item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -32px;
  width: 14px;
  height: 14px;
  background: var(--main-blue);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.18);
  z-index: 2;
}

.career-date {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.10);
  color: #2f6fa8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.career-content h4 {
  margin-bottom: 6px;
  color: var(--deep-blue);
  font-size: 1.05rem;
  font-weight: 800;
}

.career-content p {
  margin: 0;
  color: #33495e;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* =========================
   研究・制作物
========================= */
.project-card {
  height: 100%;
}

.project-card .card-body {
  padding: 28px;
}

.project-card .card-text {
  min-height: 88px;
}

.project-category {
  display: inline-block;
  margin-bottom: 10px;
  color: #2f6fa8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(24, 50, 74, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(24, 50, 74, 0.12);
}

.card-title {
  color: var(--deep-blue);
  font-weight: 700;
}

.badge.bg-primary {
  background: var(--main-blue) !important;
}

.badge.bg-secondary {
  background: #7daedc !important;
}

.btn-outline-primary {
  border-radius: 999px;
  border-color: var(--main-blue);
  color: var(--main-blue);
  font-weight: 700;
  padding: 7px 18px;
}

.btn-outline-primary:hover {
  background: var(--main-blue);
  border-color: var(--main-blue);
  color: #ffffff;
}
/* =========================
   発表資料
========================= */
.presentations-section {
  background: #ffffff;
}

.presentation-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(74, 144, 226, 0.14);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(24, 50, 74, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.presentation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 38px rgba(24, 50, 74, 0.12);
}

.presentation-date {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.10);
  color: #2f6fa8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.presentation-card h5 {
  color: var(--deep-blue);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.presentation-card p {
  color: #24384a;
  font-size: 0.96rem;
  line-height: 1.8;
}

.presentation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.presentation-tags span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.10);
  color: #2f6fa8;
  font-size: 0.78rem;
  font-weight: 700;
}

/* =========================
   Contact
========================= */
.contact-section {
  background:
    linear-gradient(135deg, #f6fbff 0%, #ffffff 50%, #eef7ff 100%);
}

.contact-simple {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  margin-bottom: 34px;
  color: #24384a;
  font-size: 1.02rem;
  line-height: 1.9;
}

.contact-list {
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(74, 144, 226, 0.14);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(24, 50, 74, 0.07);
  overflow: hidden;
}

.contact-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(74, 144, 226, 0.12);
  text-align: left;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row dt {
  color: #2f6fa8;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.contact-row dd {
  margin: 0;
  color: var(--deep-blue);
  font-weight: 600;
}

.contact-row a {
  color: var(--deep-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 144, 226, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-row a:hover {
  color: var(--main-blue);
  border-color: var(--main-blue);
}

@media (max-width: 768px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px 22px;
    text-align: center;
  }
}

.contact-note {
  margin-left: 12px;
  color: #2f6fa8;
  font-size: 0.85rem;
  font-weight: 700;
}

.project-card .card-body,
.presentation-card {
  display: flex;
  flex-direction: column;
}

.project-card .btn,
.presentation-card .btn {
  align-self: flex-start;
  margin-top: auto;
}