/* ===============================
    First view Section
   =============================== */
.yonego {
    color: #eb8e22;
}
.tottori {
    color: #e6c657;
}
.izumo {
    color: #7fb2f1;
}
.matsue {
    color: #eb9293;
}

/* ボックス背景版 */
.yonego-box {
    background: #eb8e22;
}
.tottori-box {
    background: #e6c657;
}
.izumo-box {
    background: #7fb2f1;
}
.matsue-box {
    background: #eb9293;
}

.count-box {
    position: absolute;
    bottom: -310px;
    left: 80%;
    transform: translate(-50%, -100%);
    z-index: 10;
    width: 226px;
    height: 226px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
    box-sizing: border-box;
}

/* 調整必要 */
.count-label {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #fff;
}

.count-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.count-number {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
}

.count-unit {
    font-size: 24px;
    color: #fff;
}

.button-01{
  position: relative;
  isolation: isolate;

  width: 144px;
  height: 40px;
  border-radius: 100px;
  padding: 10px 30px 10px 20px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-family: "Zen Kaku Gothic New", sans-serif;

  /* 色（反転用） */
  --fg: #fff;
  --fg-hover: #2b9b7d;

  color: var(--fg);
  font-weight: bold;
  font-size: 14px;
  line-height: 32px;
  letter-spacing: .01em;
  text-align: center;

  background: #2b9b7d;
  border: 1px solid var(--btn-border, transparent);

  cursor: pointer;
  overflow: hidden;

  transition: color .0s ease;
}

.button-01::before{
  content:"";
  position:absolute;
  inset:0;
  background:#fff;

  clip-path: circle(0px at calc(100% - 18px) 50%);
  transition: clip-path .45s cubic-bezier(.4,0,.2,1);

  z-index: -1;          /* 背景は必ず背面（文字が消えない） */
  pointer-events: none; /* hover判定を邪魔しない */
}
.button-01::after{
  content: "";
  position: absolute;
  right: 18px;               /* ← 起点（重要） */
  top: 50%;
  transform: translateY(-50%);

  width: 8px;
  height: 8px;
  border-radius: 50%;

  background-color: var(--fg);
  transition: background-color .25s ease;
  z-index: 1;
}

/* ===== dot起点で広がる背景 ===== */
.button-01::before{
  content:"";
  position:absolute;
  inset:0;
  background:#fff;

  /* dot位置を中心に円を作る */
  clip-path: circle(
    0px at calc(100% - 18px) 50%
  );

  transition: clip-path .45s cubic-bezier(.4,0,.2,1);
  z-index: -1;
}

/* hover時：円が広がる */
.button-01:hover::before,
.button-01:focus-visible::before{
  clip-path: circle(
    220px at calc(100% - 18px) 50%
  );
}

/* hover時：文字色反転 */
.button-01:hover,
.button-01:focus-visible{
  color: var(--fg-hover);
  outline: none;
}

/* hover時：ドット色反転 */
.button-01:hover::after,
.button-01:focus-visible::after{
  background-color: var(--fg-hover);
}

/* ===============================
    Search Section
   =============================== */
.search-section {
    max-width: 1464px;
    padding-right: 32px;
    padding-left: 32px;
    margin: 0 auto;
}

.search-container {
    display: flex;
    gap: 50px;
}

.search-left {
    position: relative;
    width: 60%;
    height: auto;
    height: fit-content;
}

.search-left-img {
    width: 100%;
    height: auto;
}


.search-map{
  display: block;
  width: 100%;
  height: auto;
}


.search-map.base{
  position: relative;
  z-index: 1;
}


