@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の装飾を削除する list-style: none; → lin */
}

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

img{
    max-width: 100%;
    /* 親要素の大きさ以上大きくならず、かつ、自身の原寸大以上に大きくならない max-width: 100% → ma100p */
    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 15px 100px;
    /* 上80px 左右15px 下100pxの設定 左右の余白はスマホ対応 → p80-15-100  */
    
}
.access .container {
    /* .accessの中の.containerだけ幅を設定せず、幅ほぼ目一杯見せたいなどの場合の例外を作る際の設定 */
    max-width: none;
    /* 幅の指定の無効（初期化）max-width: none; → man */

}

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

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


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


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

}

header h1{
    position: absolute;
    /* poa */
    padding: 20px;
    /* p20 */
    background-color: rgba(255, 255, 255, 0.6);
    /* bgc */
    /* 背景色、#fffの透明度、0.4程度 */
    border: 2px dashed #fff;
    /* bd そのあと微調整 2px dashed  */
    border-radius: 50%;
    /* bdrs50p */
    top: 12%;
    left: 80px;
    /* top、leftからの距離は適宜 */
}

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

nav{
    position: sticky;
    /* po その後stickyを設定 */
    top: 0;
    left: 0;
    /* t0 l0 */
    /* ブラウザのトップで、navが、positionのfixedに変換する → sticky */
    background-color:#ff922b;
    z-index: 1;
}

    
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: #ff3f21;   
    background-color: #fff;    
    /* 適宜設定 */
}



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

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

main h2 span{
    display: block;
    /* db */
    font-size: 18px;
    /* fz18 */
    padding: 10px 0;
    /* p10-0 */
}

main h3{
    font-size: 18px;
    border-left: 4px solid #8bc34a;
    padding:10px 8px;
    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(../img2/bg.jpg);
    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タグだけのmargin-bottom設定を変える */
}

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

.message ul li{
    width: 31%;
    aspect-ratio: 4/3;
    /* 幅、31%設定 */
} 

.message li img{
    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;
}

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

.voice li img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.voice .photo{
    aspect-ratio: 1/1;
    margin-bottom: 10px;
}

.voice .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: #8bc34a;
    color: #fff;
    border-radius: 20px;
    transition: 0.3s;
}

.voice a:hover{
    color: #222;   
    background-color: #ffffff;  
    border: 1px solid #8bc34a;
}
/*-----------------------------------------
    access - setting   
-----------------------------------------*/

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


.access iframe{
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    filter: grayscale(0.5);
    /* 適宜 */
}

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


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

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

.qaa dl dt{
    padding: 20px;
    color: #fff;
    background-color: #8bc34a;
}

.qaa dl dd{
    padding: 5px 20px;
    line-height: 1.6;
    margin-bottom: 50px;
}





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

footer{
    background-color: #8bc34a;
}

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

@media (width<769px){
    
/* 

レスポンシブ対応の原則 
    1. display:flex → diplay:block フレックスボックスを無効
    または、flex-direction: column;で縦そろい
    2. width:○○px または、 width:○○% → width:100% or width:auto widthの初期化
    3. position:○○ → position:static positionの初期化
    4. 各種設定の初期化　初期値の設定
    5. あとは微調整

*/

header{
/* background-image: none;
background-color: #ffd104;
 */
    /* 背景画像の微調整 */
background-position: left 40% top;
}

header h1{
position: static;
    /* positionの初期化 → static */
background-color: transparent;
    /* background-colorの初期化 → transparent */
border: 0;
    /* borderの初期化 → 0 */
border-radius: 0;
    /* border-radiusの初期化 → 0 */
text-align: center;
    /* 微調整*/
background-color: rgb(255, 255, 255,0.4);
height: 120%;
position: absolute;
top: -30px;
left: -15px;
}

nav{
/*     z-index: 1; */
    /* 微調整 → z-index:1 */

}

nav ul a{
padding: 0 10px;
    /* aタグの左右の余白を狭くする → 微調整 */
} 

 .message p{
    text-align: left;
    /* 中央揃いはスマホの幅の可変で調整しにくいの → 微調整 text-align:left ; */
}

.message ul{
display: block;
    /*  display:flex → diplay:block フレックスボックスを無効 */
}

.message ul li{
width: 100%;
margin-bottom: 40px;
    /* width:100% or width:auto widthの初期化 */

    /* 微調整 mb40 ほど*/
} 

.voice ul{
display: block;
    /*  display:flex → diplay:block フレックスボックスを無効 */
}

.voice li{
width: 100%;
    /* width:100% or width:auto widthの初期化 */
margin-bottom: 30px;
padding: 20px;
    /* 微調整 p30 mb40ほど */  
} 

footer .footer_logo{
text-align: center;
    /* 微調整 tac　*/  
}


}/* media query */