/*
Theme Name: hemitech-theme
Theme URI: https://wordpress.org/themes/hemitech-theme/
Author: MM
Tested up to: 6.6
Requires PHP: 7.0
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfour
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*-------------------------
    common
-------------------------*/
:root{
    --color-navy: #1A3980;
    --color-light-blue: #2580c8;
    --color-orange: #e98024;
    --color-gray: #454B5A;
    --color-light-gray: #eff0f3;
    --color-dark-gray: #081328;
    --color-black: #000;
    --color-white: #fff;
    --color-bg-gray: #DFE1E8;
    --header-height-pc: 120px;
    --header-height-sp: 100px;
}
*{
    font-family: "Noto Sans","Noto Sans JP", serif;
    font-optical-sizing: auto;
    font-style: normal;
    padding: 0;
    margin: 0;
    line-height: 1.5em;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    vertical-align: bottom;
    overflow-wrap: break-word;
}
html{
    scroll-behavior: smooth;
}
body{
    opacity: 0;
}
h1, h2, h3{
    color: var(--color-white);
}
h1{
    font-size: 65px;
}
h2, h3{
    margin-bottom: 50px;
}
h2{
    font-size: 50px;
}
h3{
    font-size: 40px;
}
@media screen and (max-width: 768px){
    h1{
        font-size: 30px;
    }
    h2{
        font-size: 24px;
    }
}

header{
    width: 100%;
    height: var(--header-height-pc);
    padding: 0 5%;
    background: var(--color-white);
    position: fixed;
    z-index: 99;
}

/* header.hidden{
    transform: translateY(var(--header-height-pc));
} */

header .logo{
    position: relative;
    top: 0;
    left: -10px;
    display: block;
    padding: 10px;
}
header .logo img{
    width: calc(368px / 2);
}

/* .has-base-background-color{
    background: var(--color-white);
    height: var(--header-height-pc);
    min-width: 0;
    padding: 0 10%;
} */

header .wp-block-group{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.menu-wrap-pc{
    display: block;
}

.menu-wrap-sp, .menu-bg{
    display: none;
}

ul.menu{
    position: relative;
    gap: 20px;
}
ul.menu>li{
    position: relative;
}
ul.menu li a{
    display: block;
    font-size: 18px;
    font-weight: 600;
    padding: 10px;
}
.sub-menu{
    position: absolute;
    top: 100%;
    left: 0;
    transition: 0.3s;
    display: block;
    opacity: 0;
}
.menu-wrap-pc .sub-menu{
    display: none;
    pointer-events: none;
    width: max-content;
    background: var(--color-white);
    box-shadow: var(--color-light-blue) 5px 5px;
    padding: 5px;
    transition: opacity 0.3s ease;
}
ul.menu>li:hover>.sub-menu,
ul.menu>li:focus-within>.sub-menu{
    display: block;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}
.sub-menu li{
    text-align: left;
}


ul{
    padding-left: 0;
    display: flex;
}

.menu-wrap-pc .menu a{
    color: var(--color-black);
    font-weight: 600;
    transition: 0.2s;
}

header .menu a.current-page{
    color: var(--color-orange);
}

header .menu a:hover,
header .menu a.current-page:hover{
    color: var(--color-light-blue);
    transition: 0.2s;
}

main{
    padding-top: var(--header-height-pc);
}

section{
    position: relative;
    padding: 90px 100px;
}

section>div{
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
}

p{
    font-size: 20px;
    font-weight: 500;
}

img{
    width: 100%;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

a:has(img) {
    display: block;
}

.content-flex{
    display: flex;
}

.text-2em{
    line-height: 2em;
}

.sp{
    display: none;
}

.pc{
    display: block;
}

/* リスト */

#main-content ol{
    padding-left: 1.5rem;
}
#main-content li{
    position: relative;
}
#main-content ol li{
    list-style: decimal;
}
#main-content ol li:nth-child(1){
    margin-top: 0;
}
#main-content ol li,
#main-content ol li p{
    font-size: 18px;
    margin-top: 20px;
}
#main-content>div>ol>li strong,
#main-content>div>ol>li::marker{
    font-size: 20px;
}

