/* ロゴとメニューバーを横並びに配置 */
header #head01 {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    flex-wrap: nowrap !important;
}

header #head01 #logo {
    margin-right: 30px !important;
    flex-shrink: 0 !important;
    padding-right: 0 !important;
}

header #head01 #logo a {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

header #head01 #logo img {
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* メニューバーラッパー */
header #head01 #navi-wrapper {
    position: relative !important;
    flex: 1 !important;
    margin-left: 50px !important;
    margin-right: 30px !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* メニューバーの続きがあることを示す視覚的インジケーター */
header #head01 #navi-wrapper.has-more::after {
    content: '›' !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 5 !important;
    font-size: 24px !important;
    font-weight: bold !important;
    color: #333 !important;
    pointer-events: none !important;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95) 20px, rgba(255, 255, 255, 0.95)) !important;
    padding-left: 30px !important;
    padding-right: 5px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

header #head01 #navi-wrapper.has-more #navi {
    padding-right: 50px !important;
}

/* メニューバーの項目間隔を調整（一列に保つ、横スクロール可能） */
header #head01 #navi {
    flex: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

header #head01 #navi::-webkit-scrollbar {
    display: none !important;
}

/* メニューバースクロールボタン */
.navi-scroll-btn {
    display: none !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    padding: 8px 10px !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: #333 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: opacity 0.3s, background 0.3s !important;
    line-height: 1 !important;
    height: 40px !important;
    width: 30px !important;
    border-radius: 4px !important;
}

#navi-scroll-left {
    left: 2px !important;
}

#navi-scroll-right {
    right: 2px !important;
}

.navi-scroll-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    opacity: 1 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25) !important;
}

.navi-scroll-btn:active {
    opacity: 0.7 !important;
}

@media (max-width: 767px) {
    .navi-scroll-btn {
        display: none !important;
    }
    
    header #head01 #navi-wrapper.has-more::after {
        display: none !important;
    }
    
    header #head01 #icon {
        margin-left: 10px !important;
        gap: 8px !important;
    }
    
    header #head01 #icon a {
        width: 22px !important;
        height: 22px !important;
        padding: 0 !important;
    }
    
    header #head01 #icon a svg {
        width: 22px !important;
        height: 22px !important;
    }
}

header #head01 #navi ul {
    gap: 0 !important;
    -webkit-box-pack: start !important;
    -ms-flex-pack: start !important;
    -webkit-justify-content: flex-start !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 40px 0 5px !important;
    display: flex !important;
    width: max-content !important;
    min-width: 100% !important;
    list-style: none !important;
}

header #head01 #navi ul li {
    margin: 0 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

header #head01 #navi ul li a {
    font-size: 12px !important;
    padding: 0 2px !important;
    letter-spacing: 0.05em !important;
    display: block !important;
    white-space: nowrap !important;
}

header #head01 #navi ul li:first-child {
    margin-left: 0 !important;
}

header #head01 #navi ul li:last-child {
    margin-right: 0 !important;
}

/* SNSアイコンをメニューバーの横に配置 */
header #head01 #icon {
    flex-shrink: 0 !important;
    margin-left: 20px !important;
    margin-right: 0 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 12px !important;
    align-items: center !important;
    z-index: 10 !important;
    height: auto !important;
    width: auto !important;
}

header #head01 #icon a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
    width: 24px !important;
    height: 24px !important;
    background: transparent !important;
}

header #head01 #icon a:hover {
    opacity: 0.7 !important;
    transform: scale(1.1) !important;
}

header #head01 #icon a svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    fill: currentColor !important;
}

header #head01 #icon a.fb {
    color: #1877F2 !important;
}

header #head01 #icon a.fb svg {
    fill: #1877F2 !important;
}

header #head01 #icon a.ig {
    color: #E4405F !important;
}

header #head01 #icon a.ig svg {
    fill: #E4405F !important;
}

