/* /assets/css/jimsa-common.css */
/* 共通ヘッダー・ハンバーガー・フッター v2 */

/* 既存ページとの衝突を避けるため、共通ヘッダーは .jimsa-site-* にスコープ */

@font-face {
    font-family: 'IBM PlexSans JP';
    src: url('/IBMPlexSansJP-Regular.ttf') format('truetype'), url('/IBMPlexSansJP-Regular.woff') format('woff');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Note Sans JP';
    src: url('/NotoSerifJP-Regular.ttf') format('truetype'), url('/NotoSerifJP-Regular.woff') format('woff');
    font-style: normal;
    font-display: swap;
}

html {
    min-height: 100%;
}

body.jimsa-site-body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body.jimsa-site-body a {
    color: inherit;
    text-decoration: none;
}

body.jimsa-site-body img {
    max-width: 100%;
    height: auto;
}

/* フロートSNS */
.floating-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0);
    padding: 15px;
    padding-top: 10px;
}

.floating-menu a {
    display: inline-block;
    margin-right: 10px;
}

.floating-menu img {
    width: 40px;
    height: 40px;
}

/* ヘッダー：ページ上部固定 */
.jimsa-site-header {
    font-family: 'Note Sans JP','MS PMincho', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 2500px;
    width: 100%;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.jimsa-site-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.jimsa-site-logo img {
    height: 45px;
    margin-top: 5px;
}

.jimsa-site-title {
    font-family: 'Note Sans JP','MS PMincho', Arial, sans-serif;
    margin: 0;
    line-height: 60px;
    position: absolute;
    left: 120px;
    font-size: 2em;
    font-weight: 500;
    white-space: nowrap;
}

.jimsa-site-head ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.jimsa-site-head ul li {
    padding-top: 15px;
    padding-left: 10px;
    padding-right: 10px;
    position: relative;
}

.jimsa-site-head ul li a {
    text-decoration: none;
    color: #000000;
    white-space: nowrap;
    display: inline-block;
    padding: 10px;
    transition: color 0.3s ease;
}

.jimsa-site-head ul li a:hover {
    color: #073fd6;
}

.jimsa-site-head ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: -30px;
    background-color: #ffffff;
    list-style: none;
    padding: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.jimsa-site-head ul li:hover ul {
    display: block;
}

.jimsa-site-head ul li ul li {
    padding: 5px 0;
}

/* ハンバーガーメニュー */
.jimsa-outer-menu {
    position: fixed;
    top: 20vh;
    left: 0;
    z-index: 1200;
}

.jimsa-checkbox-toggle {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1202;
    cursor: pointer;
    width: 60px;
    height: 60px;
    opacity: 0;
    margin: 0;
}

.jimsa-hamburger {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1201;
    width: 60px;
    height: 60px;
    padding: .5em 1em;
    background: rgba(45, 27, 211, 0.75);
    border-radius: 0 .12em .12em 0;
    cursor: pointer;
    transition: box-shadow .4s ease;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.jimsa-hamburger span {
    position: relative;
    flex: none;
    width: 100%;
    height: 2px;
    background: #FEFEFE;
    transition: all .4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jimsa-hamburger span:before,
.jimsa-hamburger span:after {
    content: '';
    position: absolute;
    z-index: 1;
    top: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: inherit;
    transition: all .4s ease;
}

.jimsa-hamburger span:after {
    top: 10px;
}

.jimsa-checkbox-toggle:checked + .jimsa-hamburger span {
    transform: rotate(135deg);
}

.jimsa-checkbox-toggle:checked + .jimsa-hamburger span:before,
.jimsa-checkbox-toggle:checked + .jimsa-hamburger span:after {
    top: 0;
    transform: rotate(90deg);
}

.jimsa-checkbox-toggle:checked + .jimsa-hamburger span:after {
    opacity: 0;
}

.jimsa-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1199;
    width: 100%;
    height: 100%;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
    backface-visibility: hidden;
    outline: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jimsa-checkbox-toggle:checked ~ .jimsa-menu {
    pointer-events: auto;
    visibility: visible;
}

.jimsa-menu > div {
    width: 200vw;
    height: 200vw;
    color: #FEFEFE;
    background: rgba(132, 212, 248, 0.97);
    border-radius: 50%;
    transition: all .4s ease;
    flex: none;
    transform: scale(0);
    backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jimsa-checkbox-toggle:checked ~ .jimsa-menu > div {
    transform: scale(1);
    transition-duration: .75s;
}

.jimsa-menu > div > div {
    text-align: center;
    max-width: 90vw;
    max-height: 100vh;
    opacity: 0;
    transition: opacity .4s ease;
    overflow-y: auto;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jimsa-checkbox-toggle:checked ~ .jimsa-menu > div > div {
    opacity: 1;
    transition: opacity .4s ease .4s;
}

.jimsa-menu ul {
    list-style: none;
    padding: 0 1em;
    margin: 0;
    display: block;
    max-height: 100vh;
}

.jimsa-menu li {
    padding: 0;
    margin: 1em;
    font-size: 24px;
    display: block;
}

.jimsa-menu li a {
    position: relative;
    display: inline;
    cursor: pointer;
    transition: color .4s ease;
    font-family: 'Note Sans JP','MS PMincho', Arial, sans-serif;
    color: inherit;
    text-decoration: none;
}

.jimsa-menu li a:hover {
    color: #e5e5e5;
}

/* PCではハンバーガー非表示 */
@media screen and (min-width: 1086px) {
    .jimsa-outer-menu {
        display: none;
    }

    .jimsa-site-logo img {
        margin-top: 25px;
    }
}

/* スマホでは通常ナビ非表示 */
@media screen and (max-width: 1085px) {
    .jimsa-site-head {
        display: none;
    }

    .jimsa-site-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .jimsa-site-logo img {
        margin-top: 14px;
    }

    .jimsa-site-title {
        position: static;
        line-height: normal;
    }
}

@media screen and (max-width: 630px) {
    .jimsa-site-logo img {
        height: 40px;
        margin-top: 16px;
    }
}

@media screen and (max-width: 580px) {
    .jimsa-site-logo img {
        height: 35px;
        margin-top: 12px;
    }

    .jimsa-site-title {
        font-size: 28px;
    }
}

@media screen and (max-width: 500px) {
    .jimsa-site-title {
        font-size: 24px;
    }

    .jimsa-site-logo img {
        max-width: 70px;
        height: auto;
        margin-top: 12px;
    }
}

@media screen and (max-width: 460px) {
    .jimsa-site-logo img {
        max-width: 60px;
        height: auto;
        margin-top: 12px;
    }

    .jimsa-site-title {
        font-size: 22px;
    }
}

@media screen and (max-width: 420px) {
    .jimsa-site-logo img {
        max-width: 55px;
        height: auto;
        margin-top: 11px;
    }

    .jimsa-site-title {
        font-size: 19px;
    }
}

@media screen and (max-width: 370px) {
    .jimsa-site-logo img {
        max-width: 55px;
        height: auto;
        margin-top: 8px;
    }

    .jimsa-site-title {
        font-size: 16px;
    }
}

/* フッター：ページ下部固定 */
.jimsa-site-footer {
    background-color: #e6fffc;
    padding: 20px;
    text-align: center;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.jimsa-site-footer .footer-links {
    margin-bottom: 10px;
}

.jimsa-site-footer .footer-links a {
    font-family: 'MS PMincho', Arial, sans-serif;
    margin: 0 10px;
    color: #333;
    text-decoration: none;
}

.jimsa-site-footer p {
    font-family: 'MS PMincho', Arial, sans-serif;
    margin: 0;
    font-size: 14px;
    color: #556768;
}

@media (max-width: 550px) {
    .jimsa-site-footer .footer-links a {
        font-size: 12px;
        display: inline-block;
        margin: 4px 6px;
    }
}

/* 会員ページ補助：ヘッダー固定時の余白とフォーム幅 */
.form-page.member-profile-edit-page {
    width: min(960px, calc(100% - 32px));
    margin: 36px auto 56px;
    text-align: left;
}

.form-page.member-profile-edit-page > .header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.form-page.member-profile-edit-page > .header h1 {
    position: static !important;
    line-height: 1.35 !important;
    left: auto !important;
    text-align: left;
}

.form-page.member-profile-edit-page .card,
.form-page.member-profile-edit-page .withdraw-box {
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 700px) {
    .form-page.member-profile-edit-page {
        width: min(100% - 20px, 960px);
        margin-top: 24px;
    }

    .form-page.member-profile-edit-page > .header {
        flex-direction: column;
    }
}
