@charset "UTF-8";

/* プリローダー全画面背景 */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

/* ロゴのサイズ調整 */
#logo {
    width: 212px;
    height: auto;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

/* ロゴフェードインアニメーション */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

body {
    font-family: "Gothic Medium BBB", "Noto Sans JP", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    margin: 0;
    font-size: 18px;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1278px;
    width: 100%;
    margin: 0 auto;
}

/* メイングラフィック */
.main-graphic {
    position: relative;
    width: 100%;
    height: 600px;
    margin-bottom: -1px;
}

.main-graphic::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: var(--bg-color);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    z-index: -1;
    transition: background-color 0.6s ease;
    margin-bottom: -10px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.graphic {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.graphic.active {
    opacity: 1;
}

/* 写真の上の線 */
.text-center {
    text-align: center;
}

.top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: white;
    transition: background-color 0.3s ease-in-out;
}

.top-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    background-color: white;
    width: 0%;
    z-index: 100;
    /* ✅ 初期状態は0% */
    transition: width 0s linear;
    /* アニメーションはJSで制御するため基本0秒 */
}

.top-line-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 10;
    background-color: #f0f0f0;
    /* 初期状態の背景色 */

}

/* ボタンリスト */
.flex {
    display: flex;
    width: 100%;
    gap: 0px;
}

.item {
    position: relative;
    width: 33.33333%;
    padding: 30px 0 60px;
    box-sizing: border-box;
}

.item:first-child {
    padding-left: 30px;
}

.item:last-child {
    padding-right: 30px;
}

/* item の上の線 */
.item::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 17px;
    background-color: var(--line-color, #d3d4d6);
    transition: background-color 0.3s ease-in-out;
}

.button {
    display: block;
    font-weight: bold;
    padding: 10px 20px;
    background-color: var(--button-color, white);
    /* ボタンの色を data-color と同期 */
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    width: 220px;
    margin: 0 auto;
    border-radius: 40px;
    transition:
        background-color 0.3s ease-in-out,
        color 0.3s ease-in-out,
        transform 0.3s ease-out,
        box-shadow 0.3s ease-out;
}

/* ボタンのホバーアニメーション（ふわっと浮く） */
.button:hover {
    transform: translateY(0px);
    /* 少し上に移動 */
    box-shadow: 0px 0px 10px rgba(181, 172, 0, 0.75);
    /* ふわっとした影を追加 */
    color: #000;
    background-color: #ffdf71;
}

.item02 .button:hover {
    box-shadow: 0px 0px 10px rgba(147, 147, 147, 0.75);
    background-color: #c8c8c8;
}

.item03 .button:hover {
    box-shadow: 0px 0px 10px rgba(137, 24, 24, 0.75);
    background-color: #f1bcbc;
}



.desc-item {
    background-color: transparent;
    border-radius: 20px;
    margin-bottom: 1em;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 1em;
    position: relative;
    transition: background-color 0.3s ease-in-out;
    /* スムーズな色変更 */
    --desc-item-before-color: #f0f0f0;
    /* デフォルトの三角形の色 */
}

/*
.desc-item:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -15px;
    border: 8px solid transparent;
    border-top: 15px solid var(--desc-item-before-color);
    transition: border-top-color 0.3s ease-in-out;
}*/
.graphic-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.item01::after,
.item03::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 75.5%;
    background-color: #fff;

}

.item01::after {
    top: 13%;
    right: 0;
}

.item03::after {
    top: 13%;
    left: 0;
    width: 2px;
}

.graphic-video.active {
    opacity: 1;
}

.title-sougou {
    width: 70%;
    margin: 15px auto;
}

.main-entry-block {
    position: relative;
}

.main-entry-block::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 1;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    z-index: -1;
    background-image: url('../images/bg_entry-block.png');
    background-size: cover;
}

