@charset "UTF-8";

/* Index specific styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(10vh + 50px);
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@media screen and (max-width: 768px) {
    html {
        scroll-padding-top: calc(0.10 * (100vh - 50px) + 50px);
    }
}


/* UI Components inherited from layout.css */


.main-content {
    width: 100%;
}

.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Removed global z-index and isolation to allow granular layering */
}

@media screen and (max-width: 768px) {
    .hero {
        height: calc(100vh - 50px);
    }
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #FFF7E6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    pointer-events: none;
}

.hero__row {
    display: flex;
    width: max-content;
    flex-shrink: 0;
    height: 20%;
}

.hero__row img {
    height: 100%;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    margin-right: 20px;
    flex-shrink: 0;
}

.hero__row--right {
    animation: slideRight 60s linear infinite;
}

.hero__row--left {
    animation: slideLeft 60s linear infinite;
}

.hero__main-visual-wrapper {
    position: relative;
    z-index: 1100;
    /* Above sticky images (1000) but below sticky tabs (1500) */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

@media screen and (max-width: 768px) {
    .hero__main-visual-wrapper {
        max-width: 90%;
    }
}

.hero__main-visual {
    width: 100%;
    height: auto;
    display: block;
}


.hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 95%;
}

.hero__catch {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}

@media screen and (max-width: 768px) {
    .hero__catch {
        font-size: 4vw;
    }
}

.hero__logo-wrapper {
    margin: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero__logo-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .hero__logo-img {
        max-width: 80%;
    }
}

.hero__title {
    font-size: 120px;
    line-height: 1;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
    letter-spacing: 0;
    color: #333;
    word-break: keep-all;
    overflow-wrap: break-word;
}

@media screen and (max-width: 768px) {
    .hero__title {
        font-size: 60px;
    }
}

.hero__title-br {
    display: none;
}

@media screen and (max-width: 768px) {
    .hero__title-br {
        display: block;
    }
}

.hero__author {
    font-size: 24px;
    margin-bottom: 40px;
    color: #666;
}

@media screen and (max-width: 768px) {
    .hero__author {
        font-size: 3.2vw;
        margin-bottom: 0;
    }
}

.hero__description {
    font-size: 24px;
    line-height: 1.6;
    text-align: center;
}

.hero__divider {
    width: 480px;
    height: 2px;
    background-color: #9e005d;
    margin: 20px auto;
}

@media screen and (max-width: 768px) {
    .hero__divider {
        width: 60px;
    }

    .hero__description {
        font-size: 3.2vw;
        margin-top: 0;
        padding-top: 0;
    }
}

.hero__description-first {
    font-size: 1.5em;
    font-weight: bold;
}

@keyframes slideRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.tab-nav {
    width: 100%;
    background-color: transparent;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

#sticky-header-images {
    position: -webkit-sticky;
    position: sticky;
    top: -10vh;
    z-index: 1000;
    margin-top: -20vh;
    background-color: #FFF7E6;
}

#sticky-header-tabs {
    position: -webkit-sticky;
    position: sticky;
    top: 10vh;
    /* Bottom of sticky images (20vh catch - 10vh offset = 10vh visible) */
    z-index: 1500;
    background-color: #FFF7E6;
}

@media screen and (max-width: 768px) {
    #sticky-header-images {
        top: calc(-0.10 * (100vh - 50px));
        margin-top: calc(-0.20 * (100vh - 50px));
    }

    #sticky-header-tabs {
        top: calc(0.10 * (100vh - 50px));
        /* Align below the 10% visible header images on mobile */
    }
}

.sticky-row-container {
    height: 20vh;
    overflow: hidden;
    width: 100%;
    position: relative;
    pointer-events: none;
}

#sticky-header-images .hero__row {
    height: 20vh;
}

@media screen and (max-width: 768px) {
    .sticky-row-container {
        height: calc(0.20 * (100vh - 50px));
    }

    #sticky-header .hero__row {
        height: calc(0.20 * (100vh - 50px));
    }
}

.sticky-row-container .hero__row {
    height: 100%;
}

.hidden-row {
    opacity: 0;
    pointer-events: none;
}

@media screen and (max-width: 768px) {
    .tab-nav {
        margin-top: 0;
    }
}

.tab-nav__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

@media screen and (max-width: 768px) {
    .tab-nav__inner {
        padding: 0 !important;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}

.tab-nav__list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
}

@media screen and (max-width: 768px) {
    .tab-nav__list {
        justify-content: center;
        overflow-x: hidden;
        /* Hide scroll as we want it to fit */
        flex-wrap: nowrap;
        padding: 0 5px;
        /* Add small padding at edges */
    }
}

.tab-nav__item {
    margin: 0 2px 0 0;
    flex: 1;
    max-width: 240px;
}

.tab-nav__item a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    padding: 0 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    transition: filter 0.3s;
    white-space: nowrap;
    border-radius: 5px 5px 0 0;
}

.tab-nav__item a:hover {
    filter: brightness(0.9);
    opacity: 1;
}

.tab-nav__item:nth-child(1) a {
    background-color: #9BBE63;
    color: #fff;
    position: relative;
    border: none;
    z-index: 10;
}

.tab-nav__item:nth-child(2) a {
    background-color: #D8844C;
    color: #fff;
}

.tab-nav__item:nth-child(3) a {
    background-color: #6BA7C6;
    color: #fff;
}

.tab-nav__item:nth-child(4) a {
    background-color: #333333;
    color: #fff;
}

