/*
  ルートのフォントサイズを基準にremを設定
  デフォルトのブラウザフォントサイズが16pxの場合、
  html { font-size: 62.5%; } で 1rem = 10px となる。
  これにより、1.6rem = 16px など、rem値をpx値に変換しやすくなる。
*/
html {
  font-size: 62.5%; /* 1rem = 10px となるように設定 */
  box-sizing: border-box; /* _reset.css にも記述していますが、念のためここにも */
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* リストアイテムのデフォルトスタイルをリセット */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none; /* リストのマーカーを削除 */
}

/* リンクの初期スタイルをリセット */
a {
  color: inherit; /* 親要素から色を継承 */
  text-decoration: none; /* 下線を削除 */
}
a.button:hover {
    text-decoration: none; /* 下線を削除 */
}

/* 画像の最大幅を親要素に合わせる */
img, video {
  max-width: 100%;
  height: auto;
  display: block; /* 不要な下部の隙間をなくす */
  margin: 0 auto;
}

/*
  ========================================
  CSS カスタムプロパティ (変数) の定義
  ========================================
*/
:root {
  --primary-color: #E97132; /* 主要なアクションボタン、リンクなど */
  --primary-dark-color: #1f3681; /* プライマリーカラーのホバー状態など */
  --secondary-color: #2948ad; /* 二次的なボタン、テキストなど */
  --accent-color: #ffd800; /* 強調したい要素など */

  --text-color: #333; /* 主要なテキストの色 */
  --light-text-color: #666; /* 明るい背景上のテキストの色 */
  --white-text-color: #fff; /* ダークな背景上のテキストの色 */

  --background-color: #ffffff; /* ページの主要な背景色 */
  --light-background-color: #e2edf8; /* フッターなど、明るい背景色 */
  --dark-background-color: #2C3840; /* ヘッダーなど、ダークな背景色 */

  --border-color: #666; /* フォームの枠線など */
  --border-secondary-color: #a9cdea
}


/* 基本的なタイポグラフィ */
body {
  min-width: unset;
  font-size: 1.6rem; /* 16px */
  color: var(--text-color);
  background-color: var(--background-color); 
  line-height: 1.5;
  font-family: sans-serif; 
}

main {
  > section {
      h2 { 
        font-size: clamp(2rem, 5.33vw, 3.2rem); /* 32px */ 
        margin-top: 3.2rem; 
        margin-bottom: 2.4rem; /* 21px */ 
        color: var(--primary-dark-color);
        text-align: center;
      }
      h3 { font-size: 2.8rem; /* 28px */ margin-top: 3.2rem; margin-bottom: 1.8rem; /* 18px */ }
      h4 { font-size: 2.4rem; /* 24px */ margin-top: 4rem; margin-bottom: 1.5rem; /* 15px */ }
      h5 { font-size: 2.0rem; /* 20px */ margin-top: 4rem; margin-bottom: 1.2rem; /* 12px */ }
      h6 { font-size: 1.6rem; /* 16px */ margin-top: 4rem; margin-bottom: 0.9rem; /* 9px */ }
  }
}

main > section > h2:first-child {
    margin-top: 0;
} 

p {
  margin-top: 0;
  margin-bottom: 1.6rem; /* 16px */
}

button, 
.button {
    display: flex;
    max-width: 53.3rem;
    padding: 1.7rem 2.4rem;
    background-color: var(--primary-color);
    color: var(--white-text-color);
    border: none;
    border-radius: 50rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: 0.3s ease;
    font-size: min(4.266vw, 2.4rem);
    align-items: center;
    justify-content: center;
    transition: .3s ease-in-out;

    &:visited, &:link {
      color: var(--white-text-color);
    }
}

button:hover,
.button:hover {
  background-color: var(--primary-color); /* CSS変数を使用 */
}
.button:hover a {
  text-decoration: none;
}

.btnNowBlock-wrapper {
  height: unset;
  padding: 0 2rem;

  a.btn-marine.entry {
    height: unset;
    padding: 1rem;
    font-size: min(4.266vw, 2.4rem);
    font-weight: 500;
    line-height: 1.5;
  }
}

/*
  ========================================
  レイアウト
  ========================================
*/

/*main基本レイアウト*/
main {
    width: 100%;

    > section {
        width: 100%;
        padding: clamp(4rem, 10vw, 8rem) 2rem;

        > * {
            width: 100%;
            max-width: 1100px;
            margin: 3.2rem auto;
        }
        > p {
          margin: 0 auto 1.6rem;
        }
    }

    > section:nth-child(odd):not(#mv) {
      background-color: var(--light-background-color);
  }
}

/* ヘッダー、フッター、ナビゲーションの基本スタイル (モバイル向けがデフォルト) */
/* ヘッダーの基本スタイル */
.header {
  width: 100%;
  min-width: unset;
  background-color: var(--background-color); /* CSS変数を使用 */
  color: var(--white-text-color); /* CSS変数を使用 */
  padding: 1rem 2rem; 
  text-align: center;
  position: relative; /* ハンバーガーボタンの absolute 配置の基準 */
  z-index: 100; /* コンテンツの上に表示 */
}
.header > div {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ヘッダー内部の配置（モバイル向けは縦並びを想定） */
.header__content {
  display: flex;
  flex-direction: column; /* モバイルでは要素を縦に並べる */
  align-items: flex-start;
}

/* ヘッダーのタイトル (My Framework) */
.header h1 {
  margin-bottom: 0; /* タイトルの下のマージンをリセット */
  /* 必要に応じて、モバイルでタイトルのフォントサイズを調整 */
}

/* ハンバーガーメニューボタン - モバイルのみ表示 */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem; /* 8px */
  z-index: 1000; /* メニューの上に表示 */
  position: absolute; /* ヘッダー内の位置調整 */
  top: 0.6rem; /* 10px */
  right: 1.6rem; /* 16px */
  width: 4.8rem; /* 48px */
  height: 4.8rem; /* 48px */
  display: none; /*Flex*/
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  background-color: transparent;
}

.menu-toggle:hover {  
  background-color: transparent;
}

.menu-toggle .icon-bar {
  display: block;
  width: 3.2rem; /* 32px */
  height: 0.3rem; /* 3px */
  background-color: var(--text-color); /* CSS変数を使用 */
  border-radius: 0.3rem; /* 3px */
  transition: all 0.3s ease-in-out;
}

/* ハンバーガーアイコンのアニメーション */
.menu-toggle.is-active .icon-bar:nth-child(3) {
  opacity: 0; /* 真ん中の線を消す */
}
.menu-toggle.is-active .icon-bar:nth-child(2) {
  transform: translateY(1.15rem) rotate(45deg); /* 上の線を回転・移動 */
}
.menu-toggle.is-active .icon-bar:nth-child(4) {
  transform: translateY(-1rem) rotate(-45deg); /* 下の線を回転・移動 */
}


