#home #front {
    display: grid;
    max-width: 1350px;
    margin: 0 auto 8rem auto;
    padding: 0 8%;
    gap: 2rem;
}

#front a {
    font-size: 1.2rem;
}

#front a {
    position: relative;
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/*ボックスのホバー、クリックアニメーション ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
#front a img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: filter 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時に内側に押し込まれる */
#front a:hover {
    background: none;
    box-shadow: inset 2px 2px 4px var(--shadow-darkcolor), inset -2px -2px 4px var(--shadow-brightcolor) !important;
    filter: brightness(0.9) contrast(1.05);
}

header a:hover {
    box-shadow: none !important;
}

/* クリック時にさらに押し込まれる */
a:active {
    box-shadow:
        inset 0 4px 6px var(--dark-color),
        inset 0 1px 8px var(--dark-color) !important;
    transform: scale(0.95);
}

/* グリッドレイアウト 共通のCSS */
#home .group_1 section a,
#home .group_2 section a,
#home .group_3 section .group_corp a:nth-child(1),
#home .group_3 section .group_corp a:nth-child(2),
#home .group_3 section .group_corp a:nth-child(3),
#home .group_3 section .group_corp a:nth-child(4),
#home .group_3 section .group_corp_center a,
.group_corp a,
.banner_group a {
    line-height: 1.5;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    background: var(--base-color);
    box-shadow: 5px 5px 10px var(--shadow-darkcolor), -5px -5px 8px var(--shadow-brightcolor);
    /* box-shadow: 0 0 2px 2px var(--shadow-brightcolor), inset 2px 2px 4px var(--shadow-darkcolor), 0 0 9px var(--shadow-darkcolor), 4px 4px 6px var(--shadow-darkcolor), -4px -4px 6px var(--shadow-brightcolor), 5px 16px 14px var(--shadow-darkcolor), -8px -11px 13px var(--shadow-brightcolor); */
}

.grid-1,
.grid-2,
.grid-3,
.grid-4,
.grid-5,
.grid-6,
.group_corp a {
    aspect-ratio: 1 / 1;
}

/* グループ1 ↓ここから ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
#home .group_1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    height: 100%;
}

#home .group_1 .grid-1 {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

#home .group_1 .grid-1 a:nth-child(1),
#home .group_1 .grid-2 a {
    padding: 0;
}

/* #home .group_1 .grid-1 a:nth-child(3) {
    grid-column: 1 / -1;
    align-items: baseline;
}

@media (min-width:1300px) {
    #home .group_1 .grid-1 a:nth-child(3) img {
        width: 300px;
    }
} */

#home .group_1 .grid-1 a {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

/* #home .group_1 .grid-1 a .daiken_icon {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
} */

/* @keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
} */

/* アニメーション停止の間隔を作る */
/* @keyframes float {
    0%, 40% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(-10px);
    }

    60%, 100% {
        transform: translateY(0);
    }
} */




