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