/*
Theme Name: Musica Fiore
Description: ピアノ教室のオリジナルテーマ
Author: skill up
Version: 1.0
*/

/* ---------------------------------------------
全体設計
-----------------------------------------------*/
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: RGB(245, 245, 245);
    overflow-x: hidden;
}

a {
    color: black;
}

p {
    line-height: 1.5;
}

h2 {
    font-size: 30px;
    color: #ABC96F;
    text-align: center;
    margin-bottom: 40px;

    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
}
@media (max-width: 768px) {
    h2 {
        font-size: 28px;
    }
}

.lower-page-h2 {
    font-size: 60px;
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    color: #ffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.lower-page-h2 span {
    font-size: 24px;
    display: block;
}

main {
    position: relative;
}

.inter {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
}

.josefin-sans {
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
}

.montserrat {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
}

.br-450px {
    display: none;
}
@media (max-width: 450px) {
    .br-450px {
        display: block;
    }
}

/* ---------------------------------------------
header
-----------------------------------------------*/
header {
    height: 116px;
    background-color: #ffff;
}
header .header {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    box-sizing: border-box;
}

h1 {
    font-size: 32px;
    font-weight: bold;
    padding-top: 40px;
    box-sizing: border-box;
}
@media (max-width: 1040px) {
    h1 {
        font-size: 25px;
    }
}

.menu-list {
    display: flex;
    gap: 30px;
}
@media (max-width: 1040px) {
    .menu-list {
        display: none;
    }
}

.menu-list li {
    font-size: 18px;
    font-weight: bold;
    padding-top: 50px;
}

.menu-list li:hover {
    opacity: 0.5;
}

.menu-contact a {
    background-color: #E2750F;
    height: 36px;
    color: #ffff;
    padding: 5px 30px;
    border-radius: 30px;
    font-weight: 400;
}

/* ハンバーガーメニュー */
#nav {
    position: absolute;
    height: 500px;
    width: 40%;
    right: -40%;
    top: 0;
    background: #ffffff;
    transition: .7s;
    display: none;
    z-index: 5;
}
@media (max-width: 1040px) {
    #nav {
        display: block;
    }
}
@media (max-width: 500px) {
    #nav {
        position: absolute;
        width: 50%;
        right: -50%;
        font-size: 14px;
        height: 450px;
    }
}

#nav ul {
    padding-top: 80px;
}

#nav ul li {
    list-style-type: none;
    text-align: center;
    margin-bottom: 20px;
}

#hamburger {
    display: none;
    position: absolute;
    top: 33px;
    right: 30px;
    width: 50px;
    height: 44px;
    transition: 1s;
    z-index: 10;
}

.inner_line {
    display: block;
    position: absolute;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #000000;
    transition: 1s;
    border-radius: 4px;
}

#line1 {
    top: 0;
}

#line2 {
    top: 20px;
}

#line3 {
    bottom: 0px;
}

.in {
    transform: translateX(-100%);
}

.line_1,
.line_2,
.line_3 {
    background: #000000;
}

.line_1 {
    transform: translateY(20px) rotate(-405deg);
    top: 0;
}

.line_2 {
    opacity: 0;
}

.line_3 {
    transform: translateY(-20px) rotate(405deg);
    bottom: 0;
}

@media (max-width: 1040px) {
    #hamburger {
        display: block;
    }
}

