@charset "UTF-8";

:root {
    /* カラー */
    --black: #333;
    --white: #fdfdfd;

    --main: #4db6ac;
    --sub1: #0368cf;
    --sub2: #0b81f9;
    --sub3: #dd4b39;
    --sub4: #ffc107;
    --sub5: #14c2f9;
    --sub6: #76c3b1;
    --sub7: #84e389;
    --sub8: #73a776;
    --sub10: #fff59d;
    --sub11: #e7f8f4;
    --sub12: #a4f2ae;
    --sub13: #faaab0;
    --sub14: #a5deff;

    --blue1: #0022ff;
    --blue4: #628fff;
    --blue5: #5d90ff;

    --background: #fff;
    --btncolor: #444;
    --textcolor: #fff;
    --gray: #aaa;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    animation: fade 5s;
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body * {
    font-family: "Noto Sans JP", sans-serif;
}

/* 基本 */
.page * {
    margin: 0;
}

/* グリッド */
.page {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, auto);
    min-height: 100vh;
    background-color: var(--white);
}

/* 共通インナーコンテナ */
.inner-container {
    grid-column: 1/-1;
    width: 1260px;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

@media (max-width: 1261px) {
    .inner-container {
        width: 768px;
    }
}

@media (max-width: 770px) {
    .inner-container {
        width: 500px;
    }
}

@media (max-width: 500px) {
    .inner-container {
        flex-direction: column;
        width: 365px;
    }
}

/* ヘッダー */
.page-head {
    display: flex;
    animation-name: fadeLeftAnime;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeLeftAnime {
    from {
        opacity: 0;
        transform: translateX(-1000px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.page-headTrigger {
    opacity: 0;
}

.corp-logo {
    width: 300px;
    text-decoration: none;
}

.corp-logo img {
    width: 100%;
}

.office-name {
    text-align: left;
    text-decoration: none;
    padding: 4vh 0;
}

.office-name h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--main);
}

@media (max-width: 1261px) {
    .page-head {
        grid-column: 1 / 6;
        height: 15vh;
        padding: 0.3vh 0;
        margin: auto;
    }

    .office-name h1 {
        font-size: 2rem;
    }
}

@media (max-width: 899px) {
    .page-head {
        height: 10vh;
    }

    .office-name {
        padding: 2vh 0;
    }

    .office-name h1 {
        font-size: 3rem;
    }
}

@media (max-width: 500px) {
    .page-head {
        margin: auto 0;
    }

    .office-name {
        padding: 0;
        padding-left: 7px;
        margin: auto 0;
    }

    .office-name h1 {
        font-size: 2.8rem;
    }
}

/* ナビゲーション */
.page-nav {
    position: relative;
    animation-name: fadeRightAnime;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeRightAnime {
    from {
        opacity: 0;
        transform: translateX(1000px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 899px) {
    .page-nav {
        display: none;
    }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.page-navTrigger {
    opacity: 0;
}

.page-nav ul {
    display: flex;
    list-style: none;
    color: var(--white);
    padding: 5vh 0;
}

.page-nav li {
    margin-left: 0px;
}

.page-nav a {
    display: flex;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    text-decoration: none;
}

.nav-text {
    position: relative;
    color: var(--black);
    font-family: "Noto Sans JP";
    font-size: 2rem;
    text-shadow: 1px 1px var(--main);
    z-index: 1;
}

.nav-text:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    /*テキストからの距離*/
    width: 0%;
    /*初期状態では下線非表示*/
    height: 2px;
    /*下線の高さ*/
    background: var(--main);
    /*下線の色*/
    box-shadow: 2px 2px var(--white);
    /*下線の影*/
    z-index: -1;
    transition: all 0.4s;
    /*アニメーション速度*/
}

.page-nav a:hover {
    font-style: oblique;
    background-color: var(--main);
    transition: 1s;
}

.page-nav a:hover .nav-text {
    color: var(--white);
}

.page-nav a:hover .nav-text:after {
    width: 100%;
    /*hover時に表示*/
}

@media (max-width: 1261px) {
    .page-nav {
        height: 50px;
    }

    .nav-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 770px) {
    .nav-text {
        color: var(--black);
        font-size: 2rem;
    }

    .nav-text:after {
        /*下線の色*/
        background: var(--black);
    }
}

/* 現在ページ */
.now-page {
    color: var(--white);
    background-color: var(--main);
    text-shadow: none;
    border-radius: 5px;
    padding: 0 10px;
}

/* ナビメニュー：モバイル */
/* ナビボタン */
.openbtn {
    position: fixed;
    z-index: 9999;
    /*ボタンを最前面に*/
    top: 2%;
    right: 1px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border: 1px solid var(--white);
    background-color: var(--main);
    border-radius: 5px;
}

.menu {
    margin-top: 34px;
    margin-left: 10px;
    color: var(--white);
}

.menu-btn span:before {
    bottom: 8px;
}

.menu-btn span:after {
    top: 8px;
}

/*×に変化*/
.openbtn span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--white);
    width: 45%;
}

.openbtn span:nth-of-type(1) {
    top: 13px;
}

.openbtn span:nth-of-type(2) {
    top: 21px;
}

.openbtn span:nth-of-type(3) {
    top: 29px;
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 17px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 17px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

.openbtn.active p {
    opacity: 0;
    transition: 0.3s;
}

@media (min-width: 900px) {
    .openbtn {
        display: none;
    }
}

#g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top: 0;
    right: -120%;
    width: 100%;
    height: 100vh;
    /*ナビの高さ*/
    background: linear-gradient(var(--white), var(--white));
    /*動き*/
    transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive {
    right: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    padding: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#g-nav li {
    margin-bottom: 15px;
}

#g-nav a {
    display: block;
    width: 100vw;
}

#g-nav a:hover {
    background-color: var(--main);
    transition: 0.5s;
    /*hover時に表示*/
}

#g-nav a:hover .nav-text {
    color: var(--white);
}

/* 現在ページ */
.now-page-m {
    position: relative;
    color: var(--white);
    background-color: var(--main);
    border-radius: 10px;
    font-size: 2rem;
    padding: 3px;
    margin-top: 35px;
    z-index: 1;
    text-shadow: 2px 2px var(--black);
}

#g-nav a:hover .now-page-m {
    background-color: transparent;
    text-shadow: none;
}

/*リストのレイアウト設定*/

#g-nav li {
    list-style: none;
    text-align: center;
}