/* スクリーンリーダー専用コンテンツ (変更なし) */
.sr-only {
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  padding: 0;
  margin: -0.1rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ナビゲーション - モバイルでは全画面レイヤー */
.header__nav {
  position: fixed; /* 画面に固定 */
  top: 0;
  left: 0;
  width: 100vw; /* 画面幅いっぱい */
  height: 100vh; /* 画面高さいっぱい */
  background-color: rgba(255, 255, 255, 0.9); /* 半透明の黒でコンテンツを覆う */
  color: var(--text-color); /* CSS変数を使用 */
  display: flex;
  justify-content: center; /* メニューを中央に配置 */
  align-items: center;
  z-index: 999; /* ハンバーガーボタンより下、コンテンツより上 */

  transform: translateX(100%); /* 初期状態では画面外に隠す */
  transition: transform 0.4s ease-out; /* 出てくるアニメーション */
}

.header__nav.is-open {
  transform: translateX(0); /* is-open クラスが付いたら表示 */
}

.header__nav ul {
  padding: 0;
  list-style: none;
  text-align: center; /* リンクテキストを中央寄せ */
  width: 100%; /* メニューの幅 */
}

.header__nav li {
  display: block; /* 縦並び */
  margin: 1.6rem 0; /* 16px 上下マージン */
}

.header__nav a {
  padding: 1.2rem 1.6rem; /* 12px 16px */
  display: block;
  font-size: 2.4rem; /* 24px - 大きめのフォントサイズ */
  transition: opacity 0.4s ease;
}
.header__nav a:hover {
  background-color: #00A1B9 !important; /* CSS変数を使用 */
  opacity: 0.8;
  text-decoration: none;
}

/* メニューが開いているときにbodyのスクロールを抑制 */
body.menu-active {
  overflow: hidden;
}

/* タブレット向けスタイル (Min-width: 768px または 76.8rem) */
@media (min-width: 768px) {
  .header__content {
    flex-direction: row; /* デスクトップでは横並び */
    justify-content: space-between; /* 両端揃え */
    align-items: center; /* 中央寄せ */
  }

  .menu-toggle {
    display: none; /* デスクトップではハンバーガーボタンを非表示 */
  }

  .header__nav {
    position: static; /* デスクトップでは通常の配置 */
    width: auto;
    height: auto;
    background-color: transparent; /* 背景色なし */
    color: white; /* ヘッダーの文字色を継承 */
    display: block; /* デスクトップではナビゲーションを常に表示 */
    transform: translateX(0); /* 常に表示 */
    margin-top: 0;
  }

  .header__nav ul {
    display: flex; /* 横並び */
    justify-content: center;
    gap: 1.6rem; /* 16px */
    margin-bottom: 0;
  }

  .header__nav li {
    margin: 0; /* マージンをリセット */
  }

  .header__nav a {
    height: 3rem;
    min-width: 140px;
    padding: 0 1.5rem;
    font-size: 1.6rem;
    text-align: center;
    line-height: 3rem;
  }

  /* メニューが開いているbodyスタイルをデスクトップでは適用しない */
  body.menu-active {
    overflow: visible;
  }
}



/*
  ========================================
  tsr独自のCSS
  ========================================
*/

/* ----------------------
見出し・テキスト装飾
---------------------- */

h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1.8rem;

    &::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--primary-dark-color);
  }
}

.h2-below_txt {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
}

/* ----------------------
ナビゲーション
---------------------- */
#mainNav {
  li {
      padding: 0 2rem;
  
      @media (min-width: 768px) {
        padding: 0;
      }
  }
  .header_nav_line-inquiry a {
      background: #FFFFFF;
      border: solid 1px #000;
      color: #000;
      transition: .3s ease-in-out;
  }
  .header_nav_admission a {
    background-color: #1643B6;
    background-image: url(/contents/zenrin/images/head-icon-entry.png);
    background-repeat: no-repeat;
    background-position: center left 10px;
    color: var(--white-text-color);
    transition: .3s ease-in-out;
  }
}

/* ----------------------
メインビジュアル
---------------------- */
#mv {
    display: flex;
    height: 70lvh;
    padding-top: 2rem;
    padding-bottom: 2rem;
    background-color: #accee7;
    background-image: linear-gradient(to bottom, transparent 0%, transparent 70%, #accee7 100%), url(/contents/yoshin/images/tsr_mv.png);
    background-size: auto 40lvh;
    background-position: top center;
    background-repeat: no-repeat;
    align-items: flex-end;

  &> div {
    margin-top: 0;
  }

  .mv_inner {
    display: flex;
    gap: 1.6rem;
    max-width: 700px;
    margin: 0px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    flex-direction: column;

    & * {
      margin: 0;
    }

    h1 {
      margin-bottom: 1.6rem;
      font-size: clamp(3rem, 4.6875vw, 4rem);
      line-height: 1.2;
    }

    .btnBlock a {
      display: flex;
      max-width: 300px;
      padding-top: 1rem;
      padding-bottom: 1rem;
      font-size: min(4.266vw, 2.1rem);
      line-height: 1.5;
      transition: .3s ease-in-out;

      &:hover {
        background-color: #00A1B9;
      }
    }
  }
  
  @media (min-width: 768px) {
    height: 400px;   
    align-items: center;
    background-image: url(/contents/yoshin/images/tsr_mv.png);
    background-size: cover;
    background-position: center;
  }

  @media (min-width: 1024px) {
    background-size: auto 150%;
    background-position: 90% 50%;

    hgroup br {
      display: none;
    }
  }
}

/* ----------------------
tsr_blk_01 
---------------------- */
#tsr_blk_01 {
  p {
    text-align: center;
  }

  @media (min-width: 768px) {
    h2 br:first-child {
      display: none;
    }

    .h2-below_txt br {
      display: none;
    }
  }
}

.tsr_blk_01_list {
    display: flex;
    flex-direction: column;
    gap: 2.4rem 4.9rem;
    margin-top: 6.4rem;

    li {
      display: flex;
      flex-direction: column;
      align-items: center;
      row-gap: 1rem;
  }

    img {
      width: 70%;
    }

    h3 {
      margin: 0;
      font-size: 2.4rem;
      text-align: center;
    }

    p {
      margin-bottom: 0;
    }

    @media (min-width: 768px) {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;

      li {
        width: 46%;
      }
    }

    @media (min-width: 1024px) {
      li {
        width: unset;
        flex: 1;
      }

      img {
        width: 90%;
      }
    }
}

/* ----------------------
tsr_blk_02 
---------------------- */

#tsr_blk_02.admission-flow {
  position: relative;
  z-index: 0;

  .admission-flow-baloon {
    display: flex;
    justify-content: space-between;
    max-width: 45rem;
    margin-top: 4rem;
    position: relative;
    z-index: 3;

    li {
      display: flex;
      margin: 0;
      padding: 1rem clamp(1rem, 4.2vw, 2rem);
      background-color: #58c3e0;
      border-radius: 1rem;
      color: var(--white-text-color);
      filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, .3));
      position: relative;
      text-align: center;
    }

    .admission-flow-baloon_01 {
      margin-top: 2rem;

      &::after {
        content: '';
        width: 20px;
        height: 50px;
        background-color: #58c3e0;
        clip-path: polygon(100% 50px, 0% 0%, 20px 0%);
        position: absolute;
        bottom: -49px;
        left: 50%;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
      }
    }

    .admission-flow-baloon_02{
      margin-bottom: 2rem;

      &::after {
        content: '';
        width: 20px;
        height: 16px;
        background-color: #58c3e0;
        clip-path: polygon(0% 90%, 20px 0%, 20px 16px);
        position: absolute;
        top: 50%;
        left: -19px;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
      }
    }
  }

    h3 {
        color: #143967;
        font-size: min(4.8vw, 2.1rem);

        @media (min-width: 1140px) {
            text-align: center;;
        }
    }

    > ol {
        display: flex;
        flex-direction: column;
        column-gap: 2rem;
        row-gap: 0;
        padding: 6rem 2rem min(5.33vw, 4.6rem);
        background-color: #fff;
        border-top: solid 2.5px #1d2088;
        border-bottom-right-radius: 1rem;
        border-bottom-left-radius: 1rem;
        position: relative;
        text-align: center;

        @media (min-width: 768px) {
            flex-direction: row;
            justify-content: center;
            padding: min(5.33vw, 4.6rem) min(2.6vw, 4rem);
        }

        > li {

            > p {
                margin: 0 0 1rem;
                padding: 0.6rem 1rem;
                background-color: var(--light-background-color);
                border-radius: 1rem;
                font-size: min(4.5vw, 2.1rem);
                font-weight: 700;
            }

            .admission-flow_txt01 {
                background-color: var(--secondary-color);
                color: var(--white-text-color);
            }

            @media (min-width: 768px) {
                width: calc(100% - clamp(15rem, 18.5vw, 19rem));
                max-width: 700px;
                margin-bottom: 0;
            }
        }

        li.admission-flow_item02 {

            @media (min-width: 768px) {
                width: 18.5vw;
                min-width: 150px;
                max-width: 190px;
            }
        }

        > li > ol,
        > li > dl {
            width: 90%;
            margin: 0 auto;
        }

        > li > ol {
            display: flex;
            flex-direction: column;
            counter-reset: listnum;

            @media (min-width: 768px) {
                width: 100%;
                flex-direction: row;
            }

            > li {
                flex: 1;
                background-color: #E0E0E0;
                position: relative;
                margin-bottom: 30px;
                font-size: min(4.26vw, 1.8rem);
                font-weight: 500;

                @media (min-width: 768px) {
                    display: flex;
                    flex-direction: column;
                    width: calc(calc(100% / 3) - 3.2rem);
                    margin-bottom: 0;
                    margin-right: 3.2rem;
                    padding: 0 0 1.4rem 1rem;
                }

                @media (min-width: 1024px) {     
                    display: flex;               
                    align-items: center;
                    flex-direction: row;
                    justify-content: flex-start;
                    gap: 1.6rem;
                    height: 110px;
                    padding: 0 0 0 1.8rem;
                    text-align: left;
                }
            } 

             > li::before {
                counter-increment: listnum;
                content: counter(listnum);
                display: block;
                color: #143967;
                font-family: "Roboto", sans-serif;
                font-size: 2.8rem;
                font-weight: 700;

                @media (min-width: 1024px) {
                    font-size: 4rem;
                }
             }

            > li::after {
                content: "";
                display: block;
                height: calc(tan(60deg) * 30px / 2);
                width: 100%;
                margin-top: -1px;
                background: #E0E0E0;
                clip-path: polygon(0 0, 100% 0, 50% 100%);
                position: absolute;

                @media (min-width: 768px) {
                    width: 3.2rem;
                    height: 100%;
                    clip-path: polygon(0 0, 100% 50%, 0 100%);
                    top: 0;
                    right: -3.14rem;
                }
            }

            > li br {
                display: none;

                @media (min-width:1024px) {
                    display: block;
                }
            } 

        }

        > li > dl {
            background-color: #E0E0E0;
            border: solid 2px #999;

            @media (min-width: 768px) {
                display: flex;
                flex-direction: column;
                justify-content: space-evenly;
                width: 100%;;
                height: 100%;
            }
        }

        dt {
            padding: 1rem 1rem 0;
            color: #143967;
            font-size: min(4.8vw, 2.1rem);
            font-weight: 700;
        }

        dd {
            margin: 0;
            padding: 1rem;
            font-weight: 500;
        }

      &::before {
        content: '';
        display: block;
        width: 220px;
        height: 170px;
        background-image: url(/contents/yoshin/images/admission-flow_img.png);
        background-size: cover;
        position: absolute;
        top: -14.25rem;
        left: 50%;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        z-index: 0;
      }
    }

  @media (min-width: 1024px) {
    > p {
      text-align: center;
    }
  }
}