/* グリッド2 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.grid-2 {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
}

.grid-2 a {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.grid-2 span {
    position: absolute;
    left: 1rem;
    top: 2rem;
    font-size: 1rem;
    letter-spacing: 0.2rem;
    line-height: 2.2;
}

@media (min-width:1300px) {
    .grid-2 span {
        position: absolute;
        left: 2rem;
        top: 2rem;
        font-size: 1.5rem;
        letter-spacing: 0.2rem;
        line-height: 2.2;
    }
}

/* グリッド3 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 .top-left {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.grid-3 .bottom-left {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 !important;
    text-align: center;
}

.grid-3 .bottom-left span {
    background: var(--main-color);
    color: var(--text-white);
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 0.3rem;
}

.grid-3 .bottom-left p:first-child {
    font-size: 0.7rem;
    padding: 1rem 0 0.5rem 0;
}

.grid-3 .bottom-left p:last-child {
    padding: 1rem 0;
}

.grid-3 .right-box {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}


/* グループ2 ここから↓ ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
#home .group_2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    height: 100%;
    position: relative;
}

#home .group_2 .grid-4 {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

#home .group_2 .grid-4 a:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

#home .group_2 .grid-4 a:nth-child(2),
#home .group_2 .grid-4 a:nth-child(3) {
    grid-column: 2 / 3;
}

#home .group_2 .grid-4 a:nth-child(2) {
    grid-row: 1 / 2;
}

#home .group_2 .grid-4 a:nth-child(3) {
    display: flex;
    flex-direction: column;
}

#home .group_2 .grid-5 {
    display: grid;
    gap: 2rem;
}

.grid-1 a,
.grid-2 a,
.grid-3 a,
.grid-3 .right-box,
.grid-4 a,
.grid-5 a:first-child,
.grid-6 a,
.grid-7 a,
.grid-8 a {
    padding: 0 !important;
}

.grid-5 a:first-child {
    aspect-ratio: 5 / 2.3;
}

.grid-5 a:last-child {
    padding: 0 !important;
    justify-content: center;
}

.grid-6 a {
    justify-content: center;
    aspect-ratio: 1 /1;
}

/* グループ3 ここから↓ ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
#home .group_3 section {
    display: grid;
    align-items: center;
    /* grid-template-columns: 1fr 2.1fr; */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

#home .group_3 section .group_corp {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

#home .group_3 section .group_corp_center {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

#home .group_3 section .group_corp a:nth-child(1),
#home .group_3 section .group_corp a:nth-child(2),
#home .group_3 section .group_corp a:nth-child(3),
#home .group_3 section .group_corp a:nth-child(4) {
    display: grid;
    align-items: center;
    text-align: center;
    justify-content: center;
    /* margin: 0 auto; */
}

.group_corp a {
    width: 100%;
    height: auto;
}

.grid-7 .group_corp:nth-child(1) {
    grid-template-columns: repeat(1, 1fr) !important;
}

.grid-7 .group_corp:nth-child(1) a {
    display: flex !important;
    padding: 1rem !important;
    text-align: center !important;
    justify-content: center !important;
    aspect-ratio: 5 / 2;
}

.grid-7 h3,
.grid-8 h3 {
    margin: auto;
    font-size: 2.2rem;
}

/* グループ4 バナーグループ ここから↓ ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
/* .banner_group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.banner_group a {
    height: 50px;
} */

@media (max-width:1080px) {
    .grid-7 h3 {
        margin: auto;
        font-size: 2rem;
    }

    /* .grid-1,
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6 a,
    .group_corp a {
        aspect-ratio: auto;
    } */

    .group_corp a,
    .grid-1 a:nth-child(1),
    .grid-1 a:nth-child(2) {
        width: auto;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    /*アニメーション*/

    #front a {
        font-size: 0.9rem;
    }

    #home .group_1,
    #home .group_2 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    #home .group_3 section {
        display: grid;
        gap: 2rem;
    }

    #home .group_3 section .group_corp {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    #home div:nth-child(1) section:nth-child(1) a span,
    #home .group_2 section:nth-child(1) a:nth-child(3) span,
    #home .group_2 section:nth-child(3) a span,
    .grid-3 a span,
    .grid-5 a:first-child span {
        font-size: 1.3rem;
    }
}

@media (max-width:768px) {

    #home .group_1,
    #home .group_2 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    #home .group_3 section .group_corp {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .grid-1 a:nth-child(3) {
        aspect-ratio: 5 /2;
    }

    #home .group_3 section {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    #home div:nth-child(1) section:nth-child(1) a span,
    #home .group_2 section:nth-child(1) a:nth-child(3) span,
    #home .group_2 section:nth-child(3) a span,
    .grid-3 a span,
    .grid-5 a:first-child span {
        display: none;
    }

    .grid-5 a {
        padding: 0 !important;
    }
}