/*-------------------------------------------
    ALL
--------------------------------------------*/
:root {
    --black: #444;
    --blue: #007bff;
    --lightBlue: #299ECC;
    --white: #ffffff;
}

body{
    font-family: "Zen Kaku Gothic Antique", serif;
    font-weight: 500;
    font-optical-sizing: auto;
    background-color: var(--white); 
    accent-color: var(--blue);
}

a{
    color: var(--blue); 
    text-decoration: underline;
}

h2:not(#toppage h2) {
    background-color: #deeeff;
    background-size: cover;
    background-position: center;
    font-size:40px;
    margin-bottom:10px;
    text-align: center;
    height: 195px;
    color: var(--white);
    text-shadow: 0 2px 4px var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #BEEDFF 14.5%, #71CFDA 62%);
}

h3{
    font-size: 22px;
}

.pankuzu{
    margin-bottom: 30px;
    font-size:12px;
}

iframe[src*="www.google.com/maps/embed"] {
	aspect-ratio: 4 / 3;
	width: 100%;
	height: auto;
}

@media (max-width: 767px) {
    h2:not(#toppage h2){
        height:117px;
        font-size: 28px;
    }
}

/*-------------------------------------------
    header
--------------------------------------------*/

header{
    width: 100%;
    height: 20px;
    background: var(--white);
    padding: 40px 40px;
    border-bottom: 10px solid var(--lightBlue);
    display: flex;   
    justify-content: space-between;
    align-items: center;
    transition: top 1s ease; 
    z-index: 2;
}

@media (min-width: 768px) and (max-width: 1024px) {
    header{
        padding: 30px;
    }
}

#toppage header{
    position: absolute; /* 初期位置を絶対に設定 */
    top: -100px; /* 初期状態で画面外に配置 */
}

h1{
    font-size:30px;
}

h1 a{
    text-decoration: none;
    color: #444;
}

h1 a:hover{
    text-decoration: none;
}

nav.globalnav {
    width: 45%;
}
@media (min-width: 768px) and (max-width: 1024px) {
    nav.globalnav{
        width: 50%;
        font-size: 13px;
    }
}
.globalnav ul{
    display: flex;
    justify-content: space-between;
}

nav.globalnav ul li a{
    text-decoration: none;
    color: #444;    
    transition: font-weight 0.3s ease; 
    display: inline-block;
    position: relative;
}

nav.globalnav ul li a:hover{
    font-weight: bold;   
    opacity: 1;
}

nav.globalnav ul li a::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: #000;
    bottom: -3px; 
    transform: translateY(100%); 
    opacity: 0;
    transition: transform 0.3s ease;
}

.globalnav li:hover a::after {
    transform: translateY(0);
    opacity: 1;
}

#toppage header .toppage,
[id^="news_"] header .news,
#about header .about,
#item header .item,
#contact header .contact{
    font-weight: bold;
}

@media (max-width: 767px) {
    header{
        height: 58px;
        padding: 10px;
    }
    h1{
        font-size:16px;
    }
    .globalnav{
        display: none;
    }

}

.hamburgermenu {
    position: relative;
    margin: -16px 0 0 0;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 23px;
    justify-content: space-between;
    position: absolute;
    top: -3px;
    right: 10px;
    z-index: 1001; /* メニューより上に表示 */
}

.bar {
    height: 3px;
    background-color: #686868;
    transition: all 0.3s ease;
}

@media (max-width: 767px) {

    .menu {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 70%; /* メニューの幅 */
        background-color: var(--white);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        transform: translateX(100%); /* 初期位置は画面外 */
        transition: transform 0.4s ease; /* スライドのスピードを調整 */
        padding: 50px 12px;
    }

    .menu .links li {
        border-bottom: 1px solid #ccc;
    }

    .menu .links li a {
        display: block;
        padding: 22px;
        font-size: 18px;
        text-decoration: none;
        color: var(--black);
        text-align: center;
    }

    .menu-toggle:checked + .menu-icon .bar:nth-child(1) {
        transform: rotate(45deg);
        transform-origin: top left;
    }

    .menu-toggle:checked + .menu-icon .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .menu-icon .bar:nth-child(3) {
        transform: rotate(-45deg);
        transform-origin: bottom left;
    }

    .menu-toggle:checked ~ .menu {
        display: block; /* メニューを表示 */
        transform: translateX(0); /* スライドイン */
    }
    header address{
        padding: 30px;
    }

    header{
        position: sticky !important;
    }
}

@media (min-width: 768px) {
    .menu {
        display: block;
        position: static;
        width: auto; /* 通常時のメニュー幅 */
        transform: none; /* スライドインを無効に */
        box-shadow: none; /* シャドウを無効に */
    }
    
    .menu-icon {
        display: none; /* デスクトップではハンバーガーアイコンを非表示 */
    }
}
/*-------------------------------------------
    トップページ
--------------------------------------------*/

#toppage .main{
    background-image: url(../img/toppage/mv.jpg);
    color: var(--white);
    background-size: cover;
    position: relative;
    overflow: hidden;
}

