:root {
    --black: #000;
    --white: #fff;
    --darkBlue: #1432aa;
    --lightBlue: #e7f8ff;
    --ctaRed: #e13000;
    --ctaRed-hover: #ff6c45;
    --regular: "UD新ゴ R", Arial, Helvetica, sans-serif;
    --medium: "UD新ゴ M", Arial, Helvetica, sans-serif;
    --bold: "UD新ゴ B", Arial, Helvetica, sans-serif;
}


.header {
    background-image: url(../img/Common/header_background.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 116px;
    box-shadow: 0 1px 3px rgba(142, 147, 164, 0.26);
    z-index: 100;
    position: sticky;
    top: -48px;

    font-size: 62.5% !important;
    font-family: "UD新ゴ R", "UD新ゴ M", "UD新ゴ B", Arial, Helvetica, sans-serif;
    font-style: normal;
    color: #000000;
    background-color: #fff;
    line-height: 1.5;

}

.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.header a {
  /* background-color: transparent; */
  text-decoration: none;
  /* color: inherit; */
}

.header_backgroundImage {
    width: 100%;
    height: 48px;
}

.header_nav {
    width: 100%;
    height: 68px;
    background-color: var(--black);
    border-radius: 48px 48px 0 0;
    padding: 16px 4.4%;
    transition: border-radius 0.2s ease;
}


/* 上部に来たら角丸0 */
.header_nav.is-sticky {
    border-radius: 0;
}

.nav_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger {
    display: none;
}

.header_logo a {
    display: block;
    height: 26px;
}

.header_logo img {
    width: auto;
    height: 26px;
}

.header_menu{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.header_navlist {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.header_navitem {
    /* color: var(--white) !important; */
    font-family: var(--medium);
    font-weight: bold;
    font-size: 16px;

}

.header_navitem a {
    color: var(--white) !important;
}

.header_navitem a:hover {
    color: #a7a7a7 !important;
}

.header_navitem:last-child a span{
    display: flex;
    align-items: flex-start;
}

.registeredTrademark {
    font-size: 12px;
}

.contact_button {
    display: block;
    width: 160px;
    height: 36px;
    color: var(--white);
    text-align: center;
    font-family: var(--bold);
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    background-color: var(--ctaRed);
    padding: 10px 32px;
    border-radius: 24px;
}

.contact_button:hover {
    background-color: var(--white);
    color: var(--ctaRed);
    box-shadow: inset 0 0 0 4px var(--ctaRed);
}

.contact_button-SP {
    display: none;
}

@media screen and (min-width: 769px) and (max-width: 1100px) {
    .header {
        background-image: url(../img/Common/header_background.jpg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        width: 100%;
        height: 108px;
        box-shadow: 0 1px 3px rgba(142, 147, 164, 0.26);
        z-index: 100;
        position: sticky;
        top: -48px;
    }
    
    .header_backgroundImage {
        width: 100%;
        height: 48px;
    }
    
    .header_nav {
        width: 100%;
        height: 60px;
        border-radius: 36px 36px 0 0;
        padding: 16px 4.4%;
        transition: border-radius 0.2s ease;
    }
    
    
    /* 上部に来たら角丸0 */
    .header_nav.is-sticky {
        border-radius: 0;
    }
    
    .nav_container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header_logo img {
        width: auto;
        height: 20px;
    }

    .header_logo a {
        display: block;
        height: 20px;
    }
    
    .header_menu{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    
    .header_navlist {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    
    .header_navitem {
        font-family: var(--medium);
        font-weight: bold;
        font-size: 11px;
    
    }

    .registeredTrademark {
        font-size: 10px;
    }
    
    .contact_button {
        display: block;
        width: auto;
        height: 28px;
        color: var(--white);
        text-align: center;
        font-family: var(--bold);
        font-weight: bold;
        font-size: 12px;
        line-height: 1;
        background-color: var(--ctaRed);
        padding: 8px 24px;
        border-radius: 24px;
    }
    
    .contact_button:hover {
        background-color: var(--white);
        color: var(--ctaRed);
        box-shadow: inset 0 0 0 4px var(--ctaRed);
    }
    
    .contact_button-SP {
        display: none;
    }
}

/* headerSP--------------------------------- */
@media screen and (max-width: 768px) {
    .header {
        width: 100%;
        /* 背景24px + ナビ72px (40+16+16) = 96px */
        height: 92px; 
        position: sticky;
        top: -24px; /* 背景画像の高さ分だけマイナス */
    }

    .header_backgroundImage {
        width: 100%;
        height: 24px;
    }

    .header_nav {
        /* アイコン40px + 上下パディング16px×2 = 72px */
        height: 68px;
        padding: 16px 4.4%;
        border-radius: 24px 24px 0 0;
    }

    /* ロゴの高さを40pxに固定 */
    .header_logo img {
        height: 22px !important;
        width: auto;
    }

    /* ハンバーガーアイコン本体 (高さ40px) */
    .hamburger {
        display: block;
        position: relative;
        z-index: 300;
        width: 36px; 
        height: 36px;
        background-color: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    /* 三本線の設定 (厚さ2px, 横幅36px, 左から2px) */
    .hamburger span {
        position: absolute;
        left: 3px;
        width: 30px;
        height: 2px;
        background-color: var(--white);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

  
    .hamburger span:nth-child(1) { top: 8px; }
    .hamburger span:nth-child(2) { top: 17px; }
    .hamburger span:nth-child(3) { top: 26px; }

    /* メニューが開いた時の「X」印アニメーション */
    .hamburger.is-active span:nth-child(1) {
        /* 中心(19px)へ移動: 19 - 7 = 12px移動 */
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-active span:nth-child(3) {
        /* 中心(19px)へ移動: 31 - 19 = 12px移動 */
        transform: translateY(-9px) rotate(-45deg);
    }


    /* メニュー本体（ノレン形式） */
    .header_menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--black);
        z-index: 250;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease-in-out;
        /* お問い合わせボタンを確実に消す */
        display: flex;
        flex-direction: column;
    }

    .header_menu.is-active {
        max-height: 500px;
        /* 内部の余白は0にして境界線を端まで飛ばす */
        padding: 0; 
    }

    /* お問い合わせボタン（メニュー内では非表示） */
    .header_menu .contact_button {
        display: none !important;
    }

    /* --- リスト全体のスタイル --- */
    .header_navlist {
        flex-direction: column;
        gap: 0; /* 境界線を入れるので隙間は0 */
        width: 100%;
    }

    /* --- 各リスト項目（縦並び・境界線） --- */
    .header_navitem {
        width: 100%;
        border-bottom: 1px solid rgba(105, 105,105,0.5); /* 境界線（薄い黒） */
        font-size: 14px;
        font-family: var(--regular);
        font-weight: 400;

    }

    /* 最初の項目の上にも境界線を入れる場合 */
    .header_navitem:first-child {
        border-top: 1px solid rgba(105, 105,105,0.5);
    }

    /* --- リンクエリア（左に文字、右に矢印） --- */
    .header_navitem a {
        display: flex;
        justify-content: space-between; /* 左右に振り分け */
        align-items: center;
        padding: 10px 6.4%; /* 左右余白をロゴ等に合わせる */
        color: var(--white);
        text-decoration: none;
        width: 100%;
        transition: background-color 0.2s;
    }

    /* タップ時の反応（お好みで） */
    .header_navitem a:active {
        background-color: rgba(0, 0, 0, 0.03);
    }

    /* --- 右側の「くの字」矢印 --- */
    .header_navitem a::after {
        content: '';
        width: 10px;
        height: 10px;
        border-top: 2px solid var(--white);
        border-right: 2px solid var(--white);
        transform: rotate(45deg); /* 45度傾けて「>」にする */
        display: block;
    }

    .header_logo a {
        display: block;
        height: 22px;
    }



    .contact_button {
        display: none;
    }

    .contact_button-SP {
        display: block;
        position: fixed;
        text-decoration: none;
        bottom: 16px;
        right: 4.3%;
        z-index: 200;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }
}

/* ---------------------------------headerSP */

.footer-bottom {
   margin-top: 100px;
}

.bg_white {
    width: 100%;
    height: auto;
    padding: 100px 13.9%;
}

.bg_white_container {
    max-width: 1080px;
    margin: 0 auto;
}

.home_btn {
    margin: 0 auto;
}

.btn_white {
    text-decoration: none;
    display: block;
    color: var(--white);
    font-family: var(--bold);
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    width: 240px;
    background-color: transparent;
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 32px;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 2px var(--white);
}

.btn_white:hover {
    background-color: var(--white);
    color: var(--black);
    box-shadow: inset 0 0 0 0px var(--white);
}

@media screen and (max-width: 768px) {
  .bg_white {
        padding: 64px 4.3%;
    }

    .bg_white_container {
        max-width: 1080px;
        margin: 0 auto;
    }

    .btn_white {
        font-size: 16px;
        width: 200px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

}

/* ========================
フッター
footer
======================= */


.footer_dnp {
    background-color: var(--black);
    width: 100%;
    padding: 20px;
}

.footer_container {
    display: grid;
    /* 左(1fr) : 中央(コンテンツ幅) : 右(1fr) の3カラムに分割 */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    /* 上下中央揃え */
    width: 100%;
    margin: 0 auto;
    gap: 0 1rem;
}

.copyright {
    text-align: center;
    font-family: var(--regular);
    color: var(--white);
    margin: 0;
    grid-column: 2;
}

.copyright_trademark {
    font-size: 14px;
    /* margin-bottom: 1.5rem; */
}

.copyright_company {
    font-size: 12px;
}

.footer_logo {
    justify-self: end;
    /* ロゴだけを右端に寄せる */
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
}

.footer_logo img {
    height: 25px;
    width: auto;
    display: block;
}

.footer-bottom {
    border-top: none;
}

/* footerSP--------------------------------- */
@media screen and (max-width: 768px) {

    .footer_dnp {
        padding-bottom: 75px;
    }

    .footer_container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .copyright {
        margin: 0;
    }

    .copyright_trademark {
        font-size: 14px;
        /* margin-bottom: 1.5rem; */
    }

    .copyright_company {
        font-size: 12px;
        margin: 0;
    }

    .footer_spacer {
        display: none;
        /* スマホでは不要 */
    }

    .footer_logo {
        order: -1;
        /* ロゴを上にしたい場合は指定 */
        justify-self: center;
    }
}

/* ---------------------------------footerSP */