@charset "utf-8";

:root {
    --main-color: #0f2350;
    --base-color: #F7F7F7;
    --accent-color: #d9e2e9;
    --white: #fff;
    --text-gray: #333;
    --icon-gray: #767676;
}

/*
===========================================
全体設定F
===========================================
*/

/* 文字設定 */

rt {
    text-align: center;
}

.ruby-left {
    text-align: left;
}

* {
    color: var(--text-gray);
}

html {
    font-size: 62.5%;
    /* -> 10px */
    scroll-behavior: smooth;
}

body {
    background-color: var(--base-color);
}

h1,
h2,
header li,
small {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

h1 {
    font-size: 3.2rem;
}

header li {
    color: var(--main-color);
    font-size: 1.6rem;
    font-weight: 600;
}

.gnav,
.section-title {
    text-transform: uppercase;
}

p,
dl {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.7;
    text-align: left;
}

.content-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
    font-size: 2rem;
    margin: 18px 0;
}

small {
    font-size: 1.3rem;
}

/* 余白設定 */

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

#mainvisual {
    margin-bottom: 80px;
    overflow: hidden;
}

#about,
#font,
#web,
#banner {
    margin-bottom: 120px;
}


/* h2　ふきだし設定 */
.section-title {
    display: inline-block;
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 50px;
    position: relative;
    padding: 0.8rem 2rem;
    border-bottom: 1px solid;
    color: var(--main-color);
    letter-spacing: 0.04em;
}

.section-title:before,
.section-title:after {
    position: absolute;
    top: 100%;
    left: 50%;
    content: "";
    height: 0;
    width: 0;
}

.section-title:before {
    border: 12px solid;
    border-color: transparent;
    border-top-color: var(--main-color);
    margin-left: -12px;
}

.section-title:after {
    border: 10px solid;
    border-color: transparent;
    border-top-color: var(--base-color);
    margin-left: -10px;
}

/* ホバー時、ふわっと透過 */
h1 a,
header li a,
.font_comment a,
.web-lead a {
    transition: all 0.2s;
}

/*
===========================================
個別設定
===========================================
*/

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

header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
}

header h1 {
    color: var(--main-color);
    font-weight: 500;
}

/* header h1 a {
    background-color: #0f2350;
    padding: 0.2rem 2rem;
} */

header h1 a:hover {
    opacity: 0.6;
}

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

header li {
    margin-left: 30px;
    letter-spacing: 0.07em;
}

header li a:hover {
    opacity: 0.6;
}


/* ハンバーガーメニュー */
.navbtn {
    position: fixed;
    right: 10px;
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    z-index: 1;
    cursor: pointer;
}

.navbtn span,
.navbtn::before,
.navbtn::after {
    width: 30px;
    height: 2px;
    background-color: var(--main-color);
    position: absolute;
    top: 50%;
    left: 7px;
    transition: transform .4s;
}

.navbtn::before,
.navbtn::after {
    content: '';
}

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

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

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

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

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


/* メインビジュアル */

main {
    margin-top: 64px;
}

#mainvisual .mv-anime img {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: 50% 40%;
    animation: anime 8s ease-in-out forwards;
}

@keyframes anime {
    100% {
        transform: scale(1.1);
    }
}

/* ABOUT */
#about {
    scroll-margin-top: 64px;
    /* スクロールずれ対策 */
}

#about .content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#about img {
    width: 250px;
    height: 250px;
    /* 丸くマスクする */
    border-radius: 50%;
    margin-right: 50px;
    transform: scaleX(-1);
}

.text h3 {
    text-align: left;
    letter-spacing: 0.07em;
    margin-top: 5px;
}

.text p {
    margin-bottom: 17px;
    font-feature-settings: "palt";
    text-align: justify;
    text-align-last: left;
}


.text dt {
    background-color: var(--accent-color);
    display: inline-block;
    padding: 0.1rem 0.7rem;
    border-radius: 3px;
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 7px;
    margin-bottom: 0.3rem;
}

.text dt:nth-child(1) {
    margin-top: 0;
}


.text dd {
    padding-left: 6px;
}

/* FONT */
#font {
    scroll-margin-top: 64px;
    /* スクロールずれ対策 */
}

.font_lead {
    margin-bottom: 50px;
    text-align: center;
}

#font ul {
    display: flex;
    justify-content: space-between;
}

#font li {
    width: 30%;
    display: flex;
    flex-direction: column;
}

#font h3 {
    letter-spacing: 0.05em;
    margin: 20px 0;
}

.font_comment {
    font-size: 1.5rem;
    text-align: justify;
    text-align-last: left;
    flex: 1;
}

.txt_link {
    border-bottom: 1px dotted var(--text-gray);
}

.txt_link:hover {
    background-color: var(--accent-color);
}

.ico_link {
    color: var(--icon-gray);
    font-size: 1.3rem;
    padding: 0 5px;
}

.btn_01 a {
    display: block;
}

.btn_01 {
    text-align: center;
    vertical-align: middle;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--main-color);
    margin-top: 20px;
    padding: 7px 0;
    cursor: pointer;
    border: 1px solid var(--main-color);
    border-radius: 4px;
    background: var(--base-color);
    transition: all 0.3s;
}

