* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
  }

  html, body {
    width: 100%;
    height: 100%;
    font-family: 'Helvetica Neue', Arial, "Yu Gothic", "游ゴシック体", "YuGothic", sans-serif;
    color: #f0f1f5;
    background-color: #181c25;
    font-weight: 300;
  }
  .header {
    position: relative;
    /*background-color: #000;*/
    width: 100%;
    padding: 0px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center; 
  }
  a{
    text-decoration: none;
  }
  a:hover {
    text-decoration: none;
  }
  
  .hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3548 50%, #1a1f2e 100%);
    background-image: url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
  }
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(24, 28, 37, 0.4) 0%,
      rgba(24, 28, 37, 0.6) 50%,
      rgba(24, 28, 37, 0.8) 100%
    );
    z-index: 1;
  }
  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
  }
  .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(240, 241, 245, 0.8);
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.3s both;
  }
  .hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: 8rem;
    font-weight: 400;
    color: #f0f1f5;
    margin-bottom: 50px;
    letter-spacing: 0em;
    animation: fadeInUp 1s ease-out 0.6s both;
  }
  .hero-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(240, 241, 245, 0.7);
    animation: fadeInUp 1s ease-out 0.9s both;
  }
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .menu {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
  }
  .menu a {
    color: #f0f1f5;
    margin-left: 15px;
    font-weight: bold;
    font-size: 16px;
    font-size: 24px;
    font-weight: 100;
  }

  /* Full-screen sections */
  .full-section {
    height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    scroll-snap-align: start;
  }
  .about-section {
    background-color: #f5f5f0;
  }
  .section-image {
    flex: 1;
    min-width: 40%;
    overflow: hidden;
  }
  .section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .section-content {
    flex: 1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #1a1f2e;
    overflow-y: auto;
  }
  .section-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #1a1f2e;
    border: none;
  }
  .profile-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #1a1f2e;
    border: none;
    letter-spacing: 0.02em;
  }
  .affiliation-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
  }
  .affiliation-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 5px;
  }
  .about-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
  }
  .profile-btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: transparent;
    color: #1a1f2e;
    border: 1px solid #1a1f2e;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
  }
  .profile-btn:hover {
    background-color: #1a1f2e;
    color: #f5f5f0;
  }
  .about-section .social-icon {
    margin-top: 20px;
    padding-left: 0;
  }
  .about-section .social-icon .rounded-icon,
  .about-section .social-icon .rounded-icon-height {
    filter: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }
  .about-section .social-icon .rounded-icon:hover,
  .about-section .social-icon .rounded-icon-height:hover {
    opacity: 1;
  }
  .social-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
  }

  /* Research Section */
  .research-section {
    background-color: #c15f3c;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
  }
  .research-section-title {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 50px;
    text-align: center;
    -webkit-text-stroke: 0;
  }
  .research-cards {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
  }
  .research-card {
    flex: 1;
    max-width: 380px;
    background-color: #f9f9f6;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
  }
  .research-card-title {
    font-size: 1.6rem;
    font-weight: 400;
    color: #1a1f2e;
    margin-bottom: 30px;
    line-height: 1.4;
  }
  .research-card-divider {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin-bottom: 30px;
  }
  .research-card-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }
  .research-card-list li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
  }

  @media (max-width: 768px) {
    .full-section {
      flex-direction: column;
    }
    .research-section {
      padding: 40px 20px;
    }
    .research-cards {
      flex-direction: column;
      align-items: center;
    }
    .research-card {
      max-width: 100%;
      padding: 30px 25px;
    }
    .section-image {
      min-height: 40vh;
    }
    .section-content {
      padding: 40px 20px;
    }
    .section-title {
      font-size: 2.5rem;
    }
  }

  /* Careers Section (scrollable inside) */
  .careers-section {
    background-image: url('img/career-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
  }
  .careers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 28, 37, 0.75);
    z-index: 0;
  }
  .careers-section > * {
    position: relative;
    z-index: 1;
  }
  .careers-section .section-heading {
    margin-bottom: 30px;
  }
  .timeline-window {
    width: 100%;
    max-width: 700px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px 30px;
    background-color: rgba(0, 0, 0, 0.33);
    border-radius: 8px;
  }
  .timeline {
    position: relative;
    padding-left: 30px;
  }
  .timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: #444;
  }
  .timeline-item {
    position: relative;
    margin-bottom: 25px;
  }
  .timeline-item:last-child {
    margin-bottom: 0;
  }
  .timeline-dot {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: #8b7ec8;
    border-radius: 50%;
    border: 2px solid #181c25;
  }
  .timeline-content {
    padding-left: 10px;
  }
  .timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 15px;
  }
  .timeline-org {
    font-size: 1.05rem;
    font-weight: 500;
    color: #f0f1f5;
  }
  .timeline-role {
    font-size: 0.9rem;
    font-weight: 300;
    color: #aaa;
  }
  .timeline-date {
    font-size: 0.85rem;
    font-weight: 300;
    color: #888;
    margin-left: auto;
  }
  .timeline-desc {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
    padding-left: 0;
  }
  .careers-note {
    font-size: 0.95rem;
    color: #999;
    margin-top: 20px;
    text-align: center;
  }
  .section-scroll-content {
    width: 100%;
    max-width: 800px;
    height: 100%;
    padding: 60px 20px;
    overflow-y: auto;
    color: #f0f1f5;
  }
  .section-heading {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 40px;
    text-align: center;
  }
  .section-scroll-content h3 {
    font-size: 1rem;
    font-weight: 400;
    color: #ccc;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .section-scroll-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 10px;
  }
  .section-scroll-content li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #aaa;
    margin-bottom: 3px;
  }
  .section-scroll-content a {
    color: #EE7674;
  }

  /* Scribbles Section */
  .scribbles-section {
    background-color: #2a3040;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
  }
  .section-center-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
  }
  .scribbles-desc {
    font-size: 1rem;
    line-height: 1.25;
    color: #aaa;
    margin-bottom: 40px;
    text-align: left;
  }
  .rss-feed {
    text-align: left;
  }
  .rss-feed a {
    color: #EE7674;
  }

  /* Contact Section */
  .contact-section {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .contact-image {
    flex: 2.25;
    background-image: url('img/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    position: relative;
  }
  .contact-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 28, 37, 0.4);
  }
  .contact-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    z-index: 1;
  }
  .contact-content {
    flex: 1;
    background-color: #f5f5f0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
  }
  .contact-grid {
    display: flex;
    gap: 80px;
    max-width: 900px;
  }
  .contact-item h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #1a1f2e;
    margin-bottom: 15px;
  }
  .contact-item p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
  }
  .contact-item a {
    color: #1a1f2e;
    text-decoration: underline;
  }
  .contact-item a:hover {
    color: #c9896b;
  }

  /* Site Footer */
  .site-footer {
    background-color: #0f1218;
    padding: 40px 20px;
    text-align: center;
  }
  .site-footer p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
  }
  .site-footer a {
    color: #888;
  }
  .site-footer .copyright {
    margin-top: 20px;
    color: #444;
  }

  .content {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
    scroll-snap-align: start;
  }
  .content section {
    max-width: 800px;
    margin: 0 auto 100px auto;
  }
  .content h1 {
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
  }
  .content h2{
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    color: transparent; 
    -webkit-text-stroke: 0.75px #f0f1f5;
  }
  .content h3{
    margin-top: 5px;
    margin-bottom: 2px;
  }
  .content p {
    line-height: 1.2;
    margin-bottom: 0;
  }
  .content a {
    color: #EE7674;
  }
  .content ul {
    padding-left: 20px;
    margin-bottom: 0.5em;
  }
  .content li{
    margin-bottom: 0.25em;
  }

  ul.social-icon{
    margin-top: 20px;
  }
  li.icon{
    display: inline;
    margin-right: 8px;
  }
  .rounded-icon {
    width: 42px;
    border-radius: 10%;
    border: 0.5px solid grey;
  }
  .rounded-icon-height {
    height: 42px;
    border-radius: 10%;
    border: 0.5px solid grey;
  }
  .icon-height {
    height: 42px;
    border: 0.5px solid grey;
  }

  ul.toppage-domain-list{
    margin-top: 30px;
    padding-left: 30px;
    padding: 20px 30px 0px 50px;
    border-radius: 8px;
    color: #f0f1f5;
    border: 0.25px solid #f0f1f5;
  }
  li.toppage-domain-list{
    margin-bottom: 20px;
    font-weight: 300;
  }
  ul.toppage-domain-list-deep{
    margin-left: 15px;
    font-weight: 100;
  }
  ul.toppage-carrer-list{
    list-style: none;
    margin-bottom: 20px;
    font-weight: 100;
  }
  ul.toppage-article-list{
    margin-top: 15px;
    margin-left: 20px;
  }
  p.contact-desc{
    margin-bottom: 0.5em;
  }

  li.research-item{
    margin-bottom: 1em;
  }
  .item_desc{
    font-weight: 300;
  }

  h3.education-univ-name{
    margin-top: 30px;
    margin-bottom: 10px;
  }
  .semi-bold {
    font-weight: 300;
  }


  @media (max-width: 768px) {
    .menu {
        position: absolute;
        top: 30px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        white-space: nowrap;
    }
    .menu a {
      margin: 0 10px;
      font-size: 18px;
    }
    .careers-section {
      padding: 40px 20px;
    }
    .timeline-window {
      max-height: 55vh;
      padding: 15px 20px;
    }
    .timeline-header {
      flex-direction: column;
      gap: 3px;
    }
    .timeline-date {
      margin-left: 0;
      font-weight: 100;
    }
    .hero-title {
      font-size: 3rem;
    }
    .hero-subtitle {
      font-size: 0.9rem;
      letter-spacing: 3px;
    }
    .hero-tagline {
      font-size: 0.85rem;
      letter-spacing: 2px;
    }
    .contact-grid {
      flex-direction: column;
      gap: 30px;
    }
    .contact-heading {
      font-size: 1.8rem;
    }
    .contact-content {
      padding: 30px 20px;
    }
  }

  .scroll-arrow {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 200;
    letter-spacing: 2px;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: rgba(240, 241, 245, 0.7);
    text-decoration: none;
    opacity: 0;
    animation: appearArrow 1s forwards;
    animation-delay: 1.5s;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
  }
  .scroll-arrow:hover {
    color: #f0f1f5;
  }
  .section-scroll {
    animation: none;
    opacity: 0.7;
  }
  .about-section {
    position: relative;
  }
  .about-section .section-scroll {
    color: rgba(26, 31, 46, 0.5);
  }
  .about-section .section-scroll:hover {
    color: #1a1f2e;
  }
  .research-section {
    position: relative;
  }
  .careers-section {
    position: relative;
  }
  .scribbles-section {
    position: relative;
  }
  .contact-section {
    position: relative;
  }
  
  @keyframes appearArrow {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }