@charset "UTF-8";

*{
    margin: 0;
    padding: 0;
    /* 各ブラウザが持っている外部・内部余白を初期化する */
    box-sizing: border-box;
    /* 幅を指定した要素（タグ）にborder、paddingを設定した際に要素が広がってしまうことを防ぐため */      
}

body {
    font-family: "Oswald", "Noto Sans JP", sans-serif;
    font-weight: 400;
    color: #333;
    /* サイト全体の文字色を定義しておく */
    line-height: 1;
    /* サイト全体の行間を初期化しておく */
}



ul {
    list-style: none;
    /*   liの装飾を削除する  */
}


a {
    text-decoration: none;
    /*   aタグの初期設定。aタグはでデフォルトで持っている下線を消しておく */
}

img{
    max-width: 100%;
    /* 親要素の大きさ以上大きくならない */
    vertical-align: bottom;
    /* imgは、文字と同等扱いなので、必ず下部に余白（デセンダー）が出来てしまうのを防ぐ。他の防ぐ方法としてインライン要素をブロック要素に変える方法もあり */
}




/*-----------------------------------------
    loading svg-animation - setting   
-----------------------------------------*/

.wrap{

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222;
    animation: load_back 3.3s forwards;
    z-index: 200;
}

.wrap svg{
    position: absolute;
    width: 30%;
    inset: 0;
    margin: auto;

}
.wrap svg path{
    fill-opacity: 0;
    stroke: #ccc;
    stroke-width: 1;
    stroke-dasharray: 371;
    stroke-dashoffset: 371;
    animation:  load 2s 0.3s forwards;
}
@keyframes load{
    0%{

    }
    100%{
        stroke-dashoffset: 0;
    }
}

@keyframes load_back{
    0%{
        opacity: 1;

    }
    80%{
        opacity: 1;


    }
    100%{
        display: none;
        opacity: 0;
        visibility: hidden; /* for ios */
    }
}

/*-----------------------------------------
    各パーツ共有 .container - setting   
-----------------------------------------*/

.container {
    max-width:1024px;
    padding: 0 10px;
    margin: 0 auto;
}
/* 各パーツ共有の設定 ------ 各パーツでこのCSSを再利用（マルチクラス）、または流用  */


/*-----------------------------------------
    header setting
------------------------------------------*/
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
}

header .header_inner {
    display: flex;
    /* 子要素、水平方向の揃えの親要素設定  */
    height: 100px;
    /* 高さ指定 100px */
    align-items: center;
    /* heightの垂直中央揃えのオプション  */
    justify-content: space-between;
    /* 横並び対象子要素の両端揃い設定 */
}

header h1{
    padding:0 0 3px 10px;
    width: 180px;
     /* フォントサイズや、その他のデザイン装飾は適宜設定 */
}

header p{
    font-size: 14px;
    padding-left: 10px;
    /* フォントサイズは適宜設定 */
}



/*-----------------------------------------
    nav_menu setting
------------------------------------------*/


nav ul {
    display: flex;
    /* 子要素、水平方向の揃えの親要素設定  */   
}

nav li a {
    display: block;
    /* aタグをブロックボックスに設定してマウスの反応範囲を広げる */
    padding: 10px 25px;
    /* aタグのテキストに上下（15px）、左右のpadding（25px） */
    color: #555;
    /* フォントカラー装飾は適宜設定 */
    font-weight: 400;

}


nav li a:hover {
    color: #f00;
}

nav li a[href='#']{
    border-bottom: 1px solid #f00;
    color: #f00;
}


/*-----------------------------------------
    main_image setting
------------------------------------------*/
.main_image{
    padding: 100px 10px 0;
}

.top .main_image p{
    aspect-ratio: 16 / 6;
}
/* トップページのみのアスペクト比 */

.main_image p{
    aspect-ratio: 16 / 3;
}

.main_image p img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}



/*-----------------------------------------
   main mainの中で共通なタグの設定
------------------------------------------*/
main h3{
    font-size: 20px;
    border-left: 3px solid #000;
    padding: 3px 8px 6px;
    margin-bottom: 8px;
    font-weight: 400;
}

main h4{
    font-size: 18px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
    /* 完成系を見ながら装飾は適宜設定 */
}


/*-----------------------------------------
    content slogan
------------------------------------------*/
 .slogan{
    text-align: center;
    /* テキスト中央揃い */
    padding: 60px 0 90px;
    /* 内側余白、上40px、左右0、下70px程度で設定 */
}