#g-nav li a {
    text-decoration: none;
    display: block;
}

/* メインコンテンツ */
.page-main {
    grid-column: 1 / -1;
    grid-row: 3;
    background-color: var(--background);
    margin: 0;
}

/* グリッド */
.post {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, auto);
    font-family: "Noto Sans Japanese", sans-serif;
}

/* トップ画像 */
.hero-img {
    grid-column: 1 / -1;
    grid-row: 1;
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        url(../img/background/home-office-2804083_1280.jpg), no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    animation-name: fadeUpAnime;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(1000px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-img::before {
    content: "";
    display: block;
    padding-top: 5%;
}

.hero-imgTrigger {
    opacity: 0;
}

.face {
    width: 24%;
    padding-bottom: 1%;
    text-align: center;
    color: var(--black);
}

.face img {
    width: 100%;
    border-radius: 30px;
    height: auto;
}

.representative-title {
    font-size: 2rem;
}

.representative-name {
    font-size: 4rem;
}

@media (max-width: 1261px) {
    .representative-title {
        font-size: 1.5rem;
    }

    .representative-name {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
}

@media (max-width: 770px) {
}

@media (max-width: 500px) {
    .face {
        width: 50%;
        margin: auto;
        padding-bottom: 1%;
        text-align: center;
        color: var(--black);
    }
}

.hero-message {
    padding-top: 5%;
    color: var(--black);
    text-shadow: 2px 2px var(--white);
    font-size: 5rem;
    font-family: "Noto serif JP";
    white-space: nowrap;
}

@media (max-width: 1261px) {
    .hero-message {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .hero-message {
        font-size: 2.8rem;
    }
}

@media (max-width: 770px) {
    .hero-message {
        margin: auto;
        font-size: 2rem;
        padding-bottom: 2%;
    }
}

@media (max-width: 500px) {
    .hero-message {
        font-size: 2.1rem;
    }
}

/* 共通パーツ */

.link-btn {
    text-decoration: none;
}

.title-bar {
    height: 70px;
    margin-top: 30px;
    border-radius: 10px;
    text-align: center;
    color: var(--textcolor);
    background: linear-gradient(var(--main), var(--main));
}

.title-bar h2 {
    font-size: 3rem;
}

.title-bar h3 {
    font-size: 1.6rem;
}

.title-bar span {
    margin-left: 0.5rem;
}

@media (max-width: 500px) {
    .title-bar {
        height: 50px;
        margin-top: 10px;
    }

    .title-bar h2 {
        font-size: 2rem;
    }

    .title-bar h3 {
        font-size: 1.2rem;
    }
}

.link-bar {
    height: 35px;
    text-align: center;
    line-height: 30px;
    text-decoration: none;
    font-size: 1.8rem;
    border-radius: 20px;
    color: var(--white);
}

.link-color {
    position: relative;
    border: 3px solid var(--white);
    z-index: 0;
}

.link-color::before {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 19px;
    position: absolute;
    z-index: -1;
    left: 0;
    transition: 0.5s;
    background: linear-gradient(var(--sub4), var(--sub3));
}

.link-color::after {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 19px;
    position: absolute;
    z-index: -2;
    left: 0;
    transition: 0.5s;
    background: linear-gradient(var(--main), var(--main));
}

.link-color:hover {
    color: var(--white);
    text-shadow: 2px 2px var(--black);
    transition: 0.5s;
}

.link-color:hover::before {
    opacity: 0;
}

.list-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    grid-column-gap: 5rem;
    text-align: center;
    justify-content: center;
}

@media (max-width: 1700px) {
    .list-box {
        grid-gap: 5em;
    }
}

@media (max-width: 1150px) {
    .list-box {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

@media (max-width: 899px) {
    .list-box {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(335px, 1fr));
        grid-auto-rows: 1fr;
        grid-gap: 1em;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .list-box {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-auto-rows: 1fr;
        grid-gap: 1em;
        padding: 0;
        text-align: center;
        justify-content: center;
    }
}

/* 強みメッセージ */
.strong-point {
    grid-column: 1 / -1;
    grid-row: 2;
    animation-name: fadeUpAnime;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(1000px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.strong-pointTrigger {
    opacity: 0;
}

.strong-point-box {
    width: 100%;
    padding-top: 5%;
    padding-bottom: 5%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(rgba(77, 182, 172, 0.7), rgba(77, 182, 172, 0.7)),
        url(../img/background/laptop-3196481_1920.jpg), no-repeat;
    background-size: cover;
    background-position: center center;
}

.strong-point-box .inner-container {
    margin: auto;
    flex-direction: column;
    text-align: center;
}

.top-title {
    color: var(--black);
    text-shadow: 1px 1px var(--white);
    font-weight: 600;
    white-space: nowrap;
    font-size: 6rem;
}

@media (max-width: 1400px) {
    .top-title {
        font-size: 5rem;
    }
}

@media (max-width: 1261px) {
    .top-title {
        font-size: 4.5rem;
    }
}

@media (max-width: 899px) {
    .top-title {
        font-size: 3rem;
    }
}

@media (max-width: 500px) {
    .top-title {
        font-size: 2.6rem;
    }
}

.strong-point-title {
    color: var(--black);
    text-shadow: 1px 1px var(--white);
    text-align: left;
    display: inline-block;
    margin: auto;
    font-size: 5rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 1261px) {
    .strong-point-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 899px) {
    .strong-point-title {
        font-size: 2rem;
    }
}

@media (max-width: 500px) {
    .strong-point-title {
        font-size: 1.5rem;
    }
}

/* メッセージ */
.message-img {
    grid-column: 1 / -1;
    grid-row: 3;
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        url(../img/background/home-office-2804083_1280.jpg), no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    animation-name: fadeUpAnime;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(1000px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-img::before {
    content: "";
    display: block;
    padding-top: 5%;
}

.message-imgTrigger {
    opacity: 0;
}

.message-text {
    margin: 0 auto;
    padding-bottom: 5%;
    display: inline-block;
    text-align: left;
    color: var(--black);
    text-shadow: 2px 2px var(--white);
    font-size: 3.5rem;
    font-family: "Noto serif JP";
    white-space: nowrap;
}

@media (max-width: 1261px) {
    .message-text {
        font-size: 2.5rem;
        white-space: wrap;
    }
}

@media (max-width: 899px) {
    .message-text {
        font-size: 2rem;
    }
}

@media (max-width: 770px) {
    .message-text {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .message-text {
        display: none;
    }
}

.message-text-m {
    display: none;
}

@media (max-width: 600px) {
    .message-img .inner-container {
        text-align: center;
    }

    .message-text-m {
        margin-left: 3%;
        padding-bottom: 5%;
        display: inline-block;
        text-align: left;
        font-size: 1.4rem;
        font-family: "Noto serif JP";
        white-space: nowrap;
    }
}

/* 取扱い業務 */
.business-handling {
    grid-column: 1 / -1;
    grid-row: 4;
    padding-bottom: 30px;
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
        url(../img/background/notebook-614213_1920.jpg);
    background-size: cover;
    background-position: center;
    text-align: center;
}

.business-handling .inner-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 100px 1fr 100px;
    grid-row-gap: 5em;
}

@media (max-width: 1261px) {
    .business-handling .inner-container {
        grid-template-rows: 100px 1fr 60px;
        grid-row-gap: 1em;
    }
}

@media (max-width: 500px) {
    .business-handling .inner-container {
        grid-template-rows: 60px 1fr 60px;
        grid-row-gap: 1em;
    }
}

/* businessのgrid */
.business-handling-top {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.business-handling-title {
    grid-column: 5 / 9;
}

@media (max-width: 1261px) {
    .business-handling-title {
        grid-column: 2 / -2;
    }
}

@media (max-width: 899px) {
    .business-handling-title {
        grid-column: 3 / -3;
    }
}

@media (max-width: 500px) {
    .business-handling {
        grid-row-gap: 20px;
        padding-bottom: 0px;
    }
}

/* 事業内容リスト */

.item-list {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(401px, 1fr));
    grid-auto-rows: 1fr;
    grid-column-gap: 3em;
    grid-row-gap: 3em;
    margin-top: 30px;
    text-align: center;
    justify-content: center;
    animation-name: fadeUpAnime;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(500px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-listTrigger {
    opacity: 0;
}

@media (max-width: 1261px) {
    .item-list {
        grid-template-columns: repeat(auto-fit, minmax(369px, 1fr));
    }
}

@media (max-width: 899px) {
    .item-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        grid-auto-rows: 1fr;
        grid-gap: 1em;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
        justify-content: center;
    }

    .business-top,
    .item-list {
        margin-top: 0px;
    }
}

@media (max-width: 500px) {
    .item-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-auto-rows: 1fr;
        grid-gap: 1em;
        padding: 0 1%;
        text-align: center;
        justify-content: center;
    }
}

/* item-listのgrid */
.item {
    position: relative;
    height: 300px;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
}

.item-bg {
    position: relative;
    height: 300px;
    border-radius: 10px;
    background-position: center;
    background-size: cover;
    transition: 0.3s ease-in-out;
    z-index: 0;
}

.item-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
    color: var(--textcolor);
    background-color: rgba(77, 182, 172, 0.8);
    pointer-events: none;
}

.item-title h2,
.item-title p {
    font-family: "游明朝", "Noto Serif JP";
    margin: auto;
}

.item-title h2 {
    font-size: 3rem;
}

.item-en {
    font-size: 2rem;
}

.item-en span {
    margin: 0.2rem;
}

/* businessのアニメーション */

.business-handling-top {
    animation-name: fadeUpAnime;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(500px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.business-handling-topTrigger {
    opacity: 0;
}

.inheritance {
    background-image: url(../img/thumbnail/signature-8803700_1280.png);
}

.construction {
    background-image: url(../img/thumbnail/architecture-1541086_1920.jpg);
}

.adult {
    background-image: url(../img/thumbnail/wine-8346641_1280.jpg);
}

.immigration {
    background-image: url(../img/thumbnail/passport-315266_1280.jpg);
}

.inheritance:hover {
    background: linear-gradient(rgba(77, 182, 172, 0.7), rgba(77, 182, 172, 0.7)),
        url(../img/thumbnail/signature-8803700_1280.png);
    height: 300px;
    border-radius: 10px;
    background-position: center;
    background-size: cover;
    transition: 0.3s ease-in-out;
}

.construction:hover {
    background: linear-gradient(rgba(77, 182, 172, 0.7), rgba(77, 182, 172, 0.7)),
        url(../img/thumbnail/architecture-1541086_1920.jpg);
    height: 300px;
    border-radius: 10px;
    background-position: center;
    background-size: cover;
    transition: 0.3s ease-in-out;
}

.adult:hover {
    background: linear-gradient(rgba(77, 182, 172, 0.7), rgba(77, 182, 172, 0.7)),
        url(../img/thumbnail/wine-8346641_1280.jpg);
    height: 300px;
    border-radius: 10px;
    background-position: center;
    background-size: cover;
    transition: 0.3s ease-in-out;
}

.immigration:hover {
    background: linear-gradient(rgba(77, 182, 172, 0.7), rgba(77, 182, 172, 0.7)),
        url(../img/thumbnail/passport-315266_1280.jpg);
    height: 300px;
    border-radius: 10px;
    background-position: center;
    background-size: cover;
    transition: 0.3s ease-in-out;
}

.handling-link {
    grid-column: 3 / -3;
    grid-row: 3;
    width: 50%;
    margin-left: 25%;
}

@media (max-width: 899px) {
    .item {
        height: 200px;
    }

    .item-bg {
        height: 200px;
    }

    .item-title {
        height: 45px;
    }

    .item-title h2 {
        font-size: 2rem;
    }

    .item-en {
        font-size: 1rem;
    }

    .handling-link {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 500px) {
    .item {
        height: 100px;
    }

    .item-bg {
        height: 100px;
    }

    .item-title {
        height: 45px;
    }

    .item-en {
        font-size: 1rem;
        line-height: 10px;
    }

    .handling-link {
        width: 100%;
        margin-left: 0;
    }
}

/* 料金表のwrap */
.price-wrap {
    grid-column: 1 / -1;
    grid-row: 5;
    height: auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, auto);
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
        url(../img/thumbnail/business-861325_1280.jpg);
    background-size: cover;
    background-position: bottom;
}

@media (max-width: 899px) {
    .price-wrap {
    }
}

/* 料金表 */
.price {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-top: 30px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 100px repeat(2, auto);
    grid-row-gap: 1em;
    justify-content: center;
    animation-name: fadeUpAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(1000px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.priceTrigger {
    opacity: 0;
}

@media (max-width: 500px) {
    .price {
        padding: 0;
        grid-template-rows: 60px repeat(2, auto);
    }
}

/* priceのgrid */
.price-title {
    grid-column: 5 / 9;
    grid-row: 1;
    margin-top: 20px;
}

@media (max-width: 1261px) {
    .price-title {
        grid-column: 2 / -2;
    }
}

@media (max-width: 899px) {
    .price-title {
        grid-column: 3 / -3;
        margin-top: 10px;
    }
}

.price .item-list {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    grid-column-gap: 3em;
    grid-row-gap: 3em;
    text-align: center;
    justify-content: center;
    animation-name: fadeUpAnime;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@media (max-width: 1261px) {
    .price .item-list {
        grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
        grid-column-gap: 2em;
        grid-row-gap: 2em;
    }
}

@media (max-width: 899px) {
    .price .item-list {
        grid-template-columns: repeat(auto-fit, minmax(219px, 1fr));
    }
}

@media (max-width: 500px) {
    .price .item-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-column-gap: 1em;
        grid-row-gap: 1em;
    }
}

.price .item {
    height: 75px;
    border-radius: 10px;
}

.price .item-title {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.p-inheritance,
.p-construction,
.p-adult {
    background-color: var(--sub1);
}

.cargo-permit-title,
.p-immigration,
.technical-intern-title {
    background-color: var(--sub5);
}

.p-creating-various,
.p-company,
.p-others {
    background-color: var(--main);
}

.price .item:hover {
    border: 1px solid var(--white);
    opacity: 0.8;
    transition: 0.3s ease-in-out;
}

.cargo-permit-title h2,
.technical-intern-title h2 {
    font-size: 2rem;
}

@media (max-width: 770px) {
    .cargo-permit-title h2,
    .technical-intern-title h2 {
        font-size: 1.8rem;
    }
}

.price-link {
    grid-column: 3 /-3;
    grid-row: 3;
    width: 50%;
    margin-top: 30px;
    margin-left: 25%;
    margin-bottom: 5%;
}

@media (max-width: 899px) {
    .price .item-title {
        height: 75px;
    }

    .price-link {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 770px) {
    .others {
        display: none;
    }

    .p-inheritance,
    .p-construction {
        background-color: var(--sub1);
    }

    .p-adult,
    .cargo-permit-title {
        background-color: var(--sub2);
    }

    .p-immigration,
    .technical-intern-title {
        background-color: var(--sub5);
    }

    .p-creating-various,
    .p-company,
    .p-others {
        background-color: var(--main);
    }
}

@media (max-width: 500px) {
    .price .item {
        height: 50px;
    }

    .price .item-title {
        height: 50px;
    }

    .cargo-permit-title h2,
    .technical-intern-title h2 {
        font-size: 1.5rem;
        line-height: 2.5rem;
    }

    .price-link {
        width: 100%;
        margin: 0 auto;
        margin-bottom: 5%;
    }
}

/* 解決事例 */
.case-studies-wrap {
    grid-column: 1 / -1;
    grid-row: 6;
    height: auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
        url(../img/thumbnail/business-861325_1280.jpg);
    background-size: cover;
    background-position: bottom;
}

.case-studies {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-top: 30px;
    padding-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 100px repeat(2, auto);
    grid-row-gap: 1em;
    justify-content: center;
    animation-name: fadeUpAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(1000px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-studiesTrigger {
    opacity: 0;
}

@media (max-width: 500px) {
    .case-studies {
        padding: 0;
        grid-template-rows: 60px repeat(2, auto);
    }
}

/* case-studiesのgrid */
.case-studies-title {
    grid-column: 5 / 9;
    grid-row: 1;
    margin-top: 20px;
}

@media (max-width: 1261px) {
    .case-studies-title {
        grid-column: 2 / -2;
    }
}

@media (max-width: 899px) {
    .case-studies-wrap {
        grid-row-gap: 1em;
    }
    .case-studies-title {
        grid-column: 3 / -3;
        margin-top: 10px;
    }
    .case-studies .item-title {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 60px;
    }
}

.case-studies .item-title h2 {
    line-height: 75px;
}

@media (max-width: 500px) {
    .case-studies .item-title {
        height: 45px;
    }

    .case-studies .item-title h2 {
        line-height: 45px;
    }
}

.case-studies-link {
    grid-column: 3 / -3;
    width: 50%;
    margin-top: 30px;
    margin-left: 25%;
}

@media (max-width: 899px) {
    .case-studies-link {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 500px) {
    .case-studies-link {
        width: 100%;
        margin: 0 auto;
        margin-bottom: 5%;
    }
}

/* 事務所概要 */
.office-wrap {
    grid-column: 1 / -1;
    grid-row: 7;
    background: linear-gradient(var(--sub11), var(--sub11));
    color: var(--white);
    height: auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-row-gap: 30px;
    text-align: center;
}

.office {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 100px repeat(2, auto);
    grid-row-gap: 10px;
    justify-content: center;
    animation-name: fadeUpAnime;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(1000px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.officeTrigger {
    opacity: 0;
}

.office-title {
    grid-column: 5 / 9;
    grid-row: 1;
    margin-top: 20px;
}

@media (max-width: 1261px) {
    .office-title {
        grid-column: 2 / -2;
    }
}

@media (max-width: 899px) {
    .office-title {
        grid-column: 3 / -3;
        margin-top: 10px;
    }
}

.address {
    grid-column: 3 / -3;
    grid-row: 2;
    padding-bottom: 30px;
}

@media (max-width: 500px) {
    .address {
        grid-column: 2 / -2;
        padding-bottom: 20px;
    }
}

.address-content {
    text-align: center;
}

.address-content span {
    margin: 0.3rem;
}

.address-content p {
    display: inline-block;
    text-align: left;
    color: var(--black);
    font-size: 2rem;
    font-family: "Noto Sans JP";
}

@media (max-width: 899px) {
    .address-content p {
        font-size: 1.5rem;
    }
}

@media (max-width: 500px) {
    .address-content p {
        white-space: nowrap;
    }
}

.map {
    grid-column: 2 / -2;
    grid-row: 3;
    padding-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-auto-rows: 1fr;
    grid-gap: 5em;
    text-align: center;
    justify-content: center;
}

.map-box {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.map-box p {
    color: var(--black);
    font-size: 2rem;
}

.office-map {
    width: 80%;
    height: 330px;
    margin-top: 10px;
}

@media (max-width: 899px) {
    .map {
        grid-column: 1 / -1;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        grid-gap: 0;
    }

    .map-box p {
        font-size: 1.5rem;
    }

    .office-map {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 500px) {
    .map-box {
        padding-left: 15px;
        padding-right: 15px;
        margin-top: -5px;
    }

    .office-map {
        height: 150px;
    }
}

.office-link {
    grid-column: 3 / -3;
    width: 50%;
    margin-left: 25%;
    grid-row: 4;
}

@media (max-width: 899px) {
    .office-link {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 500px) {
    .office-link {
        width: 100%;
        margin: 0 auto;
        margin-bottom: 5%;
    }
}

/* お問い合わせ */
.contact {
    grid-column: 1 / -1;
    grid-row: 8;
    background: linear-gradient(var(--gray), var(--gray));
    color: var(--white);
    height: auto;
    text-align: center;
}

.contact-box {
    text-align: center;
    margin: 2vh auto;
    padding-top: 1vh;
    padding-bottom: 1vh;
    background-color: var(--white);
}

.contact .inner-container {
    flex-direction: column;
}

.contact-title,
.contact-tel {
    color: var(--black);
    position: relative;
    z-index: 1;
}

.contact-title {
    font-size: 3rem;
}

.contact-title::after {
    position: absolute; /*positionをabsoluteに指定*/
    content: "";
    background-color: var(--sub4); /*下線の色*/
    width: 22rem; /*線の幅*/
    height: 3px; /*線の太さ*/
    bottom: 0rem; /*線のタテ位置*/
    left: 50%; /*線のヨコ位置*/
    transform: translateX(-50%); /*線のヨコ位置*/
    border-radius: 10px;
    opacity: 1;
    z-index: -1;
}

.contact-tel {
    font-size: 5rem;
    font-weight: 600;
}

.contact-tel::after {
    position: absolute; /*positionをabsoluteに指定*/
    content: "";
    background-color: var(--sub4); /*下線の色*/
    width: 36rem; /*線の幅*/
    height: 1.5rem; /*線の太さ*/
    bottom: 1rem; /*線のタテ位置*/
    left: 50%; /*線のヨコ位置*/
    transform: translateX(-50%); /*線のヨコ位置*/
    border-radius: 10px;
    opacity: 0.8;
    z-index: -1;
}

.contact-text {
    font-size: 1rem;
    color: var(--black);
}

.contact-text span {
    margin-left: 0.5rem;
}

.form-btn {
    text-decoration: none;
}

.form-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
    margin: auto;
    background-color: var(--white);
    border: 1px solid var(--black);
    border-radius: 5px;
}

.form-img:hover {
    font-style: italic;
    font-weight: 600;
    text-shadow: var(--main) 1px 1px;
    transition: 0.3s ease-in-out;
}

.form-img img {
    width: 20%;
    padding: 0.5vh;
    object-fit: contain;
}

.form-img p {
    color: var(--black);
    font-size: 1.6rem;
    padding: 0.5vh;
}

@media (max-width: 770px) {
    .form-img {
        width: 40%;
    }

    .form-img p {
        font-size: 1.4rem;
    }
}

@media (max-width: 500px) {
    .contact .inner-container {
        width: 345px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-title::after {
        position: absolute; /*positionをabsoluteに指定*/
        content: "";
        background-color: var(--sub4); /*下線の色*/
        width: 16rem; /*線の幅*/
        height: 3px; /*線の太さ*/
        bottom: 0rem; /*線のタテ位置*/
        left: 50%; /*線のヨコ位置*/
        transform: translateX(-50%); /*線のヨコ位置*/
        opacity: 1;
        z-index: -1;
    }

    .contact-tel {
        font-size: 3rem;
        font-weight: 600;
    }

    .contact-tel::after {
        position: absolute; /*positionをabsoluteに指定*/
        content: "";
        background-color: var(--sub4); /*下線の色*/
        width: 22rem; /*線の幅*/
        height: 0.5rem; /*線の太さ*/
        bottom: 1rem; /*線のタテ位置*/
        left: 50%; /*線のヨコ位置*/
        transform: translateX(-50%); /*線のヨコ位置*/
        opacity: 0.8;
        z-index: -1;
    }

    .form-img {
        display: flex;
        justify-content: center;
        width: 50%;
        margin: auto;
        background-color: var(--white);
        border: 1px solid var(--black);
    }

    .form-img img {
        width: 20%;
        padding: 0.5vh;
        object-fit: contain;
    }

    .form-img p {
        color: var(--black);
        font-size: 1.2rem;
        padding: 0.5vh;
    }
}

/* フッター */
.page-foot {
    grid-column: 1 / -1;
    grid-row: 9;
    background: linear-gradient(var(--main), var(--main));
    color: var(--white);
    display: grid;
    grid-row-gap: 30px;
    text-align: center;
}

.page-foot a {
    text-decoration: none;
    color: var(--white);
}

.page-foot .inner-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 1fr;
}

.f-nav-title {
    font-size: 2.5rem;
    font-family: "Noto Sans JP";
}

.f-nav-title:hover {
    font-style: oblique;
    text-shadow: 2px 2px var(--black);
    transition: 0.5s;
}

.f-nav-list {
    text-align: left;
    padding: 10px;
}

@media (max-width: 500px) {
    .f-nav-list {
        padding: 0px;
        column-count: 2;
        white-space: wrap;
    }
}

.f-nav-list li {
    list-style: none;
    margin-bottom: 5%;
}

.f-nav-text {
    position: relative;
    color: var(--white);
    font-size: 1.4rem;
    z-index: 1;
}

.f-nav-text:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    /*テキストからの距離*/
    width: 0%;
    /*初期状態では下線非表示*/
    height: 100%;
    /*下線の高さ*/
    background: var(--white);
    /*下線の色*/
    border-radius: 5px;
    z-index: -1;
    transition: all 0.4s;
    /*アニメーション速度*/
}

.f-nav-text:hover {
    color: var(--black);
    text-shadow: 2px 2px var(--white);
    font-style: oblique;
    transition: all 0.4s;
}

@media (max-width: 500px) {
    .flow-nav .f-nav-list {
        column-count: 2;
        padding: 0px;
    }

    .flow-nav .f-nav-list li {
        padding-top: 5px;
        margin-bottom: 5px;
    }

    .flow-nav .f-nav-text {
        white-space: nowrap;
    }
}

.f-nav-list a:hover .f-nav-text:after {
    width: 105%;
    box-shadow: 2px 2px var(--black);
    /*下線の影*/
    /*hover時に表示*/
}

/* page-footのgrid */
.footer-box {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-top: 80px;
    display: flex;
    text-align: center;
    justify-content: space-between;
    white-space: nowrap;
}

.office-info {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.office-info-wrap {
    display: inline-block;
    text-align: left;
}

.footer-logo {
    width: 200px;
}

.f-office-name {
    font-size: 2.5rem;
    font-family: "Noto Sans JP";
}

.office-address {
    margin: 0.3em;
}

.office-text {
    font-size: 2rem;
}

.office-time {
    margin-left: 5em;
}

.office-area {
    font-size: 1.7rem;
}

.office-area span {
    margin-left: 6em;
}

.contact-link {
    text-align: center;
    line-height: 30px;
    margin: 10px 0;
    height: 35px;
    width: 180px;
    border-radius: 19px;
    text-decoration: none;
    font-size: 1.6rem;
    line-height: 30px;
    color: var(--main);
    background-color: var(--sub10);
    border: solid 3px var(--white);
}

.contact-link:hover {
    color: var(--black);
    text-shadow: 1px 1px var(--white);
    border: solid 3px var(--black);
    font-style: oblique;
    transition: 0.5s;
}

.handling-nav {
    text-align: start;
}

.price-nav {
    text-align: start;
}

.casestudies-nav {
    text-align: start;
}

.office-nav {
    text-align: start;
}

.contact-nav {
    text-align: start;
    margin-left: 10px;
}

.copy {
    grid-column: 1 / -1;
    grid-row: 3;
}

.copy p {
    font-size: 2rem;
}

@media (max-width: 1261px) {
    .page-foot .inner-container {
        width: 90%;
        margin: auto;
    }

    .footer-box {
        justify-content: space-around;
    }

    .f-office-name {
        font-size: 1.5rem;
    }

    .office-text {
        font-size: 1rem;
    }
    .office-area {
        font-size: 1rem;
    }

    .f-nav-title {
        font-size: 1.5rem;
    }

    .f-nav-text {
        font-size: 1rem;
    }
}

@media (max-width: 899px) {
    .footer-box {
        flex-direction: column;
        margin-top: 2%;
        margin-left: 5%;
    }

    .contact-link {
        margin-top: 7%;
        margin-left: 1%;
    }

    .handling-nav {
        margin-top: 3%;
    }

    .contact-link-btn {
        display: none;
    }

    .office-info-wrap {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: 50px 1fr;
    }

    .f-office-name {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .office-text {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 1.2rem;
    }
    .office-area {
        font-size: 1.2rem;
    }

    .handling-nav,
    .price-nav,
    .casestudies-nav,
    .office-nav,
    .contact-nav {
        display: none;
    }

    .copy p {
        font-size: 1.3rem;
    }
}

@media (max-width: 500px) {
    .footer-box {
        flex-direction: column;
        margin-top: 2%;
        margin-left: 2%;
    }

    .copy {
        margin-top: 10px;
    }

    .copy p {
        font-size: 1rem;
    }
}

/* TOPへスクロールのボタン */
#page_top {
    width: 80px;
    height: 80px;
    position: fixed;
    right: 2px;
    bottom: 60px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--main);
    opacity: 1;
}

#page_top a {
    position: relative;
    display: block;
    width: 80px;
    height: 60px;
    text-decoration: none;
}

#page_top a::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f102";
    font-size: 2.5rem;
    color: var(--white);
    text-shadow: 2px 2px var(--black);
    position: absolute;
    width: 20px;
    height: 20px;
    top: -15px;
    bottom: 0;
    right: 0;
    left: -8px;
    margin: auto;
    text-align: center;
}

#page_top a::after {
    content: "PAGE TOP";
    font-size: 1.3rem;
    color: var(--white);
    text-shadow: 2px 2px var(--black);
    position: absolute;
    top: 40px;
    bottom: 0;
    right: 0;
    left: -8px;
    margin: auto;
    text-align: center;
}
