@charset "utf-8";

/* ↓↓↓↓↓ 共通設定 ↓↓↓↓↓ */

html {
    scroll-behavior: smooth;
}

body {
    font-size: 15px;   /* 文字サイズ */
    line-height: 1.6;   /* 行間 */
    letter-spacing: 0.1em;   /* 文字間 */
    background-color: #fff;
    font-family:'Roboto', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

h1 {
    display: block;
    font-size: 2em;
    font-weight: bold;
}

h2 {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    position: relative;
    text-align: center;
    font-size: 1.5em;
    margin: 2em 0;
    font-weight: bold;
      }
      
    h2::before,
    h2::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 10%;
        height: 1px;
        background-color: #333;
        margin: 0 1em; /* ←余白を追加 */
      }
      
    h2::before {
        left: 0;
      }
      
    h2::after {
        right: 0;
      }

h3 {
    display: block;
    font-size: 1.17em;
    font-weight: bold;
}

h4 {
    display: block;
    font-weight: bold;
}

.upcase {
    text-transform: uppercase;
    /* 英文小文字を大文字にします */
}

/* ↑↑↑↑↑ 共通設定ここまで ↑↑↑↑↑ */


main {
    margin: 10%;
    /* 左右の余白 */
}

body {
    margin-top: 150px;
    /* モバイル時、ページ内アンカーでページトップに戻った時に、
    トップイメージがヘッダーに隠れるのを防ぐため */
}

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

    /* bxsliderが命名しているbx-wrapperをマージンオートにして中央配置*/
.bx-wrapper {
        margin: auto;
}


/* ↓↓↓↓↓ 固定ヘッダー ↓↓↓↓↓ */

header {
    position: fixed;
    width: 100%;
    height: 110px;
    background: linear-gradient(to right, #474587  70%,#f3efa5 85%, #ffffff 100%);
    color: rgb(70, 70, 70);
    padding-top: 30px;
    box-sizing: border-box;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    box-shadow: 0px 0px 12px rgba(58, 58, 58, 0.85);
    z-index: 10000;
}
header picture img {
    width: 50%;
    position: relative;
    left:50px
}
/* ↑↑↑↑↑ 固定ヘッダーここまで ↑↑↑↑↑ */


/* ↓↓↓↓↓ トップセクター ↓↓↓↓↓ */
.sect01 {
    background-color: #eee;
    /* 見やすくするために入れています */
}
/* ↑↑↑↑↑ トップセクターここまで ↑↑↑↑↑ */

/* テキストまとめて中央揃え */
p{
    text-align: center;
}

/* ↓↓↓↓↓ 講習イメージセクター ↓↓↓↓↓ */
/* まとめてカード表示 */
[class^="course_img"] {
    max-width: 320px;
    margin: 0 auto 5em;
    background: #ffffff;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }
  
  [class^="course_img"] figure {
    margin: 0;
    aspect-ratio: 4 / 3;  /* 横長の比率 */
  }
  
  [class^="course_img"] img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    line-height: 0;
  }
  
  [class^="course_img"] .course_text {
    padding: 1.2em;
    color: white;
  }
  
  [class^="course_img"] h3 {
    font-size: 1.2em;
    margin: 0 0 0.5em;
  }
  
  [class^="course_img"] p {
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
  }
  
/* コース別カラー背景 */
.course_img01 .course_text { background-color: #6BB9D5; }
.course_img02 .course_text { background-color: #CAB8D9; }
.course_img03 .course_text { background-color: #F6AD3C; }
.course_img04 .course_text { background-color: #383838; }
.course_img05 .course_text { background-color: #FF0050; }

/* ↑↑↑↑↑ 講習イメージセクターここまで ↑↑↑↑↑ */

/* ↓↓↓↓↓ サポートセクター ↓↓↓↓↓ */
.supportSect{
text-align: center;}
.supportSect > p{
    background-color: #F5F2BC;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;

}
.supportSect span{
    display: inline;
    box-shadow: inset 0 -0.4em #F5F2BC;}

/* ↑↑↑↑↑ サポートセクターここまで ↑↑↑↑↑ */

/* ↓↓↓↓↓ サードセクター ↓↓↓↓↓ */
.sect03 {
    background-color: #ccc;
}
/* ↑↑↑↑↑ 3rdセクターここまで ↑↑↑↑↑ */


/* ↓↓↓↓↓ 4thセクター ↓↓↓↓↓ */
.sect04 {
    background-color: #bbb;
}
/* ↑↑↑↑↑ 4thセクターここまで ↑↑↑↑↑ */


/* ↓↓↓↓↓ アクセスセクター ↓↓↓↓↓ */
.accessSect{
margin-bottom: 40px;
}
/* マップ位置調整 ・レスポンシブ対応*/

  .gmap {
    position: relative;
    width: 100%;
    max-width: 500px;    /* ←ここを追加すると "小さくできる"！ */
    margin: 0 auto;      /* ←中央寄せにする */
    padding-top: 42.85%; /* 21:9比率　横長 */
    height: 0;
    margin-bottom: 50px;
}

.gmap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* マップここまで/

/* ↑↑↑↑↑ アクセスセクターここまで ↑↑↑↑↑ */
/* SNSリスト */
#SNS_list {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    list-style: none;
    padding: 1em 0;
    margin: 0;
  }
  #SNS_list li {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #SNS_list li a img {
    width: 32px;
    height: auto;
    transition: transform 0.2s ease;
  }
  
  #SNS_list li a:hover img {
    transform: scale(1.2);
  }
  #SNS_list img[alt="LINE"] {
    width: 30px;
  } 
  #SNS_list img[alt="YouTube"] {
    width: 36px;
  }
  #SNS_list img[alt="Instagram"] {
    width: 30px;
  }
  #SNS_list img[alt="X（旧Twitter）"] {
    width: 26px;
  }
  /* 中心揃え */
  #SNS_list li a img {
    vertical-align: middle;
  }