/* ----------------------
tsr_blk_03 
---------------------- */
#tsr_blk_03 {

  h2 br {
    display: none;
  }

  strong {
    color: var(--primary-color);
  }

  &> div {
      display: grid;
      gap: 2.4rem;
    }

  h3 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
  }

  .tsr_blk_03_lastBlk {
    padding: 2rem;
    background-color: #d4e6f4;
    border: solid 4px var(--border-secondary-color);

    h3 {
      margin: 0;
      color: var(--secondary-color);
      font-size: 1.6rem;
    }

    ul {
      list-style-type: disc;
      margin: 0.8rem 1.6rem 0;
    }

    li {
      margin-bottom: 0;
    }
  }

  @media (min-width: 768px) {
    ul {
      column-count: 2;
    }
  }

  @media (min-width: 768px) and (max-width:1023px) {
    h2 br {
      display: block;
    }
  }

  @media (min-width:1024px) {
    &> div {
      grid-template-columns: 1fr 40%;
      grid-template-rows: auto auto;
      grid-column-gap: 2.4rem;
      grid-row-gap: 2.4rem;

      .tsr_blk_03_txt {
        grid-area: 1 / 1 / 2 / 2;
      }

      figure {
        grid-area: 1 / 2 / 2 / 3;
      }

      .tsr_blk_03_lastBlk {
        grid-area: 2 / 1 / 3 / 3;
      }

      ul {
        display: flex;
        gap: 3rem;
        column-count: unset;
      }
    }
  }
}