@media screen and (max-width: 768px) {
    .tab-nav__item a {
        font-size: 10px;
        /* Reduced font size to fit */
        height: 50px;
        border-radius: 5px 5px 0 0;
        white-space: normal;
        /* Allow wrap if necessary, but aim for one line */
        line-height: 1.1;
        text-align: center;
        padding: 0 4px;
        /* Reduced padding to fit 4 items */
    }

    .tab-nav__item {
        flex: 1;
        /* Equal width for all 4 tabs */
        max-width: none;
        min-width: 0;
        width: auto;
        margin: 0 1px;
        /* Minimal margin */
        box-sizing: border-box;
    }
}

/* Section Title Component */
.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    color: #fff;
    font-family: "A P-OTF 秀英5号+ ProN", serif;
    width: 100%;
    box-sizing: border-box;
}

.section-title__step-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.section-title__step-line::before,
.section-title__step-line::after {
    content: "";
    flex: 1;
    height: 3px;
    background-color: #fff;
}

.section-title__step {
    padding: 0 40px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 34px;
    letter-spacing: 0.3em;
}

.section-title__main {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    font-family: "Noto Sans JP", sans-serif;
    color: #fff;
}

/* Icon Styles */
.icon-arrow {
    width: 1.2em;
    height: 1.2em;
    margin-left: 0.4em;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    .section-title {
        margin-bottom: 0;
        padding: 0 10px;
        /* Reduced from 20px to give more room for lines */
    }

    .section-title__step-line {
        margin-bottom: 10px;
        width: 100%;
    }

    .section-title__step-line::before,
    .section-title__step-line::after {
        flex: 0 0 75px;
    }

    .section-title__step {
        padding: 0 10px;
        /* Reduced from 15px */
        font-size: 14px;
        line-height: 24px;
        letter-spacing: 0.3em;
        min-width: 180px;
        text-align: center;
    }

    .section-title__main {
        font-size: 24px;
        line-height: 1.4;
    }
}

/* Matrix Section */
.matrix-section {
    padding: 120px 0;
    text-align: center;
    background-color: #9BBE63;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 35px 35px;
}

@media screen and (max-width: 768px) {
    .matrix-section {
        padding: 60px 0;
    }
}

.matrix-diagram {
    width: 100%;
    max-width: 1200px;
    height: auto;
    /* aspect-ratio removed for responsive grid sizing */
    background-color: #fff;
    margin: 0 auto;
    border: none;
    position: relative;
    padding: 60px 60px 80px 60px;
    box-sizing: border-box;
    border-radius: 20px;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .matrix-diagram {
        width: 90%;
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 30px;
    }
}

.matrix-axis {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    pointer-events: none;
    letter-spacing: 0.1em;
}

.matrix-axis--top {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Noto Sans JP", sans-serif;
}

.matrix-axis--bottom {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Noto Sans JP", sans-serif;
}

.matrix-axis--left {
    top: 50%;
    left: 30px;
    transform: translate(-50%, -50%) rotate(-90deg);
    z-index: 2;
    font-family: "Noto Sans JP", sans-serif;
}

.matrix-axis--right {
    top: 50%;
    right: 30px;
    transform: translate(50%, -50%) rotate(90deg);
    z-index: 2;
    font-family: "Noto Sans JP", sans-serif;
}

@media screen and (max-width: 768px) {
    .matrix-axis {
        font-size: 12px;
    }

    .matrix-axis--top {
        top: 2px;
    }

    .matrix-axis--bottom {
        bottom: 2px;
    }

    .matrix-axis--left {
        left: 8px;
    }

    .matrix-axis--right {
        right: 8px;
    }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
    .matrix-section {
        padding: 60px 0;
    }

    .matrix-diagram {
        padding: 40px;
    }

    .matrix-axis {
        font-size: 18px;
    }

    .matrix-axis--bottom {
        bottom: 15px;
    }

    .matrix-axis--top {
        top: 15px;
    }

    .matrix-axis--left {
        left: 20px;
    }

    .matrix-axis--right {
        right: 20px;
    }

    .matrix-diagram {
        width: 92%;
    }

    .content-section__inner {
        padding: 0 40px;
    }
}

/* Default SP / Mobile Styles */
.matrix-grid {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    /* SP uses square aspect-ratio explicitly */
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    background-color: transparent;
    position: relative;
    transition: grid-template-columns 0.5s ease, grid-template-rows 0.5s ease;
}

/* PC / Tablet Styles - Responsive Grid */
@media screen and (min-width: 769px) {
    .matrix-grid {
        height: auto;
        aspect-ratio: 1.5;
        /* 3:2 */
    }
}

.matrix-grid.is-active-tl {
    grid-template-columns: 3fr 1fr;
    grid-template-rows: 3fr 1fr;
}

.matrix-grid.is-active-tr {
    grid-template-columns: 1fr 3fr;
    grid-template-rows: 3fr 1fr;
}

.matrix-grid.is-active-bl {
    grid-template-columns: 3fr 1fr;
    grid-template-rows: 1fr 3fr;
}

.matrix-grid.is-active-br {
    grid-template-columns: 1fr 3fr;
    grid-template-rows: 1fr 3fr;
}

@media screen and (max-width: 768px) {
    .matrix-grid {
        transition: grid-template-columns 1s ease, grid-template-rows 1s ease;
    }

    .matrix-grid.is-active-tl {
        grid-template-columns: 15fr 1fr;
        grid-template-rows: 15fr 1fr;
    }

    .matrix-grid.is-active-tr {
        grid-template-columns: 1fr 15fr;
        grid-template-rows: 15fr 1fr;
    }

    .matrix-grid.is-active-bl {
        grid-template-columns: 15fr 1fr;
        grid-template-rows: 1fr 15fr;
    }

    .matrix-grid.is-active-br {
        grid-template-columns: 1fr 15fr;
        grid-template-rows: 1fr 15fr;
    }
}