/* ---------------------------------------------
mai-visual
-----------------------------------------------*/
.mai-visual {
    max-width: 1440px;
    margin: 0 auto;
    /* 画像パスはfunctions.phpのCSS内書き換え等では対応しきれないため、ここだけ注意が必要ですが、ひとまず相対パスのままにします */
    background-image: url(img/mai-visual.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 70px;
    padding: 20px 0 20% 100px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
@media (max-width: 768px) {
    .mai-visual {
        padding: 20% 0 20% 20px;
    }
}
@media (max-width: 500px) {
    .mai-visual {
        padding: 20% 0 20% 10px;
    }
}

.main-logo {
    max-width: 540px;
    position: relative;
    z-index: 2;
}
.main-logo img {
    width: 100%;
}

.main-catch {
    font-size: 60px;
    color: #ffff;
    text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.6);
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}
@media (max-width: 1040px) {
    .main-catch {
        font-size: 5vw;
    }
}
@media (max-width: 750px) {
    .main-catch {
        text-align: center;
    }
}
@media (max-width: 600px) {
    .main-catch {
        margin-top: 20px;
        margin-bottom: 44px;
    }
}

.message {
    display: none;
}

.message.appear {
    display: block;
    animation: 2s fadeIn;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.main-classroom {
    max-width: 520px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    z-index: 2;
}
@media (max-width: 750px) {
    .main-classroom {
        margin: 0 auto 40px;
    }
}
@media (max-width: 600px) {
    .main-classroom {
        display: block;
    }
}

.main-classroom .main-classroom-list {
    color: #ffff;
    border-radius: 5px;
    padding: 16px 20px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}
@media (max-width: 600px) {
    .main-classroom .main-classroom-list {
        width: 50%;
        margin: 0 auto 20px;
        border: solid 3px #ffff;
        font-size: 14px;
        padding: 10px;
    }
}
@media (max-width: 500px) {
    .main-classroom .main-classroom-list {
        width: 60%;
        font-size: 12px;
    }
}

.main-classroom .tahara {
    background-color: #ABC96F;
}

.main-classroom .toyohashi {
    background-color: #FFADBC;
}

.main-contact {
    max-width: 520px;
    background-color: #ffff;
    text-align: center;
    padding: 16px 0;
    font-weight: bold;
    position: relative;
    z-index: 2;
}
@media (max-width: 750px) {
    .main-contact {
        margin: 0 auto;
    }
}
@media (max-width: 600px) {
    .main-contact {
        width: 60%;
    }
}
@media (max-width: 500px) {
    .main-contact {
        width: 75%;
    }
}
.main-contact:hover {
    background-color: rgb(235, 233, 233);
    opacity: 0.9;
}

.main-image {
    width: 35%;
    position: absolute;
    top: 135px;
    right: 0;
}
@media (max-width: 768px) {
    .main-image {
        width: 60%;
        position: absolute;
        top: -15px;
        left: 40px;
    }
}
.main-image img {
    width: 100%;
}

/* ---------------------------------------------
sec1
-----------------------------------------------*/
.sec1 {
    position: relative;
}

.sec1-inner {
    position: relative;
    max-width: 1440px;
    margin: 0 auto 100px;
}
@media (max-width: 768px) {
    .sec1-inner {
        margin-bottom: 40px;
    }
}

.sec1-back {
    clip-path: polygon(100% 0, 100% 30%, 0 100%, 0 20%);
    width: 100%;
    height: 500px;
    background-color: #ffff;
    position: absolute;
    top: 5%;
    left: 0;
    z-index: -1;
}
@media (max-width: 768px) {
    .sec1-back {
        height: 1120px;
        position: absolute;
        top: -3%;
        clip-path: polygon(200% 0, 100% 78%, 0 85%, 0 20%);
    }
}
@media (max-width: 600px) {
    .sec1-back {
        height: 1050px;
    }
}
@media (max-width: 450px) {
    .sec1-back {
        clip-path: polygon(200% 0, 100% 78%, 0 83%, 0 10%);
        height: 1013px;
    }
}

.sec1-catch {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #777777;
    margin-top: 30px;
}
@media (max-width: 768px) {
    .sec1-catch {
        font-size: 3vw;
        line-height: 1.8;
    }
}

.sec1-image1 {
    width: 20%;
    position: absolute;
    top: -37px;
    right: 0;
    z-index: -1;
}
@media (max-width: 768px) {
    .sec1-image1 {
        width: 30%;
    }
}
.sec1-image1 img {
    width: 100%;
}

.sec1-image2 {
    width: 20%;
    position: absolute;
    top: 85px;
    left: 0;
    z-index: -1;
}
@media (max-width: 768px) {
    .sec1-image2 {
        width: 30%;
    }
}
@media (max-width: 600px) {
    .sec1-image2 {
        position: absolute;
        top: 95px;
    }
}
.sec1-image2 img {
    width: 100%;
}

.sec1-contents {
    padding: 0 40px;
    margin-top: 100px;
    display: flex;
    justify-content: center;
    gap: 5%;
}
@media (max-width: 768px) {
    .sec1-contents {
        display: block;
        padding: 0 20px;
    }
}
@media (max-width: 600px) {
    .sec1-contents {
        margin-top: 40px;
    }
}

.sec1-contents-left {
    width: 44%;
}
@media (max-width: 768px) {
    .sec1-contents-left {
        width: 100%;
    }
}

.whats-new-list {
    font-weight: 400;
    border: solid 1px #000000;
    border-radius: 10px;
    padding: 10px;
}

.category {
    background-color: #FFADBC;
    padding: 0 10px;
    color: #ffff;
}

.category-day {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.news-all-wrapper {
    text-align: center;
    margin-top: 36px;
}
@media (max-width: 768px) {
    .news-all-wrapper {
        margin: 40px 0;
    }
}
.news-all-wrapper .news-all {
    display: inline-block;
    width: 50%;
    padding: 10px 0;
    background-color: RGB(110, 110, 110);
    text-align: center;
    color: #ffff;
}

/* 鍵盤の記述 */
.piano {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}
@media (max-width: 768px) {
    .piano {
        margin-top: 80px;
    }
}
@media (max-width: 600px) {
    .piano {
        margin-top: 40px;
    }
}

.white {
    width: 100%;
    height: 80px;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 6px;
    margin: 0;
    box-sizing: border-box;
    transition: background 0.15s, transform 0.1s;
}
.white:hover {
    background: #e7e7e7;
}
.white.active {
    transform: translateX(6px);
    background: #ddd;
}

.black {
    position: absolute;
    left: 0;
    width: 25%;
    height: 40px;
    background: #000;
    border-radius: 6px;
    transition: background 0.15s, transform 0.1s;
    z-index: 10;
}
.black:hover {
    background: #444;
}
.black.active {
    transform: translateX(8px);
    background: #555;
    z-index: 20;
}

.sec1-contents-right {
    width: 44%;
}
@media (max-width: 768px) {
    .sec1-contents-right {
        width: 100%;
    }
}

.sec1-contents-right-list {
    text-align: center;
    font-weight: 400;
}

.Lesson-information-list {
    font-size: 24px;
    padding: 21px 0;
    text-align: center;
    font-weight: bold;
    border: solid 1px #000000;
    border-radius: 10px;
    position: relative;
}

.sec1-back2 {
    clip-path: polygon(0 0, 100% 30%, 100% 70%, 0 100%);
    width: 100%;
    height: 500px;
    background-color: #ffffff;
    position: absolute;
    bottom: 5%;
    left: 0;
    z-index: -1;
}
@media (max-width: 768px) {
    .sec1-back2 {
        clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
        position: absolute;
        bottom: 0;
        height: 1000px;
    }
}

.sec1-slider {
    display: flex;
    margin-top: 100px;
}
@media (max-width: 768px) {
    .sec1-slider {
        display: block;
        margin-top: 80px;
    }
}
@media (max-width: 600px) {
    .sec1-slider {
        margin-top: 40px;
    }
}

.slide-items {
    width: 50%;
}
@media (max-width: 768px) {
    .slide-items {
        width: 100%;
    }
}

.slide-items li {
    width: 100%;
    aspect-ratio: 3/2;
    border-radius: 10%;
    overflow: hidden;
}
@media (max-width: 768px) {
    .slide-items li {
        margin-bottom: 28px;
    }
}
.slide-items li img {
    width: 100%;
}

.slide-items .slide5 img {
    object-fit: cover;
    object-position: center 66%;
}

.slide-items .slide6 img {
    object-fit: cover;
    object-position: center 93%;
}

/* ---------------------------------------------
sec2
-----------------------------------------------*/
.sec2 {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}
@media (max-width: 768px) {
    .sec2 {
        padding: 0;
    }
}

.classroom-info {
    display: flex;
    justify-content: space-between;
}
@media (max-width: 890px) {
    .classroom-info {
        display: block;
    }
}

.classroom-info-list {
    width: 48%;
}
@media (max-width: 890px) {
    .classroom-info-list {
        width: 100%;
    }
}

.classroom-info-map {
    width: 100%;
    aspect-ratio: 3/2;
}

.classroom-info-txt-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
@media (max-width: 890px) {
    .classroom-info-txt-wrapper {
        padding: 0px 10% 40px;
    }
}
@media (max-width: 670px) {
    .classroom-info-txt-wrapper {
        padding: 0 3% 40px;
    }
}
@media (max-width: 450px) {
    .classroom-info-txt-wrapper {
        padding: 0 10% 40px;
    }
}

.classroom-info-txt {
    width: 69%;
}
@media (max-width: 1200px) {
    .classroom-info-txt {
        font-size: 14px;
    }
}
@media (max-width: 1020px) {
    .classroom-info-txt {
        font-size: 12px;
    }
}
@media (max-width: 890px) {
    .classroom-info-txt {
        font-size: 16px;
    }
}
@media (max-width: 640px) {
    .classroom-info-txt {
        font-size: 14px;
    }
}
@media (max-width: 550px) {
    .classroom-info-txt {
        font-size: 12px;
    }
}

.classroom-info-title {
    font-size: 24px;
    font-weight: bold;
}

.classroom-info-img {
    width: 29%;
    aspect-ratio: 2/2.4;
}
.classroom-info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sec1-back4 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 645px;
    background-color: #ffff;
    clip-path: polygon(0 0, 180% 50%, 100% 100%, 0% 100%);
    z-index: -1;
}
@media (max-width: 768px) {
    .sec1-back4 {
        clip-path: polygon(0 0, 180% 15%, 100% 100%, 0% 100%);
        height: 880px;
    }
}

.sec2-back3 {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 1) 15%, rgba(253, 218, 225, 1) 50%);
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* ---------------------------------------------
footer
-----------------------------------------------*/
footer {
    position: relative;
    padding: 200px 20px 40px 20px;
}
@media (max-width: 768px) {
    footer {
        padding: 1cqb 20px 40px 20px;
    }
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 768px) {
    .footer-inner {
        display: block;
    }
}

.footer-logo {
    width: 25%;
}
@media (max-width: 768px) {
    .footer-logo {
        width: 70%;
        margin: 0 auto;
        margin-bottom: 20px;
    }
}

.footer-logo-img {
    width: 100%;
    margin: 0 auto;
}
.footer-logo-img img {
    width: 100%;
}

.footer-logo-shopname {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}
@media (max-width: 768px) {
    .footer-logo-shopname {
        font-size: 18px;
    }
}
@media (max-width: 500px) {
    .footer-logo-shopname {
        font-size: 14px;
    }
}

.insta {
    width: 30px;
    margin: 30px auto 0;
}
.insta img {
    width: 100%;
}

.foooter-content-wrapper {
    width: 50%;
    display: flex;
    justify-content: space-between;
}
@media (max-width: 768px) {
    .foooter-content-wrapper {
        width: 100%;
    }
}

.foooter-content {
    width: 50%;
}
@media (max-width: 800px) {
    .foooter-content {
        font-size: 14px;
    }
}
@media (max-width: 768px) {
    .foooter-content {
        width: 50%;
    }
}
@media (max-width: 400px) {
    .foooter-content {
        font-size: 12px;
    }
}
.foooter-content p {
    margin-bottom: 10px;
}

.footer-copyright {
    font-size: 14px;
    display: block;
    text-align: center;
    margin-top: 80px;
}
@media (max-width: 768px) {
    .footer-copyright {
        margin-top: 40px;
        font-size: 10px;
    }
}

/* -------------------------
           ハンバーガーボタン（枠）
           ------------------------- */
        #hamburger {
            display: block !important;
            position: fixed !important;
            top: 20px;
            right: 20px;
            width: 30px;
            height: 25px;
            
            /* ★数値を大きくして最前面へ */
            z-index: 2147483647 !important; 
            
            cursor: pointer;
            
            /* ★タップ時の判定エリアを見えなくする等の不具合防止 */
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

/* ---------------------------------------------
   下層ページ（NEWSなど）のタイトル設定
-----------------------------------------------*/
.page-title-en {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 40px;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
    color: #ffffff; /* ここで白に指定 */
}

.page-title-ja {
    font-size: 14px;
    margin-top: 10px;
    position: relative;
    z-index: 1;
    color: #ffffff; /* ここで白に指定 */
}

/* ---------------------------------------------
   スマホ用追従フッターボタン（強力版）
-----------------------------------------------*/
/* PCでは非表示 */
.mobile-sticky-footer {
    display: none !important;
}

/* スマホ（幅768px以下）のみ表示 */
@media screen and (max-width: 768px) {
    /* コンテンツがボタンに隠れないよう余白確保 */
    body {
        padding-bottom: 70px !important; 
    }

    .mobile-sticky-footer {
        display: flex !important; /* 強制的に表示 */
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        
        /* 最前面に持ってくる（ハンバーガーメニューと同じくらい手前に） */
        z-index: 2147483647 !important; 
        
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        background-color: #fff; /* 背景を一応白にしておく */
    }

    .sticky-btn {
        width: 50% !important;
        text-decoration: none !important;
        color: #ffffff !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 5px !important;
        box-sizing: border-box !important;
    }

    /* --- アイコン設定 --- */
    .sticky-icon {
        width: 24px !important;
        height: 24px !important;
        margin-right: 8px !important;
        fill: #ffffff !important;
    }

    /* --- テキスト設定 --- */
    .sticky-text {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }

    .main-text {
        font-size: 15px !important;
        font-weight: bold !important;
        display: block !important;
        color: #ffffff !important;
    }

    .sub-text {
        font-size: 10px !important;
        opacity: 0.9 !important;
        display: block !important;
        margin-top: 1px !important;
        color: #ffffff !important;
    }

    /* --- ボタンの色分け --- */
    /* 左：体験レッスン */
    .btn-trial {
        background-color: #D35400 !important; 
    }

    /* 右：お問い合わせ */
    .btn-contact {
        background-color: #444444 !important;
        border-left: 1px solid rgba(255,255,255,0.1) !important;
    }
}