#main-content ol li ol{
    margin-top: 20px;
}
#main-content ol li li{
    margin-top: 0;
}
#main-content ol li:nth-child(1){
    margin-top: 0;
}
#main-content ol.maru{
    counter-reset: maru-number;
    font-size: 18px;
    margin: 1rem 0;
    padding-left: calc(1rem + 10px);
}
#main-content ol.maru>li,
#main-content ol.parentheses>li{
    list-style: none !important;
    margin-top: .5rem;
}
#main-content ol.maru>li::before{
    content: counter(maru-number) !important;
    counter-increment: maru-number !important;
    position: absolute;
    top: .2rem;
    left: -1.7rem;
    width: 16px;
    height: 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    padding: 2px;
    border: 1px solid var(--color-black);
    border-radius: 50px;
}
#main-content ol.parentheses{
    counter-reset: parentheses-number;
}
#main-content ol.parentheses>li::before{
    counter-increment: parentheses-number;
    content: '('counter(parentheses-number)')';
    position: absolute;
    top: 0;
    left: -1.4rem;
}

/*-------------------------
    animation
-------------------------*/
/* 共通のフェードインアニメーション */
.fade-in{
    opacity: 0;
    transform: translateY(0);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.fade-out{
    opacity: 1;
    transform: translate(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 左からスライドイン */
.slide-in-left{
    opacity: 0;
    transform: translateX(-10vw);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

@keyframes slide-in-left{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

.fade-up{
    opacity: 0;
    transform: translateY(50%);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.hidden{
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.visible{
    opacity: 1;
    transform: translate(0);
}

/* ハンバーガーメニューのアニメーション */
.menu-wrap-sp nav,
.menu-wrap-sp .menu-bg{
  display: none;
  opacity: 0;
  transform: translate(0, -100px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-wrap-sp nav.active,
.menu-wrap-sp .menu-bg.active{
  opacity: 1;
  transform: translate(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.menu-wrap-sp nav{
    transform: translate(-50%, -100px);
}
.menu-wrap-sp nav.active{
    transform: translate(-50%, 0);
}

.menu-wrap-sp nav.menu-fade-out,
.menu-wrap-sp .menu-bg.menu-fade-out{
  opacity: 0;
  transform: translate(-50%, -100px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.menu-wrap-sp .menu-bg.menu-fade-out{
    transform: translate(0, -100px);

}

/* ページ上部に戻るボタン */
.top-btn{
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-white);
    z-index: 100;
    box-shadow: 0 0 2px 1px var(--color-bg-gray);
    border-radius: 30px;
}
.top-btn::after{
    content: "";
    border-top: 2px solid var(--color-orange);
    border-left: 2px solid var(--color-orange);
    width: 15px;
    height: 15px;
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}


body.fade-out.visible{
    opacity: 0;
}

.top-group, .bottom-group{
    display: flex;
    gap: 2%;
    justify-content: center;
}

.text-min{
    font-size: 16px;
}

.entry-content.wp-block-post-content.has-global-padding.is-layout-constrained.wp-block-post-content-is-layout-constrained{
    padding: 0;
    margin-top: 0;
}

.btn-flex{
    display: flex;
}
.wp-block-buttons>.wp-block-button{
    display: block;
}
.wp-block-buttons-is-layout-flex{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 60px;
    gap: 30px 50px;
}
.wp-block-button{
    width: 100%;
    max-width: 160px;
    height: 50px;
}
.wp-block-button__link,
.wpcf7-submit,
#error-page button{
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 600;
    margin: 0 auto;
    border: none;
    border-radius: 0;
    transition: 0.5s;
}
.btn-blue .wp-block-button__link,
.btn-blue.wpcf7-submit,
#error-page button{
    background: var(--color-light-blue);
    box-shadow: var(--color-white) 5px 5px;
}
.btn-blue .wp-block-button__link:hover,
.btn-blue.wpcf7-submit:hover,
#error-page button:hover{
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-white);
}

.btn-orange .wp-block-button__link{
    background: var(--color-orange);
}

.btn-gray .wp-block-button__link{
    background: var(--color-gray);
    color: #757E8C;
}
.btn-gray .wp-block-button__link:hover{
    background: var(--color-light-blue);
    color: var(--color-white);
}
.btn-white .wp-block-button__link{
    background: var(--color-white);
    color: var(--color-light-blue);
    border: solid 4px var(--color-light-blue);
    box-shadow: var(--color-light-blue) 5px 5px;
}
.btn-white .wp-block-button__link:hover{
    background: var(--color-light-blue);
    color: var(--color-white);
    border-color: var(--color-light-blue);
}

.btn-lightgray .wp-block-button__link{
    background: var(--color-light-gray);
    color: var(--color-navy);
    box-shadow: var(--color-navy) 5px 5px;
}
.btn-lightgray .wp-block-button__link:hover{
    background: var(--color-orange);
    color: var(--color-white);
}
.disabled, .disabled:hover{
    cursor: none;
    background: var(--color-gray) !important;
    border: 2px solid var(--color-gray) !important;
}

@media screen and (max-width: 1024px) {
    .wp-block-buttons-is-layout-flex{
        justify-content: center;
    }
}

/* .btn-blue,.btn-gray,.btn-white,.btn-orange{
    min-width: 120px;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    border: none;
    padding: 0 25px 2px;
    transition: 0.5s;
    cursor: pointer;
}
.shadow-navy{
    box-shadow: var(--color-navy) 5px 5px; //使用箇所あったら戻す
} */


/* .wp-block-button.visible{
    animation: slideInLeftBtn 1.5s forwards;
}
@keyframes slideInLeftBtn{
    from{
        opacity: 0;
        transform: translateX(-50%);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
} */

.wp-block-button.fade-in{
    opacity: 0;
    transform: translateY(0);
}

.wp-block-button.visible{
    opacity: 1;
    transition: 1.5s ease !important;
}


/* ページ上部へ戻るボタン */
.page-top-btn{
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-white);
    z-index: 98;
    box-shadow: 0 0 2px 1px var(--color-bg-gray);
    border-radius: 30px;
}
.page-top-btn::after{
    content: "";
    border-top: 2px solid var(--color-orange);
    border-left: 2px solid var(--color-orange);
    width: 15px;
    height: 15px;
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* フォーム */
form{
    padding: 20px;
    background: var(--color-dark-gray);
}
form label{
    font-size: 14px;
}
form label>span{
    display: inline-block;
}
form label>span:nth-child(1){
    margin-bottom: 5px;
}
form label.required>span:nth-child(1){
    position: relative;
}
form label.required>span:nth-child(1):after{
    content: "*";
    position: absolute;
    top: 0;
    right: -10px;
    color: #dc3232;
    font-size: 14px;
}
.form-item{
    margin-top: 20px;
}
form>.form-item:nth-child(2),
form .form-flex:nth-child(2){
    margin-top: 0;
}
.form-flex{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
}
.form-flex>.form-item{
    width: calc((100% - 20px) / 2);
}
.wpcf7-form-control-wrap{
    display: block;
}
.wpcf7-not-valid-tip{
    font-size: .875rem;
}
input, select, textarea{
    background: rgba(223, 225, 232, 0.3);
    width: 100%;
    height: 40px;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    padding: 5px 10px;
    border: solid 1px var(--color-white);
}
input:invalid,input:invalid:focus,
select:invalid,select:invalid:focus,
textarea:invalid,textarea:invalid:focus{
    border: solid 1px #dc3232;
    outline: solid 1px #dc3232;
}
input:focus, select:focus, textarea:focus{
    background: var(--color-dark-gray);
    outline: 1px solid var(--color-white);
}
select, input[type="checkbox"]{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.wpcf7-form-control-wrap:has(select)::after{
    content: "";
    position: absolute;
    top: 18px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);
    transform: translateY(-50%) rotate(45deg);
}
.wpcf7-form-control-wrap:has(select):has(select:focus)::after{
    transform: rotate(-135deg);
}
option{
    background: var(--color-dark-gray);
}
.wpcf7-checkbox{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
}
.wpcf7-checkbox>span{
    margin: 0;
}
.wpcf7-checkbox label{
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
}
.wpcf7-checkbox label::before{
    position: absolute;
    top: 6px;
    left: 6px;
    width: 7px;
    height: 4px;
    border: 2px solid var(--color-white);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
}
.wpcf7-checkbox label:has(:checked)::before{
    content: '';
}
input[type="checkbox"]{
    background: rgba(223, 225, 232, 0.3);
    width: 22px;
    height: 22px;
    padding: 0;
}
input[type="checkbox"]+span{
    width: calc(100% - 22px - 5px);
    font-size: 15px;
    font-weight: 600;
    margin-top: -1px;
}
textarea{
    min-height: 90px;
    resize: vertical;
}
input[type="submit"]{
    display: block;
    width: 100%;
    max-width: 120px;
    height: 40px;
    margin: 0 0 0 auto;
    outline: none !important;
}
input[type="submit"],
.thanks{
    z-index: 0;
}
.wpcf7 form .wpcf7-response-output{
    display: block;
    width: 100%;
    font-size: 14px;
    margin: 0;
    padding: 10px;
}

@media (max-width: 1024px){
    .form-flex{
        flex-direction: column;
        gap: 0;
    }
    .form-flex>.form-item{
        width: 100%;
    }
}

.download{
    margin-top: 3em;
}
.slide-in-left.download{
    display: none;
}
.download>button{
    width: 100%;
}

/* 製品お問い合わせ product-contact-form-wrap */
.product-contact-form-wrap{
    background: var(--color-dark-gray);
    width: calc((100% - 50px) / 2);
    color: var(--color-white);
    margin: 0 auto;
    padding: 20px;
}
.product-contact-form-wrap form{
    background: transparent;
    padding: 0;
}
.product-contact-form label{
    display: block;
    margin-top: 20px;
}
.product-contact-form label:nth-child(1){
    margin-top: 0;
}
.product-contact-form input[type="submit"]{
    margin-top: 20px;
}
.wpcf7:has(.product-contact-form) ~ .wp-block-buttons{
    display: none;
    margin-bottom: 10px;
}
.wpcf7:has(.sent) ~ .wp-block-buttons{
    display: flex;
}
.wpcf7:has(.sent) .product-contact-form{
    display: none;
}
.product-contact-form-wrap .wpcf7-response-output{ /* 送信後メッセージ */
    background: var(--color-orange);
    border: none;
    margin-bottom: 30px;
}
@media screen and (max-width: 1024px) {
    .product-contact-form-wrap{
        width: 100%;
    }
}

/* footer */
footer{
    padding: 90px 100px 20px;
    background: var(--color-gray);
    position: relative;
}
footer>div{
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}
footer p, footer a{
    color: #838791;
    margin: 0;
    font-size: 16px;
    line-height: 2.25em;
    font-weight: 500;
}
footer .footer-company{
    max-width: 420px;
}
footer .footer-company p.company{
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 0.5em;
}
footer .footer-company p{
    color: var(--color-white);
    line-height: 2em;
}
footer p.footer-heading{
    color: var(--color-white);
    margin: 23px 0 30px;
    font-weight: 600;
    font-size: 14px !important;
}
footer .footer-tel{
    padding-left: 2em;
    position: relative;
}
footer .footer-tel::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -40%);
    background-image: url(https://hemitech.co.jp/wp/wp-content/themes/hemitech-theme/assets/image/icon-tel-gray.svg);
    background-repeat: no-repeat;
    width: 25px;
    height: 25px;
}
footer .wp-block-button{
    margin: 40px auto 0 0 !important;
}
.footer-bottom{
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 145px;
}


/*-------------------------
    第2階層 ページタイトル
-------------------------*/
#parent-page-title{
    background-image: url(https://hemitech.co.jp/wp/wp-content/uploads/2025/02/banner_img.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 130%;
}
#parent-page-title::after {
    content: "";
    background: var(--color-navy);
    width: 100%;
    height: 350px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.3;
}
#parent-page-title h1{
    font-size: 70px;
    position: relative;
    z-index: 5;
}
#parent-page-title h1 span{
    display: block;
    font-size: 30px;
    margin-bottom: 20px;
}
@media screen and (max-width: 768px){
    #parent-page-title{
        padding: 20px;
    }
    #parent-page-title h1{
        font-size: 40px;
    }
    #parent-page-title h1 span{
        font-size: 24px;
        margin-bottom: 5px;
    }
}


/*-------------------------
    商品カテゴリ
-------------------------*/
.products-category ul{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 100px 20px;
}
.products-category ul a{
    display: block;
    max-width: 230px;
    margin: 0 auto;
}
.products-category ul p{
    color: var(--color-black);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}
.products-category .img-wrapper{
    position: relative;
}
.products-category .img-wrapper img{
    max-width: 230px;
    display: flex;
    margin: 0 auto;
}
.products-category .img-wrapper::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(210deg,rgba(7,15,35,0),rgba(36,129,201,1));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.products-category a:hover .img-wrapper::after{
    opacity: 1;
}


/*-------------------------
    関連製品
-------------------------*/
#related-product{
    background: var(--color-bg-gray);
}
#related-product h2{
    color: var(--color-navy);
}
#related-product .product-contents{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px 25px;
}
#related-product .product-item{
    width: 100%;
    max-width: 230px;
    margin: 0 auto;
}
.product-item a{
    display: block;
}
.product-item>a>div:has(img){
    position: relative;
    height: 0;
    margin-bottom: 1em;
    padding-top: 100%;
}
.product-item>a>div>img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-item-minImg{
    object-fit: cover;
    height: 226px;
}
.product-item img{
    width: 100%;
    margin-bottom: 1em;
}
.product-item .product-item-name p{
    color: var(--color-black);
    font-size: 18px !important;
    font-weight: 700;
    margin-bottom: 0;
}
.product-item .product-item-name span{
    color: var(--color-black);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 0;
}
.product-item ul{
    display: block;
    margin-top: 20px;
    padding-left: 1.25em;
}
.product-item ul li{
    font-size: 14px;
    font-weight: 500;
    list-style: disc;
}
.product-item .btn{
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    width: 100%;
    background: var(--color-light-gray);
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 20px auto 0;
    padding: 0 10px;
    transition: 0.5s !important;
    border: none;
    box-shadow: var(--color-navy) 5px 5px;
}
.product-item .btn:hover{
    background: var(--color-orange);
    color: var(--color-white);
}
#related-product .product-item .btn{
    background: var(--color-white);
}
#related-product .product-item .btn:hover{
    background: var(--color-orange);
}
.product-item .product-item-text{
    font-size: 16px;
    font-weight: 500;
}
@media screen and (max-width: 1024px){
    #related-product .product-contents{
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 768px){
    #related-product .product-contents{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 600px){
    #related-product .product-contents{
        grid-template-columns: repeat(1, 1fr);
    }
}

