/* ===== Index page PC styles ===== */

/* ===== Hero carousel ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
}

.hero-carousel-inner {
  position: relative;
  width: 100%;
  max-width: none;
  max-height: 625px;
}

.hero-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-carousel-slide picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-carousel-slide img {
  width: 100%;
  max-width: none;
  display: block;
  vertical-align: middle;
  object-fit: contain;
}

.hero-carousel-dots {
  display: none;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  gap: 10px;
  z-index: 2;
}

.hero-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.hero-carousel-dot.is-active {
  background-color: #fff;
  transform: scale(1.2);
}

/* ===== Header lang ===== */
.header-lang {
  font-size: 14px;
}

.lang-link {
  color: #307B53;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.lang-link:hover {
  opacity: 0.75;
}

.lang-link .lang-en,
.lang-link .lang-jp {
  transition: text-decoration 0.2s ease;
}

.lang-link .lang-en.active,
.lang-link .lang-jp.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Hero & intro ===== */
.hero-section {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: none;
  padding: 0 0 100px;
}

.intro-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
}

.intro-section .intro-block {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 56px;
  text-align: left;
  box-sizing: border-box;
}

.intro-block {
  padding-top: 48px;
  padding-bottom: 56px;
}

.subtitle {
  margin: 0;
  max-width: 1000px;
  font-size: 20px;
  color: #307B53;
  margin-bottom: 20px;
}

.main-title-wrapper {
  display: block;
  margin-bottom: 20px;
}

.main-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.main-title-line1 {
  display: inline;
  font-size: 85px;
  margin-right: 20px;
}

.main-title-line1 .main-title-line1-number {
  /*font-size: 106px;*/
  margin-right: 15px;
  font-family: 'FOT-Cezanne ProN', sans-serif;
}

.main-title-line2 {
  display: inline;
  font-size: 39px;
}

.lead {
  margin: 0;
  max-width: 1000px;
  font-size: 19px;
  color: #307B53;
  line-height: 2;
}

/* ===== Artworks section ===== */
.artworks-section {
  padding: 0 0 100px;
  max-width: 1360px;
  margin: 0 auto;
}

.artworks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.artwork-card {
  margin: 0;
}

.artwork-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.artwork-card-link:hover {
  text-decoration: none;
  color: inherit;
  opacity: 0.5;
}

.artwork-card-media {
  position: relative;
}

.artwork-card-title {
  position: absolute;
  top: 0px;
  left: 0px;
  margin: 0;
  width: 300px;
  height: 70px;
  background-color: #FFFFFF;
  font-size: 30px;
  font-weight: 600;
  color: #307B53;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.artwork-card .btn-wrapper {
  width: 220px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 0;
  right: 0;
  cursor: pointer;
  z-index: 1;
}

.artwork-card .btn-wrapper:hover .btn {
  background-color: #286045;
  transition: background-color 0.2s ease;
}

.artwork-card .btn {
  width: 220px;
  height: 70px;
  font-size: 16px;
  font-family: 'FOT-Cezanne ProN', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 0;
  background-color: #307B53;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.artwork-card .btn-arrow::after {
  width: 6px;
  height: 12px;
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
}

.card-img-placeholder {
  width: 100%;
  height: 240px;
}

.artwork-card-media .card-img-placeholder {
  width: 571px;
  height: 425px;
}

.card-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Video section ===== */
.video-section {
  background-color: #e6f2ee;
  padding: 110px 0 78px;
  margin: 0 auto;
  max-width: 1360px;
}

.video-section .section-title {
  text-align: center;
  margin-bottom: 60px;
  margin-top: 0;
}

.video-wrapper {
  position: relative;
}

.video-player {
  width: 1360px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  background-color: #1a1a1a;
  min-height: 200px;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.video-play-button img {
  display: block;
  width: 100px;
  height: 100px;
}

.video-play-button.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-poster-placeholder {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin: 0 auto;
  background-color: #d0d0d0;
  flex-direction: column;
}

.video-placeholder-label {
  margin-top: 56px;
  font-size: 14px;
  color: #307B53;
}

.video-poster-placeholder .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.video-poster-placeholder .play-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #307B53;
}

/* ===== Episode section ===== */
.episode-section {
  padding: 120px 0;
}

.episode-list {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  height: 446px;
  margin: 0 auto;
  background-color: #E8E8E8;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.episode-list-inner {
  height: 100%;
  /* OverlayScrollbarsが管理するためoverflowは削除 */
  padding: 30px 0;
  box-sizing: border-box;
  background-color: #F0F1F1;
}

/* ===== OverlayScrollbars カスタムテーマ ===== */
.os-scrollbar.os-scrollbar-vertical.os-theme-oisix {
  width: 20px !important;
  /*margin-right: 10px;*/
}

.os-scrollbar.os-scrollbar-horizontal.os-theme-oisix {
  height: 20px !important;
}

.os-scrollbar.os-theme-oisix .os-scrollbar-track {
  background: #E8E8E8 !important;
  border-radius: 10px !important;
  width: 100% !important;
}

.os-scrollbar.os-theme-oisix .os-scrollbar-handle {
  background: #307B53 !important;
  border-radius: 10px !important;
  min-height: 30px !important;
  width: 100% !important;
}