/* SNSここまで */
/* ↓↓↓↓↓ フッター ↓↓↓↓↓ */
footer p {
    background: linear-gradient(to right, #474587  70%,#f3efa5 85%, #ffffff 100%);
    color: #fff;
    padding: 14px 10px 20px;
    text-align: center;
}
/* ↑↑↑↑↑ フッターここまで ↑↑↑↑↑ */

/* ↓↓↓↓↓ 資料請求・問い合わせボタン ↓↓↓↓↓ */
.contact_button{
    text-align: center;
    margin-bottom: 50px;
}
.contact_button img {
    width: 200px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  .contact_button img:hover {
    transform: scale(1.05);
  }



/* ↓↓↓ カピぞうPart5 P273掲載のハンバーガーメニュー（コメント付き）です ↓↓↓ */

/* メニューを画面上部に固定表示しています */
.gMenu {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 99;
}

/* メニューアイコンを画面右上に固定しています */
.gMenu .menu-icon {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 35px;
    padding-top: 15px;
    height: 30px;
}

/* メニューアイコン（三本線）の真ん中の線です */
.gMenu .menu-icon .navicon {
    background: #474587;
    /* 色は自由に変更可能です */
    display: block;
    height: 6px;
    /* 太さ */
    width: 31px;
    /* 長さ */
    position: relative;
    transition: background .4s ease-out;
    /* 形が変わる時のアニメーション */
}

/* メニューアイコン（三本線）の上と下の線を疑似要素で追加 */
.gMenu .menu-icon .navicon::before,
.gMenu .menu-icon .navicon::after {
    background: #474587;
    /* 色は自由に変更可能です */
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .4s ease-out;
    /* 形が変わる時のアニメーション */
    width: 100%;
}

.gMenu .menu-icon .navicon::before {
    top: 10px;
}

/* 位置を上にずらしています */
.gMenu .menu-icon .navicon::after {
    top: -10px;
}

/* 位置を下にずらしています */
/* 表示されるメニューです */
.gMenu .menu {
    background-color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    max-height: 0;
    /* ★最初は高さを0にして非表示状態に */
    transition: max-height .6s;
    /* 表示されるときのアニメーション */
    text-align: center;
}

/* メニュー部分のデザインです */
.gMenu .menu li:first-of-type {
    padding-top: 25px;
    padding-top: 50px;
}

.gMenu .menu li a {
    display: block;
    padding: 24px 20px;
    text-decoration: none;
    text-transform: uppercase;
}

.gMenu .menu li a:hover {
    background-color: #f4f4f4;
}

/* チェックボックスは常に非表示です */
.gMenu .menu-btn {
    display: none;
}

/* ▼▼▼以下はチェックボックスがONの時の状態です▼▼▼ */
.gMenu .menu-btn:checked~.menu {
    max-height: 500px;
    /* ★チェックボックスがオンの時高さを338pxにして表示させます */
    transition: max-height .6s;
}

/* メニューボタンの中央の線を非表示に */
.gMenu .menu-btn:checked~.menu-icon .navicon {
    background: transparent;
}

/* メニューボタンの上下の線を45度傾けて✕印を作ります */
.gMenu .menu-btn:checked~.menu-icon .navicon::before {
    transform: rotate(-45deg);
    top: 0;
}

.gMenu .menu-btn:checked~.menu-icon .navicon::after {
    transform: rotate(45deg);
    top: 0;
}
header ul.menu_pc {
    display: none;
}


/* ↑↑↑ ハンバーガーメニューここまで ↑↑↑ */


/* ↓↓↓↓↓ ネットで見つけたアクションメニュー ↓↓↓↓↓ */

.container {
    position: fixed;
    /* 上下位置調整 */
    top: 95vh;
    /* 左右位置調整 */
    left: 99%;
}

input[type="checkbox"] {
    display: none;
}

.btn {
    background: #474587;
    border: none;
    border-radius: 25%;
    width: 90px;
    height: 90px;
}

.btn svg {
    position: relative;
    top: 1px;
    right: 1px;
}

.btn--large {
    width: 60px;
    height: 60px;
}

.btn--menu:after,
.btn--menu:before {
    content: "";
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    position: absolute;
    top: 29px;
    left: 18px;
    transition: transform 100ms;
}

.btn--menu:after {
    transform: translateY(-5px);
}

.btn--menu:before {
    transform: translateY(5px);
}

 .btn--totop {
    background: none;
    border-radius: 0%;
}

.btn--tocontact {
    background:none;
    border-radius: 0%;
}

.btn--toSNS {
    background: none;
    border-radius: 0%;
} 

.actions-menu {
    position: absolute;
    width: 60px;
    height: 60px;
    right: 15px;
    bottom: 15px;
}

.actions-menu .btn {
    position: absolute;
    top: 8px;
    left: 8px;
    opacity: 0;
    transition: top 200ms cubic-bezier(0.175, 0.885, 0.32, 1.275),
        left 200ms cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 200ms;
}

.actions-menu .btn--menu {
    position: absolute;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: 0;
}

.btn--menu,
#actionMenuButton:checked+.actions-menu>.btn {
    opacity: 1;
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); */
}