/* プライバシーポリシー・クッキーポリシー */
#policy-title{
    background: var(--color-dark-gray);
    padding: 50px 100px;
}
#policy-title h1{
    font-size: 40px;
}

.page-id-438 #main-content,
.page-id-441 #main-content{
    background: var(--color-gray);
    color: var(--color-white);
}
.page-id-441 #main-content>div>div{
    margin-top: 40px;
}
.page-id-441 #main-content>div>div:nth-child(1){
    margin-top: 0;
}
.page-id-441 #main-content h2{
    font-size: 20px;
    margin: 0;
}
.page-id-441 #main-content p{
    font-size: 18px;
    font-weight: 400;
}
.page-id-441 #main-content a{
    color: var(--color-white);
    text-decoration: underline;
}

/* 404ページ */
#error-page{
    background: var(--color-bg-gray);
}
#error-page h1{
    color: var(--color-black);
}
#error-page button{
    display: block;
    margin: 40px auto 0;
    padding: 8px 16px;
}

/* 商品ページの資料ダウンロード・お問い合わせフォームのボタン */
.product-contact-button-wrap,
.product-contact-button-wrap div{
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-contact-button-wrap{
    gap: 2em;
    margin-left: auto;
    justify-content: space-around;
    flex-direction: row;
}
.product-contact-button-wrap.half{
    /* width: calc((100% - 50px) / 2); */
    flex-direction: column;
}
.product-contact-button-wrap div{
    flex-direction: column;
    gap: 1em;
}
.download-page-btn,
.contact-page-btn{
    width: 300px;
    height: 50px;
    border-radius: 30px;
    padding: 0.4em;
    color: var(--color-black);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    transition: 0.3s;
}
.download-page-btn{
    border: 3px solid var(--color-orange);
}
.download-page-btn:hover{
    background: var(--color-orange);
    color: white;
}
.contact-page-btn{
    border: 3px solid var(--color-light-blue);
}
.contact-page-btn:hover{
    background: var(--color-light-blue);
    color: white;
}
.download-page-btn img,
.contact-page-btn img{
    width: 30px;
    height: 30px;
    transition: 0.3s;
}
.product-contact-button-wrap p{
    margin: 0 !important;
    text-align: center;
    font-size: 16px !important;
}
.download-page-btn:hover img,
.contact-page-btn:hover img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(95deg) brightness(105%) contrast(101%);
}

