.sp-only {
    display: none;
}

.img-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    background-color: #8ed28f;
}

.img-wrapper.hero-img {
    width: 100%;
    height: auto;
}

.img-wrapper.bubble-img {
    position: absolute;
    bottom: 10%;
    left: 5%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.5em 1em;
    border-radius: 4px;
}
img {
    width: 100%;
    height: auto;
}
.bubble-img {
    max-width: 110px;
    width: 8%;
}

.greenback {
    width: 100%;
    height: 100%;
    background-color: #8ed28f;
}
.greenback h1,
.greenback p,
.greenback div,
.greenback section {
    z-index: 1;
}

.bubble-img {
    position: absolute;
    z-index: 10;
}

.bubble-img.sell {
    top: 60%;
    left: 40%;
    transform: translate(-50%, -100%);
}
.bubble-img.search {
    top: 57%;
    left: 9%;
    transform: translate(-50%, -100%);
}
.bubble-img.orderhome {
    top: 66%;
    left: 62%;
    transform: translate(-50%, -100%);
}
.bubble-img.company {
    top: 74%;
    left: 75%;
    transform: translate(-50%, -100%);
}
.bubble-img.reform {
    top: 53%;
    left: 72%;
    transform: translate(-50%, -100%);
}
.bubble-img.spot {
    top: 48%;
    left: 59.5%;
    transform: translate(-50%, -100%);
}

.top-title {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: clamp(28px, 3vw, 48px);
    line-height: 64px;
    letter-spacing: clamp(1.4px, 3vw, 2.4px);
    text-align: center;
}
.top-text {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    font-weight: bold;
    font-size: clamp(14px, 3vw, 16px);
    letter-spacing: clamp(1.4px, 3vw, 1.6px);
    line-height: 32px;
    text-align: center;
}

.main-padding {
    width: 100%;
    padding: 0 40px 100px 40px;
}

/* カード全体 */
.search-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.search-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 24px;
    min-width: 245px;
    max-width: 360px;
    background-color: #ffffff;
    border: 2px solid transparent;
}

/* PC：4枚並び */
.search-card {
    flex: 0 1 calc(25% - 40px); /* 4列 */
}

/* タブレット：2枚並び */
@media (max-width: 1024px) {
    .search-card {
        flex: 0 1 calc(50% - 40px); /* 2列 */
    }
}

/* スマホ：1枚並び */
@media (max-width: 600px) {
    .search-card {
        flex: 0 1 100%; /* 1列 */
    }
}

/* カード色個別指定 */
.search-card.yonego {
    border-color: #eb8e22;
}
.search-card.tottori {
    border-color: #e6c657;
}
.search-card.matsue {
    border-color: #eb9293;
}
.search-card.izumo {
    border-color: #7fb2f1;
}

/* タイトル */
.search-card-title {
    display: flex;
}
.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.area-title {
    font: bold 24px/28px "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 2.4px;
    color: #222;
    text-align: center;
}

.sub {
    font: bold 18px/28px "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 1.8px;
    color: #222;
    text-align: center;
}

/* サブテキスト */
.area-title-text {
    font-weight: bold;
    font-size: 16px;
    line-height: 45px;
    font-family: "Ubuntu", sans-serif;
    letter-spacing: 0.8px;
    text-align: left;
}

/* カード色個別指定（文字色） */
.area-title-text.yonego {
    color: #eb8e22;
}
.area-title-text.tottori {
    color: #e6c657;
}
.area-title-text.matsue {
    color: #eb9293;
}
.area-title-text.izumo {
    color: #7fb2f1;
}

/* 画像 */
.area-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-top: 15.5px;
}

/* フッター */
.search-card-footer {
    margin-top: 22px;
}

/* ボタン共通 */
.button {
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: bold;
    font-family: "Ubuntu", sans-serif;
}

/* ボタン色個別指定 */
.button.yonego {
    background-color: #eb8e22;
}
.button.tottori {
    background-color: #e6c657;
}
.button.matsue {
    background-color: #eb9293;
}
.button.izumo {
    background-color: #7fb2f1;
}

/* まちスポット特集 */
.spot-inner::before {
    content: "Special Contents!!";
    font-weight: bold;
    font-size: clamp(32px, 8vw, 100px);
    font-family: "Ubuntu", sans-serif;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.32);
    transform: translate(0%, -100%);
    position: absolute;
    left: 0;
    top: 0;
    width: calc(100% - 40px);
    pointer-events: none;
    z-index: 1;
}

.spot-section {
    margin-top: 150px;
    margin-bottom: 112px;
}
.spot-inner {
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    gap: 50px;
    background-color: #fff;
    padding: 100px 70px 75px 70px;
}
.spot-inner-top {
    display: flex;
    gap: 6%;
}
.spot-inner-top-left,
.spot-inner-top-img {
    width: 47%;
}
.spot-heading {
    font-weight: bold;
    font-size: 24px;
    line-height: 45px;
    letter-spacing: 1.2px;
    text-align: left;
}
.accent {
    color: #2b9b7d;
}
.spot-subheading {
    font-weight: bold;
    font-size: 40px;
    line-height: 45px;
    letter-spacing: 2px;
    text-align: left;
}
.spot-description {
    margin-top: 50px;
    font-weight: 500;
    font-size: 16px;
    line-height: 32px;
    letter-spacing: 1.6px;
    text-align: left;
}
.spot-button {
    width: 240px;
    margin-top: 55px;
    background-color: #2b9b7d;
}

