/* ========== 中京マイコン共通CSS ========== */

.chukyo-site {
    background: #f3f3f3;
    color: #333;
}

.chukyo-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== ヘッダー ========== */

.chukyo-header {
    background: #1C1987;
    padding: 18px 0;
    text-align: center;
}

.chukyo-logo {
    margin: 0;
}

.chukyo-logo a {
    display: inline-block;
}

.chukyo-logo img {
    width: 200px;
    height: auto;
    display: block;
}

/* ========== ナビ ========== */

.chukyo-nav {
    background: #393939;
}

.chukyo-nav ul {
    display: flex;
    justify-content: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 12px 0;
}

.chukyo-nav a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.chukyo-nav a:hover {
   background: #1C1987;
}

.chukyo-subnav ul {
    max-width: 700px;
    margin: 0 auto;
}

.chukyo-subnav .myaccount-link {
    color: yellow;
}

/* ========== ナビアイコン ========== */

.chukyo-site .chukyo-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chukyo-site .chukyo-nav-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-size: 30px 30px;
    background-position: center;
    flex: 0 0 auto;
}

.chukyo-site .chukyo-nav-icon-home {
    background-image: url('../img/icon/icon-home.apng');
}

.chukyo-site .chukyo-nav-icon-pc {
    background-image: url('../img/icon/icon-pc.apng');
}

.chukyo-site .chukyo-nav-icon-cart {
    background-image: url('../img/icon/icon-cart.apng');
}

.chukyo-site .chukyo-nav-icon-mail {
    background-image: url('../img/icon/icon-mail.apng');
}

.chukyo-site .chukyo-nav-icon-x {
    background-image: url('../img/icon/icon-x.apng');
}

.chukyo-site .chukyo-nav-icon-museum {
    background-image: url('../img/icon/icon-museum.apng');
}

.chukyo-site .chukyo-nav-icon-account {
    background-image: url('../img/icon/icon-account.png');
}

.chukyo-site .chukyo-nav-icon-amazon {
    background-image: url('../img/icon/icon-amazon.png');
}

/* ========== 検索 ========== */

.chukyo-search {
    background: #393939;
    padding: 0 0 12px;
}