/* ----------------------
tsr_blk_04 
---------------------- */

#tsr_blk_04 {
  .sampleList {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 1.3vw, 2rem);

    @media (min-width:768px) {
      flex-direction: row;

      li {
          flex: 1;
      }
      
      img {
          border: solid 1px #ccc;
      }
    }
  }

  .sampleList > li {
    flex: 1;
    margin-bottom: 0;
    background-color: #fff;
    border: solid 1px #222;
    overflow: hidden;

    * {
        margin: 0;
    }

    h3 {
        padding: clamp(1rem, 1.3vw, 2rem);
        text-align: center;
        background-color: #a9cdea;
        border-bottom: solid 1px #222;
        font-size: 1.8rem;
    }

    .read {
        display: grid;
        gap: 1.6rem;
        padding: clamp(1.6rem, 1.95vw, 3rem);
    }

    .price span {
        color: var(--primary-color);
        font-size: 2.6rem;
    }

    .image {
      border: solid 1px var(--border-color);
    }

    .btnBlock {
      margin-bottom: 0;
    }

    .button {
      max-width: 240px;
      height: 40px;
      margin: 0 auto;
      background-color: var(--white-text-color);
      border: solid 1px var(--secondary-color);
      border-radius: 20px;
      color: var(--secondary-color);
      font-size: 16px;
      position: relative;

      &::before {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        width: 12px;
        height: 12px;
        margin-top: -3px;
        border: 1px solid var(--secondary-color);
        transition: .3s ease-in-out;
      }

      &::after {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        right: 25px;
        width: 12px;
        height: 12px;
        margin-top: -8px;
        border: 1px solid var(--secondary-color);
        transition: .3s ease-in-out;
      }

      &:hover {
        background-color: var(--secondary-color);
        color: var(--white-text-color);
        text-decoration: none;

        &::before, &::after {
            border: 1px solid var(--white-text-color);
        }
      }
    }
  }
}

/* ----------------------
tsr_blk_05 
---------------------- */
#tsr_blk_05 {
  .tsr_blk_05_inner {
    display: grid;
    gap: 2rem;
  }

  .tsr_blk_05_inner > dl {
    margin-bottom: 0;
  }