.os-scrollbar.os-theme-oisix .os-scrollbar-handle:hover {
  background: #286045 !important;
}

.os-scrollbar.os-theme-oisix .os-scrollbar-handle:active {
  background: #1f4d35 !important;
}

/* OverlayScrollbars 要素 */
.episode-list-inner[data-overlayscrollbars-viewport] {
  overflow-x: hidden !important;
  overflow-y: scroll !important;
}

.episode-item {
  position: relative;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 10px;
  width: 785px;
  margin: 0 auto 10px;
  border: 1px solid #307B53;
  transform: translateX(-10px);
}

.episode-text {
  margin: 10px 30px;
  font-size: 16px;
  color: #307B53;
}

.episode-author {
  display: block;
  margin-right: 10px;
  font-size: 16px;
  color: #307B53;
  text-align: right;
}

.episode-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #307B53;
}

.episode-meta {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #307B53;
}

/* ===== Column section ===== */
.column-section {
  background-color: #f5f5f5;
  padding: 64px 0 80px;
  max-width: 1360px;
  margin: 0 auto;
}

.column-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 730px;
  margin: 0 auto;
}

.column-entry {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 0px;
  background-color: #fff;
  border-radius: 4px;
}

.column-entry .note-embed {
  display: block;
  max-width: 99%;
  width: 700px;
  margin: 20px auto 10px;
}

.column-content {
  flex: 1;
  min-width: 0;
  width: 400px;
}

.column-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.column-preview {
  margin: 0 0 12px;
  font-size: 14px;
  color: #307B53;
  line-height: 1.6;
}

.column-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #307B53;
}

.column-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: #307B53;
  flex-shrink: 0;
}

.column-meta-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.column-date {
  font-variant-numeric: tabular-nums;
}

.column-thumb-placeholder {
  width: 228px;
  height: 111px;
  flex-shrink: 0;
}

/* ===== Scroll fade-in animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 各セクションの要素に適用 */
.intro-block > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.intro-block > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.artwork-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.artwork-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.video-section > .container > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.video-section > .container > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.episode-section > .container > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.episode-section > .container > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.column-entry {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.column-entry.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Tablet styles (750px - 1359px) ===== */
@media (min-width: 751px) and (max-width: 1359px) {
  /* ===== Container ===== */
  .container {
    padding: 0 20px;
  }

  /* ===== Hero & intro sections ===== */
  .hero-section {
    padding: 0 0 60px;
  }

  .hero-carousel-inner {
    max-height: 450px;
  }

  .intro-block {
    padding: 32px 20px 40px;
  }

  .subtitle {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .main-title-line1 {
    font-size: 60px;
    margin-right: 12px;
  }

  .main-title-line1 .main-title-line1-number {
    /*font-size: 68px;*/
    margin-right: 12px;
    font-weight: 700;
  }

  .main-title-line2 {
    font-size: 28px;
    font-weight: 700;
  }

  .lead {
    font-size: 16px;
  }

  /* ===== Artworks section ===== */
  .artworks-section {
    padding: 0 20px 60px;
    max-width: 100%;
  }

  .artworks-grid {
    gap: 24px;
  }

  .artwork-card-media .card-img-placeholder {
    width: 100%;
    height: 320px;
  }

  .artwork-card-title {
    width: 220px;
    height: 56px;
    font-size: 22px;
  }

  .artwork-card .btn-wrapper {
    width: 200px;
    height: 56px;
  }


  .artwork-card .btn {
    font-size: 14px;
    gap: 10px;
    height: 56px;
  }

  /* ===== Video section ===== */
  .video-section {
    padding: 70px 20px 50px;
    max-width: 100%;
  }

  .video-section .section-title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .video-play-button img {
    width: 70px;
    height: 70px;
  }

  /* ===== Episode section ===== */
  .episode-section {
    padding: 80px 20px;
  }

  .episode-list {
    width: 100%;
    max-width: 680px;
    height: 380px;
  }

  .episode-list-inner {
    padding: 20px 0;
  }

  .episode-item {
    width: 100%;
    max-width: 540px;
    padding: 12px;
    font-size: 14px;
  }

  .episode-text {
    font-size: 14px;
    margin: 8px 20px;
  }

  .episode-author {
    font-size: 14px;
  }

  .episode-meta {
    font-size: 12px;
  }

  /* ===== Column section ===== */
  .column-section {
    padding: 50px 20px 60px;
    max-width: 100%;
  }

  .column-list {
    width: 100%;
    max-width: 540px;
    gap: 24px;
  }

  .column-entry {
    padding: 0 20px;
    gap: 0px;
  }

  .column-content {
    width: 100%;
  }

  .column-title {
    font-size: 14px;
  }

  .column-preview {
    font-size: 13px;
  }

  .column-avatar {
    width: 50px;
    height: 50px;
  }

  .column-thumb-placeholder {
    width: 160px;
    height: 78px;
  }

  /* ===== Section titles ===== */
  .section-title {
    font-size: 22px;
  }

  .section-desc {
    font-size: 13px;
  }
}