.matrix-quadrant {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 15px;
}

.matrix-quadrant--tl {
    background: radial-gradient(circle at bottom right, rgba(162, 219, 255, 0.4) 0%, rgba(162, 219, 255, 0.4) 35%, rgba(162, 219, 255, 0.25) 35% 55%, rgba(162, 219, 255, 0.1) 55% 75%, transparent 77%), #ffffff;
}

.matrix-quadrant--tr {
    background: radial-gradient(circle at bottom left, rgba(255, 182, 193, 0.4) 0%, rgba(255, 182, 193, 0.4) 35%, rgba(255, 182, 193, 0.25) 35% 55%, rgba(255, 182, 193, 0.1) 55% 75%, transparent 77%), #ffffff;
}

.matrix-quadrant--bl {
    background: radial-gradient(circle at top right, rgba(173, 255, 230, 0.4) 0%, rgba(173, 255, 230, 0.4) 35%, rgba(173, 255, 230, 0.25) 35% 55%, rgba(173, 255, 230, 0.1) 55% 75%, transparent 77%), #ffffff;
}

.matrix-quadrant--br {
    background: radial-gradient(circle at top left, rgba(255, 250, 160, 0.4) 0%, rgba(255, 250, 160, 0.4) 35%, rgba(255, 250, 160, 0.25) 35% 55%, rgba(255, 250, 160, 0.1) 55% 75%, transparent 77%), #ffffff;
}

.matrix-quadrant__content-initial {
    position: relative;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}

