/* プロフィールページのスタイル */
@charset "UTF-8";

html {
  font-size: 100%;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
  position: static !important;
  touch-action: auto !important;
}

body {
  background-color: #ffffff;
  min-height: 100vh;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  position: relative;
  width: 100%;
  overflow-x: hidden;
  color: #333333;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
  position: static !important;
  touch-action: auto !important;
}

a {
  color: #333;
  text-decoration: none;
  transition: all 0.5s;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
}

li {
  list-style: none;
}

.wrapper {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

/* メインビジュアル */
.main-visual {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.main-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.profile-overlay {
    position: absolute;
    top: 60%;
    right: 7%;
    width: 45vw;
    min-width: 320px;
    max-width: 650px;
    background: rgba(255,255,255,0.4);
    padding: 34px 30px 24px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    z-index: 2;
    text-align: left;
    overflow: visible;
    transform: translateY(-50%);
}

.profile-overlay h2 {
    position: absolute;
    top: 0;
    left: 55%;
    transform: translate(-50%, -40%);
    font-size: 2.5rem;
    letter-spacing: 0.3em;
    color: #888;
    font-weight: 400;
    margin: 0;
    text-align: left;
    background: none;
    z-index: 3;
    pointer-events: none;
    width: 100%;
}

.profile-info {
    font-size: 1.05rem;
    color: #222;
    line-height: 1.4;
}

.profile-info p:first-child {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.7em;
}

.profile-info p:nth-child(2) {
    margin-bottom: 0.7em;
}

/* プロフィールページ固有のスタイル */
.profile {
    padding: 60px 40px;
    min-height: 100vh;
    background-color: transparent;
}

.profile-hero {
  max-width: 1200px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.profile-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 2つ目の画像用のスタイル */
.profile > .profile-image {
  max-width: 600px;
  margin: 0 auto 80px;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-image:hover img {
  transform: scale(1.05);
}

.profile-intro {
  padding: 20px;
}

.profile-intro h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.profile-intro .title {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
  font-weight: 500;
}

.profile-intro .description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.profile-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* スキルセクション */
.skills {
  margin-bottom: 80px;
  padding: 40px;
  background-color: #f8f9fa;
  border-radius: 20px;
}

.skills h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  color: #333;
  position: relative;
}

.skills h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #333;
  margin: 15px auto 0;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  text-align: left;
  padding: 30px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.skill-item i {
  font-size: 3rem;
  color: #333;
  margin-right: 30px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.skill-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skill-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.skill-item p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* 経歴セクション */
.timeline {
  margin-bottom: 40px;
  padding: 0px 40px 20px 40px; /* 上下20px、左右40px */
  background-color: #fff;
  border-radius: 20px;
  position: relative;
}

.timeline h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #333;
  position: relative;
  text-align: center;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}

.timeline h2::before {
  content: '';
  width: 40px;
  height: 40px;
  background: url('images/career-icon.png') no-repeat center;
  background-size: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 15px;
}

.timeline-items {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 120px;
}

.timeline-items::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  width: 1px;
  height: 100%;
  background-color: #ccc;
  border-left: 1px dashed #999;
  background: none;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 0px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -93.5px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #333;
}

.timeline-item .year {
  position: absolute;
  left: -120px;
  top: 3px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.timeline-item .content {
  background: none;
  box-shadow: none;
  padding: 0;
}

.timeline-item .content h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 8px;
}

.timeline-item .content .company-info {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.timeline-item .content .details {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

.timeline-item .content .achievement {
  margin-top: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #666;
}

/* アワードセクション */
.awards {
  margin-bottom: 80px;
  padding: 40px;
  background-color: #f8f9fa;
  border-radius: 20px;
}

.awards h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  color: #333;
  position: relative;
}

.awards h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #333;
  margin: 15px auto 0;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.award-item {
  padding: 30px;
  background-color: #fff;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.award-item i {
  font-size: 3rem;
  color: #333;
  margin-bottom: 20px;
}

.award-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.award-item p {
  font-size: 1rem;
  color: #666;
}

/* 趣味と勉強セクション */
.hobbies {
    margin-bottom: 80px;
    padding: 40px;
    background-color: #fff;
    border-radius: 20px;
}

.hobbies h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
    position: relative;
}

.hobbies h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #333;
    margin: 15px auto 0;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.hobby-item {
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hobby-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.hobby-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.hobby-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hobby-item:hover .hobby-image img {
    transform: scale(1.05);
}

.hobby-content {
    padding: 20px;
}

.hobby-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.hobby-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* レスポンシブデザイン */
@media screen and (max-width: 900px) {
    .profile-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-intro {
        padding: 20px;
    }

    .profile-intro h1 {
        font-size: 2.5rem;
    }

    .timeline-items {
        padding-left: 80px;
        max-width: 100%;
    }

    .timeline-item {
        padding-left: 15px;
    }

    .timeline-items::before {
        left: 24px;
    }

    .timeline-item::before {
        left: -59px;
    }

    .timeline-item .year {
        left: -80px;
    }

    .profile-overlay {
        width: 90vw;
        min-width: unset;
        right: 50%;
        transform: translate(50%,-50%);
        top: 50%;
        padding: 18px 8px 12px 8px;
        max-width: 98vw;
    }
    .profile-overlay h2 {
        font-size: 1.5rem;
    }

    .works-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .timeline {
        display: block !important;
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    .title-timelinewor h2 {
        display: block !important;
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
        padding: 0 !important;
        position: static !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
}

@media screen and (max-width: 768px) {
    .skills-grid,
    .awards-grid {
        grid-template-columns: 1fr;
    }

    .profile {
        padding: 120px 10px 60px;
    }

    .profile-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .skills,
    .timeline,
    .awards,
    .hobbies {
        padding: 30px 15px;
        margin-bottom: 40px;
        border-radius: 8px;
    }

    .hobbies-grid {
        grid-template-columns: 1fr;
    }

    .hobby-image {
        height: 200px;
    }

    .timeline {
        padding: 30px 15px;
    }

    .timeline-items {
        padding-left: 60px;
        max-width: 100%;
        width: calc(100% - 20px);
        margin: 0 auto;
    }

    .timeline-item {
        padding-left: 15px;
        padding-right: 15px;
    }

    .timeline-items::before {
        left: 24px;
    }

    .timeline-item::before {
        left: -39.5px;
    }

    .timeline-item .year {
        position: relative;
        left: -50px;
        top: 0;
        margin-bottom: 10px;
    }

    .skill-item,
    .award-item,
    .hobby-item {
        border-radius: 10px;
    }

    .skills-grid {
        gap: 20px;
    }
    .skill-item {
        flex-direction: row;
        padding: 20px 10px;
    }
    .skill-item i {
        font-size: 2.2rem;
        margin-right: 15px;
    }
    .skill-item h3 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
}

.profile-name {
    font-size: 1.25rem;
    font-weight: normal;
}

/* 作品ギャラリー */
.works-gallery {
  width: 100%;
  max-width: 1400px;
  margin: 60px auto 60px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow-x: hidden;
  max-width: 100vw;
}

.gallery-row {
  display: flex;
  gap: 24px;
  overflow: hidden;
  width: 100%;
  height: 220px;
  align-items: center;
  position: relative;
  min-width: 200%; /* 100%→200%に戻す */
  overflow-x: hidden;
  max-width: 100vw;
}

.gallery-row img {
  height: 200px;
  width: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  background: #fff;
  flex-shrink: 0;
}

/* 上段：右→左にスライド */
.gallery-row-top {
  animation: gallery-slide-left 60s linear infinite;
}

/* 下段：左→右にスライド */
.gallery-row-bottom {
  animation: gallery-slide-right 60s linear infinite;
}

@keyframes gallery-slide-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes gallery-slide-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (max-width: 900px) {
  .gallery-row img {
    height: 120px;
  }
  .works-gallery {
    gap: 16px;
    margin: 30px auto;
  }
  .gallery-row {
    gap: 12px;
    height: 130px;
  }
}

.works-title {
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
}

.works-title::after {
  display: none;
}

/* PC用のみ表示 */
.pc-only { display: block; }
.sp-only { display: none; }

/* タブレット・スマホ用メインビジュアル */
.main-visual-sp {
  display: none;
}

@media screen and (max-width: 900px) {
  .pc-only { display: none !important; }
  .sp-only, .main-visual-sp { display: block !important; }
  .main-visual-sp {
    width: 100%;
    background: #fff;
    padding: 32px 0 24px 0;
    text-align: center;
    box-sizing: border-box;
    margin-top: 60px;
  }
  .profile-title-sp {
    font-size: 2.5rem;
    letter-spacing: 0.3em;
    color: #888;
    font-weight: 400;
    margin-bottom: 24px;
    text-align: center;
    margin-top: 20px;
  }
  .profile-image-sp {
    width: 100%;
    height: auto;
    margin: 0 auto 24px auto;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    background: none;
    display: block;
  }
  .profile-image-sp img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    display: block;
  }
  .profile-info-sp {
    font-size: 1.05rem;
    color: #222;
    line-height: 1.7;
    max-width: 90vw;
    margin: 0 auto;
    text-align: left;
    background: none;
  }
  .profile-info-sp p {
    margin-bottom: 0.9em;
  }

  /* タブレット・スマホ用ヘッダー */
  #header .site-title {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1001;
  }
  #header .site-title img {
    height: 32px;
    width: auto;
    display: block;
  }
  #header .site-title a {
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  #header .site-title a::after {
    content: 'Portfolio';
    font-size: 1.7rem;
    font-weight: 700;
    color: #222;
    margin-left: 10px;
    letter-spacing: 0.01em;
    line-height: 1;
    display: inline-block;
  }
}

@media screen and (min-width: 901px) {
  .main-visual-sp, .sp-only { display: none !important; }
  .pc-only { display: block !important; }
}

/* ヘッダー */
#header {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile, .profile-content, .profile-hero, .timeline, .skills, .awards, .hobbies {
  max-width: 100vw;
  overflow-x: hidden;
}