/* メニューがはみ出さないようにナビゲーションエリアの幅を調整 */
@media (min-width: 1080px) {
    header #head01 {
        width: 1080px !important;
    }
    
    header #head01 #logo {
        margin-right: 30px !important;
    }
    
    header #head01 #navi-wrapper {
        margin-left: 50px !important;
    }
    
    header #head01 #navi-wrapper {
        margin-right: 20px !important;
    }
    
    header #head01 #navi {
        margin-right: 0 !important;
    }
    
    header #head01 #navi ul li {
        margin: 0 15px !important;
    }
    
    header #head01 #navi ul li a {
        font-size: 13px !important;
    }
}

@media (min-width: 768px) and (max-width: 1080px) {
    header #head01 {
        width: 90% !important;
    }
    
    header #head01 #logo {
        margin-right: 20px !important;
    }
    
    header #head01 #navi-wrapper {
        margin-left: 50px !important;
        margin-right: 15px !important;
    }
    
    header #head01 #navi {
        margin-right: 0 !important;
    }
    
    header #head01 #navi ul li {
        margin: 0 12px !important;
    }
    
    header #head01 #navi ul li a {
        font-size: 12px !important;
    }
}

/* フッターメニューを一列に表示（ロゴとメニューバーの間の隙間を開ける） */
footer #foot01 ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    margin-top: 28px !important;
    padding: 0 !important;
    gap: 0 !important;
}

footer #foot01 ul li {
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

footer #foot01 ul li a {
    padding: 0 15px !important;
    display: block !important;
    white-space: nowrap !important;
}

footer #foot01 ul li:first-child a {
    padding-left: 0 !important;
}

footer #foot01 ul li:last-child a {
    padding-right: 0 !important;
}

/* information お知らせのアイキャッチ画像サイズ */
#info dd .file.info-thumbnail,
#info dd .file.info-thumbnail img {
    max-width: 420px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}

/* schedule スケジュールの画像を小さく表示 */
#info2 dd .file,
#info2 dd .file img,
#info2 dd img {
    max-width: 350px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}

/* コンタクトページを画像デザインに合わせて調整 */
#subtit.contact-title {
    text-align: center !important;
    font-size: 48px !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 40px !important;
    font-weight: normal !important;
    text-transform: uppercase !important;
}

#contact, #thanks {
    width: 90% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 0 80px !important;
    text-align: center !important;
}

#contact .intr, #thanks .intr {
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-bottom: 40px !important;
    color: #333 !important;
    text-align: center !important;
}

#contact .intr .required-note, #thanks .intr .required-note {
    color: #d32f2f !important;
    font-weight: normal !important;
}

/* フォームのレイアウト（ラベル左、入力欄右） */
#contact form#contact-form dl, #thanks form dl {
    display: block !important;
    text-align: left !important;
    margin: 0 auto !important;
    max-width: 800px !important;
}

#contact form#contact-form dl dt, #thanks form dl dt {
    display: inline-block !important;
    width: 240px !important;
    vertical-align: top !important;
    padding: 12px 0 !important;
    font-size: 15px !important;
    font-weight: normal !important;
    margin: 0 !important;
    text-align: left !important;
}

#contact form#contact-form dl dd, #thanks form dl dd {
    display: inline-block !important;
    width: calc(100% - 260px) !important;
    vertical-align: top !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

#contact form#contact-form .required-mark, #thanks form .required-mark {
    color: #d32f2f !important;
    margin-right: 4px !important;
}

#contact form#contact-form input[type="text"],
#contact form#contact-form input[type="email"],
#contact form#contact-form textarea,
#thanks form input[type="text"],
#thanks form input[type="email"],
#thanks form textarea {
    width: 100% !important;
    font-size: 15px !important;
    padding: 12px 14px !important;
    background-color: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    color: #333 !important;
}

#contact form#contact-form input[type="text"]:focus,
#contact form#contact-form input[type="email"]:focus,
#contact form#contact-form textarea:focus,
#thanks form input[type="text"]:focus,
#thanks form input[type="email"]:focus,
#thanks form textarea:focus {
    outline: none !important;
    border-color: #999 !important;
    background-color: #fff !important;
}

#contact form#contact-form textarea, #thanks form textarea {
    min-height: 180px !important;
    resize: vertical !important;
}

#contact form#contact-form label, #thanks form label {
    font-size: 15px !important;
    color: #333 !important;
    font-weight: normal !important;
}