.spot-inner-under {
    position: relative;
    margin-top: 65px;
    width: 100%;
}
.spot-map-img {
    width: 80%;
}
.spot-imgs,
.spot-texts {
    position: absolute;
    transform: translate(-50%, -100%);
}
.spot-texts {
    max-width: 193px;
    font-weight: bold;
    font-size: clamp(16px, 2vw, 32px);
    line-height: clamp(20px, 3vw, 40px);
    font-family: "Ubuntu", sans-serif;
    letter-spacing: 1.6px;
    text-align: left;
}
.spot-bubble-img {
    max-width: 140px;
    width: 12%;
}
.human-imgs {
    max-width: 316px;
    width: 20%;
}

.kazoku-img {
    top: -8%;
    left: 43%;
}
.kodomo-img {
    top: 81%;
    left: 80%;
}
.izumo-img {
    top: 63%;
    left: 14%;
}
.matsue-img {
    top: 18%;
    left: 27%;
}
.yonego-img {
    top: 81%;
    left: 80%;
}
.tottori-img {
    top: 36%;
    left: 60%;
}
.izumo-text {
    top: 72%;
    left: 15%;
    color: #7fb2f1;
}
.matsue-text {
    top: 28%;
    left: 26%;
    color: #eb9293;
}
.yonego-text {
    top: 62%;
    left: 42%;
    color: #eb8e22;
}
.tottori-text {
    top: 57%;
    left: 62%;
    color: #e6c657;
}

/* service + 会社案内　ほぼ同じため流用 */
.service-section,
.company-section {
    padding: 90px 100px;
}

.service-inner {
    max-width: 1250px;
    width: 100%;
    display: flex;
    gap: 90px 100px;
    margin: 0 auto;
}
.heading-en {
    font-weight: bold;
    font-size: 80px;
    line-height: 98px;
    font-family: "Ubuntu", sans-serif;
    letter-spacing: 4px;
    color: #000;
    text-align: left;
}
.description {
    font-weight: bold;
    font-size: 18px;
    line-height: 36px;

    letter-spacing: 1.8px;
    color: #222222;
    text-align: left;
}
.service-image {
    max-height: 60px;
    width: auto;
}
.service-right {
    width: 100%;
}
.service-item {
    background: repeating-linear-gradient(
            to right,
            #000 0 2px,
            transparent 2px 6px
        )
        top/100% 2px no-repeat;
}
.service-item-inner {
    display: flex;
    padding: 40px 0;
    gap: 40px;
}

.border {
    height: 2px;
    padding: 0;
}

.item-inner-right {
    width: 100%;
    height: 100%;
}
.service-item-en {
    font-weight: bold;
    font-size: 16px;
    line-height: 45px;
    font-family: "Ubuntu", sans-serif;
    letter-spacing: 0.8px;
    color: #2b9b7d;
    text-align: left;
}
.service-item-title {
    font-weight: bold;
    font-size: 32px;
    line-height: 45px;

    letter-spacing: 1.6px;
    color: #222222;
    text-align: left;
    margin-top: 2px;
}

.item-inner-under {
    width: 100%;
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

.service-item-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 32px;

    letter-spacing: 1.6px;
    color: #222222;
    text-align: left;
    margin-top: 23px;
}
.service-btn {
    background: #2b9b7d;
    align-self: flex-end;
}

/* 会社案内 */
.company-section {
    margin: 0 auto;
    background-color: #f7f4ed;
}
.company-inner {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
}
.company-overview {
    display: flex;
    gap: 56px;
    align-items: flex-end;
}

.company-contact {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    margin-top: 90px;
    background-color: #ffffff;
    border: 4px solid #e85959;
    border-radius: 1000px;
    box-sizing: border-box;
    padding: 40px 40px;
    text-align: center;
}

.contact-message {
    font: bold 24px/48px "Zen Kaku Gothic New", sans-serif;
    letter-spacing: 2.4px;
    text-align: center;
}
.contact-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    margin-top: 10px;
    gap: 40px;
}

.contact-phone {
    font-size: 40px;
    color: #e85959;
    font-weight: bold;
    font-family: "Ubuntu", sans-serif;
}

.contact-btn {
    background-color: #e85959;
}

@media screen and (max-width: 1360px) {
    .service-inner {
        display: inline;
    }
}

