/* ヒーローセクション */
.hero {
    position: relative;
    width: 100%;
    height: 672px;
    overflow: hidden;
    background: linear-gradient(rgba(35, 24, 21, 0.6), rgba(35, 24, 21, 0.6)), #666;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
section.plan-main::before{
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 24, 21, 0.6);
}
section.plan-main {
    position: relative;
    margin-bottom: 0px;
}
section.plan-main img{
    width: 100%;
    aspect-ratio: 2.1428;
    object-fit: cover;
}
section.plan-main p{
    position: absolute;
    color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Garamond Premier Pro', 'EB Garamond', serif;
    font-size: 42px;
    letter-spacing: 3rem;
    width: 100%;
    text-align: center;
}
section.plan-main .line{
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    height: 18vw;
    width: 1px;
    background: #fff;
    z-index: 2;
}
section.plan-main .caption{
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    font-size: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 2;
}
section h1 {
    font-size: 3rem;
    line-height: 1.5;
    padding: 20px 0;
}

/* 光のオーバーレイ */
.light-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 738px;
    height: 805px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 1;
}

/* プラン紹介セクション */
.plan-intro {
    background: #FCFCFC url(../../assets/images/intro_line.svg) center top / auto 55px no-repeat;
    padding: 61px 0 88px;
    text-align: center;
}

.plan-intro-container {
    max-width: 697px;
    margin: 10rem auto 0 auto;
}

.plan-frame{
    max-width: 915px;
    width: 90%;
    margin: 0 auto;
}
.plan-frame-container{
    display: grid;
    grid-template-columns: auto 462px;
    grid-template-rows: auto 300px;
    gap: 80px 54px;
}
.plan-frame-container .plan-text{
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}
.plan-frame-container .plan-image{
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}
.plan-frame-container .plan-subimage{
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}
.plan-frame-container .plan-text h3{
    font-weight: 400;
    font-size: 26px;
    line-height: 150%;
    letter-spacing: 2px;
}
.plan-frame-container .plan-text p{
    font-weight: 400;
    font-size: 16px;
    line-height: 200%;
    letter-spacing: 1px;
    margin: 24px 0 0;
}
.plan-frame-container .plan-subimage p.notice{
    font-weight: 400;
    font-size: 12px;
    line-height: 200%;
    letter-spacing: 1px;
    margin: 10px 0 0;
}

.label-icon {
    width: 20px;
    height: 20px;
    border: 1px dashed #807420;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.label-dot {
    width: 6px;
    height: 6px;
    background: #807420;
    border-radius: 50%;
}

.label-text {
    font-family: 'Adobe Garamond Pro', serif;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.167em;
    color: #807420;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

.intro-title {
    font-family: 'A-OTF A1 Mincho Std', serif;
    font-size: 32px;
    line-height: 1.5;
    letter-spacing: 0.094em;
    color: #000;
    white-space: pre-line;
}

.intro-description {
    font-family: 'A-OTF A1 Mincho Std', serif;
    font-size: 16px;
    line-height: 2.2;
    letter-spacing: 0.188em;
    color: #000;
    white-space: pre-line;
}

/* プランニングセクション */
.planning-section {
    background: #C1B8AC;
    width: 100%;
    position: relative;
    padding: 100px 0 100px;
    box-sizing: border-box;
    overflow: hidden;
}

.planning-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 88px;
}

.section-title {
    font-family: 'Adobe Garamond Pro', serif;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.167em;
    color: #807420;
}

/* プランカード */
.plan-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    max-width: 944px;
    margin: 0 auto;
}

.plan-cards a {
    display: block;
    width: 448px;
    text-decoration: none;
}