/* ボタンスタイル */
#contact form#contact-form .mfp_buttons, #thanks form .mfp_buttons {
    text-align: center !important;
    margin-top: 40px !important;
}

#contact form#contact-form .mfp_buttons button, #thanks form .mfp_buttons button {
    font-size: 15px !important;
    padding: 14px 40px !important;
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-weight: normal !important;
    letter-spacing: 0.05em !important;
}

#contact form#contact-form .mfp_buttons button:hover, #thanks form .mfp_buttons button:hover {
    background-color: #e8e8e8 !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
    transform: translateY(-1px) !important;
}

#contact form#contact-form .mfp_buttons button:active, #thanks form .mfp_buttons button:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

/* リセットボタンを非表示（画像には1つのボタンのみ） */
#contact form#contact-form .mfp_buttons button[type="reset"] {
    display: none !important;
}

/* Contact Form 7 利用時 */
#contact .wpcf7-form-control-wrap input,
#contact .wpcf7-form-control-wrap textarea,
#thanks .wpcf7-form-control-wrap input,
#thanks .wpcf7-form-control-wrap textarea {
    font-size: 15px !important;
    padding: 12px 14px !important;
    background-color: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
}

/* 確認画面 */
#contact .contact-confirm-box {
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: left !important;
}
#contact .contact-confirm-dl {
    margin: 0 0 32px !important;
    padding: 0 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background: #fafafa !important;
    overflow: hidden !important;
}
#contact .contact-confirm-dl dt {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 20px 6px !important;
    font-size: 14px !important;
    color: #666 !important;
    font-weight: normal !important;
    border-bottom: none !important;
}
#contact .contact-confirm-dl dd {
    width: 100% !important;
    margin: 0 !important;
    padding: 6px 20px 16px !important;
    font-size: 15px !important;
    color: #333 !important;
    line-height: 1.7 !important;
    border-bottom: 1px solid #eee !important;
}
#contact .contact-confirm-dl dd:last-of-type {
    border-bottom: none !important;
}
#contact .contact-confirm-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}
#contact .contact-back-btn {
    display: inline-block !important;
    padding: 14px 40px !important;
    font-size: 15px !important;
    color: #333 !important;
    background: #f5f5f5 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.05em !important;
}
#contact .contact-back-btn:hover {
    background: #e8e8e8 !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
    opacity: 1 !important;
}
#contact #contact-confirm-form .mfp_buttons button[type="submit"] {
    font-size: 15px !important;
    padding: 14px 40px !important;
    background-color: #1B1B1B !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.05em !important;
}
#contact #contact-confirm-form .mfp_buttons button[type="submit"]:hover {
    background-color: #333 !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    #contact form#contact-form dl dt, #thanks form dl dt {
        display: block !important;
        width: 100% !important;
        padding-bottom: 6px !important;
    }
    
    #contact form#contact-form dl dd, #thanks form dl dd {
        display: block !important;
        width: 100% !important;
        padding-top: 0 !important;
    }
    
    #subtit.contact-title {
        font-size: 36px !important;
    }
}

/* プロフィールページの文章が確実に表示されるように */
.profile-content-wrapper {
    padding: 40px 20px !important;
    box-sizing: border-box !important;
}

.profile-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

@media (max-width: 1080px) {
    .profile-content-wrapper {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
}

@media (max-width: 767px) {
    .profile-content-wrapper {
        padding-left: 5% !important;
        padding-right: 5% !important;
        max-width: 100% !important;
    }
    
    .profile-content {
        font-size: 14px !important;
    }
    
    .profile-images {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .profile-images img {
        width: 100% !important;
        max-width: 430px !important;
        height: auto !important;
    }
}

@media (max-width: 1080px) {
    .profile-images {
        justify-content: center !important;
    }
    
    .profile-images img {
        width: 100% !important;
        max-width: 430px !important;
    }
}

/* 千尊鐘ページのアイキャッチ画像の縦長問題を修正 */
.senzonsho-page-img {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.senzonsho-page-img img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
}

@media (max-width: 767px) {
    .senzonsho-page-img {
        padding-top: 60px !important;
    }
    
    .senzonsho-page-img img {
        width: 100% !important;
        height: auto !important;
    }
}

/* プロフィールページのアイキャッチ画像（横長対応） */
.page-profile .page_img,
.profile-page-img,
body.page-template-page-profile .page_img {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.page-profile .page_img img,
.profile-page-img img,
body.page-template-page-profile .page_img img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* トップページのプロフィール画像も横長対応 */
#top_pro .left img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* SNSバナーの画像表示（写真とロゴを横並びに表示） */
#top_cont02 .right .sns_banner {
    margin-bottom: 23px !important;
}

#top_cont02 .right .sns_banner a {
    display: block !important;
    text-decoration: none !important;
}

#top_cont02 .right .sns_banner_inner {
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    height: 150px !important;
}

