html {
            scroll-behavior: smooth;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Noto Sans JP', sans-serif;
            font-optical-sizing: auto;
            font-size: 18px;
            line-height: 1.8;
            color: #333;
            background: #DBECF6;
        }

        .header {
            background: #F5F5F5;
            padding: 20px 0;
            box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
        }

        .header-content {
            margin: 0 auto;
            justify-content: space-between;
            align-items: center;
            display: flex;
            flex-wrap: wrap;
        }

        .logo {
    display: flex;
    gap: 15px;
    padding: 0 0 0 20px;
    text-decoration: none;
    flex-grow: 1;
}

        .logo-mark img{
            height: 80px;
        }

        .logo-text {
            font-size: 30px;
            line-height: 1.3;
            color: #0c0c0c;
            font-weight: bold;
        }

        .logo-ken {
            margin-left: auto;
            padding-right: 10px;
        }

        .logo-ken img{
            height: 80px;
        }

        .nav {
            display: flex;
            gap: 0;
            background: #B4CDE3;
            justify-content: center;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .nav a {
            text-decoration: none;
            color: white;
            font-size: 18px;
            font-weight: 400;
            padding: 20px 24px;
            transition: all 0.3s;
            border-left: 2px solid #f8f9fa;
        }

        .nav a.nav-apply-btn {
            background: #ff8c00;
            border-right: 2px solid #f8f9fa;
        }

        .nav a:hover {
            background: #6E8897;
            color: white;
        }

        .nav a.nav-apply-btn:hover {
            background: #f70;
            color: white;
        }

        .nav a.active {
            background: #6E8897;
            color: white;
        }

        .hero {
            background: #F5F5F5;
            padding: 20px 20px 40px;
            width: 100%;
        }

/* link.html クッションページ用スタイル */
.link-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #DBECF6;
    text-align: center;
    min-height: 50vh;
}

.link-content-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
    max-width: 600px;
    width: 100%;
}

.link-content-box h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.link-content-box p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
    word-break: break-all;
}