.chukyo-search form {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.chukyo-search input {
    width: min(420px, 70%);
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.chukyo-search button {
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    background: #1C1987;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

/* ========== フッター ========== */

.chukyo-footer {
    background: #1C1987;
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
}

.chukyo-footer .chukyo-container {
    padding-top: 40px;
    padding-bottom: 40px;
}

.chukyo-footer-nav {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.chukyo-footer-nav li {
    display: inline-block;
    margin: 0 0.5rem;
}

.chukyo-footer-nav a {
    color: #fff;
    text-decoration: none;
}

.chukyo-footer-nav a:hover {
    opacity: 0.6;
}

.chukyo-footer-copyright {
    margin-top: 8px;
}

.chukyo-address {
    font-size: 0.8rem;
}

.chukyo-since {
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.8rem;
}

/* ========== 共通レスポンシブ ========== */

@media (max-width: 768px) {
    .chukyo-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .chukyo-logo img {
        width: 160px;
    }

    .chukyo-search form {
        flex-direction: column;
        align-items: center;
    }

    .chukyo-search input,
    .chukyo-search button {
        width: 100%;
        max-width: 420px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
    .chukyo-site .chukyo-nav-icon {
        width: 16px;
        height: 16px;
        background-size: 16px 16px;
    }
}

/* ========== EC-CUBE枠から中京マイコンページを全幅化 ========== */

body {
    overflow-x: hidden;
}

.chukyo-site {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #efefef;
    overflow: hidden;
}

.chukyo-site .chukyo-header,
.chukyo-site .chukyo-nav,
.chukyo-site .chukyo-search,
.chukyo-site .banner,
.chukyo-site .chukyo-footer {
    width: 100%;
}

/* ========== スマホ用ハンバーガーメニュー ========== */

.chukyo-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chukyo-menu-btn {
    display: none;
}

/* PCではナビを通常表示 */
.chukyo-mobile-nav {
    display: block;
}

/* スマホ表示 */
@media (max-width: 767px) {
    .chukyo-header {
        padding: 10px 0;
    }

    .chukyo-header-inner {
        justify-content: center;
    }

    .chukyo-logo img {
        width: 170px;
    }

    .chukyo-menu-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 38px;
        height: 30px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        z-index: 10001;
    }

    .chukyo-menu-btn span {
        display: block;
        width: 100%;
        height: 4px;
        background: #fff;
        border-radius: 2px;
        transition: 0.3s;
    }

    .chukyo-menu-btn.is-active span:nth-child(1) {
        transform: translateY(13px) rotate(45deg);
    }

    .chukyo-menu-btn.is-active span:nth-child(2) {
        opacity: 0;
    }

    .chukyo-menu-btn.is-active span:nth-child(3) {
        transform: translateY(-13px) rotate(-45deg);
    }

    .chukyo-mobile-nav {
        display: none;
        background: #393939;
    }

    .chukyo-mobile-nav.is-open {
        display: block;
    }

    .chukyo-mobile-nav .chukyo-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 16px 16px;
    }

    .chukyo-mobile-nav .chukyo-nav li {
        width: 100%;
    }

    .chukyo-mobile-nav .chukyo-nav a {
        width: 100%;
        padding: 10px 0;
        font-size: 1rem;
    }

    .chukyo-search {
        padding: 8px 10px 12px;
    }

    .chukyo-search form {
        flex-direction: column;
        gap: 8px;
    }

    .chukyo-search input,
    .chukyo-search button {
        width: 100%;
        max-width: none;
    }
}

/* ========== スマホナビ調整：中央寄せ・間隔・スライド表示 ========== */

@media (max-width: 767px) {
    .chukyo-mobile-nav {
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-12px);
        background: #393939;
        transition:
            max-height 0.7s ease,
            opacity 0.45s ease,
            transform 0.7s ease;
    }

    .chukyo-mobile-nav.is-open {
        max-height: 560px;
        opacity: 1;
        transform: translateY(0);
    }

    .chukyo-mobile-nav .chukyo-nav {
        background: #393939;
    }

    .chukyo-mobile-nav .chukyo-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0 16px;
    }

    .chukyo-mobile-nav .chukyo-nav:first-child ul {
        padding-top: 14px;
        padding-bottom: 0;
    }

    .chukyo-mobile-nav .chukyo-subnav ul {
        padding-top: 0;
        padding-bottom: 14px;
    }

    .chukyo-mobile-nav .chukyo-nav li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .chukyo-mobile-nav .chukyo-nav a {
        width: 190px;
        padding: 8px 0;
        justify-content: flex-start;
        font-size: 1rem;
    }

    .chukyo-mobile-nav .chukyo-subnav a {
        padding: 8px 0;
    }
}

/* ========== 追従ヘッダー ========== */

.chukyo-fixed-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #393939;
}

/* stickyを効かせるため、親の縦方向overflowを邪魔しない */
.chukyo-site {
    overflow: visible;
}

/* ========== ロゴ位置調整 ========== */

.chukyo-logo {
    padding-top: 6px;
}

/* ========== ナビのクリック範囲拡大 ========== */

.chukyo-nav li {
    display: flex;
    align-items: center;
}

.chukyo-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    min-height: 44px;
    box-sizing: border-box;
    border-radius: 4px;
}

.chukyo-nav a:hover {
    background: #1C1987;
    text-decoration: none;
}

/* スマホ時は中央寄せのまま、押せる範囲を広げる */
@media (max-width: 767px) {
    .chukyo-mobile-nav .chukyo-nav a {
        width: 220px;
        padding: 10px 12px;
        min-height: 46px;
    }
}


/* ========== 共通：店舗情報 Booking版ベース ========== */

.chukyo-store-info {
    max-width: 1100px;
    margin: 46px auto 0;
    padding: 0 4px;
    box-sizing: border-box;
}