.matrix-quadrant__desc {
    position: absolute;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    z-index: 10;
    max-width: 400px;
    pointer-events: none;
    white-space: normal;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

.matrix-quadrant__desc--br {
    bottom: 40px;
    right: 40px;
    text-align: right;
}

.matrix-quadrant__desc--br .matrix-detail-actions {
    justify-content: flex-end;
}

.matrix-quadrant__desc--bl {
    bottom: 40px;
    left: 40px;
    text-align: left;
}

.matrix-quadrant__desc--bl .matrix-detail-actions {
    justify-content: flex-start;
}

.matrix-quadrant__desc--tr {
    top: 40px;
    right: 40px;
    text-align: right;
}

.matrix-quadrant__desc--tr .matrix-detail-actions {
    justify-content: flex-end;
}

.matrix-quadrant__desc--tl {
    top: 40px;
    left: 40px;
    text-align: left;
}

.matrix-quadrant__desc--tl .matrix-detail-actions {
    justify-content: flex-start;
}

@media screen and (max-width: 1200px) {
    .matrix-quadrant__desc {
        max-width: 300px;
        font-size: 12px;
    }
}

@media screen and (max-width: 768px) {
    .matrix-quadrant__desc {
        font-size: 10px;
        max-width: 200px;
    }

    .matrix-quadrant__desc--br {
        bottom: 20px;
        right: 20px;
    }

    .matrix-quadrant__desc--bl {
        bottom: 20px;
        left: 20px;
    }

    .matrix-quadrant__desc--tr {
        top: 20px;
        right: 20px;
    }

    .matrix-quadrant__desc--tl {
        top: 20px;
        left: 20px;
    }
}

.matrix-quadrant.is-active .matrix-quadrant__desc {
    opacity: 1;
    pointer-events: auto;
}

.matrix-grid.is-active-tl .matrix-quadrant--tl .matrix-quadrant__content-initial,
.matrix-grid.is-active-tr .matrix-quadrant--tr .matrix-quadrant__content-initial,
.matrix-grid.is-active-bl .matrix-quadrant--bl .matrix-quadrant__content-initial,
.matrix-grid.is-active-br .matrix-quadrant--br .matrix-quadrant__content-initial {
    opacity: 0;
    pointer-events: none;
}

.matrix-grid[class*="is-active-"] .matrix-quadrant__images,
.matrix-grid[class*="is-active-"] .matrix-quadrant__houses {
    display: none;
}

.matrix-quadrant__images {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.matrix-quadrant__houses {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.matrix-house {
    position: absolute;
    width: 28%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.15));
}

.matrix-house--tr {
    top: 15px;
    right: 15px;
}

.matrix-house--bl {
    bottom: 15px;
    left: 15px;
}

.house-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

@media screen and (max-width: 768px) {
    .house-img {
        width: 40px;
        height: 40px;
    }

    .matrix-house {
        width: 30%;
    }

    .matrix-house--pos-br {
        display: none !important;
    }

    .matrix-house--tr {
        top: 10px;
        right: 10px;
    }

    .matrix-house--bl {
        bottom: 10px;
        left: 10px;
    }
}

.matrix-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.matrix-btn[data-target="tl"] {
    background-color: #4c1e6b;
}

.matrix-btn[data-target="bl"] {
    background-color: #1e306b;
}

.matrix-btn[data-target="tr"] {
    background-color: #441f28;
}

.matrix-btn[data-target="br"] {
    background-color: #6b4c1e;
}

.matrix-btn:hover {
    background-color: #555;
    transform: translate(-50%, -50%) scale(1.05);
}

@media screen and (max-width: 768px) {
    .matrix-btn {
        width: 60px;
        height: 60px;
        font-size: 10px;
    }
}

.matrix-quadrant__content-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.matrix-grid.is-active-tl .matrix-quadrant--tl .matrix-quadrant__content-detail,
.matrix-grid.is-active-tr .matrix-quadrant--tr .matrix-quadrant__content-detail,
.matrix-grid.is-active-bl .matrix-quadrant--bl .matrix-quadrant__content-detail,
.matrix-grid.is-active-br .matrix-quadrant--br .matrix-quadrant__content-detail {
    opacity: 1;
    pointer-events: auto;
}

.matrix-detail-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.matrix-detail-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.matrix-detail-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.matrix-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.matrix-detail-back-btn,
.matrix-detail-btn {
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 16px;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.matrix-detail-back-btn {
    background-color: #777;
    color: #fff;
}

.matrix-detail-btn {
    background-color: #9e005d;
    color: #fff;
}



.matrix-quadrant--tl .matrix-detail-btn {
    background-color: #4c1e6b;
}

.matrix-quadrant--bl .matrix-detail-btn {
    background-color: #1e306b;
}

.matrix-quadrant--tr .matrix-detail-btn {
    background-color: #441f28;
}

.matrix-quadrant--br .matrix-detail-btn {
    background-color: #6b4c1e;
}

.matrix-detail-images {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.house-img-detail {
    position: absolute;
    width: 200px;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    pointer-events: auto;
    display: block;
    z-index: 10;
}

.house-img-detail img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.house-img-detail:hover img {
    transform: translateY(-8px) scale(1.05);
}

.matrix-quadrant.is-active .house-img-detail {
    opacity: 1;
    transform: scale(1);
}

/* Scattered placement to avoid description text blocks */

/* TL - Text: Bottom-Right */
.matrix-quadrant--tl .house-img-detail--1 {
    top: 10%;
    left: 8%;
    transition-delay: 0.3s;
}

.matrix-quadrant--tl .house-img-detail--2 {
    top: 3%;
    left: 38%;
    transition-delay: 0.4s;
}

.matrix-quadrant--tl .house-img-detail--3 {
    top: 18%;
    right: 10%;
    transition-delay: 0.5s;
}

.matrix-quadrant--tl .house-img-detail--4 {
    top: 48%;
    left: 5%;
    transition-delay: 0.6s;
}

.matrix-quadrant--tl .house-img-detail--5 {
    top: 42%;
    left: 32%;
    transition-delay: 0.7s;
}

/* TR - Text: Bottom-Left */
.matrix-quadrant--tr .house-img-detail--1 {
    top: 4%;
    left: 6%;
    transition-delay: 0.3s;
}

.matrix-quadrant--tr .house-img-detail--2 {
    top: 15%;
    left: 32%;
    transition-delay: 0.4s;
}

.matrix-quadrant--tr .house-img-detail--3 {
    top: 12%;
    right: 8%;
    transition-delay: 0.5s;
}

.matrix-quadrant--tr .house-img-detail--4 {
    top: 48%;
    right: 24%;
    transition-delay: 0.6s;
}

.matrix-quadrant--tr .house-img-detail--5 {
    top: 44%;
    right: 6%;
    transition-delay: 0.7s;
}

/* BL - Text: Top-Right */
.matrix-quadrant--bl .house-img-detail--1 {
    top: 12%;
    left: 7%;
    transition-delay: 0.3s;
}

.matrix-quadrant--bl .house-img-detail--2 {
    top: 52%;
    left: 3%;
    transition-delay: 0.4s;
}

.matrix-quadrant--bl .house-img-detail--3 {
    top: 18%;
    left: 34%;
    transition-delay: 0.5s;
}

.matrix-quadrant--bl .house-img-detail--4 {
    bottom: 6%;
    left: 42%;
    transition-delay: 0.6s;
}

.matrix-quadrant--bl .house-img-detail--5 {
    bottom: 18%;
    right: 8%;
    transition-delay: 0.7s;
}

/* BR - Text: Top-Left */
.matrix-quadrant--br .house-img-detail--1 {
    top: 18%;
    right: 8%;
    transition-delay: 0.3s;
}

.matrix-quadrant--br .house-img-detail--2 {
    top: 52%;
    right: 4%;
    transition-delay: 0.4s;
}

.matrix-quadrant--br .house-img-detail--3 {
    top: 20%;
    right: 30%;
    transition-delay: 0.5s;
}

.matrix-quadrant--br .house-img-detail--4 {
    bottom: 8%;
    right: 42%;
    transition-delay: 0.6s;
}

.matrix-quadrant--br .house-img-detail--5 {
    bottom: 18%;
    left: 10%;
    transition-delay: 0.7s;
}

@media screen and (max-width: 1200px) {
    .house-img-detail {
        width: 150px !important;
    }
}

@media screen and (max-width: 768px) {
    .house-img-detail {
        width: 130px !important;
    }

    /* TL (text: BR) - Avoid bottom-right */
    .matrix-quadrant--tl .house-img-detail--1 {
        top: 2%;
        left: 2%;
    }

    .matrix-quadrant--tl .house-img-detail--2 {
        top: 2%;
        right: 42%;
    }

    .matrix-quadrant--tl .house-img-detail--3 {
        top: 28%;
        left: 8%;
    }

    .matrix-quadrant--tl .house-img-detail--4 {
        top: 38%;
        left: 32%;
    }

    .matrix-quadrant--tl .house-img-detail--5 {
        bottom: 2%;
        left: 2%;
    }

    .matrix-detail-images .house-img-detail {
        width: 130px;
        bottom: auto;
        right: auto;
    }

    /* TL */
    .matrix-grid.is-active-tl .matrix-detail-images .house-img-detail--1 {
        top: 15%;
        left: 10%;
    }

    .matrix-grid.is-active-tl .matrix-detail-images .house-img-detail--2 {
        top: 25%;
        left: 67%;
    }

    .matrix-grid.is-active-tl .matrix-detail-images .house-img-detail--3 {
        top: 25%;
        left: 40%;
    }

    .matrix-grid.is-active-tl .matrix-detail-images .house-img-detail--4 {
        top: 10%;
        left: 67%;
    }

    .matrix-grid.is-active-tl .matrix-detail-images .house-img-detail--5 {
        top: 75%;
        left: 10%;
    }

    @media screen and (max-width: 480px) {
        .house-img-detail {
            width: 100px !important;
        }

        .matrix-detail-images .house-img-detail {
            width: 100px;
        }
    }

    /* TR */
    .matrix-grid.is-active-tr .matrix-detail-images .house-img-detail--1 {
        top: 15%;
        left: 10%;
    }

    .matrix-grid.is-active-tr .matrix-detail-images .house-img-detail--2 {
        top: 45%;
        left: 67%;
    }

    .matrix-grid.is-active-tr .matrix-detail-images .house-img-detail--3 {
        top: 18%;
        left: 45%;
    }

    .matrix-grid.is-active-tr .matrix-detail-images .house-img-detail--4 {
        top: 10%;
        left: 67%;
    }

    .matrix-grid.is-active-tr .matrix-detail-images .house-img-detail--5 {
        top: 40%;
        left: 48%;
    }

    /* BL */
    .matrix-grid.is-active-bl .matrix-detail-images .house-img-detail--1 {
        top: 15%;
        left: 10%;
    }

    .matrix-grid.is-active-bl .matrix-detail-images .house-img-detail--2 {
        top: 45%;
        left: 67%;
    }

    .matrix-grid.is-active-bl .matrix-detail-images .house-img-detail--3 {
        top: 75%;
        left: 10%;
    }

    .matrix-grid.is-active-bl .matrix-detail-images .house-img-detail--4 {
        top: 45%;
        left: 20%;
    }

    .matrix-grid.is-active-bl .matrix-detail-images .house-img-detail--5 {
        top: 80%;
        left: 72%;
    }

    /* BR */
    .matrix-grid.is-active-br .matrix-detail-images .house-img-detail--1 {
        top: 30%;
        left: 70%;
    }

    .matrix-grid.is-active-br .matrix-detail-images .house-img-detail--2 {
        top: 45%;
        left: 67%;
    }

    .matrix-grid.is-active-br .matrix-detail-images .house-img-detail--3 {
        top: 45%;
        left: 24%;
    }

    .matrix-grid.is-active-br .matrix-detail-images .house-img-detail--4 {
        top: 60%;
        left: 30%;
    }

    .matrix-grid.is-active-br .matrix-detail-images .house-img-detail--5 {
        top: 75%;
        left: 72%;
    }

    /* TR (text: BL) */
    .matrix-quadrant--tr .house-img-detail--1 {
        top: 5%;
        left: 10%;
    }

    .matrix-quadrant--tr .house-img-detail--2 {
        top: 10%;
        right: 5%;
    }

    .matrix-quadrant--tr .house-img-detail--3 {
        top: 35%;
        right: 5%;
    }

    .matrix-quadrant--tr .house-img-detail--4 {
        top: 40%;
        left: 40%;
    }

    .matrix-quadrant--tr .house-img-detail--5 {
        top: 65%;
        right: 5%;
    }

    /* BL (text: TR) - Avoid top-right, shifted to left/bottom */
    .matrix-quadrant--bl .house-img-detail--1 {
        top: 2%;
        left: 2%;
    }

    .matrix-quadrant--bl .house-img-detail--2 {
        top: 28%;
        left: 4%;
    }

    .matrix-quadrant--bl .house-img-detail--3 {
        top: 55%;
        left: 2%;
    }

    .matrix-quadrant--bl .house-img-detail--4 {
        bottom: 5%;
        left: 6%;
    }

    .matrix-quadrant--bl .house-img-detail--5 {
        bottom: 10%;
        right: 45%;
    }

    /* BR (text: TL) */
    .matrix-quadrant--br .house-img-detail--1 {
        top: 8%;
        right: 5%;
    }

    .matrix-quadrant--br .house-img-detail--2 {
        top: 32%;
        right: 12%;
    }

    .matrix-quadrant--br .house-img-detail--3 {
        bottom: 5%;
        left: 10%;
    }

    .matrix-quadrant--br .house-img-detail--4 {
        bottom: 10%;
        right: 25%;
    }

    .matrix-quadrant--br .house-img-detail--5 {
        top: 40%;
        right: 45%;
    }
}

.font-luxury {
    font-family: "A P-OTF 秀英5号+ ProN", serif;
}

.font-simple {
    font-family: "Noto Sans JP", sans-serif;
}

.font-function {
    font-family: "A P-OTF 新丸ゴ Pr6N", sans-serif;
}

.font-righteous {
    font-family: "Righteous", cursive;
}

@media screen and (max-width: 768px) {
    .matrix-quadrant__content-detail {
        padding: 10px;
        justify-content: center;
        overflow: hidden;
    }

    .matrix-grid[class*="is-active-"] .matrix-quadrant__content-initial {
        opacity: 0;
        pointer-events: none;
    }

    .matrix-detail-title {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .matrix-detail-subtitle {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .matrix-detail-text {
        font-size: 10px;
        margin-bottom: 8px;
        text-align: left;
    }

    .matrix-detail-actions {
        gap: 8px;
        margin-bottom: 0;
    }

    .matrix-detail-back-btn,
    .matrix-detail-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
}

/* Page Components */
.content-section {
    padding: 120px 0;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .content-section {
        padding: 60px 0;
    }
}

.placeholder-block {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

@media screen and (max-width: 768px) {
    .placeholder-block {
        height: 200px;
    }
}

/* AI Design Section Redesign */
.ai-design-section {
    background-color: #D8844C;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 35px 35px;
    padding: 120px 0;
    /* PC: 120px top and bottom */
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.ai-design-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.section-title--black {
    color: #000 !important;
}

.section-title--black .section-title__step-line::before,
.section-title--black .section-title__step-line::after {
    background-color: #000;
    height: 3px;
}

.section-title--black .section-title__main,
.section-title--black h2 {
    color: #000 !important;
}

.ai-design-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5%;
    margin-top: 0;
    text-align: left;
}

.ai-design-content__left {
    flex: 0 0 47.5%;
    display: flex;
    justify-content: center;
}

.ai-design-image-container {
    position: relative;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.ai-design-image-container::before,
.ai-design-image-container::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: #fff;
    border-style: solid;
    pointer-events: none;
}

.ai-design-image-container::before {
    left: 0;
    top: 0;
    border-width: 2px 0 0 2px;
}

.ai-design-image-container::after {
    right: 0;
    bottom: 0;
    border-width: 0 2px 2px 0;
}

.ai-design-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1600 / 1080;
    overflow: hidden;
}

.ai-design-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: aiDesignFade 10s infinite;
}

.ai-design-slide:nth-child(1) {
    animation-delay: 0s;
}

.ai-design-slide:nth-child(2) {
    animation-delay: 2s;
}

.ai-design-slide:nth-child(3) {
    animation-delay: 4s;
}

.ai-design-slide:nth-child(4) {
    animation-delay: 6s;
}

.ai-design-slide:nth-child(5) {
    animation-delay: 8s;
}

@keyframes aiDesignFade {
    0% {
        opacity: 0;
    }

    2% {
        opacity: 1;
    }

    18% {
        opacity: 1;
    }

    20% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.ai-design-content__right {
    flex: 0 0 50%;
    color: #fff;
}

.ai-designer-heading {
    position: relative;
    margin-bottom: 20px;
}

.ai-designer-title-img {
    width: 25vw;
    height: auto;
    display: block;
    filter: invert(1);
}

@media screen and (max-width: 768px) {
    .ai-designer-title-img {
        width: 80vw;
    }
}

.ai-design-subtitle {
    font-size: 24px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 30px;
}


.ai-design-description,
.ai-design-description p {
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    color: #fff;
    max-width: 580px;
}

.ai-design-description p {
    margin-bottom: 0;
}

.ai-design-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 60px;
    background-color: #fff;
    color: #d87532;
    text-decoration: none;
    border-radius: 100px;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.ai-design-button:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 1100px) {
    .ai-design-section__inner {
        padding-left: 20px;
    }
}

@media screen and (max-width: 768px) {
    .ai-design-section {
        padding: 60px 0;
        /* SP: 60px top/bottom */
    }

    .ai-design-content {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .ai-design-content__left,
    .ai-design-content__right {
        flex: none;
        width: 100%;
    }

    .ai-design-content__right {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ai-design-description {
        text-align: left;
    }

    .ai-design-image-wrapper {
        width: 100%;
    }

    .ai-design-image-container {
        padding: 20px;
    }

    .ai-design-image-container::before,
    .ai-design-image-container::after {
        width: 20px;
        height: 20px;
    }

    .ai-designer-title {
        font-size: 64px;
    }

    .ai-designer-label {
        font-size: 16px;
    }

    .ai-design-subtitle {
        font-size: 18px;
    }

    .ai-design-button {
        padding: 12px 32px;
        font-size: 16px;
    }
}

#matching {
    background-color: #6BA7C6;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 35px 35px;
}

#matching .section-title {
    color: #fff;
}

/* Matching Section Content */
.matching-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.matching-map-container {
    flex: 1;
    max-width: 500px;
}

.japan-map {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
}

.matrix-house--pos-tl {
    top: 10%;
    left: 10%;
}

.matrix-house--pos-tr {
    top: 10%;
    right: 15%;
}

.matrix-house--pos-bl {
    bottom: 25%;
    left: 15%;
}

.matrix-house--pos-br {
    bottom: 10%;
    right: 10%;
}

.matrix-house--full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.house-marker {
    position: absolute;
    width: 26px;
    height: 26px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    animation: houseAppear 0.8s ease-out forwards;
    animation-play-state: paused;
}

.house-marker.animate {
    animation-play-state: running;
}

.house-marker:nth-child(2) {
    animation-delay: 0.2s;
}

.house-marker:nth-child(3) {
    animation-delay: 0.4s;
}

.house-marker:nth-child(4) {
    animation-delay: 0.6s;
}

.house-marker:nth-child(5) {
    animation-delay: 0.8s;
}

.house-marker:nth-child(6) {
    animation-delay: 1.0s;
}

.house-marker:nth-child(7) {
    animation-delay: 1.2s;
}

.house-marker:nth-child(8) {
    animation-delay: 1.4s;
}

.house-marker:nth-child(9) {
    animation-delay: 1.6s;
}

.house-marker:nth-child(10) {
    animation-delay: 1.8s;
}

.house-marker:nth-child(11) {
    animation-delay: 2.0s;
}

.house-marker:nth-child(12) {
    animation-delay: 2.2s;
}

.house-marker:nth-child(13) {
    animation-delay: 2.4s;
}

.house-marker:nth-child(14) {
    animation-delay: 2.6s;
}

.house-marker:nth-child(15) {
    animation-delay: 2.8s;
}

.house-marker:nth-child(16) {
    animation-delay: 3.0s;
}

@keyframes houseAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) translateY(-10px);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

.matching-info {
    flex: 1;
    color: #fff;
    text-align: left;
}

.matching-description,
.matching-description p {
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-weight: 500;
    color: #fff;
    max-width: 580px;
}

.matching-description p:first-child {
    margin-top: 0;
}

.matching-button {
    display: inline-block;
    padding: 18px 60px;
    background-color: #fff;
    color: #29a1d6;
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.matching-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


@media screen and (max-width: 768px) {
    .tab-nav__item:nth-child(1) a {
        bottom: 0;
    }

    .matching-content {
        flex-direction: column;
        gap: 15px;
        margin-top: 0;
    }

    .matching-map-container {
        max-width: 100%;
        width: 80%;
    }

    .house-marker {
        width: 16px;
        height: 16px;
    }

    .matching-info {
        text-align: center;
    }

    .matching-description {
        /* font-size handled by common style */
        margin-bottom: 30px;
    }

    .matching-button {
        padding: 12px 32px;
        font-size: 16px;
    }
}

/* Footer Styles */
.footer {
    background-color: #fcf7e8;
    padding: 80px 0 40px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.footer__left {
    flex-shrink: 0;
}

.footer__logo-group {
    margin-bottom: 30px;
}

.footer__logo-img {
    height: 70px;
    width: auto;
    display: block;
}

.footer__company-info {
    font-size: 14px;
    line-height: 1.8;
}

.company-name {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 16px;
}

.company-address {
    margin-bottom: 5px;
}

.footer__nav {
    display: flex;
    gap: 40px;
}

.footer__nav-group {
    display: flex;
}

.footer__nav-list--vertical {
    writing-mode: vertical-rl;
    display: flex;
    flex-direction: column;
    /* Align vertical items side-by-side */
    gap: 20px;
    padding: 0;
}

.footer__nav-list li {
    list-style: none;
}

.footer__nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s;
    white-space: nowrap;
}

.footer__nav-list a:hover {
    color: #e60012;
}

.footer__nav-sublist {
    display: flex;
    flex-direction: column;
    /* Align sub-items side-by-side */
    gap: 10px;
    padding: 20px 5px 0 0;
}

.footer__nav-sublist li a {
    font-size: 14px;
    font-weight: normal;
}

.footer__bottom {
    margin-top: 80px;
}

.footer__divider {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 4px;
    border-top: 2px solid #333;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.footer__copyright {
    text-align: center;
    font-size: 14px;
    color: #999;
}

/* Mobile responsive */
@media screen and (max-width: 1024px) {
    .footer {
        padding: 60px 0 20px;
    }

    .footer__inner {
        padding: 0 20px;
    }

    .footer__content {
        flex-direction: column;
        gap: 40px;
    }

    .footer__nav {
        flex-direction: column;
        gap: 30px;
    }

    .footer__nav-list--vertical {
        writing-mode: horizontal-tb;
        flex-direction: column;
        gap: 15px;
    }

    .footer__nav-sublist {
        flex-direction: column;
        padding: 5px 0 0 20px;
        margin-top: 10px;
    }

    .footer__logo-img {
        height: 50px;
    }

    .footer__bottom {
        margin-top: 40px;
    }
}

#event {
    background-color: #F9F3E8;
    background-image:
        linear-gradient(#e6e6e6 1px, transparent 1px),
        linear-gradient(90deg, #e6e6e6 1px, transparent 1px);
    background-size: 35px 35px;
    padding: 120px 0;
}

#column {
    background-color: #FAFAF7;
}

/* Event Section */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
    /* カードの高さを揃える */
}

@media screen and (max-width: 767px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
}

.event-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card__thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.event-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card__info {
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* 親の高さに合わせて伸びる */
}

@media screen and (max-width: 768px) {
    .event-card__info {
        padding: 20px;
    }
}

.event-button-container {
    margin-top: 40px;
    text-align: center;
}

/* Legacy .event-list-button removed in favor of .c-btn */

.event-card__date {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #333333;
    margin-top: auto;
    /* 常にカードの最下部へ押しやる */
    margin-bottom: 0;
    font-weight: 500;
    border-top: 1px solid #E6E6E6;
    padding-top: 15px;
    display: flex;
    justify-content: flex-start;
    gap: 1.5em;
    align-items: center;
}

.event-card__company {
    display: inline-block !important;
    padding: 6px 16px !important;
    background-color: #4C230E !important;
    /* イベント用（デフォルト） */
    color: #ffffff !important;
    border-radius: 0 !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 12px !important;
    width: fit-content !important;
}

#column .event-card__company {
    background-color: #333333 !important;
    /* コラム用 */
}

.event-card__title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 28px;
    letter-spacing: 0.1em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .event-card__title {
        font-size: 16px;
        line-height: 26px;
        margin-bottom: 15px;
    }
}

.event-card__button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background-color: #4C230E;
    color: #fff;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.event-card__button:hover {
    opacity: 0.8;
}

