@charset "utf-8";

:root {
  --accent: #1677ff;
  --accent-dark: #064fbd;
  --accent-soft: #eaf5ff;
  --cyan: #22d3ee;
  --ink: #0b1833;
  --text: #18324f;
  --muted: #607087;
  --line: rgba(18, 70, 132, 0.14);
  --surface: #ffffff;
  --page-bg: #f3f8ff;
  --shadow: 0 18px 46px rgba(7, 41, 92, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo,
    sans-serif;
  font-size: 16px;
  line-height: 1.85;
  background: linear-gradient(180deg, #eef7ff 0%, #f8fbff 46%, #eef6ff 100%);
  -webkit-text-size-adjust: none;
}

h1,
h2,
h3,
p,
ul,
ol,
li {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

li {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #0097c7;
}

strong {
  color: var(--accent-dark);
  font-weight: 800;
}

del {
  color: var(--muted);
}

*:focus {
  outline: 3px solid rgba(34, 211, 238, 0.72);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

.header-image {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: clamp(420px, 64vh, 620px);
  padding: clamp(72px, 12vw, 128px) 20px clamp(44px, 8vw, 88px);
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(
      105deg,
      rgba(2, 17, 45, 0.88) 0%,
      rgba(8, 54, 118, 0.72) 46%,
      rgba(8, 81, 156, 0.2) 100%
    ),
    url("./images/header.jpg");
  background-position: center;
  background-size: cover;
}

.hero-copy {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #aeefff;
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--cyan);
}

.header-image h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2.55rem, 7vw, 5.8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.header-image h1 span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 600;
}

.hero-lead {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

#menubar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 39, 86, 0.88);
  box-shadow: 0 14px 34px rgba(4, 27, 62, 0.18);
  backdrop-filter: blur(18px);
}

#menubar ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 12px 16px;
}

#menubar a {
  display: block;
  min-width: 144px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

#menubar a:hover,
#menubar a:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-1px);
}

#contents {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 86px) 0;
}

#contents section {
  margin-bottom: 32px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

#contents section section {
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#contents h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

#contents h2::before {
  content: "";
  width: 8px;
  height: 1.35em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--cyan));
}

#contents h3 {
  display: inline-flex;
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(22, 119, 255, 0.28);
  color: var(--accent-dark);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.45;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}

.profile-face {
  flex: 0 0 auto;
  width: clamp(104px, 16vw, 148px);
  height: clamp(104px, 16vw, 148px);
  border: 5px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(11, 52, 102, 0.2);
}

.profile-info {
  display: grid;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.profile-info h3 {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.profile-timeline {
  display: grid;
  gap: 10px;
  margin: 0;
}

.profile-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid rgba(18, 70, 132, 0.1);
}

.profile-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.profile-item:last-child {
  padding-bottom: 0;
}

.profile-item dt {
  color: var(--accent-dark);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.profile-item dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.65;
}

.profile-item dd span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
}

#profile ul,
#portfolio ul,
#awardee,
.journal,
.int-conf {
  display: grid;
  gap: 12px;
}

#profile li,
#portfolio li,
#awardee > li,
.journal > li,
.int-conf > li {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(16, 78, 150, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#profile li:hover,
#portfolio li:hover,
#awardee > li:hover,
.journal > li:hover,
.int-conf > li:hover {
  border-color: rgba(22, 119, 255, 0.32);
  box-shadow: 0 16px 34px rgba(16, 78, 150, 0.12);
  transform: translateY(-2px);
}

#research-career {
  min-width: 0;
}

.journal,
.int-conf,
.dialogue-system-section,
.other-section,
.coauther-section {
  margin-top: 28px;
}

#researchs > h2 {
  margin-top: 46px;
}

#researchs > h2 + .dialogue-system-section,
#researchs > h2 + .other-section,
#researchs > h2 + .coauther-section {
  margin-top: 4px;
}

.dialogue-system-section h3,
.other-section h3,
.coauther-section h3 {
  margin-top: 0;
}

.dialogue-system-section,
.other-section,
.coauther-section {
  overflow-x: auto;
  padding-bottom: 4px;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.ta1 {
  min-width: 760px;
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(16, 78, 150, 0.08);
}

.ta1 th,
.ta1 td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.ta1 th {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.ta1 th:first-child,
.ta1 td:first-child {
  width: 10%;
  white-space: nowrap;
}

.ta1 th:nth-child(2),
.ta1 td:nth-child(2) {
  width: 25%;
}

.ta1 th:nth-child(3),
.ta1 td:nth-child(3) {
  width: 50%;
}

.ta1 th:nth-child(4),
.ta1 td:nth-child(4) {
  width: 15%;
}

.ta1 tr:hover td {
  background: #f0f8ff;
}

.carousel-container {
  position: relative;
  width: min(920px, 100%);
  margin: 36px auto 0;
}

.carousel {
  position: relative;
  height: clamp(260px, 45vw, 500px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(7, 41, 92, 0.18);
}

.carousel-item {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-dark);
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(2, 31, 70, 0.2);
  transform: translateY(-50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  background: #fff;
  box-shadow: 0 14px 32px rgba(2, 31, 70, 0.26);
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn-prev {
  left: 12px;
}

.carousel-btn-next {
  right: 12px;
}

.carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 10;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.indicator {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.indicator:hover,
.indicator.active {
  background: var(--cyan);
}

.scroll {
  display: none;
}

.scroll a {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: block;
  width: 48px;
  line-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(6, 79, 189, 0.82);
  color: #fff;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(6, 79, 189, 0.28);
}

.scroll a:hover {
  background: rgba(6, 79, 189, 0.96);
  color: #fff;
}

footer {
  margin-top: 32px;
  padding: 24px 16px;
  background: #061b3d;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

@media screen and (max-width: 800px) {
  html {
    scroll-padding-top: 150px;
  }

  .header-image {
    min-height: 470px;
    padding: 76px 18px 54px;
  }

  #menubar ul {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  #menubar a {
    min-width: 0;
    padding: 9px 14px;
    font-size: 0.9rem;
  }

  #contents {
    width: min(100% - 24px, 720px);
    padding-top: 34px;
  }
}

@media screen and (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .header-image {
    min-height: 430px;
    padding: 64px 16px 42px;
  }

  #menubar ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  #menubar a {
    width: 100%;
  }

  #contents {
    width: min(100% - 18px, 520px);
  }

  #contents section {
    padding: 20px 14px;
  }

  .profile-header {
    align-items: flex-start;
    gap: 16px;
  }

  .profile-info,
  #profile li,
  #portfolio li,
  #awardee > li,
  .journal > li,
  .int-conf > li {
    padding: 14px;
  }

  .profile-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ta1 {
    min-width: 680px;
  }

  .carousel {
    height: 240px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .scroll a {
    right: 14px;
    bottom: 14px;
    width: 42px;
    line-height: 42px;
  }
}
