@charset "UTF-8";

html {
  scroll-behavior: smooth;
  font-size: clamp(1rem, 0.25vw + 0.95rem, 1.25rem);
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "Yu Gothic Medium", "游ゴシック Medium", sans-serif;
  background-color: #FEECD8;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  /*余白や線を幅や高さに含める*/
}


/* ===== ヘッダー ===== */
nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px 1%;
}

.logo img {
  max-width: 150px;
}

.head-Link ul {
text-align: center;
}

.head-Link ul li {
  margin-bottom: 2%;
}

.head-Link img {
  width: 50%;
}

.head-Link a:hover {
  opacity: 0.7;
}

picture {
  max-width: 1920px;
  width: 100%;
}

picture img {
  width: 100%;
}

/* ===== タブメニュー ===== */
.tab-container {
  position: relative;
  display: flex;
  background-color: #fff;
  border-radius: 50px;
  padding: 5px;
  margin: 3% auto 3%;
  width: 95%;
  max-width: 1300px;
}

/* タブのリスト */
.tab-menu {
  display: flex;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
  /* 文字を前面に */
  width: 100%;
  justify-content: center;
}

.tab-item {
  padding: 15px 30px;
  cursor: pointer;
  color: #F7931E;
  transition: color 0.3s;
  border-radius: 50px;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  font-family: "fot-tsukubrdgothic-std", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(10px, 2vw, 26px);
}

.tab-item.active {
  color: #fff;
}

.tab-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  background-color: #F7931E;
  border-radius: 50px;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.tab-slider::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 8px 8px 0 8px;
  border-color: #F7931E transparent transparent transparent;
}

/* 初期状態では中身を非表示にする */
.content-panel {
  display: none;
  padding: 20px;
}

/* activeクラスがついた中身だけを表示する */
.content-panel.active {
  display: block;
}

/* ===== メインのタブメニュー===== */
.menu-switch {
  --cstm-tab-color: #F7931E;
  display: flex;
  flex-wrap: wrap;
  max-width: 1300px;
  width: 95%;
  margin: auto;
  gap: 20px;
}

/* タブボタン */
.menu-switch label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #fff;
  color: #254678;
  border: 20px;
  cursor: pointer;
  order: -1;
  /* ボタンをすべて上に並べる */
  text-align: center;
  flex: 0 0 auto;
  width: calc(16.66% - 17px);
  min-width: 110px;
  min-width: 90px;
  font-family: "fot-tsukubrdgothic-std", sans-serif;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 3px 2px 5px 0px rgba(135, 134, 134, 0.4);
}

.menu-switch label img {
  width: 48%;
  margin-top: 2%;
}

.menu-switch label p {
  margin-bottom: 2%;
  /* font-size: 1.5vw; */
}

.menu-switch input[type="radio"] {
  display: none;
}

.menu-switch .subject-content {
  display: none;
  width: 100%;
  padding: 30px 20px;
  background: #fff;
  border-radius: 20px;
  margin-top: 15px;
  font-size: 1.6rem;
}

.subject-content {
  box-shadow: 3px 2px 5px 0px rgba(135, 134, 134, 0.4);
}

/* 選択後のボタンの見た目を変える */
.menu-switch input[type="radio"]:checked+label {
  background: #29ABE2;
  color: #fff;
}

/* 各教科の内容を表示する */
.menu-switch input[type="radio"]:checked+label+.subject-content {
  display: block;
}


/* ======= 各教科ごとのタブの中身 ======= */

.tab-content {
  margin-bottom: 5%;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 20px 0;
  margin: 0 auto;
}

table td {
  width: 50%;
  box-sizing: border-box;
  padding-right: 1%;
  border-bottom: 1px solid #000;
}

table th,
td {
  padding: 30px 10px;
  vertical-align: top;
}

.wrap a.pdf-link {
  display: flex !important;
  justify-content: flex-start;
  align-items: center;
  gap: 1%;
}

a.pdf-link:hover {
  opacity: 0.7;
}

.icon img {
  width: 80px;
  flex-shrink: 0;
  margin: 0 auto;
}

.title {
  font-weight: bold;
  color: #29ABE2;
  font-size: clamp(14px, 1.6vw, 24px);
}

.text {
  flex: 1;
  min-width: 0;
}

.text p {
  font-size: clamp(13px, 1.3vw, 20px);
  margin-top: 2%;
}

table td:nth-child(odd) {
  padding-right: 2%;
}

table td:nth-child(even) {
  padding-left: 2%;
}

/* R2・R3年度のタブのデザイン */
.menu-switch.tub2 {
  gap: 10px;
}

