body {
  background-image: url("https://ikkyosai.com/shinkan/57/img/schedule/plane3.svg");
  background-size: 60vw;
  background-position: center;
  background-repeat: repeat-y;
  z-index: 0;
}


.people-wrap {
  width: 72%;
  height: auto;
  margin: 50px auto;
  position: relative;
  background-color: color-mix(in srgb, var(--clr-lightbeige), white 50%);
  padding: 10px;
}

.people-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  position: relative;
}

.people-frame::before {
  content: "";
  position: absolute;
  left: -25px;
  top: -10px;
  width: 50px;
  height: 17px;
  background-color: var(--clr-lightblue);
  opacity: 0.6;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transform: rotate(-40deg);
}

.people-frame.is-blue::before {
  background-color: var(--clr-lightblue);
}

.people-frame::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -6px;
  width: 50px;
  height: 17px;
  background-color: var(--clr-lightblue);
  opacity: 0.6;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transform: rotate(-40deg);
}

.people-frame.is-blue::after {
  background-color: var(--clr-lightblue);
}

.people-photo {
  width: 80%;
  aspect-ratio: 4 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.people-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.people-name {
  font-size: 18px;
}

.people-bar {
  width: 60%;
  height: 1px;
  background-color: black;
}

.people-bureau {
  font-size: 18px;
  text-shadow: 0px 0px 0.5px black
}

.people-bureau span.is-josen {
  color: var(--clr-josen);
}

.people-bureau span.is-ansou {
  color: var(--clr-ansou);
}

.people-bureau span.is-simpo {
  color: var(--clr-simpo);
}

.people-bureau span.is-fes {
  color: var(--clr-fes);
}

.people-job {
  font-size: 13px;
}

/* ------------------------------
     時間割表 全体のラッパー
  ------------------------------ */
.timetable-wrapper {
  width: 85%;
  margin: 0 auto;
}

/* ------------------------------
     テーブル部分
  ------------------------------ */
.timetable {
  width: 100%;
  border-collapse: collapse;
  /* 罫線を1本にまとめる */
  text-align: center;
  table-layout: fixed;
  /* 各曜日の列幅を均等にする */
  background-color: color-mix(in srgb, var(--clr-lightbeige), white 50%);
  margin-top: 20px;
}

/* 罫線の設定 (commonファイルの色関数を指定) */
.timetable th,
.timetable td {
  border: 1px solid var(--clr-text);
  font-size: 11px;
  font-weight: 400;
  vertical-align: middle;
  height: 60px;
  line-height: 1.2;
  /* セルの高さを確保 */
}

.timetable th {
  height: 30px;
}

/* 一番左の「時限」列の幅調整 */
.timetable .col-time {
  width: 6%;
}

/* 昼休みの行 */
.timetable .lunch-cell {
  height: 30px;
  letter-spacing: 0.1em;
}

/* ------------------------------
     特定の装飾セル（オレンジ文字＋左上模様）
  ------------------------------ */
.timetable .event-cell {
  position: relative;
  color: var(--clr-orange);
  /* 変数関数でオレンジを指定 */
}

/* 左上の市松模様のような装飾 */
.timetable .event-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  /* 3x3マスのグリッドに合わせて15pxに調整 */
  height: 15px;
  /* SVGで四角形を4つ並べて模様を自作しています。
      %23c36933 は var(--clr-orange) の色コード #c36933 を指定しています。
    */
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><rect x="0" y="0" width="5" height="5" fill="%23c36933"/><rect x="10" y="0" width="5" height="5" fill="%23c36933"/><rect x="5" y="5" width="5" height="5" fill="%23c36933"/><rect x="0" y="10" width="5" height="5" fill="%23c36933"/></svg>');
  background-repeat: no-repeat;
}

.timetable .other {
  position: relative;
  height: 45px;
  padding-top: 12px;
}

.timetable .other::before {
  content: "（その他オンデマンド授業）";
  position: absolute;
  top: 5px;
  left: 0px;
  font-size: 10px;
}

.timetable .is-gray {
  color: gray;
}

.timetable .is-small {
  font-size: 9px;
}

