/* style.css */
:root {
  --bg: #0f131a;
  --surface: #171c24;
  --surface-soft: #1d2430;
  --header-bg: #151b24;
  --text: #e7edf7;
  --text-soft: #b8c3d6;
  --accent: #5e6f8f;
  --accent-dark: #8b79c9;
  --accent-light: #2a3344;
  --border: #2d3748;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.22);
  --radius: 14px;
  --content-width: 1100px;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  line-height: 1.7;
  background:
    radial-gradient(circle at top, rgba(101, 84, 160, 0.12), transparent 30%),
    linear-gradient(to bottom, #0d1117 0%, #111827 55%, #0c1016 100%);
  color: var(--text);
}

.page-container {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
header {
  background: linear-gradient(135deg, #161d27 0%, #111722 100%);
  box-shadow: var(--shadow);
  margin-top: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.header-wrapper {
  position: relative;
  width: 100%;
  min-height: 190px;
  padding: 24px 28px 24px 170px;
}

.profile-pic {
  position: absolute;
  top: 22px;
  left: 28px;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.header-container {
  width: 100%;
  text-align: center;
  padding-top: 6px;
}

h1 {
  position: relative;
  left: -20px;
  margin: 0 0 16px 0;
  color: #f3f6ff;
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(122, 113, 194, 0.18);
}

.nav-and-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.sidebar {
  width: auto;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.sidebar ul li {
  margin: 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.35rem;
  padding: 6px 8px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.sidebar ul li a:hover {
  color: #d3c6ff;
  border-bottom-color: #7c6bc5;
  text-shadow: 0 0 10px rgba(124, 107, 197, 0.35);
}

/* ---------- Social icons ---------- */
.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.4rem;
  width: 2.4rem;
  background: linear-gradient(135deg, #273347 0%, #3c4d68 100%);
  color: #f3f6fb;
  border-radius: 50%;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(140, 160, 200, 0.22);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.social-icons .social-icon:hover {
  background: linear-gradient(135deg, #4b5c82 0%, #6d5aa5 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(120, 110, 200, 0.28);
}

/* ---------- Main ---------- */
main {
  margin-top: 22px;
}

.card,
section {
  background: linear-gradient(180deg, #171d26 0%, #141922 100%);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(80, 93, 115, 0.35);
  margin-bottom: 22px;
}

h2,
h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--text);
  line-height: 1.3;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.45rem;
}

h4 {
  font-size: 1.05rem;
  color: #f5f7fb;
  background: linear-gradient(135deg, #2f4058 0%, #4f5f85 55%, #6b5aa6 100%);
  padding: 12px 14px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(50, 60, 90, 0.28);
  margin-top: 0;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

p {
  line-height: 1.8;
  margin: 0;
  color: var(--text);
}

.center-wrapper {
  display: flex;
  justify-content: center;
}

.center-box {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.center-box p,
.cv-detail,
.info-list li,
.center-list ol {
  color: #c7d1e0;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.9;
}

/* ---------- Research ---------- */
.research-container {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.research-column {
  flex: 1 1 420px;
  max-width: 500px;
  min-width: 280px;
  text-align: left;
  background-color: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.center-list {
  display: flex;
  justify-content: center;
}

.center-list ol {
  text-align: justify;
  text-justify: inter-word;
  padding-left: 22px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.center-list li {
  margin-bottom: 8px;
  text-align: justify;
  text-justify: inter-word;
}

.center-list li:last-child {
  margin-bottom: 0;
}

/* ---------- Reference ---------- */
.reference {
  text-indent: -1em;
  padding-left: 1em;
  line-height: 1.8;
}

.center-reference {
  text-align: left;
  display: flex;
  justify-content: center;
}

/* ---------- Links in content ---------- */
a {
  color: #9fb7ff;
}

a:hover {
  color: #c4b5fd;
}


/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 18px 16px;
  background: linear-gradient(135deg, #0f141c 0%, #0a0d13 100%);
  color: #d8dfeb;
  border-radius: 14px 14px 0 0;
  margin-top: 12px;
  box-shadow: var(--shadow);
  border-top: 1px solid rgba(120, 130, 160, 0.2);
}

footer p {
  color: white;
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-wrapper {
    padding: 24px 20px 24px 180px;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
    left: 24px;
  }

  h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 18px;
  }

  .page-container {
    width: min(100%, calc(100% - 20px));
  }

  header {
    margin-top: 14px;
  }

  .header-wrapper {
    min-height: auto;
    padding: 24px 18px;
    text-align: center;
  }

  .profile-pic {
    position: static;
    display: block;
    margin: 0 auto 16px auto;
    width: 120px;
    height: 120px;
  }

  .header-container {
    padding-top: 0;
  }

  h1 {
    font-size: 1.9rem;
    margin-bottom: 14px;
  }

  .nav-and-icons {
    flex-direction: column;
    gap: 18px;
  }

  .sidebar ul {
    flex-direction: column;
    gap: 10px;
  }

  .sidebar ul li a {
    font-size: 1.5rem;
  }

  .research-container {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
  }

  .research-column {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: 12px 14px 8px 14px;
  }

  .card,
  section {
    padding: 22px 18px;
  }

  h2 {
    font-size: 1.55rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    padding: 10px 12px;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }

  .page-container {
    width: calc(100% - 16px);
  }

  .card,
  section {
    padding: 18px 14px;
    border-radius: 12px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .social-icons .social-icon {
    height: 2.2rem;
    width: 2.2rem;
    font-size: 0.95rem;
  }
}

.year-section {
  max-width: 900px;
  margin: 0 auto 28px auto;
}

.year-section:last-child {
  margin-bottom: 0;
}

.year-heading {
  text-align: left;
  font-size: 1.3rem;
  color: #a691e6;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(120, 136, 160, 0.35);
}

.presentation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.presentation-list li {
  background: linear-gradient(180deg, #1a2230 0%, #161d29 100%);
  border: 1px solid rgba(120, 136, 160, 0.28);
  border-left: 6px solid #6f82a6;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  line-height: 1.85;
  color: #dde6f5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.presentation-list li:last-child {
  margin-bottom: 0;
}

.empty-note {
  text-align: center;
  color: var(--text-soft);
  font-style: italic;
  margin: 0;
}

/* publication / presentation カード内の文字色と配置 */
.presentation-list li,
.presentation-list li p,
.presentation-list li span,
.presentation-list li div {
  color: #dde6f5;
  text-align: justify;
  text-justify: inter-word;
}

.presentation-list li em {
  color: #eef3ff;
  font-style: italic;
  text-align: justify;
  text-justify: inter-word;
}

.presentation-entry p {
  margin: 0;
  color: #dde6f5;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.85;
}

.presentation-links {
  margin-top: 12px;
}

.presentation-links a {
  display: inline-block;
  padding: 8px 14px;
  background: linear-gradient(135deg, #2a3448 0%, #37445f 100%);
  color: #d7c8ff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(173, 160, 255, 0.16);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.presentation-links a:hover {
  background: linear-gradient(135deg, #44547a 0%, #6555a2 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(120, 108, 196, 0.22);
}

.pdf-details {
  margin-top: 14px;
}

.pdf-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #c9d5eb;
  margin-bottom: 10px;
}

.pdf-embed {
  width: 100%;
  height: 600px;
  border: 1px solid rgba(120, 136, 160, 0.28);
  border-radius: 10px;
  background-color: #101722;
}

.home-links {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  margin-bottom: 14px;
  color: var(--text-soft);
  line-height: 1.8;
}

.info-list li:last-child {
  margin-bottom: 0;
}

.info-label {
  display: inline-block;
  min-width: 85px;
  font-weight: 700;
  color: var(--text);
}

.info-list a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}

.info-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.link-separator {
  margin: 0 8px;
  color: var(--text-soft);
}

.social-icon-text span {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.presentation-entry p {
  margin: 0;
}

.presentation-links {
  margin-top: 10px;
}

.presentation-links a {
  display: inline-block;
  padding: 8px 14px;
  background: linear-gradient(135deg, #2b3448 0%, #3b4660 100%);
  color: #d7c8ff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(180, 170, 255, 0.2);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.presentation-links a:hover {
  background: linear-gradient(135deg, #4d5f87 0%, #6c5aa8 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.pdf-details {
  margin-top: 14px;
}

.pdf-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.pdf-embed {
  width: 100%;
  height: 600px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: white;
}
.cv-list-wrapper {
  display: flex;
  justify-content: center;
}

.cv-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 900px;
  margin: 18px auto 0 auto;
}

.cv-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.cv-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cv-date {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.cv-content {
  color: var(--text-soft);
}

.cv-place {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cv-detail {
  line-height: 1.7;
}

@media (max-width: 768px) {
  .cv-list {
    max-width: 100%;
    margin: 14px auto 0 auto;
  }

  .cv-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.inline-pdf-link {
  display: inline;
  margin-left: 0.35em;
  color: #cdbdff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.inline-pdf-link:hover {
  color: #ffffff;
  text-decoration: underline;
}