/* =========================
   Music Mind Games
========================= */

.mmg-main {
    background-color: var(--color-white);
}

.mmg-about {
    padding: 100px 20px 120px;
}

.mmg-about-inner {
    width: min(1280px, calc(100% - 80px));
    margin: 0 auto;
}

/* =========================
   Main Title
========================= */

.mmg-main-title {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 42px;
    font-family: var(--font-base);
    font-size: clamp(58px, 6vw, 82px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.03em;
    color: var(--color-light-green);
}

/* タイトルの丸飾り */
.mmg-main-title::before,
.mmg-main-title::after {
    content: "";
    position: absolute;
    background-color: var(--color-light-green);
    border-radius: 50%;
    opacity: 0.75;
}

.mmg-main-title::before {
    left: 7%;
    top: -8px;
    width: 18px;
    height: 18px;
    box-shadow: 24px 22px 0 -5px var(--color-light-green);
}

.mmg-main-title::after {
    right: 7%;
    bottom: -3px;
    width: 14px;
    height: 14px;
    box-shadow: -22px -20px 0 -4px var(--color-light-green);
}

/* タイトル3単語 */
.mmg-main-title span {
    display: inline-block;
}

.mmg-main-title span:nth-child(1) {
    transform: translateY(4px) rotate(-3deg);
}

.mmg-main-title span:nth-child(2) {
    font-size: 1.08em;
    transform: translateY(-10px) rotate(2deg);
}

.mmg-main-title span:nth-child(3) {
    transform: translateY(3px) rotate(-2deg);
}

/* =========================
   Introduction
========================= */

.mmg-intro {
    position: relative;
    width: min(100%, 870px);
    margin: 65px auto 0;
    text-align: left;
}

.mmg-intro p {
    font-family: var(--font-base);
    font-size: 19px;
    font-weight: 500;
    line-height: 2.15;
    color: var(--color-text);
}

.mmg-intro p + p {
    margin-top: 16px;
}

/* 300種類以上 */
.mmg-intro-accent {
    font-weight: 700;
    color: var(--color-green);
}

/* ゴールドライン */
.mmg-intro::after {
    content: "";
    display: block;
    width: min(1050px, calc(100vw - 120px));
    height: 20px;
    margin-top: 38px;
    margin-left: 50%;
    transform: translateX(-50%);
    background-image: url("../images/illustration/mmg-line01.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% auto;
}

/* =========================
   Catch
========================= */

.mmg-page-catch {
    position: relative;
    margin-top: 60px;
    padding: 100px 20px 70px;
    text-align: center;
    background-image: url("../images/illustration/mmg-title-bg.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
}

/* キャッチコピー */
.mmg-page-catch h2 {
    position: relative;
    z-index: 1;
    font-family: var(--font-base);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-green);
}

/* 「たのしい！」「できた！」 */
.mmg-page-catch h2 span {
    font-size: 42px;
    font-weight: 700;
}

/* 説明文 */
.mmg-page-catch p {
    position: relative;
    z-index: 1;
    margin: 38px auto 0;
    font-family: var(--font-base);
    font-size: 21px;
    font-weight: 600;
    line-height: 2.1;
    text-align: center;
    color: #4B5563;
}

/* =========================
   MMG System
========================= */

.mmg-system {
    margin-top: 80px;
    padding: 55px 70px 65px;
    background-color: rgba(153, 223, 178, 0.45);
    border-radius: 28px;
}

/* 見出し */
.mmg-system-lead {
    font-family: var(--font-base);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.9;
    text-align: center;
    color: var(--color-text);
}

/* 強調部分 */
.mmg-system-lead span {
    position: relative;
    display: inline-block;
    margin-top: 4px;
    margin-right: 12px;
    padding: 4px 14px 6px;
    font-size: 25px;
    font-weight: 700;
    color: var(--color-green);
    background-color: rgba(255, 255, 255, 0.70);
    border-radius: 10px;
}

/* 白い丸飾り */
.mmg-system-lead span::before,
.mmg-system-lead span::after {
    content: "";
    position: absolute;
    background-color: rgba(255, 255, 255, 0.82);
    border-radius: 50%;
}

.mmg-system-lead span::before {
    left: -18px;
    top: 8px;
    width: 10px;
    height: 10px;
}

.mmg-system-lead span::after {
    right: -14px;
    bottom: 6px;
    width: 6px;
    height: 6px;
}

/* カード一覧 */
.mmg-system-list {
    display: flex;
    justify-content: center;
    gap: 70px;
    margin-top: 55px;
}

/* カード */
.mmg-system-item {
    display: flex;
    align-items: center;
    gap: 34px;
    width: 500px;
    padding: 32px 42px;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(78, 143, 120, 0.14);
    border-radius: 22px;
    box-shadow: 0 5px 14px rgba(78, 143, 120, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mmg-system-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(78, 143, 120, 0.12);
}

/* 数字 */
.mmg-system-number-wrap {
    position: relative;
    flex-shrink: 0;
    text-align: center;
}

.mmg-system-number {
    position: relative;
    padding-left: 72px;
    font-family: var(--font-english);
    font-size: 90px;
    font-weight: 500;
    line-height: 0.95;
    color: var(--color-light-green);
    transition: transform 0.3s ease;
}

.mmg-system-item:hover .mmg-system-number {
    transform: scale(1.04);
}

/* ゴールドリーフ */
.mmg-system-number::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 50%;
    width: 100px;
    height: 145px;
    transform: translateY(-50%);
    background-image: url("../images/illustration/mmg-leaf.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 英字 */
.mmg-system-english {
    margin: 10px 0 0 55px;
    font-family: var(--font-english);
    font-size: 25px;
    font-weight: 500;
    color: var(--color-green);
}

/* 説明文 */
.mmg-system-text {
    flex: 1;
}

.mmg-system-text p {
    font-family: var(--font-base);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--color-text);
}

/* カードタイトル */
.mmg-system-text .mmg-system-name {
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-green);
}

/* =========================
   Feature
========================= */

.mmg-feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 110px;
}

/* カード */
.mmg-feature-item {
    padding: 36px 28px 30px;
    text-align: center;
    background-color: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

/* タイトル */
.mmg-feature-item h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-green);
}

