html, body {
  height: 100%;
  margin: 0;
}

body {
  background: linear-gradient(to bottom right, #55d0e3, #d0f8ce);
  background-attachment: fixed;
  background-size: cover;
  display: block; 
  padding: 40px 20px;
  box-sizing: border-box;
  overflow-y: auto; /* ← body全体をスクロール可能に */
}

.interview {
  width: 70%;
  max-width: 800px;
  background-color: white;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin: 0 auto 40px auto; /* 中央寄せ＋下に余白 */
}

.btn {
  width: 70%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 50px;
}

.back {
  border: solid 2px #366084;
  border-radius: 10px;
  background-color: #599DD9;
  box-shadow: 5px 5px #366084;
  color: white;
  text-decoration: none;
  padding: 10px;
  display: inline-block;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.back:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px #2a4f6b;
}

.back:active {
  transform: translate(4px, 4px);
  box-shadow: 1px 1px #1f3e56;
}


h2 {
  text-align: center;
  padding-bottom: 20px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.top img {
  width: 150px;
  height: auto;
}

.explain {
  margin-left: 40px;
}

.explain h3 {
  color: #3B7D23;
  font-style: italic;
  padding-bottom: 10px;
}

.interviewer {
  margin-top: 30px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
}

.boxOne, .box {
  margin-top: 25px;
  margin-bottom: 15px;
}

.boxOne {
  border-bottom: 1px solid #ccc;
}

.boxOne h3, .box h3 {
  color: #3B7D23;
  margin-top: 5px;
  margin-bottom: 10px;
}

.closeBtn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 24px;
  color: #333;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s;
  text-decoration: none;
}

.closeBtn:hover {
  background-color: #ddd;
}

.fixedIndex {
  position: fixed;
  width: 313px;
  height: 420px;
  top: 50%; /* 画面の縦中央 */
  right: 0; /* 画面右端 */
  transform: translateY(-50%); /* 中央揃え */
  background-color: #f9f9f9;
  border-left: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
}

/* 開発者ツールで確認し、文字と重ならない幅になるまでindexを見えなくする */
@media screen and (max-width: 1370px) { 
  .fixedIndex {
    display: none;
  }
}

.indexList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.indexList li {
  margin: 8px 0;
  position: relative;
  padding-left: 1.5em; 
}

.indexList li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #333;
  font-weight: bold;
  font-size: 0.9em;
  margin-right: 6px;
}

.indexList a {
  text-decoration: none;
  color: #333;
  font-weight: normal;
}

.indexList a:hover {
  color: #19a2b7;
}

.indexTitle {
  font-size: 16px;
  margin-bottom: 10px;
  text-align: center;
  color: #555;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.indent {
  text-indent: 1em;
}

.content {
  width: 100%;
}

/* ここから2つ目の設計(sr)（1つ目と共通の部分を除く） */
.intTwo {
  background-color: #f4f4f4;
}

.topTwo img {
  border: solid 2px black;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
}


.chat {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.question {
  background-color: #d0f0b0;
  color: #000;
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 60%;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.question::after {
  content: "";
  position: absolute;
  top: 6px;
  right: -28px; /* 三角形の幅に合わせて外側にずらす */
  border-width: 20px;
  border-style: solid;
  border-color: transparent transparent transparent #d0f0b0; 
}

.answer {
  background-color: #ffffff; 
  color: #000;
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 60%;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.answer::after {
  content: "";
  position: absolute;
  top: 6px;
  left: -28px;
  border-width: 20px;
  border-style: solid;
  border-color: transparent #ffffff transparent transparent;
}

.vieTwo {
  border-bottom: 1px solid #ccc;
}

.boxTwo {
  border-top: 1px solid #ccc;
}

/* ここから対談のレイアウト(nj-fy)（一つ目と共通するものは除く） */
.illustration {
  display: flex;
  width: 320px;
  justify-content: space-between;
}

.face {
  border: solid 1px black;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.start {
  display: flex;
  padding-bottom: 10px;
}

.talk {
  display: flex;
  margin-left: 20px;
  width: 90%;
  align-items: center;
}

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

.names p {
  text-align: center;
  color: #3B7D23;
  font-weight: bold;
}

.illust2 img {
  width: 115px;
}

.topThree .explain {
  margin-left: 30px;
}