.btn_01:hover {
    color: var(--white);
    background-color: var(--main-color);
}

.btn_01:hover i {
    color: var(--white);
    opacity: 0.7;
}

.ico_arrow {
    padding-left: 20px;
    color: var(--main-color);
}

.quote {
    margin-top: 5px;
    font-size: 1.2rem;
    opacity: 0.8;
}

.quote a:hover {
    opacity: 0.7;
    transition: all 0.2s;
}


/* WEB */
#web {
    scroll-margin-top: 64px;
    /* スクロールずれ対策 */
}

.web-item__img {
    max-width: 100%;
    height: auto;
}

.web-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.web-link:hover {
    opacity: 0.7;
    transition: all 0.2s;
}

.content-title {
    letter-spacing: 0.02em;
    margin: 20px 0 18px 0;
}

.content-title span {
    font-size: 1.6rem;
}

.web-tag-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 8px;
}

.web-tag {
    display: inline-block;
    background-color: rgba(51, 51, 51, 0.1);
    padding: 0.1rem 1rem;
    margin: 0 8px 8px 0;
    border-radius: 3px;
    font-size: 1.3rem;
    font-family: "Inter", sans-serif;
}

.web-tag:last-of-type {
    margin-right: 0;
}

.web-lead {
    font-size: 1.5rem;
    line-height: 1.7;
    text-align: justify;
    text-align-last: left;
}

.web-item__make {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 5px;
    margin-top: 12px;
}

.make-title {
    margin-bottom: 8px;
    font-weight: 500;
}

.web-item__make p {
    font-size: 1.5rem;
    line-height: 1.5;
}



/* BANNER */
#banner {
    scroll-margin-top: 64px;
    /* スクロールずれ対策 */
}

.card-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 3rem;
    grid-row-gap: 8rem;
}

.card-group h3 {
    margin: 20px 0 8px 0;
}

.card img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 10px 0 rgba(0 0 0 / .08);
}

#banner h3 {
    letter-spacing: 0.02em;
}

.size {
    text-align: center;
    font-family: "Inter", sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    margin-bottom: 15px;
}

.description {
    font-size: 1.5rem;
    text-align: justify;
    text-align-last: left;
}


/* フッター */
footer {
    background-color: var(--main-color);
    padding: 12px 0;
    text-align: center;
}

footer small {
    color: var(--white);
    font-weight: 200;
    letter-spacing: 0.1em;
}

/* TOPへ戻る */
#pagetop {
    position: fixed;
    right: 30px;
    bottom: 60px;
    font-size: 2rem;
    line-height: 3.2;
    z-index: 10;
}

.topicon {
    color: var(--main-color);
}

#pagetop a {
    background-color: var(--base-color);
    width: 60px;
    height: 60px;
    text-align: center;
    display: block;
    border-radius: 50%;
    cursor: pointer;
    opacity: .8;
    border: solid 1px var(--main-color);
    transition: all .3s;
}

#pagetop a:hover {
    background-color: var(--accent-color);
}


/* SP 630px以下 */

@media screen and (max-width:630px) {

    /* ハンバーガーメニュー */
    .navbtn {
        display: block;
    }

    .gnav {
        position: fixed;
        width: 80%;
        height: 100vh;
        left: 0;
        top: 0;
        background-color: rgba(15, 40, 98, 0.9);
        transform: translateX(-100%);
        transition: transform .6s;
    }

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

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

    header ul li {
        margin-left: 0;
        color: var(--white);
        font-weight: 300;
    }

    header ul li:not(:last-child) {
        margin-bottom: 1.5em;
    }

    header li {
        font-size: 2.5rem;

    }

    /* 全体調整など */
    .wrapper {
        width: 100%;
    }

    #header .wrapper {
        width: 96%;
        height: 64px;
    }

    header h1 {
        text-align: center;
    }

    .text,
    .font_lead,
    .font_comment {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }

    #mainvisual img {
        height: calc(100vh - 64px);
    }

    #about,
    #font {
        margin-bottom: 100px;
    }

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

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

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

    /* FONT */
    #font ul {
        flex-direction: column;
    }

    #font li {
        width: 100%;
        margin-bottom: 6rem;
    }

    #font li:last-child {
        margin-bottom: 0;
    }

    .font_lead {
        text-align: left;
    }

    .btn_01 {
        width: 60%;
        margin: 20px auto 0;
    }

    .quote {
        margin-left: 1.5rem;
    }

    /* WEB */
    .web-group {
        grid-template-columns: 1fr;
        grid-column-gap: 0;
        grid-row-gap: 5rem;
    }

    .web-tag-group {
        margin: 0 auto;
    }

    .web-lead,
    .web-item__make {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }


    /* BANNER */
    .card-group {
        display: block;
    }

    .card img {
        margin: 0 auto;
    }

    .card {
        margin-bottom: 60px;
    }

    .banner06 {
        margin-bottom: 0;
    }

    .description {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
}