.main-entry-block:before {
    content: '';
    display: block;
    background-color: #d3d4d6;
    height: 17px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.item01 .desc-item {
    margin-bottom: 23px;
}

.box_address {
    padding: 40px 115px;
    position: relative;
}

.box_address::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    z-index: 1;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    z-index: -1;

}

.box_address01 {
    width: 42%;
    padding-right: 20px;
    position: relative;
}

.box_address01 img {
    width: 100%;
    height: auto;
    display: block;

}

.box_address01::after {
    content: "";
    display: block;
    position: absolute;
    right: 8px;
    top: 8px;
    clear: both;
    width: 3px;
    height: 24px;
    background-color: #d3d4d6;
}

.box_address02 {
    width: 65%;
    font-size: 140%;
    padding-right: 10px;
}

.box_address02 span.small {
    font-size: 60%;
}

.footer {
    padding: 50px 0;
    text-align: center;
    font-size: 14px;
}

.bnr {
    position: relative;
    display: inline-block;
}

.bnr-img {
    display: block;
}

.bnr-img.on {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pc-only {
    display: block;
}

.pc-only-inline {
    display: inline-block;
}

.sp-only-inline {
    display: none;
}

.sp-only {
    display: none;
}

.map {
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

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

    body {
        font-size: 16px;
    }

    .box_address {
        padding: 40px 75px;
    }
}


@media screen and (max-width: 1024px) {
    body {
        font-size: 14px;
    }

    .container {
        width: 100%;
    }

    .box_address02 {
        width: 65%;
        font-size: 140%;
        padding-right: 10px;
    }

    .box_address {
        padding: 40px 105px;
    }

    .box_address01::after {
        right: 8px;
        top: 6px;
        height: 20px;
    }
}

@media screen and (max-width: 820px) {
    .box_address {
        padding: 40px 15%;
    }

    .box_address02 {
        font-size: 110%;
    }

    .box_address02 {
        padding-right: 0px;
    }

}

@media screen and (max-width: 480px) {
    .main-graphic {
        height: 318px;
        margin-bottom: 0px;
    }

    .flex {
        display: block;
    }

    .item {
        width: 100%;
    }

    .flex-sp {
        display: flex;
    }

    .pc-only {
        display: none;
    }

    .pc-only-inline {
        display: none;
    }

    .sp-only-inline {
        display: inline;
    }

    .sp-only {
        display: block;
    }

    .desc-item {
        display: table;
    }

    .desc-item p {
        display: table-cell;
        vertical-align: middle;
        line-height: 1.8em;
    }

    .flex-sp-inner-box {
        width: 50%;
    }

    .button {
        width: 75%;
        font-size: 16px;
        padding: 5px 20px;
    }

    .title-sougou {
        width: 100%;
        margin: 0px auto 15px;
    }

    .item01 .desc-item {
        margin-bottom: 0px;
    }

    .item:first-child,
    .item:last-child,
    .item {
        padding: 5% 5%;
    }

    .item02 .flex-sp .flex-sp-inner-box:first-child {
        order: 2;
    }

    .item02 .flex-sp .flex-sp-inner-box:last-child {
        order: 1;
    }

    .box_address01 {
        width: 100%;
        padding-right: 0px;
    }

    .box_address01::after {
        display: none;
    }

    .box_address02 {
        width: 100%;
        text-align: center;
    }


    .item01::after,
    .item02::after {
        content: "";
        position: absolute;
        top: inherit;
        bottom: 0;
        left: 5%;
        width: 90%;
        height: 2px;
        background-color: #fff;
    }

    .item03::after {
        content: none;
    }

    .desc-item {
        padding: 0;
    }

    .item:last-child {
        padding-bottom: 8%;
    }

    .main-entry-block:before {
        height: 100%;
        bottom: 0;
        left: 0;
        width: 10px;
    }

    .item::before {
        width: 10px;
        height: 100%;
    }

}

@media screen and (max-width: 380px) {

    #logo {
        width: 150px;
    }

    .main-graphic {
        height: 268px;
    }
}