#toppage .main .inner{
    height: 650px;
    padding-top: 100px;
    display: flex;
    align-items: center;
}

#toppage h2{
    margin-bottom: 1em;
    font-size:36px;
}

#toppage .contentblock{
    font-size:15px;
    text-shadow: 0 0 var(--black);
}

.txtblock {
    opacity: 0; /* 初期状態は透明 */
    filter: blur(5px); /* 初期状態はぼかし */
    transition: opacity 1s ease, filter 1s ease; /* アニメーションの設定 */
}
.txtblock.show {
    opacity: 1; /* 表示状態 */
    filter: blur(0); /* ぼかしを解除 */
}

@media (max-width: 767px) {
    #toppage h2{
        font-size: 27px;
    }
    #toppage .main .inner {
        height: calc(100vw* 1);
        padding-top:0;
        font-size: 27px;
    }
    #toppage .txtblock{
        font-size:14px;
        margin-bottom: 100px;
    }
    
}
/*-------------------------------------------
    お知らせ共通
--------------------------------------------*/
[id^="news_"] h2 {
    content: '';
    background: linear-gradient(90deg, rgba(190, 237, 255, 0.5) 14.5%, rgba(113, 207, 218, 0.5) 62%), url(../img/common/headpic_news.jpg);
    width: 100%;
    height: 100%;
}

#newsList li{
    display: flex;
}
#newsWrap span.title {           
    white-space: nowrap;     
    overflow: hidden;  
    display: block;      
    text-overflow: ellipsis; 
}

span.up_ymd {
    margin: 0 5px 0 0;
    color: var(--black);
}
span.newMark {
    margin-left: 5px;
    color: #cc2929;
}

/*-------------------------------------------
    トップページお知らせ部分
--------------------------------------------*/
#toppage #newsWrap span.title {
    width: 450px; 
    color: var(--black);
}

#toppage div#newsWrap {
    font-size: 14px;
    background: rgba(255,255,255,0.6);
    padding: 20px 70px 20px 20px;
    position: absolute;
    bottom: 25px;
    transform: skew(330deg, 0deg);
    right: -500px; /* スライドインするために初期位置を設定 */
    transition: right 1s ease; /* アニメーションの設定 */
}

#toppage div#newsWrap.show {
    right: -50px; /* 表示位置 */
}

#toppage div#newsWrap a{
    color: var(--black);
}

#toppage #newsWrap h3 {
    margin-left: 5px;
    font-size: 18px;
    color: var(--blue);
    transform: skew(-330deg, 0deg);
}
#toppage #newsList{
    transform: skew(-330deg, 0deg);
    margin-left:20px;
}

#toppage .pcobo_copy > * {
    margin: 0 !important;
    text-align: right !important;
    padding: 0 10px 10px;
    display: inline-block !important;
    position: absolute;
    right: 0;
    bottom: -8px;
}/*PHP工房さんの著作権表示の位置調整*/

@media (max-width: 767px) {
    #toppage div#newsWrap{
        width: 100%;
    }
}


/*-------------------------------------------
    お知らせ一覧
--------------------------------------------*/
p.pager {
    display: flex;
    justify-content: center;
    align-items: center;
}
.pager a{
    margin: 10px;
    padding: 0 5px;
    text-decoration: none;
    display: inline-block;
    border: 1px solid;
    text-align: center;
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 3px;
}

.pager a.current{
    background: #DEDEDE;
}

#news_list #newsWrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

#news_list span.up_ymd {
    width: 180px;
}

#news_list #newsList li{
    padding: 20px 12px;
    border-bottom: 1px solid #D9D9D9;
}

#news_list #newsWrap{
    font-size: 14px;
}

#news_list #newsWrap span.title {
    width: 769px; 
}

#news_list #newsWrap a{
    color: #000;
}

#news_list span.up_ymd{
    font-weight: bold;
}

/*-------------------------------------------
    お知らせ詳細
--------------------------------------------*/

div#up_ymd {
    margin: 0 0 20px;
}
.detailText ul{
    list-style: disc; 
}
.detailText ul li {
    margin-left: 1em;
    border-bottom: none;
}
.backORcloseBtn {
    margin-bottom: 10px;
}
/*-------------------------------------------
    会社概要
--------------------------------------------*/
#about h2{
    background-image: linear-gradient(90deg, rgba(190, 237, 255, 0.5) 14.5%, rgba(113, 207, 218, 0.5) 62%), url(../img/common/headpic_about.jpg);
}

#privacyPolicy h3 {
    font-weight: 500;
    padding-bottom: 10px;
}

.aboutlist{
    max-width: 936px;
    margin: 0 auto 50px;
}

@media (max-width: 960px) {

	#map .map__inner {
		padding-top: 75%;
	}

}

@media (max-width: 640px) {

	#map .map__inner {
		padding-top: 100%;
	}

}


.aboutlist > li{
    border-bottom: 1px solid #ccc;
}
.aboutlist li:last-child dd {
    width: 100%;
}

.aboutlist dl {
    display: flex;
    justify-content:flex-start;
    align-items: center;
}
.aboutlist dl dt{
    min-width:130px;
}

