@charset "utf-8";

@import url('https://fonts.googleapis.com/css2? family= Libre+Baskerville:ital,wght@0,400;0,700;1,400 & family= Noto+Sans+JP:wght@100;300;400;500;700;900 &family= Zen+Old+明朝:wght@400;500; 600;700;900 & display=swap');

/* 全体設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Libre Baskerville', 'Zen Old Mincho', serif;
    color: #14171a;
}

html {
    font-size: 100%;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

a:hover {
    opacity: 0.6;
}

.wrapper {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 100px;
}

header .wrapper {
    margin-bottom: 0;
}

.section-title {
    display: inline-block;
    font-size: 1.5rem;
    margin-top: 100px;
    margin-bottom: 30px;
    border-bottom: 1px solid #383e45;
}

.sub_title {
    text-align: center;
    font-size: 1.0rem;
    margin: -25px 0 30px 0;
}

.content-title {
    font-size: 1.0rem;
    margin: 10px 0 -0.5px;
}

h4 {
    font-size: 0.8rem;
}

span {
    font-size: 0.9rem;
    font-family: 'Noto Sans JP', sans-serif;
    text-align: center;
}

.row span {
    display: inline-block;
    font-size: 0.8rem;
    line-height: 1.3rem;
}

.col span {
    display: inline-block;
    font-size: 0.8rem;
    line-height: 1.3rem;
}

p {
    text-align: left;
    line-height: 1.8rem;
}

img {
    max-width: 100%;
}


/* ヘッダー設定 */
header {
    position: fixed;
    background-color: rgba(255, 255, 255, .5);
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

header .wrapper {
    /* 横並びに */
    display: flex;
    /* 高さを揃える */
    align-items: center;
    /* 水平方向調整　左右を広げる */
    justify-content: space-between;
    /* ロゴ上下の空き */
    /* padding: 10px 0; */
    padding-top: 20px;
    padding-bottom: 0;
}

header h1 a img {
    width: 200px;
}

header nav ul {
    display: flex;
    padding: 10px 0;
}

header li {
    margin-left: 30px;
}

header li a {
    color: #24292e;
    font-weight: 700;
    font-size: 0.9rem;
}


/* メインビジュアル */
main {
    margin-top: 75px;
}

#mainvisual {
    margin-bottom: 70px;
}

#mainvisual img {
    display: block;
    width: 100%;
    height: 600px;
    /* はみ出た部分はトリミング */
    object-fit: cover;
    z-index: -1;
}


/* ABOUT */
#about .content {
    display: flex;
    justify-content: center;
    align-items: center;
}


#about img {
    width: 250px;
    height: 250px;
    /* 丸く切り抜く */
    border-radius: 50%;
    /* 画像の右側に余白を置き、テキストとの距離を保つ */
    margin-right: 60px;
}

#about .text {
    text-align: left;
}


/* WORKS DTP */
.dtp ul {
    display: flex;
    justify-content: space-between;
}

.dtp li {
    width: 32%;
}

/* WORKS DTP 画像の上の文字表示 */
.image_link {
    display: block;
    position: relative;
    text-decoration: none;
}

.image_link img {
    display: block;
    width: 100%;
}

.image_link:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    /* 好みの色に変更可能 */
    background: #000;
    opacity: 0;
    transition: 0.3s;
}

.image_link:after {
    /* 好みの文章に変更可能 */
    content: "VIEW MORE";
    display: block;
    color: #fff;
    line-height: 40px;
    width: 180px;
    border: solid 1px #fff;
    border-radius: 30px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -1em;
    margin-left: -90px;
    opacity: 0;
    z-index: 3;
    transition: 0.3s;
    font-weight: bold;
    letter-spacing: 0.2em;
}

.image_link:hover:before {
    opacity: 0.5;
}

.image_link:hover:after {
    opacity: 1;
    margin-top: -20px;
}


/* WORKS WEB 以下ボタン部分 */

.cyen {
    text-align: center;
    line-height: 1.8rem;
    margin-top: 30px;

}

/* a.btn {
    margin-top: 20px;
    width: 50%;
    display: block;
    border: 1px solid #d90c19;
    color: #d90c19;
    border-radius: 30px;
    line-height: 40px;
    background: #fff;
    margin-left: auto;
    margin-right: auto;
} */

/* a.btn:hover {
    color: #fff;
    background: #d90c19;
} */

/*矢印が右に移動する*/
.btnarrow4 {
    /*上要素とのアキ*/
    margin-top: 20px;
    /*矢印と下線の基点とするためrelativeを指定*/
    position: relative;
    /*形状*/
    display: inline-block;
    padding: 0 20px;
    color: #d90c19;
    text-decoration: none;
    outline: none;
}

/*矢印と下線の形状*/
.btnarrow4::before {
    content: '';
    /*絶対配置で下線の位置を決める*/
    position: absolute;
    bottom: -8px;
    left: 15%;
    /*下線の形状*/
    width: 85%;
    height: 1px;
    background: #d90c19;
    /*アニメーションの指定*/
    transition: all .3s;
}

.btnarrow4::after {
    content: '';
    /*絶対配置で矢印の位置を決める*/
    position: absolute;
    bottom: -3px;
    right: 0;
    /*矢印の形状*/
    width: 15px;
    height: 1px;
    background: #d90c19;
    transform: rotate(35deg);
    /*アニメーションの指定*/
    transition: all .3s;
}

/*hoverした際の移動*/
.btnarrow4:hover::before {
    left: 20%;
}

.btnarrow4:hover::after {
    right: -5%;
}


/* ギャラリー部分下から */