@media (max-width: 1183px) {
    header{
        height: var(--header-height-sp);
    }
    header .logo{
        left: 0;
        margin: 0 auto;
    }
    .menu-wrap-pc{
        display: none;
    }

    .menu-wrap-sp{
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 100vw;
    }

    .menu-wrap-sp nav{
        display: none;
        position: absolute;
        top: 0;
        left: 50%;
        width: 100%;
        max-width: 250px;
        max-height: 100vh;
        padding: 70px 0 20px;
        overflow: scroll;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .menu-wrap-sp nav::-webkit-scrollbar{
        display: none;
    }
    .menu-bg{
        background: var(--color-gray);
        width: 100vw;
        height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
    }
    #sp-menu{
        position: absolute;
        top: 0;
        right: 20px;
        transform: translate(0, calc(50px - 40px / 2));
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
    }
    .menu-line1, .menu-line2, .menu-line3{
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
        background: var(--color-light-blue);
        width: 25px;
        height: 3px;
        transition: 0.3s;
        border-radius: 5px;
    }
    .menu-line1{top: 20%;}
    .menu-line2{top: 50%; transform: translate(-50%, -50%)}
    .menu-line3{bottom: 20%;}

    button.active>.menu-line1{transform: translate(-50%, 0) rotate(-45deg); top: 48%; right: 0; background: var(--color-white);}
    button.active>.menu-line2{opacity: 0;}
    button.active>.menu-line3{transform: translate(-50%, 0) rotate(45deg); bottom: 46%; right: 0; background: var(--color-white);}
    .menu-wrap-sp ul{
        flex-direction: column;
        text-align: center;
    }

    /* ハンバーガーメニューのアコーディオン */
    .summary-menu{
        cursor: pointer;
        position: relative;
    }
    .summary-menu:hover{
        opacity: 0.8;
    }
    .summary-menu::-webkit-details-marker{
        display: none;
    }
    .menu-wrap-sp .menu a{
        width: 100%;
        font-size: 20px;
        color: var(--color-white);
    }
    .menu-wrap-sp .menu a:hover{
        color: var(--color-light-blue);
        transition: 0.3s;
    }
    .accordion-btn,
    .accordion-btn-open{
        position: absolute;
        top: 0;
        left: 0;
        width: 50px;
        height: 50px;
    }
    .accordion-btn::before,
    .accordion-btn-open::before{
        content: "";
        position: absolute;
        left: 40%;
        border-bottom: 2px solid var(--color-white);
        border-left: 2px solid var(--color-white);
        width: 10px;
        height: 10px;
        transition: 0.3s;
    }
    .accordion-btn::before{
        top: 30%;
        transform: rotate(-45deg);
    }
    .accordion-btn-open::before{
        top: 40%;
        transform: rotate(135deg);
    }
    details[open] .accordion-btn::before,
    details .accordion-btn-open::before{
        opacity: 0;
    }
    details .accordion-btn::before,
    details[open] .accordion-btn-open::before{
        opacity: 1;
    }
    .sub-menu{
        position: relative;
        margin: 20px 0;
    }
    details[open] .sub-menu{
        opacity: 1;
    }
    .menu-wrap-sp .sub-menu a{
        font-size: 16px;
    }
    details[open] .sub-menu>a{
        opacity: 1;
        display: block;
        pointer-events: auto;
    }
}