.plan-card {
    width: 448px;
    height: 141px;
    background: linear-gradient(90deg, #C7C08D 0%, #8F8436 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.plan-card-bg {
    position: absolute;
    top: -49px;
    left: -116px;
    width: 240px;
    height: 240px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.plan-type-label {
    position: absolute;
    top: 41px;
    left: 43px;
    text-align: center;
}

.plan-type-main {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    line-height: 1;
    letter-spacing: 0.045em;
    color: #171717;
    margin-bottom: 8px;
}
.plan-type-main.small {
    font-family: 'Adobe Garamond Pro', serif;
}

.plan-type-sub {
    font-family: 'Adobe Garamond Pro', serif;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.167em;
    color: #171717;
}

.plan-details {
    position: absolute;
    top: 40px;
    left: 157px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plan-details.wide {
    top: 40px;
    left: 157px;
}

.plan-room-info {
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.plan-ldk {
    font-family: 'Adobe Garamond Pro', serif;
    display: flex;
    align-items: center;
    font-size: 20px;
    color: #171717;
}
.plan-option {
    font-family: 'Adobe Garamond Pro', serif;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #171717;
}

.plan-area {
    font-family: 'Shippori Mincho', serif;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0.031em;
    color: #171717;
}

.plan-arrow {
    position: absolute;
    bottom: 69px;
    right: 31px;
    width: 6px;
    height: 6px;
    background: #FCFCFC;
    border-radius: 50%;
}

.plan-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 21px;
    height: 1px;
    background: #FFFFFF;
}
/* 住戸一覧 */
.unit-list-section {
    padding: 10rem 0 20rem;
    text-align: center;
}
.unit-list-container{
    width: 61.1rem;
    margin: 0 auto;
}
.unit-list-header {
    height: 36px;
    background: #807420;
    margin: 0 auto 31px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unit-list-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    line-height: 2.2;
    letter-spacing: 0.188em;
    color: #FFFFFF;
}

.unit-list-cells {
    position: relative;
}

.direction-label {
    font-family: 'A-OTF A1 Mincho Std', serif;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.077em;
    color: #807420;
    position: absolute;
    top: 31rem;
}
.direction-label.one{
    left: 24rem;
}
.direction-label.two{
    right: 8rem;
}

.floor-grid {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.floor-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.floor-label {
    width: 87px;
    height: 36px;
    background: #807420;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    line-height: 2.2;
    color: #FFFFFF;
}
.floor-room-container{
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 1.4rem;
}
.floor-room{
    display: flex;
    gap: 6px;
    flex-direction: row-reverse;
}

.unit-grid {
    display: grid;
    grid-template-columns: repeat(10, 56px);
    gap: 6px;
}

.unit-cell {
    width: 56px;
    height: 36px;
    background: #ECEAE4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    line-height: 2.2;
    color: rgba(128, 116, 32, 1);
    transition: all 0.3s ease;
    opacity: .3;
}
a > .unit-cell,
.unit-cell.active{
    opacity: 1;
}
.unit-cell.double{
    width: calc(56px * 2 + 6px);
}
.unit-cell:nth-child(3){
    margin-left: 1.4rem;
}
a > .unit-cell:hover,
.unit-cell.hovered{
    background: #807420;
    color: #FFFFFF;
    transform: scale(1.05);
    cursor: pointer;
}

/* ナビゲーション */
.page-nav {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    opacity: 0;
}

.nav-item {
    font-family: 'Adobe Garamond Pro', serif;
    font-size: 48px;
    line-height: 1;
    color: #171717;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-dot {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
}
.nav-item.sub {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.143em;
    color: #807420;
    align-self: center;
}
/* 3LDKアイコン */
.ldk-icon {
    height: 23.01px;
    display: inline-flex;
    align-items: flex-end;
}

.ldk-icon span {
    font-family: 'A-OTF A1 Mincho Std', serif;
    font-size: 23px;
    line-height: 1;
    color: #171717;
}

.room-container{
    width: 104rem;
    margin: 0 auto;
    text-align: center;
}
.room-container h2{
    background: rgba(193, 184, 172, 1);
    font-size: 1.2rem;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}
.room-container h2 span{
    font-family: 'Adobe Garamond Pro', serif;
    font-size: 4.4rem;
    margin-right: 1rem;
    font-weight: 400;
}
.plan{
    font-family: 'Adobe Garamond Pro', serif;
    font-size: 1.6rem;
}
.ldk{
    font-size: 4.8rem;
}
.wic,.etc{
    font-size: 3rem;
}
.area{
    font-size: 1.4rem;
    margin: 3rem 0;
}
.area1{
    font-size: 4.8rem;
    font-family: 'A-OTF A1 Mincho Std', serif;
}
.area2{
    font-size: 3.4rem;
}
.balcony{
    margin-bottom: 7rem;
    line-height: 2;
}
.room-section{
    padding-top: 10rem;
}
.room-detail{
    display: flex;
    position: relative;
    justify-content: center;
    margin-bottom: 5rem;
}
.room-image.kr{
    margin-right: 10rem;
}
.room-text{
    position: absolute;
    top: 3.2rem;
    right: 0;
    display: flex;
    flex-direction: column;
    writing-mode: vertical-rl;
    text-orientation: upright;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}
.room-text li{
    margin-left: 2rem;
    position: relative;
    line-height: 1.5;
}
.room-text li::before{
    position: absolute;
    content: '■';
    display: block;
    top: -3.2rem;
}
.room-text li div{
    display: flex;
    align-items: flex-start;
}
.room-descryption{
    padding: 0 4.8rem;
    text-align: left;
    line-height: 2;
    font-size: 1rem;
}
.room-descryption li.wic-sic-n span{
    margin-left: 1rem;
}
.room-descryption li.color span{
    width: 3.8rem;
    height: 0.9rem;
    display: inline-block;
}
.room-descryption li.color span.color1{
    background: rgba(234, 226, 221, 1);
}
.room-descryption li.color span.color2{
    background: rgba(230, 215, 207, 1);
}
.room-link-container{
    display: flex;
    width: 104rem;
    margin: 10rem auto;
    justify-content: center;
}
.room-link{
    background: linear-gradient(90deg, #F0F0F0 0%, #C1B8AC 100%);
    width: 30.5rem;
    padding: 1.3rem 0;
    border-radius: 4.8rem;
    font-size: 1.1rem;
    position: relative;
    text-align: center;
    margin: 0 2rem;
    cursor: pointer;
}
.room-link span{
    font-size: 1.8rem;
}
.room-link::before{
   content: "";
    background: #000;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 50%;
    left: 2rem; 
}
#room.planning-container {
    max-width: 103.8rem;
    padding: 10rem 0;
    text-align: center;
    border-top: 1px solid rgba(221, 221, 221, 1);
}
.plan-cards.b,
.plan-cards.kr{
    display: flex;
    flex-direction: row-reverse;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .hero {
        height: 40rem;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: 0.3em;
    }

    .plan-intro-container {
        padding: 0 20px;
    }
    section.plan-main p{
        font-size: 4rem;
        letter-spacing: 1rem;
    }
    

    .intro-title {
        font-size: 24px;
    }

    .intro-description {
        font-size: 14px;
        line-height: 2;
    }

    .plan-frame-container{
        display: block;
    }
    .plan-frame-container > * + *{
        margin-top: 30px;
    }

    .direction-label{
        font-size: 16px;
    }
    /* プランニングセクションのモバイル対応 */
    .planning-section {
        padding: 60px 0;
        display: block;
    }
    
    .planning-container {
        padding: 0 15px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .plan-cards {
        gap: 20px;
        padding: 0 10px;
    }
    
    .plan-cards a {
        width: 90%;
        max-width: 400px;
    }

    .plan-card {
        width: 100%;
        height: auto;
        min-height: 141px;
    }
    
    .plan-type-label {
        top: 30px;
        left: 20px;
    }
    
    .plan-type-main {
        font-size: 36px;
    }
    
    .plan-details {
        top: 30px;
        left: 100px;
    }
    
    .plan-details.wide {
        left: 90px;
        top: 30px;
    }
    
    .ldk-icon {
        width: auto;
    }

    .unit-list-container {
        width: 100%;
        max-width: 611px;
        padding: 0 20px;
        overflow-x: auto;
    }

    .unit-list-header {
        width: 100%;
    }
    .room-section{
        padding: 0;
    }
    .room-container,
    .room-link-container{
        width: 100%;
    }
    .room-container{
        padding: 4rem;
    }
    .room-link-container{
        flex-direction: column;
        align-items: center;
        gap: 4rem;
        padding: 0 5rem;
        margin: 0 0 5rem;
    }
    .room-link{
        width: 50rem;
        padding: 1.5rem 4rem;
        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .room-link::before{
        width: 6px;
        height: 6px;
    }
    .room-link span{
        font-size: 24px;
        margin-right: 4px;
    }
    .room-detail{
        flex-direction: column;
    }
    .room-image{
        margin-top: 5rem;
    }
    .room-image.kr{
        margin-right: 0;
    }
    .room-text{
        font-size: 1.6rem;
        position: relative;
        writing-mode: unset;
    }
    .room-text li::before {
        top: unset;
        left: -2rem;
    }
    .room-image{
        padding: 0 5rem;
    }
    .room-descryption{
        font-size: 1.6rem;
        padding: 0;
    }
    .unit-list-cells{
        height: 400px;
        overflow: auto;
        padding-bottom: 75px;
        position: relative;
    }
    .unit-list-cells:after{
        content: "";
        z-index: 2;
        position: absolute;
        bottom: 15px;
        left: 15px;
        width: 75px;
        height: 75px;
        background: url(../images/icon_swipe.svg) center / contain no-repeat;
        animation: blinking 1s ease-in-out infinite alternate;
        pointer-events: none;
    }
    @keyframes blinking {
       0% {
       opacity: 0;
       }
       100% {
       opacity: .6;
       }
    }
    .direction-label{
        top: 310px;
        width: 100px;
    }
    .direction-label.one{
        left: 240px;
    }
    .direction-label.two{
        right: -35rem;
    }
}