/*==================================================
動きの指定：「ふわっ」
===================================*/
.fadeUp {
    animation-name: fadeUpAnime;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* WORKS DTP　ギャラリー */

.gallery {
    /*段組みの数*/
    columns: 4;
    /*ギャラリー左右に余白をつける*/
    /* padding: 0 15px; */
    margin-top: 20px;
}

.gallery li {
    /*各画像下に余白*/
    /* margin-bottom: 0; */
    list-style: none;
}

.gallery li a {
    transition: all ease-in-out .3s;
}


/* ギャラリー内のイメージは横幅100%にする */
.gallery img {
    width: 100%;
    height: auto;
    /*画像の下にできる余白を削除*/
    vertical-align: bottom;
}


/* ギャラリー 横幅900px以下の段組み設定*/
@media only screen and (max-width: 900px) {
    .gallery {
        columns: 2;
    }
}

@media only screen and (max-width: 599px) {
    .gallery {
        columns: 1;
    }
}


/* ギャラリー 下プレビューとネクスト */
.pageNation {
    position: relative;
    margin-bottom: 30px;
    font-size: 0.8rem;
}

.pageNation .pageLeft {
    position: absolute;
    left: 0;
    top: 30px;
}

.pageNation .pageRight {
    position: absolute;
    right: 0;
    top: 30px;
}

/* WORKS WEB　以下ボタン部分 */
.title {
    text-align: center;
    margin: 50px 0;
}

.inner {
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.row {
    display: flex;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0 0 0 / .08);
    margin-top: 40px;
    padding: 30px 20px;
}

.row div {
    width: 100%;
    text-align: center;
}

.col {
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0 0 0 / .08);
    margin-top: 40px;
    padding: 30px 20px;

}

.col2 {
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0 0 0 / .08);
    margin-top: 40px;
    padding: 30px 20px;
}

label::after {
    content: " | ";
}

label:last-of-type::after {
    content: "";
}


label span {
    cursor: pointer;
    background-image: linear-gradient(to top, #f4cbce 50%, transparent 50%);
    background-repeat: no-repeat;
    background-size: 0 100%;
    transition: 0.2s;
}

label:hover span,
input:checked+label span {
    background-size: 100% 100%;
}

.tab_content {
    display: none;
}

#first_tab:checked~#first_content,
#second_tab:checked~#second_content,
#third_tab:checked~#third_content {
    display: block;
}

input[type="radio"] {
    display: none;
}


.w_250 {
    width: 250px;
}


.w_600 {
    width: 600px;
}


/* TOPICS設定 */
.pdf {
    margin-top: 10px;
    text-align: center;
    line-height: 1.8rem;
}

/* スクロール矢印 右下に固定 */
#pagetop {
    background-color: #d90c19;
    bottom: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: fixed;
    z-index: 2;
    right: 15px;
    text-align: center;
}

.arrow-top {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin: 15px 10px 0 10px;
    border-top: 3px solid #fafafa;
    border-left: 3px solid #fafafa;
    transform: rotate(45deg);
}

#pagetop:hover {
    opacity: 0.7;
}


/* フッター */
footer {
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #383e45;
}

.site-header-navbtn {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    z-index: 1;
}

.site-header-navbtn span,
.site-header-navbtn::before,
.site-header-navbtn::after {
    width: 30px;
    height: 1px;
    background-color: #d90c19;
    position: absolute;
    top: 50%;
    left: 5px;
    transition: transform 0.4s;
}

.site-header-navbtn::before,
.site-header-navbtn::after {
    content: '';
}

.site-header-navbtn::before {
    transform: translateY(-8px);
}

.site-header-navbtn::after {
    transform: translateY(8px);
}

body.is-nav-open .site-header-navbtn span {
    transform: scaleX(0);
}

body.is-nav-open .site-header-navbtn::before {
    transform: translateY(0) rotate(45deg);
}

body.is-nav-open .site-header-navbtn::after {
    transform: translateY(0) rotate(-45deg);
}

#topics img {
    width: 200px;
}


/* SP */
@media screen and (max-width:599px) {

    .wrapper {
        margin-bottom: 100px;
    }

    header .wrapper,
    .wrapper p {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    #mainvisual,
    .slider {
        z-index: -1;
    }

    #mainvisual img {
        /* 全体100からトップメニュー分の500pxマイナスした高さに */
        height: calc(100vh - 70px);
        margin-top: 15px;
    }

    #about .content {
        flex-direction: column;
    }

    #about img {
        margin-right: 0;
        margin-bottom: 3rem;
    }

    #about .text {
        text-align: center;
    }

    #worksdtp ul {
        flex-direction: column;
    }

    #worksdtp li {
        width: 100%;
        margin-bottom: 3rem;
    }

    .inner {
        text-align: center;
    }

    .row {
        flex-direction: column;
    }

    .row img {
        margin-top: 2.5rem;
    }

    .col {
        flex-direction: column;
    }

    .col img {
        margin-top: 2.5rem;
    }


    /* ボタン作成のため追加 */
    .site-header-navbtn {
        display: block;
    }

    /* ナビゲーション */
    .site-header-nav {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background-color: #fafafa;
        opacity: 0.9;
        transform: translateX(-100%);
        transition: transform 0.6s;
    }

    body.is-nav-open .site-header-nav {
        transform: translateX(0);
    }

    .site-header-nav ul {
        height: 100%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .site-header-nav ul li:not(:last-child) {
        margin-bottom: 3em;
    }

    .site-header-nav ul li a {
        font-size: 1.5rem;
        margin-left: -30px;
    }
}