@charset "UTF-8";

/* =========================================
   ヘッダー
   ========================================= */
header {
    padding: 20px 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--width-header, 1200px);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ロゴ */
.logo a { display: block; }
.logo img {
    height: 70px;
    width: auto;
}

/* グローバルナビ (PC) */
.global-nav ul {
    display: flex;
    gap: 20px;
}
.global-nav a {
    color: var(--color-text);
    font-weight: 500;
}
.global-nav a:hover {
    color: var(--color-main);
}

/* 言語切り替えアイコン */
.lang-icon a {
    display: flex;
    align-items: center;
    color: #555;
}
.lang-icon a:hover { color: var(--color-main); }

/* =========================================
   SP用 ハンバーガーメニュー & ナビ
   ========================================= */
.menu-toggle { display: none; }

@media only screen and (max-width: 880px) {
    /* ヘッダー調整 */
    header { padding: 10px 0; }
    .logo img { height: 50px; }

    /* ハンバーガーアイコン */
    .menu-toggle {
        display: block;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 999999;
    }
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #333;
        margin-bottom: 6px;
        transition: 0.3s;
    }
    /* アニメーション */
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* メニュー本体（スライドイン） */
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-white);
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        padding-top: 60px;
        transition: 0.4s;
        z-index: 99999;
        text-align: center;
    }
    .global-nav.active { right: 0; }
    .global-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    .global-nav a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }
    
    /* メニューオープン時の背景固定 */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* 背景黒透過オーバーレイ */
    .overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 800;
        display: none;
    }
    .overlay.active { display: block; }
}

/* =========================================
   フッター
   ========================================= */
footer {
    width: 100%;
    background: var(--background-color-footer);
    color: var(--color-white);
    padding: 40px 4%;
    text-align: left;
}
.footbox {
	width:100%;
	max-width: 1240px;
	display:flex;
	flex-wrap: wrap;
	justify-content: space-around;
}
.footer_address {
	display: flex;
	justify-content: space-between;
	width: 50%;
	font-size: 15px;
	line-height: 20px;
}
.footnav {
	width:50%;
	max-width: 1000px;
	min-width: 200px;
	display:block;
	margin:0 auto;
	padding:0;
	border-left: #fff solid 1px;
}
.footnav ul {
	width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    padding-left: 6% ;
}
.footnav li {
	display:block;
	width: 50%;
	margin-bottom: 3%;
	font-size: 15px;
	line-height: 20px;
	background: url(../images/f_nav_icon.png)no-repeat left;
}
.footnav li a {
	text-decoration: underline;
	text-underline-offset: 2px;
	color: var(--color-white);
}
.footnav li a:hover {
	text-decoration:none;
	color:#CBEA7B;
}
footer dl {
    margin-right: 10%;
}
footer dd, footer dd a {
    color: var(--color-white);
}
footer .side_infomation {
    width: 100%;
    max-width: 400px;
    margin-top: 30px;
}
.foot_contact {
	display: block;
	width:100%;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}
.copyright {
	width:100%;
	max-width:1920px;
	display:block;
	padding-bottom: 15px;
	background: var(--background-color-footer);
	font-size:11px;
	line-height: 12px;
	text-align:center;
	color: var(--color-white);
}

/* フッターSP対応 */
@media only screen and (max-width: 768px) {
    .footbox { flex-direction: column; }
    .footer_address, .footnav { width: 100%; border: none; padding: 0; }
    .footer_address { flex-direction: column; text-align: center; margin-bottom: 30px; }
    .footnav ul { justify-content: center; padding-left: 0; }
    .footnav li { width: auto; margin: 5px 10px; }
    .infotitle { text-align: center;}
    footer .side_infomation { max-width: none; }
    footer dl { margin-right: 0%; }
}

/* =========================================
   右下固定ボタン (Fixed Search Button)
   ========================================= */
.fixed-search-btn {
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 9990;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-dark) 100%);
    border: 2px solid rgba(255,255,255,0.15);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 1;
}
.fixed-search-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
}
.fixed-search-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}
.fixed-search-btn .sub-text { font-size: 0.7rem; opacity: 0.9; }
.fixed-search-btn .main-text { font-size: 0.85rem; line-height: 1.13rem; font-weight: bold; }

@media screen and (max-width: 768px) {
    .fixed-search-btn {
        width: 70px; height: 70px;
        bottom: 20px; right: 15px;
    }
    .fixed-search-btn .sub-text { display: none; }
    .fixed-search-btn .main-text { font-size: 0.7rem; }
}


/* =========================================
   モーダルのスタイル
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 背景を暗く */
    z-index: 9999; /* 最前面に */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none; /* 非表示時はクリック無効 */
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s;
}
.modal-overlay.show .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}
.modal-title {
    color: #556b2f;
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.modal-body {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;
}
.modal-footer .btn-main {
    display: inline-block;
    width: 100%;
    padding: 12px;
}