.search-map.overlay{
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* hover 境港 */
.search-left:has(.bubble-wrap.is-sakaiminato:hover)
  .overlay-sakaiminato{
    display: block;
}

/* hover 日吉津 */
.search-left:has(.bubble-wrap.is-hiezu:hover)
  .overlay-hiezu{
    display: block;
}

/* hover 米子 */
.search-left:has(.bubble-wrap.is-yonago:hover)
  .overlay-yonago{
    display: block;
}

/* hover 鳥取yazu */
.search-left:has(.bubble-wrap.is-yazu:hover)
  .overlay-yazu{
    display: block;
}

/* hover 鳥取tottori */
.search-left:has(.bubble-wrap.is-tottori:hover)
  .overlay-tottori{
    display: block;
}

/* hover 鳥取iwami */
.search-left:has(.bubble-wrap.is-iwami:hover)
  .overlay-iwami{
    display: block;
}

/* hover 松江北 */
.search-left:has(.bubble-wrap.is-kita:hover)
  .overlay-kita{
    display: block;
}

/* hover 松江南*/
.search-left:has(.bubble-wrap.is-minami:hover)
  .overlay-minami{
    display: block;
}

/* hover 出雲hirata */
.search-left:has(.bubble-wrap.is-hirata:hover)
  .overlay-hirata{
    display: block;
}

/* hover 出雲taisha */
.search-left:has(.bubble-wrap.is-taisha:hover)
  .overlay-taisha{
    display: block;
}

/* hover 出雲izumo */
.search-left:has(.bubble-wrap.is-izumo:hover)
  .overlay-izumo{
    display: block;
}

/* hover 出雲hikawa */
.search-left:has(.bubble-wrap.is-hikawa:hover)
  .overlay-hikawa{
    display: block;
}




.bubble-wrap {
    position: absolute;
    width: 13%;
    max-width: 150px;
    transform: translate(-50%, -100%);
    z-index: 3;
}

.search-left-bubble {
    width: 110px;
    height: auto;
    display: block;
    filter: none;
}


.bubble-text {
    position: absolute;
    top: 45%;
    left: 52%;
    transform: translate(-50%, -100%);
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
    width: 100%;
    font-size: 16px;
    text-align: center;
}

.bubble-count {
    position: absolute;
    top: 68%;
    left: 42%;
    transform: translate(-50%, -100%);
    color: #fff;
    font-size: clamp(16px, 2vw, 40px);
    white-space: nowrap;
    pointer-events: none;
}
.bubble-count-number {
  font-size: clamp(10px, 2vw, 20px);
}

.bubble-ken {
    position: absolute;
    top: 70%;
    left: 70%;
    top: 90%;
    left: 140%;
    transform: translate(-50%, -100%);
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
    width: 20%;
    font-size: 14px;
}

.bubble-text.small-text {
    font-size: 14px;
}

.search-right {
    width: 40%;
    height: auto;
}

.search-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: repeating-linear-gradient(
                to right,
                #000 0 2px,
                transparent 2px 6px
            )
            top/100% 2px no-repeat,
        repeating-linear-gradient(to right, #000 0 2px, transparent 2px 6px)
            bottom/100% 2px no-repeat;
}

.search-item {
    margin: 27px 0 35px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        #000 0 2px,
        transparent 2px 6px
    );
    transform: translateX(-50%);
}

.search-grid::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #000 0 2px,
        transparent 2px 6px
    );
    transform: translateY(-50%);
}

.search-item-title {
    font-weight: bold;
    font-size: 16px;
    line-height: 32px;
    letter-spacing: 1.6px;
    text-align: left;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

@media screen and (max-width: 1240px) {
    .search-item-title {
        gap: 16px;
    }
}

.search-item-title::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #2B9B7D;
    border-radius: 50%;
}

.accent {
    font-weight: bold;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 2.4px;
    text-align: left;
}

@media screen and (max-width: 1240px) {
    .accent {
        font-size: 20px;
    }
}

.search-item-img {
    max-width: 163px;
    aspect-ratio: 163 / 91;
}

/* キーワード検索 */
.keyword-box {
    display: flex;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
}

.keyword-textarea {
    flex: 1;
    padding: 17px 20px;
    font-weight: bold;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: 0.9px;
    color: #333;
    text-align: left;
    height: 60px;
    resize: none;
    width: 100%;
}

.keyword-textarea::placeholder {
    color: #c7c7c7;
}

.keyword-textarea:focus {
    outline: none;
}

.keyword-btn {
    width: 120px;
    padding: 0 20px;
    background-color: #2aa48a;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: 0.9px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    text-align: center;
}

.keyword-btn:hover {
    opacity: 0.9;
}

/* ===============================
    Event Section
   =============================== */
.event-section {
    margin-top: 110px;
    width: 100%;
    padding: 110px 0;
    background: #f7f7f7;
}