.link-page-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.link-page-button:hover {
    background-color: #0056b3;
}

        .hero-item {
            text-align: center;
        }

        .hero-item img {
            width: 70%;
        }

        .top-button {
            text-align: center;
        }

        .footer-button {
            text-align: center;
            margin-top: 15px;
        }

        .bene-button {
            text-align: center;
            margin-top: 50px;
        }

        .threeupcycle {
            display: flex;
            justify-content: space-around; 
            align-items: center;
        }

        .threeupcycle-item {
            flex: 1;
        }

        .threeupcycle-item img {
            width: auto;
            max-width: 100%;
            height: auto;
            display: block;
            margin-right: auto;
            margin-left: 10px;
            padding-left: 15px;
            }

        .check-title {
            font-weight: bold;
            padding-top: 30px;
        }

        .shinsa {
            display: flex;
            justify-content: space-around; 
        }

        .shinsa-item {
            width: 50%;
            }

        .shinsa-item ul {
            font-weight: bold;
            }

        .shinsa-img {
            text-align: right;
            }

        .shinsa img {
            width: 70%;
            }
            
        .check-item {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 20px 10px 0;
        }

        .check-content {
            font-weight: bold;
        }

        .about-content p {
            padding-left: 30px;
            padding-bottom: 15px;
        }

        .check-no1-2 {
            font-weight: bold;
            font-size: 16px;
            color: white;
            background: #6E8897;
            border-radius: 999px;
            display: flex;
            box-sizing: border-box;
            width: 25px;
            height: 25px;
            text-align: center;
            align-items: center;
            text-decoration: none;
            transition: all 0.3s;
            justify-content: center;
        }

        .check-no3 {
            font-weight: bold;
            font-size: 16px;
            color: white;
            background: #51B7EA;
            border-radius: 999px;
            display: flex;
            box-sizing: border-box;
            width: 25px;
            height: 25px;
            text-align: center;
            align-items: center;
            text-decoration: none;
            transition: all 0.3s;
            justify-content: center;
        }

        .check-no4 {
            font-weight: bold;
            font-size: 16px;
            color: white;
            background: #81B746;
            border-radius: 999px;
            display: flex;
            box-sizing: border-box;
            width: 25px;
            height: 25px;
            text-align: center;
            align-items: center;
            text-decoration: none;
            transition: all 0.3s;
            justify-content: center;
        }

        .check-no5 {
            font-weight: bold;
            font-size: 16px;
            color: white;
            background: #E28832;
            border-radius: 999px;
            display: flex;
            box-sizing: border-box;
            width: 25px;
            height: 25px;
            text-align: center;
            align-items: center;
            text-decoration: none;
            transition: all 0.3s;
            justify-content: center;
        }

        .kubun {
            display: flex;
            align-items: center;
            justify-content: space-around; 
            margin-bottom: 20px;
        }

        .kubun-item {
            width: 50%;
            }

        .kubun-item img {
            width: 50%;
            }

        .kubun-item p {
            margin-left: -150px;
            }

        .kubun-premium {
            font-weight: bold;
            font-size: 25px;
            color: #E5B63F;
            }

        .kubun-advance {
            font-weight: bold;
            font-size: 25px;
            color: #93959A;
            }

        .cta-button {
            display: inline-block;
            position: static;
            background: #ff8c00;
            color: white;
            padding: 15px 80px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: bold;
            font-size: 25px;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgb(255 140 0 / 30%);
        }

        .cta-button:hover {
            background: #f70;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgb(255 140 0 / 40%);
        }

        .link-button {
            display: inline-block;
            position: static;
            background: #6E8897;
            color: white;
            padding: 15px 80px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: bold;
            font-size: 20px;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgb(0 0 0 / 30%);
        }

        .link-button:hover {
            background: #576D79;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgb(0 0 0 / 40%);
        }

        .circle-button {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
        }

        .circle-button.show {
            opacity: 1;
            visibility: visible;
        }

        .circle-button-fix a {
            font-weight: bold;
            font-size: 20px;
            color: white;
            background: #ff8c00;
            border-radius: 999px;
            display: flex;
            box-sizing: border-box;
            width: 120px;
            height: 120px;
            text-align: center;
            align-items: center;
            text-decoration: none;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgb(255 140 0 / 30%);
            justify-content: center;
        }

        .circle-button-fix a:hover {
            background: #f70;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgb(255 140 0 / 40%);
        }

        .container {
            max-width: 900px;
            margin: -30px auto 10px;
            padding: 0 20px;
        }

        .section {
            background: white;
            margin: 40px auto;
            padding: 50px 40px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
        }

        .section-title {
            color: #0C0C0C;
            font-size: 32px;
            margin-bottom: 0.2rem;
            border-bottom: 3px solid #6E8897;
            font-weight: bold;
        }

        .about-content {
            gap: 20px;
            margin: 30px 0;
            padding: 10px 30px 30px;
            background: #f8f9fa;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
            align-items: center;
        }

        .about-content h3 {
            color: #6E8897;
            font-size: 24px;
            margin: 15px 0;
            padding-left: 15px;
            border-left: 8px solid #6E8897;
        }

        .about-content ul {
            margin: 15px 0 15px 30px;
        }

        .about-content li {
            margin: 10px 0;
            color: #555;
        }

        .benefits , .process {
            background: white;
            margin-top: -90px;
        }

        .benefits p {
            padding-top: 20px;
        }

        .benefit-item {
            margin: 60px 0;
            padding: 30px;
            background: #f8f9fa;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
            flex-wrap: wrap;
            align-items: center;
        }

        .benefit-number {
            position: static; 
            margin-top: -60px; 
            margin-left: -15px;
            color: #6E8897;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
            flex-shrink: 0;
            font-family: Oswald, sans-serif;
            font-optical-sizing: auto;
            font-weight: 500;
            font-style: normal;
        }
        
        .benefit-content {
            display: flex;
            justify-content: space-around; 
            align-items: center;
        }

        .bc-item {
            width: 50%;
            }

        .bc-item img {
            width: 50%;
            margin-left: 150px;
            text-align: right;
            }
            
        .benefit-content h4 {
            color: #0C0C0C;
            font-size: 25px;
            margin: 30px -100px 10px 0;
        }

        .benefit-content p {
            font-size: 18px;
            margin-right: -100px;
        }

        .shinsei img {
            width: 100%;
        }

        ul.cstmlist li{
            position: relative;
            list-style-type: none;
            margin: 0 0 0 20px;
        }

        ul.cstmlist li::before {
            position: absolute;
            right: calc(100% + 0.5rem);  /* 0.5remは連番とテキストとの余白 */
            content: "（" counter(list-item) "）";
        }

        .process-step {
            padding: 30px;
            margin: 20px 0;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
        }

        .process-step h4 {
            background: #4a90e2;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            margin-bottom: 15px;
            display: inline-block;
        }

        .arrow-down {
            text-align: center;
            color: #4a90e2;
            font-size: 24px;
            margin: 10px 0;
        }

        .eligibility-box {
            background: #fff9e6;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
            border: 2px solid #ffd700;
        }

        .footer {
            background: #424242;
            color: white;
            padding: 0;
            text-align: center;
            margin-top: 120px;
        }

        .footer-contact {
            background: #737373;
            padding: 50px 40px;
            border-radius: 10px;
            margin: 0 auto;
            max-width: 870px;
            position: relative;
            top: -60px;
            z-index: 10;
            box-shadow: 0 4px 20px rgb(0 0 0 / 30%);
        }

        .footer-copyright {
            padding: 20px;
            margin-top: -60px;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .footer h3 {
            font-size: 32px;
        }

        .footer h4 {
            font-size: 24px;
            margin-bottom: 20px;
            color: #D5D5D5;
            line-height: 0.8em;
        }

        .footer p {
            margin: 10px 50px;
            font-size: 16px;
            text-align: left;
        }

        .footer a {
            text-decoration: none;
        }

        @media (width <= 768px) {
            .section {
                padding: 30px 20px;
            }

            .benefit-item {
                display: flex;
                flex-direction: column;
                text-align: center;
            }

            .nav {
                flex-direction: column;
                gap: 10px;
            }
        }

        .jimukyoku {
            border: solid 3px #fff;
            margin: 0 50px;
            padding: 10px;
            font-size: 24px;
            font-weight: bold; 
        }

        .mfm-button {
            display: inline-block;
            position: static;
    background-color: #fff;
            color: #6E8897;
            padding: 15px 80px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: bold;
            font-size: 25px;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgb(0 0 0 / 20%);
        }

        .mfm-button:hover {
            background: #f5f5f5;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgb(0 0 0 / 30%);
        }

        .tel {
            text-align: center;
            padding:5px 10px; 
            font-size: 40px;
            font-weight: bold;
            overflow-wrap: anywhere;
            margin-left: -25px;
        }

        .tel::before {
            content: '';
            display: inline-block;
            width: 45px;
            height: 44px;
            background-image: url("../images/tel.png");
            background-size: contain;
            vertical-align: sub;
            margin-right: 20px;

        }

        .footer-kome {
            list-style: none;
            padding-left: 1.5em;
            margin: 5px 50px;
            font-size: 16px;
            text-align: left;
        }

        .footer-kome li{
            text-indent: -1.5em;
        }

        .footer-kome li::before{
            content: "※";
            margin-right: 0.5em;
        }

        .shien-kikan {
            margin: 30px 0;
            padding: 10px 30px 30px;
            background: #f8f9fa;
            border-radius: 10px;
            color: #C0C0C0;
        }

        .shien-kikan h3 {
            color: #6E8897;
            font-size: 24px;
            margin: 15px 0;
            position: relative;
        }

        .shien-kikan h3::before {
            background-color: #6E8897; /* 線の色 */
            bottom: -10px; /* 線の位置 */
            content: "";
            height: 3px; /* 線の高さ */
            left: 50%; /* 線の中央寄せ */
            position: absolute;
            transform: translateX(-50%); /* 線の中央寄せ */
            width: 50px; /* 線の長さ */
        }

        .shien-kikan ul {
            display: flex;
            flex-wrap: wrap;
            padding: 10px 0 0 30px;
        }

        .shien-kikan li {
            list-style: none;
            margin-left: 20px;
            color: #666;
        }

        .footer-copyright ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding-top: 20px;
        }

        .footer-copyright li {
            list-style: none;
            margin-left: 20px;
            color: #fff;
        }

        .copy {
            margin: 20px 0;
        }