.mtg{
  display: block;
}

/* ------------------------------
     下部のテキストエリア
  ------------------------------ */
.weekly-schedule {
  background-color: var(--clr-lightbeige);
  border: 1px solid var(--clr-text);
  position: relative;
}

.weekly-schedule::before {
  content: "";
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  width: calc(100% - 5px);
  height: calc(100% - 5px);
  border: 1px solid var(--clr-text);
  pointer-events: none;
}

/* 以前のアコーディオン用コンテンツルールを削除 */

/* summary（クリックできる見出し部分） */
.weekly-schedule-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  gap: 15px;
  padding: 12px 15px;
  position: relative;
}

/* 見出し左右の装飾線 
.weekly-schedule-title::before,
.weekly-schedule-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--clr-text);
}*/

.weekly-schedule-title::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 3px;
  background-color: var(--clr-lightorange);
  opacity: 0.6;
}

/* 本文 */
.weekly-schedule-text {
  font-size: 12px;
  text-align: justify;
  padding: 0 15px 15px;
}

.interview-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 85%;
  margin: 50px auto;
  gap: 30px;
}

.interview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 15px 15px;
  background-color: var(--clr-lightbeige);
  border-radius: 8px;
  position: relative;
}

.interview::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 20px;
  transform: translateX(-50%) rotate(-31deg);
  width: 68px;
  height: 19px;
  background-color: var(--clr-lightorange);
  opacity: 0.6;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

.interview.is-blue::before {
  background-color: var(--clr-lightblue);
}

/* ============================================
   インタビューカードの右上折り目装飾
   ============================================ */

/* 1. 元のカード本体の背景を透明にして上書き */
.interview {
  background-color: transparent !important;
  z-index: 0;
  /* 追加した背景がページの裏側まで突き抜けないようにする魔法 */
}

/* 2. 背景と「カード全体の影」を管理するコンテナ */
.interview-fold {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* テキストやテープの後ろに配置 */
  /* ★ここでカード全体に影を落とします */
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.12));
}

/* 3. カードの背景色（右上だけを切り取る） */
.interview-fold::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--clr-lightbeige);
  border-radius: 8px;
  /* 元の角丸をここで復元 */
  /* 右上35px分を斜めにカット */
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}

/* 4. 折り返しの三角（フラップ） */
.interview-fold::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(to top right, var(--clr-lightbeige) 50%, transparent 50%);
  /* フラップがカード本体に落とす影 */
  filter: drop-shadow(-2px 2px 3px rgba(0, 0, 0, 0.15));
}

.title-circle {
  height: auto;
  margin-left: 20px;
}

.circle-container {
  gap: 0px;
}

.circle-icon {
  width: 0px;
  height: 0px;
  border: none;
}

.circle-icon::before {
  content: none;
}

.circle-icon::after {
  content: none;
}

.circle-text {
  margin-left: 0px;
}

.interview-text {
  font-size: 12px;
  margin-top: 5px;
  padding: 5px;
  width: 100%;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #AAAAAA;
  text-underline-offset: 3px;
  text-align: justify;
}

.interview-text span {
  font-weight: 600;
  font-family: serif;
}

.interview-text b {
  display: inline-block;
  font-weight: normal;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #AAAAAA;
  text-underline-offset: 3px;
}

/*タブ*/
.interview-tabs {
  display: flex;
}

.interview-tabs .tab-btn {
  cursor: pointer;
  flex: 5;
  font-size: 20px;
  height: 2.5em;
  background-color: var(--clr-lightbeige);
  border: 1px solid var(--clr-text);
  font-family: var(--font-base);
  color: var(--clr-text);
  text-decoration: none;
  opacity: 0.8;
}

.interview-tabs .tab-btn:hover {
  background-color: var(--clr-text);
  color: #ffffff;
}

.interview-tabs .tab-btn.active {
  background-color: var(--clr-text);
  color: #ffffff;
  opacity: 1;
}