.tsr_blk_05_inner > dl:not(.tsr_blk_05_inner03) {
    padding: 1rem 2rem;
    border: solid 6px var(--border-secondary-color);
    font-weight: 700;
    text-align: center;
    position: relative;

    dt {
      margin-bottom: 0;
      font-size: 1.8rem;
    }

    dd {
      color: var(--primary-dark-color);
      font-size: 28px;
      span {
        color: var(--primary-color);
        font-size: 50px;
      }
    }
  }
  .tsr_blk_05_inner > .tsr_blk_05_inner01 {
    margin-bottom: 36px;
  }
  .tsr_blk_05_inner01::after {
    content: '＋';
    display: block;
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    color: var(--primary-dark-color);
    font-size: 40px;
    font-weight: 900;
  }

  .tsr_blk_05_inner03 {
    font-size: 1.4rem;

    dt span {
      display: block;
    }

    ul {
      padding: 1rem 1rem 1rem 3rem;
      list-style-type: disc;
      border: dashed 1px var(--border-color);
    }

    li {
      margin-bottom: 0;
    }
  }

  @media (min-width: 768px) {
    .tsr_blk_05_inner{
      grid-template-columns: repeat(2, 45%);
      grid-template-rows: repeat(2, auto);
      grid-column-gap: 3rem;
      grid-row-gap: 3rem;
      justify-content: space-between;
      width: 100%;

    .tsr_blk_05_inner01 {
      grid-area: 1 / 1 / 2 / 2;
      margin-bottom: 0;

        &::after {
          top: 50%;
          right: -19.5%;
          bottom: unset;
          left: unset;
          transform: translateY(-50%);
        }
      }

      .tsr_blk_05_inner02 {
        display: flex;
        grid-area: 1 / 2 / 2 / 3;
        flex-direction: column;
        justify-content: center;
      }

      .tsr_blk_05_inner03 {
        grid-area: 2 / 1 / 3 / 3;
      }
    }
  }

  @media (min-width: 1024px) {
    .tsr_blk_05_inner{
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: 1fr;
      gap: 3rem;

      .tsr_blk_05_inner01 {
        grid-area: 1 / 1 / 2 / 2;
        margin-right: 2rem;

        &::after {
          right: -6rem;
        }
      }

      .tsr_blk_05_inner02 {
        grid-area: 1 / 2 / 2 / 3;
        margin-left: 2rem;
      }

      .tsr_blk_05_inner03 {
        grid-area: 1 / 3 / 2 / 4;
      }
    }
  }
}

/* ----------------------
tsr_blk_06
---------------------- */
.movie_wrap {
    display: flex;
    justify-content: center;
}

iframe {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
}

#tsr_blk_06 {
    
  @media (min-width: 768px) {
    h2 br {
      display: none;
    }
  }

  @media (min-width: 1024px) {
    > p {
      text-align: center;
    }
  } 
}

.tsr_blk_06b_description {
    margin-top: 3.2rem;
    padding: clamp(1.6rem, 2vw, 3rem);
    border: solid 1px #333333;
}

/* ----------------------
tsr_blk_07 
---------------------- */
#tsr_blk_07 {
  ul {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 0;
  }
  
  li {
    display: grid;
    align-content: stretch;
    gap: 1.6rem;
    margin: 0;
    padding-bottom: 2rem;
    background-color: #FFFFFF;
    border: solid 3px var(--border-secondary-color);

    &> * {
      margin: 0;
      padding: 0 2rem;
    }

    .tag {
      width: 130px;
      margin: 0;
      padding: 0.5rem;
      background-color: #999;
      color: var(--white-text-color);
      font-size: 1.4rem;
      text-align: center;
    }

    h3 {
      font-size: 1.65rem;
      font-weight: 500;
    }

    .tsr_blk_07_btn {
      max-width: 350px;
      margin: 0 2rem;
      background-color: var(--secondary-color);
      transition: .3s ease-in-out;

      a {
        width: 100%;
        height: 100%;
        padding: 1rem;
        color: var(--white-text-color);
      }

      &:hover {
      background-color: #00A1B9; 
      }
    }
  }

  .tsr_blk_07_01 {
    .tag {
      background-color: var(--primary-dark-color);
    }
  }

  .tsr_blk_07_02 {
    .tag {
      background-color: var(--primary-color);
    }
  }

  > section > h3 {
    font-size: 2rem;
  }

  @media (min-width: 768px) {
    ul {
      flex-direction: row;
      justify-content: space-around;

      li {
        flex: 1;
        grid-template-columns: 1fr;
        grid-template-rows: 31px auto auto auto 1fr 56px;
        grid-row-gap: 1.6rem;

        .tsr_blk_07_02_txt {
          grid-area: 4 / 1 / 6 / 2;
        }
      }
    }
  }

  @media (min-width: 1024px) {
    ul {
      max-width: 990px;

      li .tsr_blk_07_btn {
        width: 350px;
        margin: 0 auto;
      }
    }
  }
}