@media screen and (max-width: 1049px) {
    .top-title,
    .top-text {
        width: 100%;
    }
    .top-title img {
        max-width: 350px;
    }
    .top-text {
        top: 30%;
    }
    .bubble-img {
        display: none;
    }
    .search-cards {
        flex-wrap: wrap;
        margin-top: -6%;
    }
    .item-inner-under {
        display: inline;
    }
    .service-btn {
        float: right;
    }
    .service-section,
    .company-section {
        padding: 10px 50px;
    }
    .company-overview {
        display: inline;
    }
    .service-item-inner {
        display: inline;
    }
}
@media screen and (max-width: 519px) {
    .pc-only {
        display: none;
    }
    .sp-only {
        display: block;
    }
    .main-padding {
        width: 100%;
        padding: 0 32px 100px 32px;
    }
    .bubble-img {
        display: none;
    }
    .search-cards {
        flex-wrap: wrap;
    }
    .company-overview {
        display: inline;
    }
    .flex-sp {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .flex-center {
        width: 50%;
    }
    .area-img {
        width: calc(50% - 8px);
    }
    .search-card-title {
        display: flex;
        align-items: baseline;
    }
    .area-title {
        font: normal normal bold 18px/28px "Zen Kaku Gothic New";
        letter-spacing: 1.8px;
    }
    .sub {
        font: normal normal bold 14px/28px "Zen Kaku Gothic New";
        letter-spacing: 1.4px;
    }
    .area-title-text {
        font: normal normal bold 12px/20px "Ubuntu";
        letter-spacing: 0.6px;
    }
    .search-card-footer {
        margin-top: 16px;
    }
    .button.yonego,
    .button.tottori,
    .button.matsue,
    .button.izumo {
        font: normal normal bold 14px/32px "Zen Kaku Gothic New";
        letter-spacing: 1.4px;
        min-width: 100px;
        width: 120px;
        height: 40px;
    }
    .area-img {
        margin-top: 0;
    }

    .spot-inner {
        padding: 40px 24px 80px 24px;
    }
    .spot-inner-top {
        display: inline-block;
    }
    .spot-inner-top-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .spot-heading {
        font: normal normal bold 19px/45px "Zen Kaku Gothic New";
        letter-spacing: 0.95px;
    }
    .spot-subheading {
        font: normal normal bold 22px/45px "Zen Kaku Gothic New";
        letter-spacing: 1.1px;
        margin-bottom: 24px;
    }
    .spot-inner-top-img {
        width: 100%;
    }
    .spot-description {
        margin-top: 24px;
        font: normal normal medium 16px/32px "Zen Kaku Gothic New";
        letter-spacing: 1.6px;
    }
    .spot-map-img {
        margin-top: 24px;
        /* 130%でXDと同じになります */
        width: 110%;
    }
    .spot-button {
        width: 240px;
        height: 48px;
        margin-top: 24px;
    }

    /* サービス */
    .service-decoration {
        margin-bottom: 32px;
    }
    .item-inner-right {
        padding: 32px 0;
    }
    .item-img {
        width: 120px !important;
    }
    .service-item-en {
        font: normal normal bold 16px/18px "Ubuntu";
        letter-spacing: 0.8px;
    }
    .service-item-title {
        margin-top: 8px;
        font: normal normal bold 24px/35px "Zen Kaku Gothic New";
        letter-spacing: 1.2px;
    }
    .service-item-text {
        font: normal normal 500 16px/32px "Zen Kaku Gothic New";
        letter-spacing: 1.6px;
        margin-bottom: 32px;
    }

    /* 会社案内 サービスと共通パーツもこちら */
    .service-section,
    .company-section {
        padding: 80px 32px;
    }
    .item-img,
    .service-image {
        max-width: 160px !important;
    }
    .heading-en {
        font: normal normal bold 40px/45px "Ubuntu";
        letter-spacing: 2px;
    }
    .description {
        margin-top: 40px;
        margin-bottom: 24px;
        font: normal normal 500 16px/32px "Zen Kaku Gothic New";
        letter-spacing: 1.6px;
    }
    .service-btn {
        height: 40px;
        float: none;
        font: normal normal bold 14px/32px "Zen Kaku Gothic New";
        letter-spacing: 1.4px;
    }

    /* コンタクト */
    .company-contact {
        width: 100%;
        max-width: 1240px;
        margin: 0 auto;
        background-color: #e85959;
        border: none;
        border-radius: 0;
        box-sizing: border-box;
        padding: 40px 32px;
        align-items: center;
        text-align: center;
    }
    .contact-message {
        font: normal normal bold 20px/36px "Zen Kaku Gothic New";
        letter-spacing: 2px;
        color: #ffffff;
    }
    .contact-actions {
        display: inline-block;
    }
    .contact-phone {
        font: normal normal bold 34px/51px "Ubuntu";
        letter-spacing: 3.4px;
        color: #ffffff;
    }
    .contact-btns {
        margin-top: 16px;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .contact-btn {
        width: 160px;
        height: 40px;
        color: #e85959 !important;
        background-color: #fff;

        /* 確認できなかったため適当 */
        font: normal normal bold 14px/32px "Zen Kaku Gothic New" !important;
        letter-spacing: 1.6px;
    }
    .contact-btn::before {
        background-color: #e85959 !important;
    }
}
