/* ==========================================================================
   Record Detail Page (precon/record/index.html)
   ========================================================================== */
.recordPage {
  background-image: url('../images/record_detail_bg.svg');
  background-position: -70px -100px;
  background-color: #FFE7BD; /* Same as achievementsSection */
  padding-top: 60px; /* Space for header */
  padding-bottom: 100px;
}

.recordPage__inner {
  max-width: 1080px; /* Bit wider to accommodate the white box */
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.recordPage__inner .achievementsSectionTitle {
  margin-top: 0;
}

.recordPage__inner .linedSectionTitle {
  --title-color: #FC5806;
  --line-color: #FC5806;
}

.recordContent {
  background-color: #fff;
  border-radius: 40px;
  padding: 80px 100px;
  margin-top: 60px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.recordContent__title {
  color: #FC5806;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 60px;
}

.recordContent__images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.recordContent__imageItem {
  flex: 1;
  max-width: 700px;
  min-width: 300px; /* Ensure not too small */
  aspect-ratio: 16/9;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

.recordContent__imageItem img {
  width: 100%;
  height: auto;
}

/* 中央配置用のスタイル（survey_answers用） */
.recordContent__imageItem--center {
  flex: none;
  max-width: 100%;
  margin: 0 auto 30px;
  display: block;
}

.recordContent__heading {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 24px;
  margin-top: 60px; /* Spacing before new section */
}

.recordContent__heading:first-of-type {
  margin-top: 0;
}

.recordContent__heading::before {
  content: '';
  display: block;
  width: 6px;
  height: 36px;
  background-color: #FC5806;
  margin-right: 16px;
  border-radius: 3px;
}

.recordContent__subheading {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-top: 30px;
  margin-bottom: 16px;
}

.recordContent__text {
  font-size: 16px;
  line-height: 2;
  color: #333;
  margin-bottom: 30px; /* Reduced from 60px for better flow */
}

.recordContent__list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.recordContent__list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 1em;
  font-size: 16px;
  line-height: 1.3;
  color: #333;
}

.recordContent__list li::before {
  content: '・';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Video Placeholder */
.recordContent__video {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background-color: #D9D9D9;
  margin: 0 auto;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* APIが生成するiframeへのスタイル */
.recordContent__video > iframe,
.recordContent__video iframe[src*="youtube"],
.recordContent__video iframe[src*="youtu.be"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.recordContent__playIcon {
  width: 80px;
  height: 80px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.recordContent__playIcon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 26px;
  border-color: transparent transparent transparent #aaa;
  margin-left: 6px; /* Visual adjustment */
}

.recordContent__backButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 60px;
  background-color: #FFD500;
  border-radius: 30px;
  margin: 60px auto 0;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 18px;
  transition: opacity 0.3s;
}

.recordContent__backButton,
.recordContent__backButton:link,
.recordContent__backButton:visited,
.recordContent__backButton:hover,
.recordContent__backButton:active {
  color: #333;
}

.recordContent__backButton:hover {
  opacity: 0.8;
}

.recordContent__backButton .arrow {
  margin-right: 10px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .recordPage {
    background-image: url('../images/sp/record_detail_bg.svg');
    background-size: 120% auto;
    background-position: top center;
    background-repeat: repeat;
  }
  .recordContent {
    padding: 40px 20px;
    border-radius: 20px;
    margin-top: 30px;
  }

  .recordContent__title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .recordContent__images {
    display: flex;
    flex-direction: column;
  }

  .recordContent__imageItem {
    max-width: 100%;
  }

  .recordContent__video {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 100%;
  }

  /* APIが生成するiframeへのスタイル*/
  .recordContent__video > iframe,
  .recordContent__video iframe[src*="youtube"],
  .recordContent__video iframe[src*="youtu.be"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  .recordContent__heading {
    font-size: 20px;
  }
}