@media (max-width: 1024px){
    .sp{
        display: block;
    }

    .pc{
        display: none;
    }

    section{
        padding: 90px 50px;
    }
    #policy-title{
        padding: 50px 50px;
    }

    footer{
        padding: 90px 20px 0;
    }
    footer>div, .footer-bottom{
        flex-direction: column;
    }
    footer>div>div{
        margin-bottom: 50px;
    }
    footer p.company{
        font-size: 30px;
    }
    .footer-menu, footer p.footer-heading{
        margin: 0;
    }
    footer .footer-tel::before{
        width: 18px;
        height: 18px;
    }
    footer .wp-block-button__link{
        margin-top: 20px;
    }
    footer .footer-company{
        max-width: 100%;
    }
    .footer-bottom{
        gap: 0;
        margin-top: 0;
        align-items: flex-start;
    }
    .footer-bottom p{
        margin: 20px auto 10px;
    }

    .product-contact-button-wrap{
        flex-direction: column;
        margin: 0 auto;
    }

}
@media screen and (max-width: 768px){
    main{
        padding-top: var(--header-height-sp);
    }
    section{
        padding: 45px 20px;
    }
    #main-content ol li,
    #main-content ol li p{
        font-size: 16px;
    }
    #main-content>div>ol>li strong,
    #main-content>div>ol>li::marker{
        font-size: 18px;
    }
    .page-id-441 #main-content h2{
        font-size: 18px;
    }
    #policy-title{
        padding: 30px 20px;
    }
    #policy-title h1{
        font-size: 24px;
    }
    .page-id-441 #main-content p{
        font-size: 16px;
    }

    footer{
        padding: 45px 20px 0;
    }
    footer .footer-company p.company{
        font-size: 16px;
        margin-bottom: 1em;
    }
    footer p, footer a{
        font-size: 12px;
    }
    #error-page p {
        font-size: 16px;
    }
}
/* ===== ダウンロードページ用CSS START ===== */
/* メインコンテンツのコンテナ */
.page-content .download-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.download-intro-text {
    line-height: 1.6;
}