#top_cont02 .right .sns_banner_image {
    flex-shrink: 0 !important;
    width: 150px !important;
    height: 150px !important;
    overflow: hidden !important;
}

#top_cont02 .right .sns_banner_image img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
}

#top_cont02 .right .sns_banner_logo {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 15px 20px !important;
    color: #fff !important;
    height: 150px !important;
    box-sizing: border-box !important;
}

#top_cont02 .right .sns_banner_logo.instagram_logo {
    background-color: #e60033 !important;
}

#top_cont02 .right .sns_banner_logo.facebook_logo {
    background-color: #993355 !important;
}

#top_cont02 .right .sns_banner_logo .sns_label {
    font-size: 12px !important;
    font-weight: normal !important;
    margin-bottom: 5px !important;
    opacity: 0.9 !important;
    line-height: 1.4 !important;
}

#top_cont02 .right .sns_banner_logo .sns_name {
    font-size: 18px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

#top_cont02 .right .sns_banner_logo .sns_platform {
    font-size: 24px !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
}

#top_cont02 .right .sns_banner a:hover .sns_banner_image img {
    opacity: 0.9 !important;
    transition: opacity 0.3s ease !important;
}

#top_cont02 .right .sns_banner a:hover .sns_banner_logo {
    opacity: 0.95 !important;
    transition: opacity 0.3s ease !important;
}

/* ===== シンプルなハンバーガーメニューに統一 ===== */

/* 共通スタイル（PC・SP共通のベース） */
header #head01 .menu_button {
    display: none !important;
}

header #head01 .menu_button .panel_btn {
    display: block !important;
    position: relative !important;
    cursor: pointer !important;
    z-index: 1001 !important;
    pointer-events: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    width: 32px !important;
    height: 24px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

header #head01 .menu_button .panel_btn .hamburger-line {
    position: absolute !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: #333 !important;
    border-radius: 1px !important;
    transition: transform 0.25s ease, opacity 0.25s ease !important;
}

header #head01 .menu_button .panel_btn .hamburger-line:nth-child(1) {
    top: 0 !important;
}

header #head01 .menu_button .panel_btn .hamburger-line:nth-child(2) {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

header #head01 .menu_button .panel_btn .hamburger-line:nth-child(3) {
    bottom: 0 !important;
}

/* 開いた時のXアイコン（左右対称） */
header #head01 .menu_button .panel_btn.active .hamburger-line:nth-child(1) {
    top: 50% !important;
    transform: translateY(-50%) rotate(45deg) !important;
}

header #head01 .menu_button .panel_btn.active .hamburger-line:nth-child(2) {
    opacity: 0 !important;
}

header #head01 .menu_button .panel_btn.active .hamburger-line:nth-child(3) {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) rotate(-45deg) !important;
}

