@charset "UTF-8";

/* ========================================
   トップページ：スマートフォン用
   適用幅：770px以下
======================================== */
body {
    background: #000;
    color: #fff;
}


/* ========================================
   ファーストビュー
======================================== */
.main_visual {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 480px;
    margin-bottom: 18vw;
    overflow: hidden;
}

.slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slideshow li {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.slideshow li.slides { opacity: 1; }

.slideshow img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catchcopy {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    writing-mode: vertical-rl;
    font-size: clamp(18px, 5.2vw, 30px);
    line-height: 1.8;
    text-shadow:
        0 0 3px rgba(0, 0, 0, 1),
        0 0 5px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 0, 0, 0.6);
}

#openingLogo {
    position: absolute;
    z-index: 100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

#openingLogo img {
    display: block;
    width: clamp(150px, 48vw, 220px);
    height: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}


/* ========================================
   事業内容・物件情報 共通
======================================== */
section.top-business,
section.top-property { margin: 0 5vw 22vw; }

.top-business_heading,
.top-property_heading {
    display: block;
    margin-bottom: 7vw;
}

.section-title { margin-bottom: 5vw; }

.section-title h2 {
    display: flex;
    align-items: center;
    gap: 3vw;
    margin-bottom: 1.5vw;
    font-size: clamp(23px, 6vw, 34px);
    font-weight: 400;
    line-height: 1.5;
}

.section-title h2::before {
    content: "";
    display: block;
    flex: 0 0 12vw;
    height: 1px;
    background: currentColor;
}

.section-title span {
    display: block;
    text-align: right;
    font-size: clamp(12px, 3.2vw, 17px);
    line-height: 1.5;
}

.top-business_intro,
.top-property_intro {
    margin: 0;
    font-size: clamp(13px, 3.5vw, 17px);
    line-height: 2;
    font-weight: 400;
}


/* ========================================
   事業内容
======================================== */
.business-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3vw;
    width: 100%;
    height: auto;
}

.business-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 0.82 / 1;
    overflow: hidden;
    border: 0;
    transition: none;
}

.business-card:hover { flex: initial; }

.business-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-card_caption {
    position: absolute;
    right: 2.5vw;
    bottom: 3vw;
    left: 2.5vw;
    z-index: 1;
    font-size: clamp(12px, 3.5vw, 16px);
    line-height: 1.6;
    text-shadow:
        0 0 3px rgba(0, 0, 0, 1),
        0 0 5px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 0, 0, 0.6);
}

.business-card_number {
    margin: 0 0 0.5vw;
    font-size: 0.9em;
}


/* ========================================
   物件情報
======================================== */
.property-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "main main"
        "gallery small"
        "link link";
    gap: 3vw;
    position: relative;
    width: 100%;
    height: auto;
}

/* 左側の縦長画像 */
.property-preview_gallery {
    grid-area: gallery;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 0.82 / 1;
    overflow: hidden;
}

/* 右側のメイン画像 */
.property-preview_main:nth-of-type(2) {
    grid-area: main;
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1.45 / 1;
    overflow: hidden;
}

/* 右側の小さな画像 */
.property-preview_main:nth-of-type(3) {
    grid-area: small;
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 0.82 / 1;
    overflow: hidden;
}

.property-preview_gallery img,
.property-preview_main img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transform: none !important;
}

/* 物件情報へのリンク */
.top-button {
    --dark: #ffffff;
    --light: #ffffff;

    grid-area: link;
    position: relative;
    right: auto;
    bottom: auto;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 2vw;
    margin-top: 2vw;
    color: var(--light);
    text-decoration: none;
    transform: none;
}

.property-link {
    display: flex;
    flex: 0 0 1.5rem;
    justify-content: center;
    align-items: center;
    width: 1.5rem;
    height: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--light);
    border-radius: 50%;
}

.icon_button {
    position: relative;
    top: -1px;
    font-size: 0.75rem;
    color: var(--dark);
    line-height: 1rem;
}

.text_button {
    position: relative;
    display: inline-block;
    padding-block: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--light);
    text-transform: capitalize;
}

.text_button::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--light);
}