.slogan h2{
    font-size: 24px;
    /* フォントサイズ、24pxほどに設定 */
    line-height: 1.6;
    font-weight: 600;
    margin-bottom: 40px;
    /* 見出しの次のブロックの段落との下側の外余白を */
}

.slogan p{
    line-height: 1.8;
    letter-spacing: 0.07em;
    /* 行間設定、適宜　一般的には、1.5前後〜2前後での行間設定がよしとされる */
}




/*-----------------------------------------
    .product setting
------------------------------------------*/

.product{
    padding-top: 120px;
    margin-bottom: 180px;
    /* 次の下のブロックに余白を設定 */
}

.top .product ul{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-gap: 100px 50px;
}
/* トップページのみの設定 */


.product ul{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 100px 20px;
}

.product li .photo{
   aspect-ratio: 3/2;
   margin-bottom: 8px;

}

.product li .photo img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.product li .txt{
    letter-spacing: 0.07em;
    line-height: 1.8;
}


/*-----------------------------------------
    footer setting
------------------------------------------*/

footer{
    background-color: #333;
}


.footer_inner p{
    text-align: right;
    line-height: 100px;
}
.footer_inner small{
    color: #fff;
}


@media(width<768px){

/*-----------------------------------------
    loading svg-animation responsive - setting   
-----------------------------------------*/
    .wrap svg{
        position: absolute;
        width: 80%;
        inset: 0;
        margin: auto;
    
    }
    .wrap svg path{
        stroke-width: 1;
    }

/*-----------------------------------------
    burger responsive setting
------------------------------------------*/

    .burger{
        position: fixed;
        top: 20px;
        right: 10px;
        width: 50px;
        height: 45px;
        background-color: #fff;
        z-index: 100;
    }
    .burger span{
        position: absolute;
        width: 80%;
        height: 4px;
        background-color: #444;
        inset: 0;
        margin: auto;
        border-radius: 10px;
    }
    
    .burger span:nth-of-type(1){
        transition: 0.2s;
        top: -35%;
    }
    .burger span:nth-of-type(3){
        transition: 0.2s 0.1;
        top: 35%;
    }

    .burger.active span:nth-of-type(1){
        top: 0;
        width: 60%;
    }    
    .burger.active span:nth-of-type(2){
        width: 60%;
    }    
    .burger.active span:nth-of-type(3){
        top: 0;
        width: 60%;
    }    

/*-----------------------------------------
    各パーツ共有 .container - responsive - setting   
-----------------------------------------*/

.container {
    padding: 0 20px;
    /* スマホの場合は左右の余白を大きめに */
}

/*-----------------------------------------
    header responsive setting
------------------------------------------*/

    header .header_inner {
        display: block;
        /* 子要素、水平方向の揃えの親要素設定無効  */
        height: auto;
        /* 高さ指定 無効 */
    }    

    header h1{
        padding-top: 20px;
         width: 200px;
    }
    
    header p{
        font-size: 12px;
        padding: 0 0 20px 10px;
        /* フォントサイズは適宜設定 */
    }


/*-----------------------------------------
    nav responsive setting
------------------------------------------*/

    nav{
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        padding-top: 100px;
        transition: 0.3s;
    }
    nav.drawer{
        left: 0;
    }

    nav ul{
        display: block;
    }
    nav li{
        border: 0;
    }
    nav li a {
        text-align: center;
        color: #fff;
        padding: 25px 0;
        /* フォントカラー装飾は適宜設定 */  
    }
/*-----------------------------------------
    main_image resposive setting
------------------------------------------*/

    .main_image{
        padding: 100px 5px 0;
    }
    

    .top .main_image p,.main_image p{
            aspect-ratio: 16 / 9;
    }


/*-----------------------------------------
    .slogan responsive setting
------------------------------------------*/

    .slogan p{
        text-align: left;
        /* スマホのさいのキャプションを中央揃いの設定を無効にする */
        padding: 0 20px;
        /* スマホのさいのキャプションの左右の余白を設定 */
    }

/*-----------------------------------------
    .product responsive setting
------------------------------------------*/

    .product{
        padding-top: 120px;
        margin-bottom: 80px;
        /* 次の下のブロックに余白を設定 */
    }
    .top .product ul{
        grid-template-columns: repeat(1,1fr);
    }
    /* トップページのみの設定 */

    .product ul{
        grid-template-columns: repeat(2,1fr);
        grid-gap: 80px 15px;
    
    }
    
    
}
/* media end */