#actionMenuButton:checked+.actions-menu>.btn--menu:after {
    transform: rotate(45deg);
}

#actionMenuButton:checked+.actions-menu>.btn--menu:before {
    transform: rotate(-45deg);
}

#actionMenuButton:checked+.actions-menu>.btn--totop {
    top: -100px;
    left: -100px;
}

#actionMenuButton:checked+.actions-menu>.btn--tocontact {
    top: -45px;
    left: -100px;
}

#actionMenuButton:checked+.actions-menu>.btn--toSNS {
    left: -100px;
}

/* ↑↑↑↑↑ アクションメニューここまで ↑↑↑↑↑ */


/* ↓↓↓↓↓ レスポンシブ対応 ↓↓↓↓↓ */

@media (width > 390px) {



    /* 文字の微調整 */
    body {
        font-size: 16px;
        line-height: 1.8;
        letter-spacing: 0.2;
    }

    h1 {
        text-align: center;
        padding-bottom: 40px;
    }
}

@media (width > 768px) {

        /* ロゴのセンタリング */

        header {
            display: flex;
            justify-content: center;
            left: 0;
    
    
            .gMenu>label {
                display: none;
            }
            nav:last-child {
                padding-bottom: 5px;
            }
    
            ul.menu_pc {
                display: flex;
                min-width: 507.2px;
                margin: 0 0 15px auto;
                align-items: center;
                
    
    
                >li {
                    letter-spacing: 0.1em;
                    font-weight: bold;
                    color: #fff;
                    margin-left: 20px;
                    text-shadow:
                        -1px -1px 0 #474587,
                        1px -1px 0 #474587,
                        -1px 1px 0 #474587,
                        1px 1px 0 #474587;
    
    
    
    
                }
            }
        }
    
    
    
    /* 資料請求・問い合わせボタン  */
.contact_button img {
    width: 400px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
    
    

/* 講習セクター 横並び、文字は左揃えで調整*/
    .course_card {
      display: flex;
      align-items: center;
      gap: 3em;
      max-width: 900px;
      margin: auto;
      box-shadow: none;
    }
  
    .course_card figure {
      flex: 1;
      margin: 0;
    }
  
    .course_card img {
      max-width: 100%;
      height: auto;
      display: block;
    }
  
    .course_card .course_text {
      flex: 2;
    }
    .course_card .course_text p {
        text-align: left;
        line-height: 1.8;
      }
/* コースの間の余白調整用 */
      [class^="course_img"] {
        margin-bottom: 4em;
      }
  
/* .course_img01,
.course_img02,
.course_img03,
.course_img04, 
.course_img05,  {
    display: flex; */
    /* ３名それぞれのイメージとテキストを横並びにしました */
    /* align-items: center; */
/* 
    p {
        box-sizing: border-box;
        flex-basis: 74vw; */
        /* テキスト部分の幅です（画面幅のパーセント） */
        /* margin: 2vw;
    } */

    /* figure {
        box-sizing: border-box;
        flex-basis: 23vw; */
        /* イメージ部分の幅です（画面幅のパーセント） */
        /* margin: 1vw;
    } */
}



@media (min-width: 1051px) {
    header {
        padding-right: 3%;

        ul.menu_pc {
            margin: 10px 0 15px auto;
        }

        .menu_pc li a br {
            display: none;
        }
    }


}