.menu-switch.tub2 label {
  color: #666666;
  /* display: inline-block; */
  border-radius: 9999px;
  border: 1.5px solid #000;
  flex: 0 0 auto;
  white-space: nowrap;
  width: calc(13% - 17px);
  min-width: 110px;
  text-align: center;
}

.menu-switch.tub2 label p {
  line-height: 2.3;
  font-size: clamp(0.7rem, 1.1vw, 1rem);
}

/* ======== TOPへ戻るボタン ======= */
.retop-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  cursor: pointer;
  transition: opacity .3s, visibility .3s, transform .3s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

/* activeが付与されると表示する */
.retop-btn.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.retop-btn img {
  width: 90px;
  height: auto;
  display: block;
}

/* ======= フッター ======= */
.pink {
  background-color: #F6BAB2;
  padding-top: 1%;
  padding-bottom: 2%;
}

.logo-w img {
  width: 120px;
  margin-left: 1%;
}

.footer-area-wrap {
  max-width: 1980px;
  width: 95%;
  margin: 0 auto;
  padding-bottom: 2%;
  display: flex;
  justify-content: space-around;
}

.digi-index h3 {
  font-size: clamp(20px, 1.5vw, 28px);
  font-weight: bold;
  color: #4d4d4d;
  text-align: center;
  font-family: "fot-tsukubrdgothic-std", sans-serif;
  position: relative;
}


.digi-index-wrap {
  background-color: #fff;
  width: 49%;
  margin: 2% 0 2%;
  padding-top: 3%;
  padding-bottom: 2%;
  border-radius: 15px;
}

.digi-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #fff;
  margin: 0 auto;
  width: auto;
}

.digi-menu {
  flex: 1;
  width: 100%;
  padding-top: 1%;
  margin-top: 1%;
  text-align: center;
  border-right: dashed 2px #74b5e4;
  /* 右側に罫線を追加 */

}

.digi-menu:last-child {
  border-right: none;
}

.image {
  width: 55%;
  object-fit: contain;
  margin: 0 auto;
  padding-bottom: 2%;
}

.digi-menu a:hover {
  opacity: 0.7;
}

.digi-menu p {
  font-size: clamp(10px, 1vw, 16px);
  font-weight: 500;
  color: #254678;
  font-family: "fot-tsukubrdgothic-std", sans-serif;
  font-weight: 700;
  padding-top: 5px;
}

.border {
  text-align: center;
  margin-bottom: 3%;
}

.border img {
  margin: 0 auto;
}

/* アイコンの位置指定 */

.digi-index-wrap {
  position: relative;
  overflow: visible;
}

.footer-icon {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 12%;
}

address {
  color: #fff;
  font-size: small;
  text-align: center;
}

/* SPフッター */
.sp-link {
  font-family: "fot-tsukubrdgothic-std", sans-serif;
  display: none;
}

.digi-movie-link {
  margin: 4% 2% 5%;
  padding-bottom: 3%;
}

.digi-movie-link p {
  font-weight: 700;
  margin: 1%;
  color: #254678;
}

.digi-movie-link ul {
  background-color: #fff;
  border-radius: 5px;
  padding: 1%;
}

.digi-movie-link ul li {
  display: inline-grid;
  column-gap: 1em;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  font-size: 0.8rem;
  font-weight: 600;
  color: #254678;
  line-height: 2;
  margin: 1% 1% 0 1%;
  text-decoration: underline;
}

@media screen and (max-width: 980px) {
  .footer-area-wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .digi-index-wrap {
    width: 99%;
  }

  .footer-icon {
    display: none;
  }

}

/* ======== 画面幅が768px以下のとき ========= */
@media screen and (max-width: 768px) {

  .tab-item {
    padding: 5px 20px;
  }

  .menu-switch .subject-content table,
  .menu-switch .subject-content tbody,
  .menu-switch .subject-content tr,
  .menu-switch .subject-content td {
    display: block;
    width: 100% !important;
  }

  .menu-switch .subject-content td {
    padding: 15px 0;
  }

  .menu-switch .tsubject-content tr {
    margin-bottom: 10px;
  }

  .icon img {
    width: 40px;
  }

  .menu-switch.tub2 label {
    min-width: 89px;
  }

  /* ヘッダー */

  .logo {
    min-width: 80px;
    max-width: 120px;
  }

  .logo img {
    width: 100%;
  }

  .head-Link ul {
    text-align: right;
    margin-right: 2%;
    }

  .head-Link ul li {
    display: inline;
  }

  .head-Link img {
    width: 40%;
  }

  /* topへ戻るボタン */
  .retop-btn img {
    width: 50px;
    height: auto;

  }

  /* footer */
  .logo-w img {
    width: 80px;
  }

  address p {
    font-size: x-small;
  }

  .footer-area-wrap {
    display: none;
  }

  .sp-link {
    display: block;
  }
}