/* カテゴリのスタイル */
.download-category-section {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden; /* For border-radius */
}

.download-category-title {
    background-color: #0d2c4d;
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.1em;
}

.download-category-content {
    padding: 10px 20px;
}

/* 製品ごとのアコーディオンのスタイル */
.product-accordion {
    border-bottom: 1px solid #eee;
}
.product-accordion:last-child {
    border-bottom: none;
}

.product-accordion > summary {
    font-size: 1.1em;
    font-weight: bold;
    padding: 15px 0;
    cursor: pointer;
    outline: none;
    list-style: none; /* Firefox/Edge */
}

.product-accordion > summary::-webkit-details-marker {
    display: none; /* Chrome/Safari */
}

/* [+]と[-]の切り替え表示 */
.product-accordion > summary::before {
    content: '+';
    margin-right: 10px;
    font-weight: bold;
    color: #0d2c4d;
}

.product-accordion[open] > summary::before {
    content: '-';
}

.product-content {
    padding: 0 10px 15px 25px;
}

.download-list {
    /* ▼▼▼ この2行を追加 ▼▼▼ */
    display: flex;
    flex-direction: column;
    /* ▲▲▲ ここまで ▲▲▲ */
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.download-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.download-list li:last-child { margin-bottom: 0; }

.download-list input[type="checkbox"] {
    /* ▼▼▼ この2行を追加 ▼▼▼ */
    -webkit-appearance: auto; /* Webkit系ブラウザ(Chrome, Safari)用 */
    appearance: auto;         /* 標準の指定 */
    /* ▲▲▲ ここまで ▲▲▲ */
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.download-list a {
    text-decoration: none;
    color: #007bff;
}

.download-list a:hover {
    text-decoration: underline;
}

/* まとめてダウンロードボタンのスタイル */
#bulk-download-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none; /* 初期状態では非表示 */
    z-index: 1000;
}

#bulk-download-btn:disabled {
    background-color: #999;
    cursor: wait;
}
/* ===== ダウンロードページ用CSS END ===== */

/* ダウンロードページのメインコンテンツに白い背景色を強制的に指定する */
.page-template-page-pdf_download #main-content {
    background-color: #ffffff !important;
}

/* スマートフォン表示時の本文の文字サイズを16pxに設定 */
@media screen and (max-width: 767px) {
p {
    font-size: 16px;
  }
}


/* アンカーで狙われる要素のスクロール余白 */
.product-accordion, .download-category-section { scroll-margin-top: 160px; }

