@charset "UTF-8";

*{
    margin: 0 ;
    padding: 0;
    box-sizing: border-box;
    /* 幅を指定した要素（タグ）にborder、paddingを設定した際に要素が広がってしまうことを防ぐため */
}

body {
    font-family: "Oswald", "Noto Sans JP", sans-serif;
    /*   ここまでフォントファミリー  googlefontからの英文と、日本語を設定  */
    color: #333;
    /* サイト全体の文字色を定義しておく */
    line-height: 1;
    /* サイト全体の文字の行間をリセット  line-height: 1;  → lh1 */
}

ul {
    list-style: none;
    /*   liの装飾を削除する  */
}

a {
    text-decoration: none;
    /*   aタグの初期設定。aタグはでデフォルトで持っている下線を消しておく */
}

img{
    max-width: 100%;
    /* 親要素の大きさ以上大きくならず、かつ、自身の原寸大以上に大きくならない */
    vertical-align: bottom;
    /* imgは、文字と同等扱いなので、必ず下部に余白（デセンダー）が出来てしまうのを防ぐ。他の防ぐ方法としてインライン要素をブロック要素に変える方法もあり */
    /* vertical-align: bottom;  →  vab  */
}

/*-----------------------------------------
    .container - setting   各sectionの内側の共通設定 → 
-----------------------------------------*/

.container {
    max-width: 1024px;
    /* 最大値、1024px それ以下可変　max-width使用 → ma1024 */
    margin: 0 auto;
    /* ブロック要素の中央揃い　m0ｰa */
    padding: 80px 20px 100px;
    /* 上80px 左右20px 下100pxの設定 左右の余白はスマホ対応 → p80-20-100  */    

}
.access .container {
    /* .accessの中の.containerだけ幅を設定せず、幅ほぼ目一杯見せたいなどの場合の例外を作る際の設定  none; → man */
     max-width: none;
    /* 幅の指定の無効（初期化） */


}

/*-----------------------------------------
    html - smooth scroll setting   
-----------------------------------------*/

html {
    scroll-behavior: smooth;
    /* PC表示の際、 cssの、scroll-behavior: smoothを設定 */
}


/*-----------------------------------------
    header - setting   
-----------------------------------------*/


header{
    background-image: url(../img/hero.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center ;
    height: calc(100vh - 70px); 
    /* 背景画像のヒーローヘッダーの設定 */
    /* PC表示の際、navの高さの領域を引いた高さ設定 (100vh - 70px) 引き算の場合必ず半角ぷペースを入れること *コンピュータがハイフンと間違う */
    position: relative;
    /*  header .h1の位置を、header領域の四隅から自由に配置するため */

}

header h1{
    position: absolute;
    /* poa */
    padding: 20px 40px;
    /* p20-40 */
    background-color: rgba(255, 255, 255, 0.6);
    /* 背景色、#fffの透明度、0.6程度 */
    top: 50%;
    left: 80px;
    /* top、leftからの距離は適宜 */
}

/*-----------------------------------------
    nav - setting   
-----------------------------------------*/

nav{
    position: sticky;
    /* po その後stickyを設定 */
    top: 0;/* t0 */
    left: 0;/* l0 l0は無くてもよいかもしれませんが念のため */
    /* ブラウザのトップで、navが、positionのfixedに変換する →　sticky */
    background-color: #222;
}

    
nav  ul{
    display: flex;
    justify-content: center;
    /* flexでの横並び・横配置を中央寄せの設定 */
}

nav ul a{
    display: block;
    line-height: 70px;
    /* line-heightに単位（px）設定すると、指定された高さの文字中央揃いになる */
    padding: 0 60px;
    /* p0-60 */
    color: #fff;
    /* c#fff */
    font-weight: 400;
    /* fw400 */
    transition: .3s;
    /* hoverの時のtransition設定 */
} 

nav ul a:hover{
    color: #444;   
    background-color: #eee;    
    /* 適宜設定 */
}



/*-----------------------------------------
    main - setting   
-----------------------------------------*/

main h2{
    font-size: 40px;
    /* フォントサイズ、40px前後で設定 */
    padding: 20px 0 60px;
    /* 上下の内側余白、padding:20px 0 60pxほど設定 */
    font-weight: 600;
    /* fw600 */
    text-align: center;
    /* tac */
}

main h3{
    font-size: 22px;
    /* fz22 ほど。あとの装飾は適宜 */
    border-left: 4px solid #444;
    padding:4px 6px;
    margin-bottom: 10px;
    background-color: #eee;

}


/*-----------------------------------------
    message - setting   
-----------------------------------------*/


 .message{
    /* 教科書では各sectionごと背景色を変える設定 */
    background-color: #fff;
    /* .message::beforeの背景画像を表示させるための次のブロックへの余白 */
    margin-bottom: 400px;
} 
 .message::before{
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/bg.webp);
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* 疑似要素に、全画面表示の背景画像の設定と、1つ下の階層に表示させるためのz-index:-1設定 */
 }

 .message p{
    text-align: center;
    line-height: 2;
    margin-bottom: 15px;
    font-weight: 400;
}

.message p:last-of-type{
    margin-bottom: 100px;
/* .messageのpタグの最後のpタグだけ（p:last-of-type）paddingの設定を変える場合の設定 */
}

.message ul{
    display: flex;
    justify-content: space-between;
    /* 横並び、両端揃い設定 */
}

.message ul li{
    width: 31%;
    aspect-ratio: 4/3;
    /* 31%に設定された幅に対して、4対3の割合で高さを設定 */
} 
.message li img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    /* object-fit:cover */
    /* width: 100%; */
    /* height: 100%; */
    /* 設定された枠組みに画像をカバー かつ、タテ・ヨコ型の画像でも対応できる */
}

