@charset "UTF-8";

/* 友井川沙樹のある1日 専用スタイル */

/* アニメーション定義 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* セクション全体 */
#dayInLife {
  padding: 60px 0;
  background: #ED7700;
  min-height: 100vh;
}

#dayInLifeInner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 50px;
}

/* タイトルセクション */
.day-title-section {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.day-title {
  display: inline-block;
  background: #ED7700;
  color: #ffffff;
  font-size: 3.2rem;
  font-weight: bold;
  padding: 20px 60px;
  border-radius: 50px;
  margin: 0;
  opacity: 0;
  transform: scale(0.3) translateY(-50px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* タイムラインコンテナ */
.timeline-container {
  background: #ffffff;
  border-radius: 20px;
  padding: 60px 40px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* タイムラインエントリー */
.timeline-entry {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-entry:last-child .timeline-text {
  border-bottom: none;
}

.timeline-content {
  display: flex;
  align-items: stretch;
  gap: 30px;
}

.timeline-image {
  flex-shrink: 0;
  width: 30%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.timeline-entry:hover .timeline-image img {
  transform: scale(1.05);
}

.timeline-text {
  flex: 1;
  padding-top: 10px;
  padding-bottom: 20px;
  border-bottom: 3px dotted #ED7700;
}

.timeline-time {
  font-size: 2rem;
  font-weight: bold;
  color: #ED7700;
  margin-bottom: 10px;
}

.timeline-activity {
  font-size: 2.4rem;
  font-weight: bold;
  color: #ED7700;
  margin-bottom: 15px;
}

.timeline-description {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #666;
}

/* タイムライン矢印 */
.timeline-arrow {
  text-align: center;
  margin: 20px auto;
  font-size: 2.4rem;
  color: #FFCC84;
  line-height: 1;
}

.timeline-arrow::before {
  content: "▼";
}

/* 戻るボタン */
.back-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #2E7D32;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin: 50px auto;
  justify-content: center;
  width: 40%;
}

.back-button:hover {
  background-color: #1B5E20;
  color: #ffffff;
  text-decoration: none;
}

.back-button img {
  width: 20px;
  height: auto;
}

/* 下部イラスト */
.bottom-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
  text-align: center;
}

.bottom-illustration img {
  width: 20vw;
  height: auto;
  max-width: 200px;
  min-width: 100px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* タブレット対応 */
@media only screen and (min-width: 765px) and (max-width: 1024px) {
  .timeline-image {
    width: 30%;
  }

  .timeline-time {
    font-size: 1.8rem;
  }

  .timeline-activity {
    font-size: 2.2rem;
  }
}

/* レスポンシブ対応 */
@media only screen and (max-width: 764px) {
  #dayInLife {
    padding: 40px 0;
  }

  #dayInLifeInner {
    padding: 0 15px;
  }

  .day-title {
    font-size: 2.2rem;
    padding: 15px 40px;
  }

  .timeline-container {
    padding: 40px 20px;
    border-radius: 15px;
  }

  .timeline-content {
    flex-direction: column;
    gap: 20px;
  }

  .timeline-image {
    width: 100%;
    height: 200px;
    margin: 0 auto;
  }

  .timeline-text {
    text-align: center;
    padding-top: 0;
    padding-bottom: 15px;
    border-bottom: 3px dotted #ED7700;
  }

  .timeline-time {
    font-size: 1.6rem;
  }

  .timeline-activity {
    font-size: 1.8rem;
  }

  .timeline-description {
    font-size: 1.4rem;
  }

  .timeline-arrow {
    margin: 15px auto;
  }

  .bottom-illustration {
    flex-direction: column;
    gap: 15px;
  }

  .bottom-illustration img {
    width: 30vw;
    max-width: 150px;
    min-width: 80px;
  }
}