/* 見出しはBookingの青帯に寄せる */
.chukyo-store-info .booking-heading,
.chukyo-store-info-title {
    margin: 0 0 18px;
    padding: 10px 16px;
    background: #1C1987;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    border-radius: 4px;
    line-height: 1.5;
    border-bottom: none;
}

/* Bookingと同じ contact 構造を縦積みにする */
.chukyo-store-info .contact {
    width: 100%;
    display: block;
}

/* 各エリアの間隔 */
.chukyo-store-info .calendar,
.chukyo-store-info .location-map,
.chukyo-store-info .shop {
    width: 100%;
    margin-top: 16px;
}

/* カレンダーを縮ませない */
.chukyo-store-info .calendar img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    background: #fff;
    border-radius: 8px;
}

/* 地図を横幅いっぱいに */
.chukyo-store-info .location-map iframe {
    display: block;
    width: 100%;
    height: 320px;
    border-radius: 8px;
}

/* 店舗写真を横幅いっぱいに */
.chukyo-store-info .shop img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 8px;
}

/* 電話ボタン */
.chukyo-store-info .tel {
    margin-top: 22px;
    text-align: center;
}

.chukyo-store-info .tel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    min-height: 48px;
    padding: 0 24px;
    background: #1C1987;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.chukyo-store-info .tel a:hover {
    background: #559cff;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 767px) {
    .chukyo-store-info {
        margin-top: 34px;
    }

    .chukyo-store-info .booking-heading,
    .chukyo-store-info-title {
        font-size: 20px;
    }

    .chukyo-store-info .location-map iframe {
        height: 260px;
    }
}

/* ========== 共通：画像拡大モーダル ========== */

.chukyo-store-modal-image {
    cursor: zoom-in;
}

.chukyo-image-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.chukyo-image-modal.is-open {
    display: flex;
}

.chukyo-image-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.chukyo-image-modal-content {
    position: relative;
    z-index: 1;
    max-width: min(94vw, 1100px);
    max-height: 92vh;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
}

.chukyo-image-modal-content img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 24px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.chukyo-image-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #1C1987;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    font-weight: bold;
}

.chukyo-image-modal-close:hover {
    background: #559cff;
}

body.chukyo-image-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .chukyo-image-modal {
        padding: 12px;
    }

    .chukyo-image-modal-content {
        max-width: 96vw;
        padding: 8px;
    }

    .chukyo-image-modal-close {
        top: -10px;
        right: -10px;
    }
}

/* ========== 共通：画像モーダル 前後ボタン ========== */

.chukyo-image-modal-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 64px;
    border: none;
    border-radius: 6px;
    background: rgba(28, 25, 135, 0.88);
    color: #fff;
    font-size: 48px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: 0.2s;
}

.chukyo-image-modal-nav:hover {
    background: #559cff;
}

.chukyo-image-modal-prev {
    left: -58px;
}

.chukyo-image-modal-next {
    right: -58px;
}

@media (max-width: 767px) {
    .chukyo-image-modal-nav {
        width: 38px;
        height: 56px;
        font-size: 40px;
        background: rgba(28, 25, 135, 0.92);
    }

    .chukyo-image-modal-prev {
        left: 4px;
    }

    .chukyo-image-modal-next {
        right: 4px;
    }
}

/* ========== 共通：電話ボタンはスマホだけ表示 ========== */

/* PC・タブレットでは電話ボタンを非表示 */
@media screen and (min-width: 500px) {
    .chukyo-store-info .tel {
        display: none !important;
    }
}

/* スマホでは電話ボタンを表示 */
@media screen and (max-width: 499px) {
    .chukyo-store-info .tel {
        display: block;
    }
}

/* PCではtelリンクを押せないようにする保険 */
@media screen and (min-width: 768px) {
    .chukyo-store-info a[href^="tel:"] {
        pointer-events: none;
    }
}

/* ========== 共通：メインとフッターの間隔 ========== */

/* 通常の中京マイコンページ用 */
.chukyo-site > footer,
.chukyo-site > .chukyo-footer {
    margin-top: 64px;
}

/* EC-CUBE標準ページに差し替えた共通フッター用 */
.chukyo-frame-footer {
    margin-top: 64px;
}