/* ゴールドライン */
.mmg-feature-item h2::after {
    content: "";
    display: block;
    width: 85%;
    height: 14px;
    margin: 14px auto 0;
    background-image: url("../images/illustration/mmg-line02.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 説明文 */
.mmg-feature-item p {
    min-height: 80px;
    margin: 22px 0 0;
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
    color: var(--color-text);
}

/* 画像 */
.mmg-feature-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: 25px;
    object-fit: cover;
    border-radius: 14px;
}

/* 画像位置 */
.mmg-feature-item:nth-child(1) img {
    object-position: 95% 25%;
}

.mmg-feature-item:nth-child(2) img {
    object-position: 0% 40%;
}

.mmg-feature-item:nth-child(3) img {
    object-position: 50% 10%;
}

/* =========================
   Official Site
========================= */

.mmg-official {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 100px;
    text-align: center;
}

/* 左右の飾り */
.mmg-official::before,
.mmg-official::after {
    content: "";
    flex-shrink: 0;
    width: 170px;
    height: 42px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.mmg-official::before {
    background-image: url("../images/illustration/heading-line-left.png");
}

.mmg-official::after {
    background-image: url("../images/illustration/heading-line-right.png");
}

/* リンク */
.mmg-official a {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--color-green);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mmg-official a:hover {
    opacity: 0.65;
    transform: translateY(-2px);
}

/* =========================
   SP
   767px以下
========================= */

@media (max-width: 767px) {

    /* =========================
       Page
    ========================= */

    .mmg-about {
        padding: 70px 16px 90px;
    }

    .mmg-about-inner {
        width: 100%;
    }

    /* =========================
       Main Title
    ========================= */

    .mmg-main-title {
        gap: 10px;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(30px, 6vw, 42px);
        line-height: 1.2;
        letter-spacing: 0.01em;
        white-space: nowrap;
    }

    .mmg-main-title span:nth-child(1) {
        transform: translateY(2px) rotate(-2deg);
    }

    .mmg-main-title span:nth-child(2) {
        font-size: 1.06em;
        transform: translateY(-5px) rotate(1deg);
    }

    .mmg-main-title span:nth-child(3) {
        transform: translateY(2px) rotate(-1deg);
    }

    /* タイトルの丸飾り */
    .mmg-main-title::before {
        left: -28px;
        top: -2px;
        width: 10px;
        height: 10px;
        box-shadow: 14px 14px 0 -3px var(--color-light-green);
    }

    .mmg-main-title::after {
        right: -28px;
        bottom: 0;
        width: 9px;
        height: 9px;
        box-shadow: -14px -12px 0 -3px var(--color-light-green);
    }

    /* =========================
       Introduction
    ========================= */

    .mmg-intro {
        width: min(100%, 560px);
        margin-left: auto;
        margin-right: auto;
    }

    .mmg-intro p {
        font-size: 15px;
        font-weight: 500;
        line-height: 1.95;
    }

    .mmg-intro p + p {
        margin-top: 14px;
    }

    /* ゴールドライン */
    .mmg-intro::after {
        width: 100%;
        height: 14px;
        margin: 30px auto 0;
        transform: none;
    }

    /* =========================
       Catch
    ========================= */

    .mmg-page-catch {
        margin-top: 35px;
        padding: 40px 12px 55px;
    }

    .mmg-page-catch h2 {
        width: 100%;
        margin: 0 auto;
        font-size: 15px;
        line-height: 1.8;
    }

    .mmg-page-catch h2 span {
        font-size: 22px;
    }

    /* 説明文 */
    .mmg-page-catch p {
        width: calc(100% - 18px);
        margin: 28px auto 0;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.9;
    }

    .mmg-page-catch p br {
        display: none;
    }

    /* =========================
       MMG System
    ========================= */

    .mmg-system {
        margin-top: 55px;
        padding: 42px 18px 45px;
        border-radius: 24px;
    }

    /* 見出し */
    .mmg-system-lead {
        font-size: 15px;
        line-height: 1.8;
    }

    .mmg-system-lead span {
        margin-top: 8px;
        margin-right: 6px;
        padding: 4px 10px 6px;
        font-size: 19px;
        border-radius: 8px;
    }

    .mmg-system-lead span::before {
        left: -12px;
        width: 7px;
        height: 7px;
    }

    .mmg-system-lead span::after {
        right: -10px;
        width: 5px;
        height: 5px;
    }

    /* カード一覧 */
    .mmg-system-list {
        flex-direction: column;
        gap: 28px;
        margin-top: 38px;
    }

    /* カード */
    .mmg-system-item {
        gap: 20px;
        width: 100%;
        padding: 28px 20px;
        border-radius: 18px;
    }

    /* 数字 */
    .mmg-system-number-wrap {
        width: 115px;
    }

    .mmg-system-number {
        padding-left: 38px;
        font-size: 68px;
    }

    /* リーフ */
    .mmg-system-number::before {
        left: -25px;
        width: 70px;
        height: 105px;
    }

    /* 英字 */
    .mmg-system-english {
        margin: 8px 0 0 25px;
        font-size: 18px;
    }

    /* 説明文 */
    .mmg-system-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* カードタイトル */
    .mmg-system-text .mmg-system-name {
        margin-bottom: 10px;
        font-size: 16px;
        line-height: 1.6;
    }

    /* =========================
       Feature
    ========================= */

    .mmg-feature-list {
        grid-template-columns: 1fr;
        gap: 38px;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    /* カード */
    .mmg-feature-item {
        width: 100%;
        padding: 30px 22px 24px;
        border-radius: 18px;
    }

    .mmg-feature-item h2 {
        font-size: 18px;
    }

    .mmg-feature-item h2::after {
        width: 72%;
        height: 14px;
        margin-top: 8px;
    }

    /* 説明文 */
    .mmg-feature-item p {
        min-height: 0;
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.8;
    }

    /* 画像 */
    .mmg-feature-item img {
        margin-top: 22px;
        border-radius: 12px;
    }

    /* =========================
       Official Site
    ========================= */

    .mmg-official {
        gap: 10px;
        width: 100%;
        margin-top: 70px;
    }

    /* 左右の飾り */
    .mmg-official::before,
    .mmg-official::after {
        width: 48px;
        height: 22px;
    }

    /* リンク */
    .mmg-official a {
        max-width: 190px;
        font-size: 13px;
        line-height: 1.6;
        text-align: center;
        white-space: normal;
    }
}

/* =========================
   Large SP
   601px〜767px
========================= */

@media (min-width: 601px) and (max-width: 767px) {

    /* =========================
       MMG System
    ========================= */

    .mmg-system {
        padding: 46px 30px 50px;
    }

    .mmg-system-list {
        flex-direction: row;
        gap: 22px;
    }

    /* カード */
    .mmg-system-item {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        row-gap: 18px;
        width: auto;
        padding: 32px 24px 34px;
        text-align: center;
    }

    .mmg-system-text {
        display: contents;
    }

    /* カードタイトル */
    .mmg-system-text .mmg-system-name {
        grid-row: 1;
        margin: 0;
        font-size: 16px;
        line-height: 1.5;
        text-align: center;
        white-space: nowrap;
    }

    /* 数字 */
    .mmg-system-number-wrap {
        grid-row: 2;
        width: 150px;
        margin: 0 auto;
    }

    .mmg-system-number {
        padding-left: 42px;
        font-size: 62px;
    }

    /* リーフ */
    .mmg-system-number::before {
        left: -10px;
        width: 64px;
        height: 96px;
    }

    /* 英字 */
    .mmg-system-english {
        margin: 8px 0 0 20px;
        font-size: 17px;
        white-space: nowrap;
    }

    /* 説明文 */
    .mmg-system-text p:not(.mmg-system-name) {
        grid-row: 3;
        width: 100%;
        margin: 0 auto;
        font-size: 13px;
        line-height: 1.8;
        text-align: center;
    }
}

/* =========================
   Tablet
   768px〜1280px
========================= */

@media (min-width: 768px) and (max-width: 1280px) {

    /* =========================
       Main Title
    ========================= */

    .mmg-main-title {
        gap: 24px;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(46px, 6vw, 58px);
    }

    /* タイトルの丸飾り */
    .mmg-main-title::before {
        left: -42px;
        top: -5px;
    }

    .mmg-main-title::after {
        right: -42px;
        bottom: -3px;
    }

    /* =========================
       Introduction
    ========================= */

    .mmg-intro {
        width: min(100%, 820px);
    }

    .mmg-intro p {
        font-size: 17px;
        line-height: 2;
    }

    /* =========================
       Catch
    ========================= */

    .mmg-page-catch {
        padding-left: 30px;
        padding-right: 30px;
    }

    .mmg-page-catch h2 {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
        font-size: 25px;
        line-height: 1.7;
    }

    .mmg-page-catch h2 span {
        font-size: 34px;
    }

    /* 説明文 */
    .mmg-page-catch p {
        max-width: 780px;
        font-size: 17px;
        line-height: 2;
    }

    /* =========================
       MMG System
    ========================= */

    .mmg-system {
        padding: 50px 36px 55px;
    }

    .mmg-system-list {
        flex-direction: row;
        gap: 28px;
    }

    /* カード */
    .mmg-system-item {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        row-gap: 20px;
        flex: 1;
        width: auto;
        padding: 34px 28px 36px;
        text-align: center;
    }

    .mmg-system-text {
        display: contents;
    }

    /* カードタイトル */
    .mmg-system-text .mmg-system-name {
        grid-row: 1;
        margin: 0;
        font-size: 18px;
        line-height: 1.5;
        text-align: center;
        white-space: nowrap;
    }

    /* 数字 */
    .mmg-system-number-wrap {
        grid-row: 2;
        width: 170px;
        margin: 0 auto;
    }

    .mmg-system-number {
        padding-left: 48px;
        font-size: 72px;
    }

    /* リーフ */
    .mmg-system-number::before {
        left: -12px;
        width: 72px;
        height: 108px;
    }

    /* 英字 */
    .mmg-system-english {
        margin: 10px 0 0 20px;
        font-size: 20px;
        white-space: nowrap;
    }

    /* 説明文 */
    .mmg-system-text p:not(.mmg-system-name) {
        grid-row: 3;
        width: 100%;
        margin: 0 auto;
        font-size: 14px;
        text-align: center;
    }

    /* =========================
       Feature
    ========================= */

    .mmg-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 3枚目 */
    .mmg-feature-item:nth-child(3) {
        grid-column: 1 / 3;
        width: calc((100% - 36px) / 2);
        justify-self: center;
    }

    .mmg-feature-item {
        padding: 32px 26px 28px;
    }

    .mmg-feature-item h2 {
        font-size: 19px;
    }

    /* 説明文 */
    .mmg-feature-item p {
        min-height: 0;
        font-size: 14px;
        line-height: 1.8;
    }
}

/* =========================
   PC
   1281px以上
========================= */

@media (min-width: 1281px) {

    .mmg-system-list {
        gap: 40px;
    }

    .mmg-system-item {
        width: calc((100% - 40px) / 2);
        min-width: 0;
        gap: clamp(20px, 2.5vw, 34px);
        padding: 32px clamp(24px, 3vw, 42px);
    }

    .mmg-system-text {
        min-width: 0;
    }

    .mmg-system-text .mmg-system-name {
        font-size: clamp(16px, 1.5vw, 20px);
        white-space: nowrap;
    }
}