@charset "utf-8";

/* ---リセットcss--- */
* {
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

/* ---ベースcss開始--- */
#wrapper {
    max-width: 960px;
    margin: 0 auto;
    font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "MS PMincho", 'Noto Serif JP', serif;
    color: #1c1c1c;
    font-size: 95%;
}

img {
    border: 0;
    max-width: 100%;
}

h2 {
    color: #237db1;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

.h1-lead {
    line-height: 1.5em;
    font-size: 115%;
}

.h2-lead {
    margin: 15px;
    line-height: 1.8em;
    font-size: 105%;
}

a {
    color: #1c1c1c;
}

.sp {
    display: none;
}

/* --- ベースcss終了 --- */


/* --- ヘッダーcss開始 --- */
header {
    display: flex;
    justify-content: space-between;
}

#logo h1 img {
    width: 200px;
    margin: 10px 10px 0 0;
}

/* --- グローバルメニュー --- */
nav {
    width: 580px;
    margin: 25px 5px;
}

nav ul.g-navi {
    display: flex;
}

nav ul.g-navi li {
    position: relative;
}

nav ul.g-navi li a {
    display: block;
    width: 140px;
    margin-left: 8px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    color: #000;
}

/* --- サブメニュー --- */
nav ul.sub-menu {
    position: absolute;
    top: 100%;
    font-size: 80%;
    z-index: 999;
}

nav ul.sub-menu li a {
    width: 140px;
    height: 35px;
    line-height: 35px;
    background-color: #b3d4f3;
    border-top: 1px dotted #333;
}

/* --- カーソルホバー時 --- */
nav ul li a:hover {
    background-color: #237db1;
    color: #fff;
}

/* --- 電話アイコン --- */
.phone {
    height: 35px;
    line-height: 35px;
    width: 130px;
    margin: 15px 5px;
    padding-right: 10px;
    text-align: right;
    border-radius: 5px;
    background-color: #33adbc;
    background-image: url(../images/phone.svg);
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: 10%;
}

.phone div.number a {
    margin-left: 3px;
    font-weight: bold;
    color: #fff;
    font-size: 90%;
}

/* --- ハンバーガーメニューアイコン --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    cursor: pointer;
    margin: 0 10px;
    background-color: #f0f0f0;
    border-radius: 20%;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background-color: #33adbc;
    border-radius: 2px;
}

/* --- レスポンシブ対応 --- */
@media screen and (max-width: 960px) {
    #wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* header {
        display: block;
        text-align: center;
    } */
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    #logo {
        margin: 5px auto;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 15px;
        top: 10px;
    }

    nav {
        width: 100%;
        margin: 5px;
    }

    nav ul.g-navi {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #f0f0f0;
    }

    nav ul.g-navi li a {
        width: 100%;
        border-bottom: 1px solid #ccc;
    }

    nav ul.sub-menu {
        position: static;
        display: none;
    }

    nav ul.sub-menu li a {
        width: 100%;
    }

    .phone {
        width: 180px;
        margin: 0 auto;
        justify-content: center;
        margin-bottom: 10px;
        text-align: right;
        padding-right: 35px;
        background-position: 20%;
    }
}

/* --- リサイズ時：PC用ナビを再表示 --- */
@media screen and (min-width: 960px) {
    nav ul.g-navi {
        display: flex !important;
    }
}

/* --- ヘッダーcss終了 --- */


/* --- フローティングボタン開始  ---*/
.floating-button {
    background-color: #33adbc;
    color: white;
    border-radius: 15% 0 0 15%;
    cursor: pointer;
    position: fixed;
    top: 60px;
    right: 0;
    width: 50px;
    height: 50px;
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.floating-button i {
    font-size: 20px;
    margin-top: 5px;
}

.floating-button p {
    margin: 0;
    font-size: 9px;
}

.floating-button:hover {
    background-color: #237db1;
}

.floating-button p {
    display: block;
    font-size: 12px;
    font-weight: bold;
}

.floating-button:hover::after {
    opacity: 1;
}

/* --- フローティングボタン終了 --- */


/* --- フッターcss開始  ---*/
footer {
    background-color: #3b3b3b;
    color: #fff;
    padding: 20px 30px 50px 30px;
    position: relative;
}

footer a {
    color: #fff;
}

footer a:hover {
    color: rgb(255, 216, 41);
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-info,
.footer-links,
.footer-copy {
    width: 100%;
    text-align: center;
    margin: 5px 0;
}

.footer-info {
    text-align: left;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-links .link-group {
    width: 24%;
    position: relative;
}

.footer-links h4 {
    position: relative;
    padding-right: 15%;
    text-align: left;
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.footer-links .toggle-icon {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
    margin-top: 5px;
}

.footer-links li {
    margin: 5px 0;
    text-align: left;
    font-size: 80%;
}

.footer-copy {
    font-size: 0.9em;
    color: #fff;
}

/* --- トップへ戻るボタン --- */
.back-to-top {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #444;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: top;
    padding-top: 1px;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: #666;
}

.back-to-top::after {
    content: "Topへ";
    position: absolute;
    bottom: 5px;
    font-size: 12px;
    color: white;
}

/* --- タブレット対応 --- */
@media (max-width: 960px) and (min-width: 600px) {
    #wrapper {
        width: 100%;
        margin: o auto;
    }

    .footer-info {
        text-align: center;
        font-size: 90%;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-links .link-group {
        width: 35%;
        margin: 10px 30px;
    }

    .footer-links ul {
        display: none;
    }

    .footer-links .link-group.active ul {
        display: block;
    }

}

/* --- スマホ対応 --- */
@media (max-width: 599px) {
    #wrapper {
        width: 100%;
        margin: 0 auto;
    }

    .footer-info {
        text-align: center;
        font-size: 90%;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links .link-group {
        width: 80%;
        margin-bottom: 10px;
    }

    .footer-links ul {
        display: none;
    }

    .footer-links .link-group.active ul {
        display: block;
    }

}

/* --- フッター部分PC用 --- */
@media (min-width: 961px) {
    .footer-info {
        width: 24%;
        font-size: 90%;
    }

    .footer-links {
        width: 74%;
    }

    .footer-links .link-group {
        width: 24%;
        font-size: 90%;
        text-align: left;
    }

    .footer-links ul {
        display: block !important;
    }

    .footer-links .toggle-icon {
        display: none;
        /* PCでは「＋」を非表示 */
    }
}

/* --- フッターcss終了 --- */