.aboutlist dl dd,
.aboutlist dl dt{
    padding: 13px 0;
}

#about > div > div > ul > li:nth-child(12) > dl > dd > div:nth-child(2){
    margin-left: 50px;
}

@media (max-width: 767px) {
    .aboutlist{
        width: auto;
    }
    .aboutlist dl {
        display: block;
    }
}

@media (max-width: 767px) {
    #about > div > div > ul > li:nth-child(12) > dl > dd > div:nth-child(2){
        margin-left: 0;
    }
}

/*-------------------------------------------
    取扱商品
--------------------------------------------*/

#item h2{
    background: linear-gradient(90deg, #BEEDFF 14.5%, #71CFDA 62%);
}

#item h3{
    font-size: 16px;
}

.cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.card{
    width: 273px;
    margin-bottom: 50px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .cards{
        justify-content: space-around;
    }
}
@media (max-width: 767px) {
    .cards{
        justify-content: center;
    }
}

/*-------------------------------------------
    お問い合わせ
--------------------------------------------*/
#contact h2{
    background-image: url(../img/common/headpic_contact.jpg);
}

.contactblock{
    max-width: 806px;
    margin: 0 auto;
    text-align: center;
}
.contactblock p{
    font-size: 16px;
}
.contactblock address{
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.contactblock address span strong{
    font-size: 36px;
}
.contactblock h3{
    margin-bottom: 50px;
}
.contactblock form ul li{
    margin: 0 0 22px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}
.phone-link {
    color: #000000;
    text-decoration: none;
}
li.checkbox {
    position: relative;
    display: flex;
    justify-content: center;
}
.textbox {
    text-align: left;
    padding: 1em;
    width: 100%;
    font-size: 12px;
    list-style-type: none;
    margin: 0 auto 50px;
}

.contactblock li:not(.checkbox) label {
    width: 246px;
    padding-top: 3px;
    display: block;
    text-align: left;
    position: relative;
}
.contactblock .required::before {
    position: absolute;
    content: "必須";
    background: #FF5A5A;
    color: var(--white);
    border-radius: 3px;
    right: 10px;
    font-size: 14px;
    padding: 2px 10px;
}
.contactblock li.checkbox .required::before {
    left: 188px;
    width: 30px;
}
input,textarea{
    background: #DEDEDE;
    color: #000;
    font-size: 16px;
    border:none;
    width: 560px;
    padding: 1em 10px;
}
input:focus, textarea:focus {
    border-color: var(--lightBlue); 
    outline: var(--blue);
}
input{
    height: 36px;
}
input#privacy {
    width: 26px;
    height: 26px;
    margin: 0 10px 0 40px;
}
textarea{
    height: 212px;
}

input.submit,
input.backbtn{
    width: 258px;
    height: 54px;
    margin: 0 auto 50px;
    font-size: 16px;
    background: #FF6D33;
    color: var(--white);
    font-weight: bold;
}

.btns{
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.btns input{
    margin:5px;
}

input.backbtn{
    background: #333;
}

@media (max-width: 1024px) {
    .contactblock {
        width: 100%;
    }
    .contactblock li:not(.checkbox) label{
        width: 100%;
        margin: 0 0 13px;
    }
    input, textarea{
        width: 100%;
    }
    .contactblock li.checkbox .required::before{
        left:auto;
    }
}

@media (max-width: 767px) {
    label{
        z-index: 1;
    }
    input#privacy{
        margin: 0 10px 0 0;
        z-index: 1;
    }
    .contactblock form ul li.checkbox{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        justify-content: flex-start;
    }
    .contactblock li.checkbox .required::before{
        margin: 10px 0 0 0;
        left:auto;
        right: 8px;
    }

    .phone-link {
    pointer-events: auto;
}
}

/*-------------------------------------------
    フッター
--------------------------------------------*/

footer{
    color: var(--white);
}
.topfooter {
    background: var(--lightBlue);
    display: flex;
    justify-content: space-between;
    padding: 50px;
    flex-wrap: wrap;
    align-items: center;
}

.topfooter address{
    margin-bottom:20px;
}

.tel-link {
    color: var(--white);
}

@media (min-width: 1387px) {
    .topfooter address{
        margin-bottom:0;
    }
}/*topfooterの中身が横並びの時はmarginなし*/
@media (min-width: 768px) and (max-width: 1024px) {
    .topfooter {
        padding: 30px;
    }
}
.topfooter address ul{
    font-style: normal;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

address ul li {
    margin-right: 50px;
}
address .name{
    font-size: 20px;
}
.bottomfooter{
    background: #1F7699;
    font-size:12px;
    text-align: center;
    padding:20px;
}

footer hr {
    width: 100%;
    margin: 0 0 20px;
}

@media (max-width: 767px) {
    .topfooter address {
        margin-bottom: 20px;
    }
    address ul li{
        margin-right:0;
        margin-bottom:20px
    }
}

.map {
    padding-top: 56.25%;
    position: relative;
}
.map iframe {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}