@charset "UTF-8";
@import url("grid.css");

:root {
    /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #000;
    --link-color: #666;
    --linkhover-color: #999;
    --border-color: #ccc;
    --white-color: #fff;
}

video {
    max-width: 100%;
    height: auto;
    /*高さ自動*/
}

img {
    max-width: 100%;
    height: auto;
    /*高さ自動*/
}

a {
    display: block;
    color: var(--link-color);
    text-decoration-line: none;
}

a:hover {
    color: var(--linkhover-color);
}

a img:hover {
    opacity: 0.8;
}

.underline {
    border-bottom: 3px solid var(--base-color);
    padding-bottom: 0.5rem;
}

.center {
    text-align: center;
}

/*ヘッダー
-------------------------------------*/
.head {
    display: flex;
    flex-direction: row;
    padding: 1rem 0 0 0;
    align-items: center;
    /* 中央揃えを追加 */
}

.head h1 {
    padding: 1rem 0;
    font-weight: 700;
    white-space: nowrap;
    /* タイトルを一行に収める */
    display: flex;
    align-items: center;
}

.head h1 img.title-image {
    display: inline-block;
    width: auto;
    /* 必要に応じて調整 */
    height: 1em;
    /* テキストの高さに合わせる */
    margin-right: 0.1em;
    /* 画像とテキストの間に少しスペースを追加 */
}

.snsbox {
    margin-left: auto;
    font-size: 3.0rem;
    padding: 1rem 0 0 0;
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: right;
    list-style: none;
    margin-bottom: 0.5rem;
}

nav li {
    display: block;
    flex: 0 0 20%;
}

nav li a {
    text-decoration: none;
    text-align: right;
}

nav a:hover {
    text-decoration: underline;
}

nav a {
    text-decoration: none;
    text-align: center;
}

html {
    scroll-behavior: smooth;
}

@media screen and (min-width: 768px) {

    /* PC時はMENUボタンを非表示 */
    #open,
    #close {
        display: none !important;
    }

    #navi {
        display: block !important;
    }
}

@media screen and (max-width: 768px) {
    .head {
        flex-direction: column;
        text-align: left;
        margin-bottom: 20px;
    }

    .telbox {
        margin-left: 0;
        text-align: center;
    }

    .head #open,
    #close {
        position: absolute;
        top: 28px;
        right: 12px;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        padding-top: 0;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0;
    }

    /* スマホ時はMENUボタンを表示 */
    #open {
        display: block;
        background: url(../img/button.png);
        background-repeat: no-repeat;
        background-size: contain;
        width: 50px;
        height: 50px;
        border: none;
        position: absolute;
        top: 20px;
        right: 12px;
    }

    #close {
        display: block;
        background: url(../img/button2.png);
        background-repeat: no-repeat;
        background-size: contain;
        width: 50px;
        height: 50px;
        border: none;
        position: absolute;
        top: 20px;
        right: 12px;
    }

    /* スマホ時はメニューを非表示 */
    #navi {
        display: none;
    }
}

/*メイン画像
-------------------------------------*/
.mainimg {
    display: flex;
    justify-content: center;
    /* 水平方向に中央揃え */
    align-items: center;
    /* 垂直方向に中央揃え */
    height: 100%;
    /* 必要に応じて調整 */
}

.mainimg img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0 5rem 0;
}

main h6 {
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

main h6 img {
    display: inline-block;
    width: 16px;
    /* 画像の幅に応じて調整 */
    height: 16px;
    /* 画像の高さに応じて調整 */
    margin-right: 8px;
    /* アイコンとテキストの間隔 */
}

/*キャッチタイトル
-------------------------------------*/
h2.catch {
    text-align: center;
    color: var(--link-color);
    font-size: 4.0rem;
    margin-bottom: 3rem;
}

/*フッター
-------------------------------------*/
footer {
    background-color: var(--white-color);
    padding: 3rem 0;
}

footer h5 {
    border-bottom: 1px solid var(--border-color);
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: #222;
    color: white;
}

.copyright a {
    color: var(--base-color);
    text-decoration: none;
    display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}

#pagetop a {
    display: block;
    background: var(--link-color);
    color: var(--white-color);
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}

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

/*パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;
}

.breadcrumb li {
    list-style-type: none;
}

.breadcrumb li a {
    display: inline-block;
    color: var(--link-color);
}

/*ポイント・概要
-----------------------------------*/
.point {
    text-align: center;
    width: 70px;
    margin: auto;
}

/* 列の間に点線を追加 */
.service-col {
    position: relative;
}

.service-col:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: -6.25%;
    bottom: 30px;
    width: 1px;
    border-right: 1px dotted var(--border-color);
    border-right: 1px dotted #000;
}

/* 画面幅が768px以下の場合に点線を非表示にする */
@media screen and (max-width: 768px) {
    .col:not(:last-child)::after {
        display: none;
    }
}

#contact {
    color: #666; /* 白い文字 */
    padding: 40px 0;
    text-align: center;
}

#contact img {
    display: inline-block;
    width: 300px;
    /* 画像の幅に応じて調整 */
    margin-right: 8px;
    /* アイコンとテキストの間隔 */
}

/* フッター */
footer {
    background-color: #222;
    color: white;
    padding: 40px 0;
    text-align: left;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between; /* 左右に要素を配置 */
    align-items: center; /* アイコンを中央に配置 */
    flex-wrap: wrap;
}

footer img {
    display: inline-block;
    width: 80px;
    opacity: 0.4;
}

.footer-bottom {
    display: flex;
    justify-content: space-between; /* 左右に要素を配置 */
    align-items: center; /* アイコンを中央に配置 */
    width: 100%;
}

.company-info {
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.footer-bottom h6, .footer-bottom p {
        margin: 0;
    line-height: 1.5; /* 行間を調整 */
}

.social-links {
    display: flex;
    gap: 10px;
    margin-left: auto; /* アイコンを右寄せ */
    position: absolute;
    right: 0; /* Right end of the footer-container */
    top: 50%; /* Vertically center */
    transform: translateY(-50%); /* Adjust for centering */
}

.social-links a {
    display: block;
    margin-left: 10px;
}