.event-container {
    max-width: 1304px;
    padding-right: 32px;
    padding-left: 32px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

/* 左カラム */
.event-intro {
    display: flex;
    flex-direction: column;
}

.event-intro-image {
    width: 205px;
    height: 60px;
}

.heading-en {
    margin-bottom: 40px;
    font-weight: bold;
    font-size: 80px;
    line-height: 98px;
    font-family: "Ubuntu", sans-serif;
    text-align: left;
    letter-spacing: 0.1em;
}

.description {
    font-weight: bold;
    font-size: 18px;
    line-height: 36px;
    letter-spacing: 1.8px;
}

.event-btn {
    margin-top: 40px;
    max-width: 220px;
    width: 220px;
    height:40px;
    font-size: 14px;
    letter-spacing: 1.4px;

  
}




.event-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 630px;
    overflow-y: auto;
    padding-right: 8px;
}

.event-item {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
    align-items: stretch;
}

.event-item-image {
    aspect-ratio: 326 / 244;
    max-width: 290px;
    object-fit: cover;
    border-radius: 8px;
}

.event-card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-card-title {
    font-weight: bold;
    font-size: 24px;
    line-height: 36px;
    letter-spacing: 2.4px;
}

.event-card-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 32px;
    letter-spacing: 1.6px;
}
.border {
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #000 0 2px,
        transparent 2px 6px
    );
}

/* ===============================
    Estate Section
   =============================== */
.estate-section {
    margin-top: 110px;
    width: 100%;
    padding: 0 0 110px;
    overflow: hidden;
}
.estate-container {
    position: relative;
    width: 80%;
    margin: 0 auto;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}
.estate-cards {
    display: flex;
    margin: 0 auto;
}

.estate-btn {
    line-height: 1;
    width: 240px;
    height: 48px;
    display: block;
    margin-left: auto;
    margin-top: 24px;

      --btn-bg: #2b9b7d;
  --btn-fg: #fff;
  --btn-border: transparent;


  --btn-bg-hover: #fff;
  --btn-fg-hover: #2b9b7d;
  --btn-border-hover: #2b9b7d;


  --dot-color: #fff;
  --dot-size: 8px;
  --dot-scale: 2.0;
  --dot-opacity-hover: 0;
  --dot-right: 14px;


  --dot-dur: .22s;
  --btn-dur: .22s;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
}

.slider-item {
    flex: 0 0 380px; /* カード幅 */
}

/* ===============================
    Contact Section
   =============================== */
.contact-section {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    margin-top: 80px;
    background-color: #ffffff;
    border: 4px solid #e85959;
    border-radius: 1000px;
    box-sizing: border-box;
    padding: 40px 40px;
}
.contact-inner {
    display: flex;
    width: 90%;
    margin: 0 auto;
    gap: 30px;
}

.contact-image {
    width: 24%;
    height: auto;       
    object-fit: contain; 
}
.contact-title {
    font-weight: bold;
    font-size: 32px;
    line-height: 36px;
    letter-spacing: 0.1em;
}
.contact-text {
    font-weight: bold;
    font-size: 17px;
    line-height: 34px;
    letter-spacing: 1.7px;
    margin-top: 30px;
}
.sp-only{
    display:none;
}

.contact-btn {
    margin-top: 30px;
    width: 240px;
    height: 48px;

  --fg: #fff;  
  --fg-hover: #e85959;
  background: #e85959;
}

.flow-section {
    margin: 0 auto;
    margin-top: 170px;
    background-color: #f7f4ed;
    padding: 100px 0;
}
.flow-inner {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
}
.flow-overview {
    display: flex;
    gap: 75px;
    align-items: center;
}

.flow-description-outer {
    display: flex;
    gap: 23px;
    align-items: end;
}
.estatebubble-title__icon{
    max-width: 250px;
}


.flow-btn {
    line-height: 1.2;
    min-width: 144px;
    height:44px;

          --btn-bg: #2b9b7d;
  --btn-fg: #fff;
  --btn-border: transparent;


  --btn-bg-hover: #fff;
  --btn-fg-hover: #2b9b7d;
  --btn-border-hover: #2b9b7d;


  --dot-color: #fff;
  --dot-size: 8px;
  --dot-scale: 2.0;
  --dot-opacity-hover: 0;
  --dot-right: 14px;


  --dot-dur: .22s;
  --btn-dur: .22s;
}

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

        .flow-description-outer {
        flex-direction: column;
        align-items: baseline;
    }
    .flow-btn {
        line-height: 32px;
    }

    .flow-section {
    margin-top: 80px;
    padding: 100px 32px;
}
}

