:root {
    --font__color: #161616;
    --gray: #4d4d4d;
    --white: #fffffa;
    --base__color: #f5fafb;
    --base__color2: #c8dee2;
    --orange: #ff761d;
    --blue: #00779a;
    --light__blue: #69cbe9;
    --red: #d11f1f;
}

* {
    transition: all 0.3s;
}

body {
    font-family: "M PLUS 2", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1 {
    font-size: 2.986rem;
}

h2 {
    font-size: 2.488rem;
}

h3 {
    font-size: 2.074rem;
}

h4 {
    font-size: 1.728rem;
}

h5 {
    font-size: 1.44rem;
}

h6 {
    font-size: 1.2rem;
}

p {
    font-size: 1rem;
    line-height: 1.6em;
}

.small {
    font-size: 0.833em;
}

.bold {
    font-weight: 600;
}

.link__text a {
    word-wrap: break-word;
}

.link__text a:link {
    color: var(--blue);
    border-bottom: 1px solid var(--blue);
}

.link__text a:visited {
    color: var(--gray);
    border-bottom: 1px solid var(--gray);
}

.link__text a:hover {
    color: var(--light__blue);
}

/* サブページのメイン */

.sub__page__main {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

/* header */

header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 99;
}

.header__top {
    width: 100%;
    background: var(--gray);
}

.header__top__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.header__name {
    width: fit-content;
}

.header__name img {
    width: 100%;
    height: 60px;
}

.header__top__inner h1 {
    font-family: "a-otf-ud-shin-maru-go-pr6n", sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: clamp(1.3rem, 1.045rem + 1.27vw, 2rem);
}

.contact__btn {
    background: var(--blue);
    padding: 0.5em 1em;
    font-weight: 600;
}

.contact__btn:hover {
    background: var(--light__blue);
    color: var(--font__color);
}

.header__nav {
    width: 100%;
    background: var(--base__color);
    box-shadow: 0px 0px 10px var(--font__color);
    padding: 0 1em;
}

.header__nav__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header__nav__inner ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    text-align: center;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.header__nav__inner ul a {
    width: 100%;
    display: block;
    padding: 1em 0;
}

.header__nav__inner ul li {
    border-left: 2px solid var(--gray);
}

.header__nav__inner ul li:last-child {
    border-right: 2px solid var(--gray);
}

.header__nav__inner ul li:hover {
    color: var(--white);
    background: var(--blue);
}

/* ナビの現在地 */
.home .nav__home {
    border-bottom: 6px solid var(--blue);
}

.product .nav__product {
    border-bottom: 6px solid var(--blue);
}

.works .nav__works {
    border-bottom: 6px solid var(--blue);
}

.step .nav__step {
    border-bottom: 6px solid var(--blue);
}

.qa .nav__qa {
    border-bottom: 6px solid var(--blue);
}

.news .nav__news {
    border-bottom: 6px solid var(--blue);
}

.company .nav__company {
    border-bottom: 6px solid var(--blue);
}

.pc__hidden {
    display: none;
}

.gnav__sp ul {
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
    align-items: center;
    padding: 1em;
}

/*＊＊＊＊＊＊＊＊＊ハンバーガーメニュー＊＊＊＊＊＊＊＊*/

.gnav__sp {
    position: fixed;
    top: -300px;
    left: 0;
    transition: all 0.3s;
    z-index: 10;
}

#burger-icon {
    height: 50px;
    width: 50px;
    background: var(--blue);
    z-index: 99;
    position: fixed;
    top: 0;
    right: 0;
}

#burger-icon span {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #fff;
    position: absolute;
}

#burger-icon span:nth-child(1) {
    left: 10px;
    top: 12.5px;
}

#burger-icon span:nth-child(2) {
    left: 10px;
    top: 23px;
}

#burger-icon span:nth-child(3) {
    left: 10px;
    top: 33.5px;
}

.burger-line1 {
    transform: translateY(10.5px) rotate(45deg);
    opacity: 0;
    animation: open-burger-line 0.5s linear;
    animation-fill-mode: forwards;
}

.burger-line2 {
    opacity: 0;
}

.burger-line3 {
    transform: translateY(-10.5px) rotate(-45deg);
    opacity: 0;
    animation: open-burger-line 0.5s linear;
    animation-fill-mode: forwards;
}

@keyframes burger-line {
    to {
        opacity: 1;
    }
}

@keyframes open-burger-line {
    to {
        opacity: 1;
    }
}

.open-nav {
    top: 0;
}

/* footer */

footer {
    background: var(--gray);
}

footer small {
    display: block;
    color: var(--white);
    text-align: center;
    margin: 0 auto;
    padding: 1em 0;
}

.scroll__top__btn {
    width: 40px;
    height: 40px;
    background: var(--gray);
    border-radius: 50%;
    display: none;
    place-items: center;
    opacity: 0.8;
    position: sticky;
    bottom: 13px;
    left: calc(100% - 60px);
    margin: 1em 0;
    z-index: 10;
}

.scroll__top__btn i {
    font-size: 30px;
    color: var(--white);
}

.scroll__btn__display {
    display: grid;
}

/* 下部表示ポップアップバナー */

.pop__nav__wrap {
    position: sticky;
    bottom: -200px;
}

.pop__nav__active {
    bottom: 0;
}