.interview-tabs.is-bottom {
  margin-bottom: 60px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ============================================
   スクロール連動フェードイン（疑似要素用）
   ============================================ */

/* 1. アニメーションの定義（clip-pathを使用） */
@keyframes wipe-in {
  0% { 
    opacity: 0; 
    /* 右側から100%隠す（左端だけ見えない状態で待機） */
    clip-path: inset(0 100% 0 0); 
  }
  100% { 
    opacity: 0.6; 
    /* 隠すのをやめて全体を表示する（左から右へ出現） */
    clip-path: inset(0 0 0 0); 
  }
}

@keyframes wipe-in-center {
  0% { 
    opacity: 0; 
    /* 左右から50%ずつ隠す（中央から出現） */
    clip-path: inset(0 50% 0 50%); 
  }
  100% { 
    opacity: 0.6; 
    clip-path: inset(0 0 0 0); 
  }
}

/* 2. 初期状態（見えない状態にしておく） */
/* ★ transformやtransform-originは元の位置を維持するためここには書きません！ */
.people-frame::before,
.people-frame::after,
.weekly-schedule-title::before,
.interview::before {
  opacity: 0;
}

/* 3. 画面に入った時（is-visible付与時）にアニメーションを発動 */
/* テープ類（左から右へスッと貼る） */
.people-frame.is-visible::before,
.people-frame.is-visible::after,
.interview.is-visible::before {
  animation: wipe-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 時間割見出しの下線（中央から左右へスッと伸びる） */
.weekly-schedule-title.is-visible::before {
  animation: wipe-in-center 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ============================================
   レスポンシブ対応（タブレット・PC向け）
   ============================================ */
@media (min-width: 1024px) {

  body {
    background-size: 40vw;
  }

  /* 1. プロフィール部分（画像が画面いっぱいに巨大化するのを防ぐ） */
  .people-wrap {
    max-width: 400px;
    margin: 60px auto 100px;
    padding: 20px;
  }

  .people-name {
    font-size: 24px;
  }

  .people-bureau {
    font-size: 20px;
  }

  .people-job {
    font-size: 14px;
  }

  .people-frame::before {
    width: 73px;
    height: 25px;
    left: -35px;
    top: -20px;
  }

  .people-frame::after {
    width: 73px;
    height: 25px;
    right: -32px;
    bottom: -16px;
  }

  /* 2. 時間割表（最大幅を設け、clamp関数で文字を可変に） */
  .timetable-wrapper {
    max-width: 700px;
  }

  .timetable {
    margin-top: 50px;
  }

  .timetable th {
    font-size: clamp(12px, 1.2vw, 15px);
    height: 40px;
  }

  .timetable td {
    /* 12pxを最小、15pxを最大として画面幅に追従 */
    font-size: clamp(12px, 1.2vw, 15px);
    height: 70px;
  }

  .timetable .lunch-cell {
    height: 40px;
  }

  .timetable .is-small {
    font-size: clamp(10px, 1vw, 14px);
  }

  .timetable .other {
    padding-top: 0;
    height: 55px;
  }

  .timetable .other::before {
    font-size: clamp(11px, 1.1vw, 14px);
    top: 8px;
  }

  .mtg {
    display: none;
  }

  .weekly-schedule-title {
    font-size: 18px;
  }

  .weekly-schedule-title::before {
    top: 38px;
    width: 150px;
    height: 5px;
  }

  .weekly-schedule-text {
    font-size: 15px;
    padding: 0 25px 20px;
    line-height: 1.8;
  }

  /* 3. インタビューカード（CSS Gridで2列配置） */
  .interview-wrap {
    max-width: 700px;
    gap: 50px;
    margin: 100px auto 60px;
    /* 縦50px、横40pxの余白 */
  }

  .title-pin {
    margin-bottom: -20px;
  }

  .interview {
    /* Grid内で隣り合うカードの高さを自動で揃える */
    height: 100%;
    padding: 20px 30px;
  }

  .interview-text {
    font-size: 15px;
    line-height: 1.8;
  }

  .circle-text {
    font-size: 17px;
  }

  /* 4. タブメニュー */
  .interview-tabs .tab-btn {
    font-size: 24px;
  }

  .interview-tabs.is-bottom {
    margin-bottom: 90px;
  }
}