/* スマホサイズでのレスポンシブ対応 */
@media (max-width: 767px) {
    /* ヘッダー全体の調整 */
    header #head01 {
        position: relative !important;
        padding: 10px 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    /* ハンバーガーボタンを左側に配置 */
    header #head01 .menu_button {
        display: flex !important;
        align-items: center !important;
        order: 1 !important;
        margin-left: 0 !important;
        margin-right: 15px !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        z-index: 1001 !important;
        flex: 0 0 auto !important;
        height: auto !important;
    }

    /* ロゴをハンバーガーメニューの右側に配置 */
    header #head01 #logo {
        order: 2 !important;
        flex: 0 0 auto !important;
        margin-right: auto !important;
        margin-left: 0 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        height: auto !important;
    }

    header #head01 #logo a {
        display: flex !important;
        align-items: center !important;
        height: auto !important;
    }

    header #head01 #logo img {
        max-width: 150px !important;
        height: auto !important;
        display: block !important;
        vertical-align: middle !important;
    }

    /* SNSアイコンを右側に配置 */
    header #head01 #icon {
        position: static !important;
        left: auto !important;
        top: auto !important;
        order: 3 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        flex: 0 0 auto !important;
        width: auto !important;
        gap: 10px !important;
        z-index: 1000 !important;
        display: flex !important;
        align-items: center !important;
        height: auto !important;
    }

    header #head01 #icon a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* allstyle.cssのposition: fixedを上書き */
    header #head01 .menu_button .panel_btn {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 32px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* デスクトップメニューを非表示 */
    header #head01 #navi-wrapper {
        display: none !important;
    }
    
    /* モバイルメニューを表示可能にする */
    header #head01 #navi-wrapper.mobile-active {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #fff !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
        z-index: 999 !important;
        margin: 0 !important;
        padding: 0 !important;
        order: 4 !important;
    }
    
    header #head01 #navi-wrapper.mobile-active #navi-scroll-left,
    header #head01 #navi-wrapper.mobile-active #navi-scroll-right {
        display: none !important;
    }
    
    header #head01 #navi-wrapper.mobile-active #navi {
        display: block !important;
        width: 100% !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    header #head01 #navi-wrapper.mobile-active #navi ul {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
    }
    
    header #head01 #navi-wrapper.mobile-active #navi ul li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #eee !important;
        display: block !important;
    }
    
    header #head01 #navi-wrapper.mobile-active #navi ul li:last-child {
        border-bottom: none !important;
    }
    
    header #head01 #navi-wrapper.mobile-active #navi ul li a {
        display: block !important;
        padding: 15px 20px !important;
        font-size: 15px !important;
        width: 100% !important;
        text-align: left !important;
        white-space: normal !important;
        box-sizing: border-box !important;
        color: #333 !important;
        text-decoration: none !important;
        transition: background 0.2s ease !important;
    }
    
    header #head01 #navi-wrapper.mobile-active #navi ul li a:hover,
    header #head01 #navi-wrapper.mobile-active #navi ul li a:active {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
    
    /* スクロールボタンや横スクロール用装飾は非表示 */
    .navi-scroll-btn {
        display: none !important;
    }
    
    header #head01 #navi-wrapper.has-more::after {
        display: none !important;
    }
    
    /* ヘッダーのレイアウト調整 */
    header #head01 {
        position: relative !important;
        align-items: center !important;
    }
    /* SNSバナーのレイアウト調整（縦並びに） */
    #top_cont02 {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    #top_cont02 .left,
    #top_cont02 .right {
        width: 100% !important;
        margin-bottom: 30px !important;
    }
    
    #top_cont02 .right .sns_banner_inner {
        flex-direction: column !important;
        height: auto !important;
    }
    
    #top_cont02 .right .sns_banner_image {
        width: 100% !important;
        height: 200px !important;
        max-height: 200px !important;
    }
    
    #top_cont02 .right .sns_banner_image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    #top_cont02 .right .sns_banner_logo {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 20px !important;
    }
    
    #top_cont02 .right .sns_banner_logo .sns_label {
        font-size: 11px !important;
    }
    
    #top_cont02 .right .sns_banner_logo .sns_name {
        font-size: 16px !important;
    }
    
    #top_cont02 .right .sns_banner_logo .sns_platform {
        font-size: 20px !important;
    }
    
    /* トップページのプロフィールセクション */
    #top_pro {
        flex-direction: column !important;
    }
    
    #top_pro .left,
    #top_pro .right {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* ヘッダーの調整（重複を避けるため、既に上で定義済み） */
    header #head01 {
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    
    header #head01 #navi-wrapper {
        order: 4 !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 10px !important;
    }
    
    /* フッターメニューの調整 */
    footer #foot01 {
        padding: 30px 15px 20px !important;
        box-sizing: border-box !important;
        margin-top: 40px !important;
        clear: both !important;
    }
    
    footer #foot01 p {
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    
    footer #foot01 p img {
        max-width: 200px !important;
        height: auto !important;
        margin: 0 auto !important;
    }
    
    footer #foot01 ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px 8px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    footer #foot01 ul li {
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
        line-height: 1.6 !important;
    }
    
    footer #foot01 ul li::after {
        content: '|' !important;
        margin: 0 5px !important;
        color: #333 !important;
    }
    
    footer #foot01 ul li:last-child::after {
        content: '' !important;
        margin: 0 !important;
    }
    
    footer #foot01 ul li a {
        padding: 5px 3px !important;
        font-size: 11px !important;
        display: inline-block !important;
        white-space: nowrap !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
    }
    
    /* フッター下部の調整 */
    footer #foot02 {
        padding: 15px 15px 20px !important;
        box-sizing: border-box !important;
        margin-top: 0 !important;
        clear: both !important;
        border-top: 1px solid #eee !important;
    }
    
    footer #foot02 #ft2_cont {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    footer #foot02 #ft2_cont .left,
    footer #foot02 #ft2_cont .right {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    footer #foot02 #ft2_cont .left {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        flex-wrap: wrap !important;
    }
    
    footer #foot02 #ft2_cont .left a {
        display: inline-block !important;
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
    
    footer #foot02 #ft2_cont .right {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    
    /* フッター全体の調整 */
    footer {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    footer #foot01,
    footer #foot02 {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* ページネーション（存在する場合） */
    .pagination,
    .page-numbers,
    .nav-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px !important;
        margin: 20px 0 !important;
        padding: 0 10px !important;
    }
    
    .pagination a,
    .pagination span,
    .page-numbers a,
    .page-numbers span,
    .nav-links a,
    .nav-links span {
        padding: 8px 12px !important;
        font-size: 14px !important;
        min-width: 40px !important;
        text-align: center !important;
        display: inline-block !important;
    }
    
    /* 千尊鐘ページの3枚の写真 */
    #prof > div[style*="display:flex"] {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    #prof > div[style*="display:flex"] img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-bottom: 15px !important;
    }
    
    /* INFORMATIONセクションの調整 */
    #top_cont02 .left .hdg {
        margin-bottom: 20px !important;
    }
    
    #top_cont02 .left dl {
        margin-bottom: 15px !important;
    }
    
    #top_cont02 .left dl dt,
    #top_cont02 .left dl dd {
        font-size: 14px !important;
        padding: 8px 0 !important;
    }
    
    /* ボタンの調整 */
    .button,
    .button02,
    .button.sp_d {
        text-align: center !important;
        margin: 15px 0 !important;
    }
    
    .button a,
    .button02 a {
        display: inline-block !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    /* INFORMATIONとSNSセクションの見出し */
    #top_cont02 .left .tit,
    #top_cont02 .right .tit {
        margin-bottom: 15px !important;
    }
    
    #top_cont02 .left .tit h3,
    #top_cont02 .right .tit h3 {
        font-size: 18px !important;
    }
    
    /* INFORMATIONセクションのhdg */
    #top_cont02 .left .hdg {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }
    
    #top_cont02 .left .hdg .button02 {
        margin: 0 !important;
        align-self: flex-end !important;
    }
    
    /* お知らせ・スケジュールページの調整 */
    #info dt,
    #info2 dt {
        padding: 12px 10px !important;
        font-size: 14px !important;
    }
    
    #info dd,
    #info2 dd {
        padding: 15px 10px !important;
        font-size: 14px !important;
    }
    
    /* ディスコグラフィーページの調整 */
    #disco .album-item {
        margin-bottom: 30px !important;
        padding: 15px !important;
    }
    
    /* ギャラリーページの調整 */
    #gallery {
        padding: 0 10px !important;
    }
    
    /* コンテンツエリア全体のパディング */
    #contents {
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    /* 見出しの調整 */
    #subtit,
    h2.subtit {
        font-size: 24px !important;
        margin: 30px 0 20px !important;
        padding: 0 10px !important;
    }
    
    /* プロフィールページの画像 */
    .profile-images {
        gap: 15px !important;
    }
    
    .profile-images img {
        margin-bottom: 15px !important;
    }
    
    /* 千尊鐘ページのコンテンツ */
    #prof {
        padding: 0 15px !important;
    }
    
    #prof h2 {
        font-size: 20px !important;
        margin: 25px 0 15px !important;
    }
    
    #prof h3 {
        font-size: 16px !important;
        margin: 20px 0 10px !important;
    }
    
    #prof p {
        font-size: 14px !important;
        line-height: 1.7 !important;
        margin-bottom: 15px !important;
    }
    
    /* Via Transilvanicaページの調整 */
    .via-transilvanica-content {
        padding: 0 15px !important;
    }
    
    /* フォーム関連の調整 */
    #contact,
    #thanks {
        width: 95% !important;
        padding: 0 10px 40px !important;
    }
    
    #contact form#contact-form dl dt,
    #thanks form dl dt {
        width: 100% !important;
        display: block !important;
        margin-bottom: 5px !important;
    }
    
    #contact form#contact-form dl dd,
    #thanks form dl dd {
        width: 100% !important;
        display: block !important;
    }
    
    /* ディスコグラフィーページの調整 */
    #disco {
        padding: 0 15px 40px !important;
        margin-bottom: 40px !important;
    }
    
    .new-release-section {
        padding: 20px 15px !important;
        margin-bottom: 30px !important;
    }
    
    .new-release-content {
        gap: 20px !important;
    }
    
    .album-details {
        width: 100% !important;
    }
    
    .disco-purchase-btn {
        margin-top: 15px !important;
        margin-bottom: 20px !important;
        padding: 12px 24px !important;
        font-size: 13px !important;
        width: 100% !important;
        text-align: center !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .album-description {
        margin-bottom: 20px !important;
    }
    
    .track-list-section {
        margin-top: 20px !important;
        padding-top: 15px !important;
    }
    
    .album-item {
        margin-bottom: 20px !important;
    }
    
    .album-item .disco-purchase-btn {
        margin-top: 15px !important;
        margin-bottom: 0 !important;
    }
    
    /* コンテンツエリアとフッターの間隔を確保 */
    #contents {
        padding-bottom: 80px !important;
        margin-bottom: 0 !important;
        min-height: calc(100vh - 200px) !important;
        margin-top: 0 !important;
    }
    
    /* メニューが開いたときにコンテンツが下に押し下げられるように */
    header #head01 #navi-wrapper.mobile-active {
        margin-top: 0 !important;
    }
    
    /* メニューが開いているときのbody調整 */
    body.menu-open {
        overflow: hidden !important;
    }
    
    /* メニューが開いているときのヘッダー調整 */
    header #head01:has(#navi-wrapper.mobile-active) {
        margin-bottom: 0 !important;
    }
    
    /* ページ全体の下部マージンを確保 */
    body {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* フッターとの間隔を確保 */
    footer {
        margin-top: 0 !important;
        padding-top: 30px !important;
        position: relative !important;
        z-index: 1 !important;
        background: #fff !important;
    }
    
    /* フッターがコンテンツと重ならないように */
    footer::before {
        content: '' !important;
        display: block !important;
        height: 40px !important;
        width: 100% !important;
        background: transparent !important;
    }
}

/* タブレットサイズ（768px - 1080px）での調整 */
@media (min-width: 768px) and (max-width: 1080px) {
    /* SNSバナーのサイズ調整 */
    #top_cont02 .right .sns_banner_image {
        width: 120px !important;
        height: 120px !important;
    }
    
    #top_cont02 .right .sns_banner_inner {
        height: 120px !important;
    }
    
    #top_cont02 .right .sns_banner_logo {
        height: 120px !important;
        min-height: 120px !important;
        padding: 12px 15px !important;
    }
    
    #top_cont02 .right .sns_banner_logo .sns_label {
        font-size: 11px !important;
    }
    
    #top_cont02 .right .sns_banner_logo .sns_name {
        font-size: 16px !important;
    }
    
    #top_cont02 .right .sns_banner_logo .sns_platform {
        font-size: 20px !important;
    }
    
    /* フッターメニューの調整 */
    footer #foot01 ul {
        flex-wrap: wrap !important;
        gap: 3px !important;
    }
    
    footer #foot01 ul li a {
        padding: 5px 12px !important;
        font-size: 11px !important;
    }
}