/* ===============================
    Smartphone Menu
   =============================== */
.link-buttons {
    margin-bottom: 40px;
}

.link-buttons_item {
    width: 100%;
    height: auto;
    border-top: #000 1px solid;
}

.link-buttons_btn {
    border-top: #000 1px solid;
    padding: 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font: normal normal 500 16px / 26px "Zen Kaku Gothic New";
    letter-spacing: 1.6px;
    color: #222222;
    opacity: 1;
    text-align: left;
}
.link-buttons_btn::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2b9b7d;
    flex-shrink: 0;
}

/* ===============================
    Responsive
   =============================== */
@media screen and (max-width: 1280px) {
    .contact-image {
    width: 200px;
    height: 199%;
}
}

@media screen and (max-width: 1024px) {
    .none-pc {
        display: block;
    }

    .none-sp {
        display: none;
    }
    .count-box {
        left: 70%;
        bottom: 30px;
        width: 147px;
        height: 147px;
    }

    /* 調整必要 */
    .count-label {
        font-size: 16px;
    }

    .count-number {
        font-size: 40px;
    }

    .count-unit {
        font-size: 16px;
    }
    .search-section {
        width: 100%;
        padding: 32px　32px 0 32px;
    }
    .search-container {
        display: inline-block;
        width: 100%;
    }
    .search-right {
        width: 100%;
    }
    .search-item {
        margin: 24px 0;
    }
    .keyword-textarea {
        padding: 20px 8px;
        font: normal normal bold 14px/20px "Zen Kaku Gothic New";
        letter-spacing: 1.4px;
        color: #222222;
        opacity: 0.3;
    }
    .keyword-btn {
        width: 80px;
        font: normal normal 500 16px/32px "Zen Kaku Gothic New";
        letter-spacing: 1.6px;
        color: #ffffff;
        opacity: 1;
        white-space: nowrap;
    }
    .event-container {
        display: block;
        width: auto;
    }
    .heading-en {
        font: normal normal bold 40px/60px "Ubuntu";
        letter-spacing: 2px;
        color: #000000;
        opacity: 1;
    }
    .description {
        font: normal normal bold 18px/36px "Zen Kaku Gothic New";
        letter-spacing: 1.6px;
        color: #222222;
        opacity: 1;
    }
    .event-item {
        display: inline;
    }
    .event-list {
        height: 525px;
        margin-top: 40px;
    }
    .event-item-image {
        padding: 10px;
        width: 100%;
    }
    .event-btn {
        width: 220px;
        margin: 0 auto;
        margin-top: 40px;
        font-size: 14px;
    }
    .estate-container {
        display: block;
        margin: 0 32px;
        width: auto;
    }
    .property-card {
        padding: 0 !important;
    }
    .wrapper .estate-btn {
        margin: 40px 0 0 0;
        display: block;
    }
    .contact-section {
        border-radius: 0;
        margin-top: 40px;
    }
    .contact-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .contact-title {
        font-weight: bold;
        font-size: 32px;
        line-height: 36px;
        letter-spacing: 2px;
    }
.contact-image {
        width: 80%;
        margin: 0 auto;
        margin-top: 20px;
    }
    .contact-text {
        font-weight: 500;
        font-size: 16px;
        line-height: 32px;
        letter-spacing: 0.8px;
        text-align: left;
    }
    .contact-btn {
        margin: 24px auto 0;
    }
    .sp-only{
        display:block;
    }
    .pc-only{
        display:none;
    }
}
@media screen and (max-width: 520px) {
    .contact-title {

        font-size: 20px;

    }

        .flow-overview {
        display: inline-block;
    }
    .flow-inner {
        padding: 0;
    }
    .flow-btn {
        margin-top: 50px;
        width: 240px;
        height: 48px;
    }

    .flow-description-outer{
        gap:0px;
    }

    .search-item-img{
        max-width: 100px;
    }

    .event-section {
    padding: 60px 0;

     }
         .contact-section {
        margin-top: 0px;
        padding: 30px 30px;
    }
    /*円型を上と右へ調整*/
        .count-box {
        left: 76%;
        bottom: 33px;
    }
    /*SPのCTNをXDに合わせる*/
    .contact-btn{
        height: 48px;
    }

}