/* Column Block specific button color */
#column .event-card__button {
    background-color: #333333;
}

#column .event-list-button {
    background-color: #ffffff;
    color: #333333;
    border: 2px solid #333333;
    transition: background-color 0.3s, color 0.3s;
}

#column .event-list-button:hover {
    background-color: #333333;
    color: #ffffff;
}

/* Event section button with border */
#event .event-list-button {
    border: 2px solid #2F2F2F;
}

#event .event-list-button:hover {
    border-color: #2F2F2F;
}

/* AI Design section button with custom color */
#ai-design .event-list-button {
    color: #d9844c;
}

#ai-design .event-list-button:hover {
    color: #ffffff;
}

/* Matching section button with custom color */
#matching .event-list-button {
    color: #6BA7C6;
}

#matching .event-list-button:hover {
    color: #ffffff;
}

@media screen and (max-width: 1024px) {
    .event-grid {
        gap: 20px;
    }
}

@media screen and (max-width: 767px) {
    .event-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
        margin-top: 0;
    }
}

.event-actions {
    margin-top: 60px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .content-section__inner {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .event-button-container {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .event-list-button {
        display: inline-block;
        width: auto;
        min-width: 0;
        box-sizing: border-box;
        padding: 12px 32px;
        font-size: 16px;
    }

    #event {
        padding: 60px 0;
    }
}

/* Contact Section */
.contact-section {
    background-color: #333333;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
}

.contact-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.contact-scroll-track {
    display: flex;
    align-items: center;
    gap: 80px;
    animation: scrollLeft 30s linear infinite;
    width: max-content;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.contact-scroll-item {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 120px;
    font-weight: bold;
    color: #cccccc;
    white-space: nowrap;
    flex-shrink: 0;
}

.contact-scroll-item--icon {
    display: none;
}

.contact-scroll-item--icon svg {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.contact-button-container {
    text-align: center;
    position: relative;
    z-index: 10;
}

.contact-button {
    display: inline-block;
    padding: 20px 70px;
    background-color: #ffffff;
    color: #333333;
    text-decoration: none;
    border-radius: 50px;
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-button:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 1024px) {
    .contact-section {
        padding: 40px 0;
    }

    .contact-scroll-item {
        font-size: 80px;
    }

    .contact-scroll-item--icon {
        width: 300px;
        height: 80px;
    }

    .contact-scroll-track {
        gap: 50px;
    }

    .contact-button {
        padding: 16px 50px;
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .contact-section {
        padding: 20px 0;
    }

    .contact-scroll-item {
        font-size: 50px;
    }

    .contact-scroll-item--icon {
        width: 50px;
        height: 50px;
    }

    .contact-scroll-track {
        gap: 30px;
    }

    .contact-scroll-wrapper {
        margin-bottom: 20px;
    }

    .contact-button {
        padding: 14px 40px;
        font-size: 16px;
    }
}

/* Tablet Padding for Event, Column, and Matching sections */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    #event .content-section__inner,
    #column .content-section__inner,
    #matching .content-section__inner,
    .ai-design-section__inner {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .ai-design-description,
    .ai-design-description p,
    .matching-description,
    .matching-description p {
        max-width: 460px;
        /* Align to Matching section width on iPad landscape */
    }
}

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

    .ai-design-description,
    .ai-design-description p,
    .matching-description,
    .matching-description p {
        max-width: 650px;
        /* Align to Matching section width on iPad portrait */
    }
}

/* SP Padding Overrides for Event and Column sections */
@media screen and (max-width: 767px) {

    #event .content-section__inner,
    #column .content-section__inner,
    #matching .content-section__inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .ai-design-description,
    .ai-design-description p,
    .matching-description,
    .matching-description p {
        max-width: 100%;
    }


    #event .section-title,
    #column .section-title {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #event .event-grid,
    #column .event-grid {
        grid-template-columns: 1fr !important;
        /* SPで1カラムを強制 */
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #event .event-button-container,
    #column .event-button-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .event-card__date {
        font-size: 14px !important;
    }

    .event-card__company {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }

    .event-card__title {
        font-size: 20px !important;
        line-height: 34px !important;
        margin-top: 0 !important;
        margin-bottom: 15px !important;
    }

    .matrix-btn,
    .matrix-detail-btn,
    .matrix-detail-back-btn,
    .ai-design-button,
    .matching-button,
    .event-card__button,
    .event-list-button,
    .contact-button {
        font-size: 14px !important;
    }

    .u-pc-only {
        display: none !important;
    }

    .hero__logo-wrapper {
        margin-bottom: 20px !important;
        margin-top: 10px !important;
    }

    .hero__logo-img {
        width: 280px !important;
        max-width: 90% !important;
    }

    .company-name {
        font-size: 14px !important;
    }

    .company-address,
    .company-contact {
        font-size: 12px !important;
    }

    .matrix-detail-back-btn,
    .matrix-detail-btn,
    .matrix-btn {
        font-size: 10px !important;
    }

    .ai-designer-title-img {
        display: none !important;
    }

    .matching-description {
        text-align: left !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* AI Design New Logo */
.ai-design-logo-new {
    margin-bottom: 20px;
    width: 100%;
}

.ai-design-logo-img {
    width: 480px;
    max-width: 100%;
    height: auto;
    display: block;
}

@media screen and (max-width: 768px) {
    .ai-design-logo-new {
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }

    .ai-design-logo-img {
        width: 300px;
    }
}



.ai-design-separator {
    width: 100%;
    height: 6px;
    border-top: 3px solid #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: 30px;
    margin-top: 30px !important;
}