/*-----------------------------------------
    voice - setting   
-----------------------------------------*/

.voice{
    /* 教科書では各sectionごと背景色を変える設定 */
    background-color: #fff;
}


.voice ul{
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    /* ヨコ並び → df、両端均等割付 → jcsb、下側外余白80pxほど → mb80 */
}

.voice li{
    width:28%;
    /* 幅28% */
} 

.voice li .photo{
    aspect-ratio: 1/1;
    /* 親要素li、28%に設定された幅に対して、i対1の割合で高さを設定 */
    margin-bottom: 10px;
    /* 下側外余白の設定 → mb10 ほど */
}    

.voice li .photo img{
    object-fit:cover;
    width: 100%;
    height: 100%;
    /* ob */
    /* w100p */
    /* h100p; */
    /* 設定された枠組みに画像をカバー かつ、タテ・ヨコ型の画像でも対応できる */    
    border-radius: 50%;
    /* 正方形にカバーされた画像を正円に → bdrs50p */
}


.voice li .text{
    line-height: 1.8;
    padding: 0 10px;
    /* 行間・テキストの内側の余白、適宜設定 */
}

.voice a{
    display: block;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 20px;
    padding: 20px 0;
    background-color: #222;
    color: #fff;
    border-radius: 20px;
    transition: 0.3s;
    /* 行動喚起（cta）のリンクボタン、適宜設定 */
}

.voice a:hover{
    color: #222;   
    background-color: #eee;  
    border: 1px solid #000;
    /* 行動喚起（cta）のリンクボタンのホバー効果、適宜設定 */    
}
/*-----------------------------------------
    access - setting   
-----------------------------------------*/

.access{
    /* 教科書では各sectionごと背景色を変える設定 */
    background-color: #fff;
}


.access iframe{
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    /* google mapの設定、適宜 */
}

.access p{
    padding: 10px 0;
    text-align: center;
    font-weight:400;
    /* 適宜 */
}    


/*-----------------------------------------
    news - setting   
-----------------------------------------*/

.news{
    /* 教科書では各sectionごと背景色を変える設定 */
    background-color: #fff;
}


.news dl{
    display: flex;
    /* dt dd  横並び → df */
    justify-content: space-between;
    /* 両端揃い → jcsb */
    align-items: center;
    /* dtの高さをline-heightで縦中央揃いに設定、ddもそれに合わせて、縦配置設定 → aic */
    flex-wrap: wrap;
    /* 折り返し設定 → fxww */
    gap: 25px 0;
    /* 縦軸の溝（gap）25px 横軸は 0*/

}
.news dl dt{
    width: 20%;
    /* w28p */
    padding: 20px 0;
    /* p20--0 */
    text-align: center;
    /* tac */
    color: #fff;
    /* c#fff */
    background-color: #222;
    /* bgc#222 */
}

.news dl dd{
    width: 80%;
    /* w80p */
    padding-left: 20px;
    
    /* 左側の内側余白20pxほど → pl20 */
    line-height: 1.6;
    /* 複数行になることも考えて → lh1.6 */
}





/*-----------------------------------------
    footer - setting   
-----------------------------------------*/

footer{
    background-color: #222;
}

footer .footer_logo{
    padding: 70px 0;
    text-align: right;
    font-size: 14px;
    color: #fff;
}


@media (width<=768px){
html{
    scroll-behavior: auto;
        }

    .burger{
        position: fixed;
        top: 20px;
        right: 5%;
        width: 60px;
        height: 50px;
        border: 1px solid #000;
        cursor: pointer;
        background-color: #fff;
        z-index: 1;
        }

    .burger span{
            position: absolute;
        width: 80%;
        height: 4px;
        background-color:#333;
        inset: 0;
        margin: auto;
        }
        
    .burger span:nth-of-type(1){
            top: -40%;
            transition: 0.2s 0.1s;
        }
    .burger span:nth-of-type(2){
            transition: 0.2s 0.1s;
        }

    .burger span:nth-of-type(3){
            top: 40%;
            transition: 0.2s 0.2s;
        }

        /* small setting */
        .burger.small span:nth-of-type(1){
            top: 0;
            width: 50%;
        }
        .burger.small span:nth-of-type(2){
            width: 50%;
        }
        .burger.small span:nth-of-type(3){
            top: 0;
            width: 50%;
        }



header{

    background-position: 80%;
    height: 100vh;
}

header h1{
    position: static;
    text-align: center;
    padding: 20px 50px 20px 10px;
    background-color: rgba(255, 255, 255, 0.8);
}


       nav{
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100%;
        background-color: rgba(27, 26, 26, 0.8);
            transition: 0.3s;
        }

    nav ul{
        list-style: none;
        padding-top: 100px;
        display: block;
        }

     nav ul a{
        display: block;
        text-align: center;
        padding: 40px 0;
        color: #fff;
        line-height: 1;
        }
    nav.drawer{
        left: 0;
        }

.message ul{
    display: block;
    
}
.message ul li{
    width: 100%;
    margin-bottom: 40px;
} 

 .message p{
    text-align: left;
}

.voice ul{
    display: block;

}

.voice li{
    width:100%;
    margin-bottom: 40px;
    padding: 10px;
} 

/* .voice li .photo{padding: 20px;} */

.news dl{
    display: block;

}
.news dl dt{
    width: 100%;}

.news dl dd{
            width: 100%;
            margin-bottom: 30px;
            padding: 0 10px;
}
            
footer .footer_logo{
    text-align: center;
}

}
/* media end */