/* スマホ表示のみで有効な改行 */
.br-sp-only {
    display: none;
}

/* link.html クッションページ用スタイル */
.link-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #DBECF6;
    text-align: center;
    min-height: 50vh;
}

.link-content-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
    max-width: 600px;
    width: 100%;
}

.link-content-box h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.link-content-box p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
    word-break: break-all;
}

.link-page-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.link-page-button:hover {
    background-color: #0056b3;
}

/* --- ここからレスポンシブ対応 --- */
.hamburger-menu, .nav-sp {
    display: none;
}

@media (width <= 768px) {
    .br-sp-only {
        display: inline; /* brタグのデフォルトはinline */
    }

    body {
        font-size: 16px;
    }

    .header {
        padding: 10px 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 101;
        background: #F5F5F5;
        box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
    }

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

    .logo {
        padding: 0;
        gap: 10px;
        align-items: center;
    }

    .logo-mark img {
        height: 40px;
    }

    .logo-text {
        font-size: 14px;
        line-height: 1.4;
    }

    .logo-ken img {
        height: 40px;
    }

    /* PC用ナビゲーションを非表示 */
    .nav {
        display: none;
    }

    /* ハンバーガーメニューボタンの表示とスタイル */
    .hamburger-menu {
        display: block;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 103;
        position: relative;
    }

    .hamburger-menu span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #333;
        margin: 6px auto;
        transition: 0.4s;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* スマホ用ナビゲーションのスタイル */
    .nav-sp {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        background-color: rgb(255 255 255 / 98%);
        z-index: 102;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 80px 0 40px 0;
        overflow-y: auto;
        gap: 10px;

        /* アニメーションのための初期設定 */
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);

        /* 閉じる時のアニメーション: フェードアウトしてから移動 */
        transition: opacity 0.4s ease-in, transform 0s 0.4s, visibility 0s 0.4s;
    }

    .nav-sp.active {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);

        /* 開く時のアニメーション: スライドイン＆フェードイン */
        transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    }

    .nav-sp a {
        color: #333;
        font-size: 22px;
        padding: 15px 20px;
        text-decoration: none;
        font-weight: bold;
    }

    .nav-sp .nav-apply-btn {
        background: #ff8c00;
        color: white;
        border-radius: 8px;
        padding: 15px 20px;
        margin-top: 15px;
    }

    .nav-sp .nav-apply-btn:hover {
        background: #f70;
        color: white;
    }

    /* --- ヒーローセクション --- */
    .hero {
        padding: 10px;
        margin-top: 60px; /* ヘッダーの高さ分 */
    }

    .hero-item img {
        width: 100%;
    }

    /* --- コンテナとセクション --- */
    .container {
        margin: -10px auto 10px;
        padding: 0 10px;
    }

    .section {
        padding: 30px 15px;
        margin: 20px auto;
    }

    .section-title {
        font-size: 22px;
    }

    .about-content {
        padding: 15px;
    }

    .about-content h3 {
        font-size: 20px;
        padding-left: 10px;
    }

    .about-content p {
        padding-left: 10px;
    }

    /* --- 画像と文章の縦積み対応 --- */
    .threeupcycle,
    .shinsa,
    .benefit-content,
    .kubun {
        flex-direction: column;
    }

    .threeupcycle-item:first-child {
    order: 2;
} /* 文章 */
    .threeupcycle-item:last-child {
    order: 1;
    margin-bottom: 30px;
} /* 画像 */

    .shinsa-item:first-child {
    order: 1;
} /* 文章 */
    .shinsa-item:last-child {
    order: 2;
} /* 画像 */
    
    .benefit-content {
        display: contents;
    }

    .benefit-content .bc-item:first-child { /* 文章 */
        order: 2;
    }
    
    .bene-button {
        order: 3; /* ボタン */
        margin-top: 20px;
        width: 100%;
    }

    .bene-button .link-button {
        width: 100%;
        padding: 15px 10px;
        font-size: 14px;
    }

    .benefit-content .bc-item:last-child { /* 画像 */
        order: 4;
    }

    .kubun-item:first-child {
    order: 1;
} /* 画像 */
    .kubun-item:last-child {
    order: 2;
} /* 文章 */

    .threeupcycle-item,
    .shinsa-item,
    .kubun-item,
    .bc-item {
        width: 100% !important;
    }

    .threeupcycle-item img,
    .shinsa img,
    .kubun-item img,
    .bc-item img {
        width: 80%;
        margin: 20px auto 0;
        display: block;
        text-align: center;
    }
    
    .kubun-item p {
        margin-top: 30px;
        margin-left: 0;
        text-align: left;
    }
    
    .kubun-premium, .kubun-advance {
        font-size: 20px;
    }

    /* --- メリットセクション --- */
    .benefits, .process {
        margin-top: 20px;
    }

    .benefit-item {
        margin: 40px 0;
        padding: 15px;
    }

    .benefit-number {
        order: 1;
        margin-top: -45px;
        margin-left: -15px;
        font-size: 40px;
        align-self: flex-start;
    }

    .benefit-content h4,
    .benefit-content p {
        margin: 10px 0;
        text-align: left;
    }

    /* --- ボタン --- */
    .top-button {
        margin: 20px 0;
    }

    .cta-button {
        width: 100%;
        padding: 15px 10px;
        font-size: 18px;
    }

    .mfm-button {
        width: 100%;
        padding: 15px 10px;
        font-size: 18px;
    }

    .circle-button {
        bottom: 20px;
        right: 20px;
    }

    .circle-button-fix a {
        width: 80px;
        height: 80px;
        font-size: 14px;
    }

    /* --- フッター --- */
    .footer {
        margin-top: 40px;
    }

    .footer-contact {
        padding: 30px 15px;
        top: 0;
        border-radius: 0;
    }

    .footer-copyright {
        margin-top: 0;
        padding: 20px 10px;
    }

    .footer p {
        margin: 10px 0;
        text-align: left;
    }

    .jimukyoku {
        margin: 0;
        font-size: 18px;
    }

    .tel {
        margin-left: 0;
        font-size: 25px;
        text-align: center;
    }

    .shien-kikan ul {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 10px;
    }

    .shien-kikan li {
        margin-left: 0;
    }

    .footer-copyright ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .footer-copyright li {
        margin-left: 0;
    }

    .tel::before {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }

    .footer-kome {
        list-style: none;
        padding-left: 1.5em;
        margin: 5px 0;
        font-size: 16px;
        text-align: left;
        }

    .link-page-container {
        padding-top: 80px;
    }
    
}

/* PC表示では電話番号のリンクを無効化 */
.tel a {
    pointer-events: none;
    color: inherit;
    text-decoration: none;
}

/* スマホ表示（768px以下）で電話番号のリンクを有効化 */
@media screen and (width <= 768px) {
    .tel a {
        pointer-events: auto;
    }
}

.link-back-button {
    margin-top: 20px;
}

#link-main-nav a:last-child {
    border-right: 2px solid #f8f9fa;
}