.pop__nav {
    background: var(--base__color2);
    box-shadow: 0px 0px 10px var(--gray);
    width: 100%;
    display: flex;
    gap: 1em;
    padding: 1em;
    justify-content: center;
    align-items: end;
}

.pop__nav__inner {
    display: flex;
    gap: 1em;
}

.pop__nav__inner p {
    line-height: 1em;
    text-align: right;
}

.pop__nav__inner .small {
    font-size: 0.8em;
}

.pop__nav__tel {
    font-size: 1.8rem;
}

.pop__nav__inner img {
    height: 2rem;
}

.pop__nav__form {
    background: var(--blue);
    padding: 0.5em 1em;
    color: var(--white);
}

.pop__nav__form:hover {
    background: var(--light__blue);
    color: var(--font__color);
}

.close__pop {
    width: 30px;
    background: var(--gray);
    display: grid;
    place-items: center;
    padding: 0.5em;
}

.close__pop i {
    color: var(--white);
    font-size: 1em;
}

.pop__nav__close {
    bottom: -300px;
}

.close__pop__none {
    display: none;
}

/* アナウンス */

.announce__wrap {
    padding: 0 1em;
}

.top__main .announce__wrap {
    padding: 0;
}

.announce {
    width: 100%;
    max-width: 960px;
    margin: 2em auto;
    box-shadow: 0px 0px 10px var(--gray);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1em;
}

.announce__inner {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.announce__inner:nth-child(2) {
    padding: 1em;
}

.announce__inner img {
    height: 100%;
    object-fit: cover;
}

.announce h2 {
    font-size: clamp(1.2rem, 0.982rem + 1.09vw, 1.8rem);
}

.announce h3 {
    font-size: clamp(1.2rem, 1.091rem + 0.55vw, 1.5rem);
    font-weight: 700;
}

.announce__emphasis {
    font-size: 1.8em;
    color: var(--orange);
    font-weight: 800;
    padding: 0 0 0 0.1em;
}

.announce__contact {
    width: fit-content;
    margin: 0 auto;
    background: var(--blue);
    color: var(--white);
    padding: 0.5em 1em;
    font-weight: 600;
}

.announce__contact:hover {
    background: var(--light__blue);
    color: var(--font__color);
}

/* 各ページリンク */

.content__wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 1em;
    padding: 1em;
}

.aside__links {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.aside__links img {
    width: 240px;
}



@media screen and (max-width:900px) {
    h1 {
        font-size: 1.476rem;
    }

    h2 {
        font-size: 1.383rem;
    }

    h3 {
        font-size: 1.296rem;
    }

    h4 {
        font-size: 1.215rem;
    }

    h5 {
        font-size: 1.138rem;
    }

    h6 {
        font-size: 1.067rem;
    }

    .sp__hidden {
        display: none;
    }

    .pc__hidden {
        display: block;
    }

    .header__top__inner {
        flex-direction: column;
        gap: 1em;
        align-items: center;
        padding: 0.5em 0.5em 1em 0.5em;

    }

    .header__nav__sp {
        width: 100%;
        background: var(--base__color);
        position: absolute;
        top: 0;
        left: 0;
    }

    .header__nav__inner__sp ul {
        display: flex;
        flex-direction: column;
        gap: 1em;
        align-items: center;
        justify-content: center;
        padding: 1em;
    }

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

    .header__name img {
        width: calc(100% - 60px);
        height: 65px;
    }

    .contact__btn {
        margin: 0 auto;
    }

    /* ナビの現在地 */
    .home .nav__home {
        padding: 0 0 3px 0;
        border-bottom: 3px solid var(--blue);
    }

    .product .nav__product {
        padding: 0 0 3px 0;
        border-bottom: 3px solid var(--blue);
    }

    .works .nav__works {
        padding: 0 0 3px 0;
        border-bottom: 3px solid var(--blue);
    }

    .step .nav__step {
        padding: 0 0 3px 0;
        border-bottom: 3px solid var(--blue);
    }

    .qa .nav__qa {
        padding: 0 0 3px 0;
        border-bottom: 3px solid var(--blue);
    }

    .news .nav__news {
        padding: 0 0 3px 0;
        border-bottom: 3px solid var(--blue);
    }

    .company .nav__company {
        padding: 0 0 3px 0;
        border-bottom: 3px solid var(--blue);
    }

    .content__wrap {
        display: flex;
        flex-direction: column;
        padding: 1em;
        gap: 1em;
    }

    /* アナウンス */

    .announce {
        display: flex;
        flex-direction: column;
    }

    .announce img {
        width: 100%;
    }

    /* 各ページリンク */

    .aside__links {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .aside__links img {
        width: 100%;
    }

    /* スクロールボタン */
    .scroll__top__btn {
        bottom: 160px;
    }

    .pop__nav__closed {
        bottom: 15px;
    }

    /* 下部表示ポップアップバナー */

    .pop__nav {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .pop__nav__inner {
        flex-direction: column;
        align-items: center;
    }

    .pop__nav__inner .small {
        display: none;
    }

    .pop__nav__flex {
        align-items: end;
    }

    .pop__nav__form {
        width: fit-content;
        margin: 0 auto;
    }

    .close__pop {
        position: absolute;
        top: 0;
        right: 0;
    }
}