@charset "UTF-8";

*{
    margin: 0;
    padding: 0;
    line-height: 1;
    /* 各ブラウザが持っている外部、余白、行間を初期化する */
    box-sizing: border-box;
    /* 幅を指定した要素（タグ）にborder、paddingを設定した際に要素が広がってしまうことを防ぐため */      
}

body {      
    font-family: "M PLUS 1p", sans-serif;
    /*   ここまでフォントファミリー  各OSに適したフォントを用意しておく*/
    /* "Helvetica Neue" macのsafariの英語、Arial mac windowの英語  "Hiragino Kaku Gothic ProN"はmacの日本語、"Hiragino Sans"は前の文字がなかった場合、Meiryoはwindowの日本語 */
    color: #a0a0a0;
    background-color: #000;
    /* サイト全体の文字色を定義しておく */
}

ul {
    list-style: none;
    /*   liの装飾を削除する  */
}

a {
    text-decoration: none;
    /*   aタグの初期設定。aタグはでデフォルトで持っている下線を消しておく */
}

img{
    max-width: 100%;
    /* 自身のサイズより大きくならず、かつ、親要素の大きさ以上大きくならない */
    height: auto;
    /* レイアウトシフトを起こさないようにimgタグにwidthと、heightを設定させたときのCSSでの対処方法 */
    vertical-align: bottom;
    /* imgは、文字と同等扱いなので、必ず下部に余白（デセンダー）が出来てしまうのを防ぐ。他の防ぐ方法としてインライン要素をブロック要素に変える方法もあり */
}

/*-----------------------------------------
    pc max- setting   
-----------------------------------------*/

.container {
    max-width: 960px;
    /* 設定サイズより大きくならず、かつ、それ以下では可変 */
    margin: 0 auto;
}
/*PCの情報コンテンツの最大幅の設定 ------ 各パーツでこのCSSを再利用（マルチクラス）、または流用*/
/*-----------------------------------------
    header setting
------------------------------------------*/

.header_inner {
    display: flex;
    /* 子要素の横並びの親要素設定  */
    height: 200px;
    /* 高さ指定 100px */
    align-items: center;
    /* heightの垂直中央揃えのオプション  */
    justify-content: space-between;
    /* 子要素の両端揃いの設定 */
    padding: 0 20px;
}

header h1{
    font-size: 26px;
    margin-bottom: 15px;
    /* フォントサイズや、その他のデザイン装飾は適宜設定 */
    font-family: "M PLUS 2", sans-serif;
    font-weight: lighter;
}

header p{
    font-size: 12px;
    /* フォントサイズは適宜設定 */
}   

header a.query{
    font-size: 14px;
    display: block;
    padding: 15px 20px;
    /* background-color: rgb(207, 207, 207); */
    color: #a0a0a0;
    transition: 0.4s;
    /* インライン（aタグの）のブロック設定によるマウスの領域を広く設定 */
    /* 上下の内部余白を広げる */
    /* 背景色や、フォントカラーの装飾は適宜設定 */
    border: 1px solid rgba(207, 207, 207, 0.709);
    border-radius: 5px;
    box-shadow: 5px 5px 10px;
}
header a.query:hover{
    /* background-color: rgba(207, 207, 207, 0.709); */
    box-shadow: inset 0 0 10px 2px #cacaca;
}

/*-----------------------------------------
    nav_menu setting
------------------------------------------*/

nav{
    /* navの背景色はページで使われているメインカラーにあわえると良いかも */
    border-top: 1px solid #444444;
    border-bottom: 1px solid #444444;
    box-shadow: 0 0 10px;
    /* background-color: rgb(207, 207, 207); */
    margin-bottom: 80px;
}

nav ul {
    display: flex;
    /* 子要素の横並びの親要素設定  */ 
}

nav li{
    width: 25%;
    /* border-left: 1px dotted #aaa; */
    /* 親要素から子要素の数を割った幅のパーセンテージ設定 25% */
    /* 左の枠線設定。色や線種等は適宜設定 */
}

nav li a{
    font-size: 14px;
    display: block;
    text-align: center;
    line-height: 45px;
    color: #7e7d7d;
    /* background-color: rgb(207, 207, 207); */
    transition: 0.4s
    /* aの高さを65pxに取得 */
    /* aタグのテキストを中央揃い */
    /* aタグに行間65pxで固定の高さ設定 */
}

nav li a:hover{
    background-color: rgba(207, 207, 207, 0.116);
    /* デザイン装飾は適宜設定 */
}

/*-----------------------------------------
    main_image setting
------------------------------------------*/
main{
    letter-spacing: 0.1em;
    /* padding: 0 20px; */
    padding: 0 20px;
}

