    /*　SP版 */
    @media screen and (max-width: 768px) {
        /* メイン */
        main {
            width:100%;
        } 

        /* アニメーション */
        @supports (-webkit-touch-callout: none) {
            .mm_index_top_slide_01,
            .mm_index_top_slide_02,
            .mm_index_top_slide_03,
            .mm_index_top_slide_04 {
                background-attachment: scroll !important;
            }
        }
          div.mm_index_top_slide_01 {
            filter: brightness(50%);
            background-position: left center;
            background-image: url('https://www.miyadaiku-marutaka.online/xL97bmBs/wp-content/themes/original/asset/img/index_topslide_01.jpg');
            animation: slide-anime-01 24s infinite;
        }
        div.mm_index_top_slide_02 {
            filter: brightness(50%);
            background-position: right center;
            background-image: url('https://www.miyadaiku-marutaka.online/xL97bmBs/wp-content/themes/original/asset/img/index_topslide_02.jpg');
            animation: slide-anime-02 24s infinite;
        }
        div.mm_index_top_slide_03 {
            background-color: #fff;
            filter: brightness(50%);
            background-size: cover;
            background-position: center bottom;
            background-repeat: no-repeat;
            background-image: url('https://www.miyadaiku-marutaka.online/xL97bmBs/wp-content/themes/original/asset/img/index_topslide_03.jpg');
            animation: slide-anime-03 24s infinite;
        }
        div.mm_index_top_slide_04 {
            filter: brightness(50%);
            background-position: right center;
            background-image: url('https://www.miyadaiku-marutaka.online/xL97bmBs/wp-content/themes/original/asset/img/index_topslide_04.jpg');
            animation: slide-anime-04 24s infinite;
        }
        @keyframes slide-anime-01 {
            0% {opacity: 1; background-position: left center;}
            5% {opacity: 1; background-position: right center;}
            20% {opacity: 1; background-position: right center;}
            25% {opacity: 0;}
            100% {opacity: 0;}
        }
        @keyframes slide-anime-02 {
            0% {opacity: 0;}
            20% {opacity: 0;}
            25% {opacity: 1; background-position: 70% center;}
            30% {opacity: 1; background-position: 35% center;}
            45% {opacity: 1; background-position: 35% center;}
            50% {opacity: 0;}
            100% {opacity: 0;}
        }
        @keyframes slide-anime-03 {
            0% {opacity: 0;}
            45% {opacity: 0;}
            50% {opacity: 1;}
            55% {opacity: 1;}
            70% {opacity: 1;}
            75% {opacity: 0;}
            100% {opacity: 0;}
        }
        @keyframes slide-anime-04 {
            0% {opacity: 0;}
            20% {opacity: 0;}
            25% {opacity: 0;}
            45% {opacity: 0;}
            50% {opacity: 0;}
            70% {opacity: 0;}
            75% {opacity: 1; background-position: right center;}
            80% {opacity: 1; background-position: 35% center;}
            100% {opacity: 1; background-position: 35% center;}
        }


        /* アニメーション（文字） */
        span.mm_index_top_slide_01_text {
            animation: text-anime-01 24s infinite;
        }
        span.mm_index_top_slide_02_text {
            animation: text-anime-02 24s infinite;
        }
        span.mm_index_top_slide_03_text {
            animation: text-anime-03 24s infinite;
        }
        span.mm_index_top_slide_04_text {
            animation: text-anime-04 24s infinite;
        }
        @keyframes text-anime-01 {
            0% {opacity: 0;}
            5% {opacity: 1;}
            20% {opacity: 1;}
            25% {opacity: 0;}
            100% {opacity: 0;}
        }
        @keyframes text-anime-02 {
            0% {opacity: 0;}
            25% {opacity: 0;}
            30% {opacity: 1;}
            45% {opacity: 1;}
            50% {opacity: 0;}
            100% {opacity: 0;}
        }
        @keyframes text-anime-03 {
            0% {opacity: 0;}
            50% {opacity: 0;}
            55% {opacity: 1;}
            70% {opacity: 1;}
            75% {opacity: 0;}
            100% {opacity: 0;}
        }
        @keyframes text-anime-04 {
            0% {opacity: 0;}
            75% {opacity: 0;}
            80% {opacity: 1;}
            95% {opacity: 1;}
            100% {opacity: 0;}
        }


        /* ヒーロー部分 */
        div.mm_index_topslider_wrap {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            margin: 0 auto;
        }
        div.mm_index_top_slide_01, div.mm_index_top_slide_02, div.mm_index_top_slide_03, div.mm_index_top_slide_04  {
            position: absolute;
            top:0;
            left:0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-repeat: no-repeat;
            z-index: -2;
        }
        div.mm_index_top_slide_text_wrap {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            display: flex;
            align-items: flex-start; /* ← 上寄せ */
            justify-content: center; /* ← 横中央寄せ（必要に応じて変更） */
        }
        span.mm_index_top_slide_text_common {
            padding: 0;
            font-size: 30px;
            margin-top: 3rem;
            color: #FFF;
            text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
            writing-mode: vertical-rl;
            line-height: 2.2;
        }


        /* お知らせ */
        div.mm_news_wrap {
            background-color: #f6f3ef;;
            color: black;
            padding-bottom: 15px;
        }
        div.mm_news_title_wrap {
            padding: 15px 0 5px 0;
            display: flex;
            align-items: center;
            justify-content: center; /* 全体を中央寄せしたい場合 */
        }
        p.mm_news_title_text {
            margin: auto;
        }
        div.mm_news_title_wrap p {
            padding: 0;
            margin: 0 30px;
            font-size: 18px;
            font-weight: 550;
        }
        img.mm_news_icon_right {
            transform: scaleX(-1);
        }
        div.mm_news_list_wrap {
            border-top: #000 solid 2px;
            border-bottom: #000 solid 2px;
            margin: 0 auto;
            width: 90%;
        }
        ul.mm_news_list_ul {
            list-style: none;       /* ●を消す */
            padding: 0;
            margin: 0;
            border-top: 1px dotted #aaa; /* 上の線（外側） */
            font-size: 15px;
        }
        ul.mm_news_list_ul li {
            position: relative;
            padding: 5px 10px;
            border-bottom: 1px dotted #aaa; /* 各項目の区切り線 */
        }
        ul.mm_news_list_ul li:after {
            content: "＞";
            position: absolute;
            right: 0;
            top: 35%;
        }
        ul.mm_news_list_ul li:hover {
            background-color: #ECECEC;
        }
        /* 最後のliの線を消して、内側だけに見せる */
        ul.mm_news_list_ul li:last-child {
            border-bottom: none;
        }
        ul.mm_news_list_ul a {
            text-decoration: none;
            color: #502200;
        }
        div.mm_news_bottom_wrap {
            width: 90%;
            padding: 5px 0;
            margin: auto;
            text-align: right;
            font-size: 13px;
        }
        div.news_info_wrap {
            display: flex;
            padding: 5px 0 8px 0;
        }
        p.mm_news_date {
            margin: 0;
            padding: 0;
            font-size: 13px;
            color: #4E4E4E;
        }
        div.news_info {
            margin-left: 10px;
            width: 20%;
            text-align: center;
            background-color: #502200;
            color: #FFF;
            border-radius: 5px;
            font-size: 13px;
        }


        /* 自然素材について */
        div.mm_sizen_wrap {
            position: relative;
            width: 100%;
            margin: auto;
            background-color: #000000;
            color: #F9F6EC;
            padding-top: 25px;
            padding-bottom: 10px;
            background-image: url("https://www.miyadaiku-marutaka.online/xL97bmBs/wp-content/themes/original/asset/img/info_background.jpg");
            background-size: cover;
            background-repeat: no-repeat;
            background-position: right bottom;
        }
        span.mm_sizen_text_circleback {
            display: inline-block;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #FFF;
            color: #2b1201ff;
            text-align: right;
            line-height: 60px;
            padding-right:5px;
        }
        h2.mm_sizen_title {
            width: 100%;
            text-align: center;
            margin: auto;
            padding: 0;
            font-size: 30x;
            font-weight: 550;
            text-shadow: 0 2px 4px rgba(255, 255, 255, 0.25);
            margin-bottom: 25px;
        }
        div.mm_sizen_anime_wrap {
            transition: 0.8s ease-in-out;
            transform: translateY(30px);
            opacity: 0;
        }
        div.mm_sizen_anime_wrap.on {
            transform: translateY(0);
            opacity: 1.0;
        }

        /*　カレンダーパーツ */
        div.mm_parts_calendar_wrap {
            width: 90%;
            margin: 20px auto;
        }


        /* 棟梁について*/
        div.mm_abouttoryo_wrap {
            width: 100%;
            background-image: url("https://www.miyadaiku-marutaka.online/xL97bmBs/wp-content/themes/original/asset/img/03_background_sp.png");
            background-size: cover;
            background-position: right bottom;
            margin: auto;
            background-color: #2b1201ff;
            color: #F9F6EC;
            padding-top: 25px;
            padding-bottom: 60px;
        }
        p.mm_abouttoryo_text {
            font-size: 16px;
            font-weight: 500;
            line-height: 2;
            margin: auto;
            padding: 0 15px;
            text-shadow:
                0 1px 2px rgba(0, 0, 0, 0.9),
                0 2px 8px rgba(0, 0, 0, 0.55);
            text-align: center;
            margin-bottom: 25px;
        }
        p.mm_sizen_text {
            font-size: 18px;
            font-weight: 500;
            line-height: 2;
            margin: auto;
            padding: 0 15px;
            text-shadow:
                0 1px 2px rgba(0, 0, 0, 0.9),
                0 2px 8px rgba(0, 0, 0, 0.55);
            text-align: center;
            margin-bottom: 25px;
        }
        h2.mm_abouttoryo_text_h2 {
            text-align: center;
            font-size: 32px;
            text-shadow:
                0 1px 2px rgba(0, 0, 0, 0.9),
                0 2px 8px rgba(0, 0, 0, 0.55);
        }
        .text_strong {
            margin: 0;
            padding: 0;
            font-size: 42px;
            color: #D0AB7A;
        }
    }