.main_image{
    /* background: url(../img/main_back_image.jpg) no-repeat center/cover; */
    /* 背景画像を表示去るためのショートカットで、下記4行と同じ意味 */
    /* 後で、背景画像の差し替え */
    background-image: url(../img/main2.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /*
    background-image: url(../img/main_back_image.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
     */
    height: 450px;
    /* 背景画像を表示には、高さが必要（450pxに設定） */
    margin-bottom: 100px;
    /* 次のブロックの下側余白設定 */
}

/*-----------------------------------------
    .slogan
------------------------------------------*/

.slogan{
    text-align: center;
    margin-bottom: 130px;
    /* 次のブロックの下側余白設定 */
}

.slogan h2{
    margin: 0 auto 40px;
    padding: 20px 0;
    font-size: 22px;
    /* text-decoration: underline rgb(207, 207, 207); */
    filter: drop-shadow(25px 23px 2px) 
     /* 文字の装飾等は適宜設定 */;
}

.slogan p{
    line-height: 3;
    /* 文字の装飾等は適宜設定 */
}

/*----------------------------------------
    .contents setting
------------------------------------------*/
.contents{
    margin-bottom: 130px;
    /* 次の下のブロックに余白を設定 */
}

.contents h3{
    font-weight: lighter;
    border-left: 6px solid rgb(207, 207, 207);
    padding: 2px 10px;
    font-size: 20px;
    margin-bottom: 30px;
    /* 完成系を見ながら装飾は適宜設定 */
}

.contents h4{
    font-size: 18px;  
    margin-bottom: 20px;
    /* 完成系を見ながら装飾は適宜設定 */ 
}

.contents h4 span{
    font-size: 14px;
    /* 完成系を見ながら装飾は適宜設定 */
}

.contents .content_item{
    display: flex;
     /* 子要素の横並びの親要素設定  */ 
    justify-content: space-between;
    /*  水平方向の揃えのオプション ( 両端揃い )*/
    margin-bottom: 80px;
     /* 次の下のブロックに余白を設定 */
}

.contents .content_item .content_photo{
    width: 30%;
    /* 幅の取得 30% */
}
.contents .content_item .content_text{
    width: 65%;
    /* 幅の取得  65%*/  
}

.contents .content_item .content_text p{
    font-size: 14px;
    line-height: 1.9;
    /* 一番読みやすい行間は、line-heightの、1.5～2の間とされてる */    
    letter-spacing: 0.05em;
    /* 一番読みやすい文字間は、letter-spacingの、0.05em～0.08emの間とされてる ただし、教科書も含めて多少のデータの前後あり*/
}

/*-----------------------------------------
    news setting
------------------------------------------*/

.news{
    margin-bottom: 100px;
    /* 次の下のブロックに余白を設定 */
}

.news h3{
    font-weight: lighter;
    border-left: 6px solid rgb(207, 207, 207);
    padding: 2px 10px;
    font-size: 20px;
    margin-bottom: 20px;
    /* 完成系を見ながら装飾は適宜設定 */
}

.news dl{
    display: flex;
    /* 子要素、水平方向の揃えの親要素設定  */
    align-items: center;
    /* 高さの中央揃えのオプション  */
    flex-wrap: wrap;
   /* 親要素の幅から溢れ出た場合に、折り返してくれる設定 */ 
    gap: 20px 0; 
}

.news dt{
    width: 20%;
    /* 幅指定 20% */
    line-height: 40px;
    /* line-heightで、1行の文字列を垂直中央に配置 50px */
    text-align: center;
    /* 幅指定された中のテキスト水平中央揃い */
    /* color: #555; */
    /* 背景色・フォントカラー・外側下余白等は適宜 */
    border: 1px solid #aaa;
}

.news dd{
    width: 80%;
    /* 幅指定 80% */
    padding-left: 20px;
}

.news dd a{
    /* color: #555; */
    color: #737373;
    transition: 1s;
}

.news dd a:hover{
    text-decoration: underline #dad9d9;
    /* ホバーの際下線の設定 */
}

/*-----------------------------------------
    footer setting
------------------------------------------*/

footer{
    background-color: rgb(207, 207, 207);
    padding: 0 20px;
}
.footer_inner{
    display: flex;
    justify-content: space-between;
    padding: 80px 0;
}

.footer_inner p{
    color: #555;
}
.sns{
    /* max-width: 960px; */
    display: flex;
    gap: 0 20px;
}
.sns>li{
    width: 30px;
}

@media (max-width:768px){/* ipad以下 */
  .header_inner{
    display: block;
    height: auto;
  }
  .header_inner .logo{
    padding: 30px 0;
    text-align: center;
  }
  header a.query{    
    width: 300px;
    font-size: 12px;
    padding: 15px 0;
    text-align: center;
    margin: 0 auto 30px;
  }
  body{
    position: relative;
  }
  nav{
    margin-bottom: 5px;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #000;
    
  }
  nav ul{
    max-width: 786px;
  }
  /* nav li{
    width: auto;
  } */
  nav li a{    
    font-size: 9px;
  }
  .main_image{
    margin-bottom: 30px;
  }
  .slogan>h2{
    font-size: 20px;
  }
  .contents .content_item{
    display: block;
  }
  .contents .content_item .content_photo{
    width: auto;
    margin-bottom: 20px;
  }
  .contents .content_item .content_text{
    width: auto;
  }
  .news dl{
    display: block;
  }
  .news dt{
    width: auto;
    margin-bottom: 7px;
  }
  .news dd{
    width: auto;
    margin-bottom: 30px;
    padding-left: 10px;
    line-height: 1.7;
  }
  .footer_inner{
    display: block;
    text-align: center;
  }
.footer_inner div{
    display: inline-block;
    margin-bottom: 20px;
}
}