body{
    font-family: 'Noto serif JP', serif;
}
.bg-gray {
    background-color: #f4f4f4f4;
}

.location_mv {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 80%), url('../img/location-mv.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-items: center;
    align-items: center;
}

.mv_inner {
    width: 80%;
    margin: 0 auto;
    text-align: center;
      position: relative;
}
.mv_inner::after {
  content: "";
  position: absolute;
  top: calc(100% + 1rem); /* コンテンツの下から線を出す */
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
   height: calc(40vh - 4.9rem);
   min-height: calc(250px - 4.9rem);
  background: #fff;
}
.mv_title {
    font-size: 3.5rem;
    color: #fff;
}
.mv_content{
    font-size:1rem;
     letter-spacing: 0.1rem;
    color: #fff;
    margin-top: 1rem;
}
.concept {
    position: relative;
    background-image: url('../img/concept-bg.jpg');
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center bottom;
    /* ← 下70%を基準に配置 */
    min-height: 120vh;
    /* 必要なら全画面表示 */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: 0 20px 109.5vh;
    margin-top: 60px;
    color: #333;
}

.concept_inner {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 3rem;
    letter-spacing: 0.05rem;
    line-height: 3;
    font-size: 1.2rem;
}

.concept_inner p {
    font-family: "EB Garamond", serif;
    font-style: italic;
    font-size: 2rem;
    font-weight: normal;
    color: #9b8a6e;
    margin-bottom: 16px;
}

.concept_inner h2 {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 24px;
}

.concept_pin{
    width: 100%;
    text-align: center;
}
.concept_inner .concept_pin_label {
    display: inline-block;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(104, 104, 104, 0.9));
    color: #fff;
    padding: 1.5rem 2.5rem;
    margin-top: 15rem;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    position: relative;
}

.concept_inner .concept_pin_label span {
    display: block;
    font-size: 0.8rem;
    margin-top: 4px;
}

.concept_inner .concept_pin_label::after {
    border: 1px solid #9b8a6e;
    content: "";
    display: block;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.concept_inner .concept_pin_label::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 25vw;
    background: #3c3c3c;
}

.perspective {
    width: 100%;
    background: linear-gradient(to top, rgba(60, 60, 60, 1) 0%, rgba(90, 90, 90, 1) 40%, rgba(100, 100, 100, 1) 50%, rgba(90, 90, 90, 1) 60%, rgba(60, 60, 60, 1) 100%);
    padding: 0 1rem;
    box-sizing: border-box;
}

.pers-inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.pers-inner img {
    width: 100%;
}

.location_content {
    width: 100%;
    padding: 4rem 0;
}

.content_inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Noto serif JP', serif;
}

.shopping_img {
    background-image: url('../img/shopping-head.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 95%;
    height: 345px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content_title {
    display: inline-block;
    font-family: "EB Garamond", serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.1rem;
    color: #fff;
    text-align: center
}

.content_title span {
    display: block;
    font-family: 'Noto serif JP', serif;
    font-size: 1rem;
    margin-top: 1rem;
    letter-spacing: 0.1rem;
}

.location_item {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 3%;
    padding: 4rem 2.5rem;
    box-sizing: border-box;
}

.location_left {
    width: 41%;
}

.location_left p {
    font-family: "EB Garamond", serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #9b8a6e;
}

.location_left h3 {
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.location_left_text {
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0.05rem;
}

.location_right {
    width: 55%;
}

.shopping_grid {
    font-family: 'Noto serif JP', serif;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem auto;
    padding: 0 1rem;
}


.shopping_grid_item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.grid_img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.grid_title {
    font-size: 1.2rem;
    font-weight: normal;
    letter-spacing: 0.05rem;
    margin: 0;
}

.grid_small {
    font-size: 0.8rem;
    color: #555;
    margin: 0;
}

.grid_text {
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.05rem;
    color: #333;
}

.access_img {
    background-image: url('../img/access-head.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 95%;
    height: 345px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transport-access {
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap:1rem;
    box-sizing: border-box;
}
.train-item,.bus-item{
    width: auto;
    max-width: 50%;
    margin: 2rem auto;
}
.scroll-box {
  width: 100%;
  margin-top: 2rem;
   -webkit-overflow-scrolling: touch; /* iOSの慣性スクロール */
}

.scroll-box img {
    min-height: 200px;
    height: 22vw;
    max-height: 300px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Webkit系 (Safari, Chrome) */
.scroll-box::-webkit-scrollbar {
  -webkit-appearance: none;
  display: block; /* Safari で常に表示 */
  width: 8px;     /* 縦スクロールバーの幅 */
  height: 8px;    /* 横スクロールバーの高さ */
}

.scroll-box::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.4); /* つまみ色 */
  border-radius: 4px;
}

.scroll-box::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.1); /* トラック背景 */
}
.scroll-hint{
    display: none;
}
.transport-title {
    text-align: center;
}

.transport-title-en {
    font-family: "EB Garamond", serif;
    font-size: 3rem;
    font-weight: normal;
    margin: 0;
}

.transport-title-jp {
    font-size: 1rem;
    margin: 0;
}

.travel-time {
    width: 95%;
    max-width: 1200px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.travel-card {
    width: 50%;
    margin-bottom: 2rem;
}

.travel-card img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.travel-from {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #333;
}

.travel-to {
    font-size: 1.6rem;
    font-weight: normal;
    margin: 0;
}

.station-suffix {
    font-size: 1.2rem;
    margin-left: -0.2rem;
}

.time-number {
    font-size: 2.2rem;
    font-weight: normal;
    color: #000;
    margin: 0 0.2rem;
}

.time-unit {
    font-size: 1.2rem;
}

.time-note {
    font-size: 1rem;
    color: #666;
}

.travel-notice {
    width: 95%;
    margin: 0 auto;
    text-align: left;
    font-size: 0.8rem;
}

.education_img {
    background-image: url('../img/education-head.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 95%;
    height: 345px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.education_grid01 {
    font-family: 'Noto serif JP', serif;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem auto;
    padding: 0 1rem;
}



.education_grid02 {
    font-family: 'Noto serif JP', serif;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem auto;
    padding: 0 1rem;
}

.education_grid_item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seaside_img {
    background-image: url('../img/seaside-head.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 95%;
    height: 345px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seaside_grid {
    font-family: 'Noto serif JP', serif;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem auto;
    padding: 0 1rem;
}

.seaside_grid_item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.facility-info {
    text-align: left;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.facility-name {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.facility-time {
    font-size: 0.9rem;
    color: #333;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: end;
    gap: 0.2em;
}

.facility-time .time-number {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0.1em;
}

.facility-time .distance {
    font-size: 0.85rem;
    color: #666;
}


@media (max-width: 1024px) {
    .shopping_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .location_mv {
        height: 30vw;
        min-height: 350px;
    }
    
    .concept{
        background-image: url('../img/concept-bg_sp.jpg');
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center bottom;
        padding-bottom: 100vw;
        margin-top: 0;
        height: auto;
        min-height: 80vh;
        max-height: 100vh;
    }

    .concept_inner {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 3rem;
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
    line-height: 2.5;
    text-align: left;
}

.concept_inner p {
    font-family: "EB Garamond", serif;
    font-style: italic;
    font-size: 1rem;
    color: #9b8a6e;
    margin-bottom: 16px;
}

.concept_inner h2 {
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 2;
    margin-bottom: 24px;
}

.concept_inner .concept_pin_label {
    display: inline-block;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(104, 104, 104, 0.9));
    color: #fff;
    padding: 1rem 1.5rem;
    margin-top: 5rem;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    position: relative;
}

.concept_inner .concept_pin_label span {
    display: block;
    font-size: 0.6rem;
    margin-top: 4px;
}

.concept_inner .concept_pin_label::after {
    border: 1px solid #9b8a6e;
    content: "";
    display: block;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.concept_inner .concept_pin_label::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 20vw;
    background: #3c3c3c;
}
.location_content{
    padding: 2rem 0;
}
.location_item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding:2rem 1rem;
    box-sizing: border-box;
}

.location_left {
    width: 100%;
     padding:0 1rem 2rem;
     box-sizing: border-box;
}
.location_left_text,.grid_text{
    font-size: 0.9rem;
    letter-spacing: 0;
}
.location_right {
    width: 100%;
    box-sizing: border-box;
}
.hr-border{
    border: none;              /* デフォルトの立体風を消す */
  border-top: 0.5px solid #9b8a6e; /* 好きな色に変更 */
  margin: 20px 0;     
}
.shopping_img,
.access_img,
.education_img,
.seaside_img {
    height: 200px;
}
.access_img {
    background-image: url('../img/access-head_sp.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
    .shopping_grid {
        grid-template-columns: 1fr;
        padding: 0 2rem;
        gap: 3rem;
    }

     .transport-title-en{
        font-size: 2rem;
    }
    .train-item,.bus-item{
    width: 100%;
    max-width: none;
    margin: 2rem auto;
}
  .scroll-box {
    position: relative;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;         
    -webkit-overflow-scrolling: touch;
  }
/* >> アイコン */
.scroll-hint {
    display: block;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 50px;
  color: rgba(42, 103, 191, 1);
  pointer-events: none;
  animation: blink 5s infinite; /* 点滅 */
  transition: opacity 0.3s ease;
}

/* 非表示状態 */
.scroll-hint.hidden {
  opacity: 0;
  animation: none; /* 点滅も停止 */
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

  .scroll-box img {
    display: block;
    width: auto;     /* ← 路線図の横幅（実サイズに合わせる） */
    height: 80vw;
    min-height: 350px;
    max-height: none;
  }
  .travel-time{
    flex-direction: column;
    padding: 0 1.5rem;
    box-sizing: border-box;
  }
  .travel-card{
    width: 100%;
  }
  .travel-notice{
    padding: 0 0.5rem;
    font-size: 0.7rem;
    box-sizing: border-box;
  }

    .education_grid01 {
        grid-template-columns: 1fr;
        padding: 0 2rem;
        gap: 3rem;
    }
        .education_grid02 {
        padding: 0 2rem;
        row-gap: 2rem;
        column-gap: 1rem;
    }

    .education_grid02 {
        grid-template-columns: repeat(2, 1fr);
    }

    .seaside_grid {
        grid-template-columns: 1fr;
        padding: 0 2rem;
    }

    .facility-info{
        align-items:flex-start; 
       }
    .facility-name {
    width: 75%;
    letter-spacing: 0.05rem;
    font-size: 1rem;
}

.facility-time{
    width: 25%;
}
.facility-time .time-number {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0.1em;
}
    .facility-time .distance {
        flex-basis: 100%;
        /* 幅100%にして改行 */
        text-align: right;
    }

}


.life-info {
  width: 100%;
  padding: 4rem 1rem;
  background: #fff;
  box-sizing: border-box;
}
.life-info .content_title{
    display: block;
    color:#9b8a6e;
    font-family: "EB Garamond", serif;
    font-size: 2rem;
    font-weight: normal;
    padding: 0 0 3rem;
    text-align: center;

}
.life-info_wrap {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.life-map {
  width: 50%;
  height: 600px;
  background: #ccc;
}

.life-info_right {
  width: 45%;
  display: flex;
  flex-direction: column; /* タブ→リストを縦並び */
}

/* PC用 */
@media (min-width: 768px) {
  .life-map { order: 1; }
  .life-info_right { order: 2; }
}

/* SP用 */
@media (max-width: 767px) {
  .life-info_wrap {
    flex-direction: column; /* 縦並び */
  }
  .life-map,
  .life-info_right {
    width: 100%;
  }
  .life-map {
  height: 350px;
}
}

.life-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.life-tabs li {
  background: #eee;
  padding: 0.8rem;
  text-align: center;
  font-family: "EB Garamond", serif;
  font-weight: normal;
  cursor: pointer;
  font-size: 1.2rem;
  letter-spacing: 0.05rem;
  border: 1px solid #ddd;
}

.life-tabs li span {
  display: block;
  font-family: 'Noto serif JP', serif;
  font-size: 0.8rem;
  letter-spacing: 0.02rem;
  font-weight: normal;
  margin-top: 4px;
}

.life-tabs li.active {
  background: #9b8a6e;
  color: #fff;
}

/* リストを地図と高さ揃え */
.life-list {
  flex: 1;                 /* 残りの高さを使う */
  overflow-y: auto;        /* 縦スクロール */
  max-height: 450px;       /* 地図と同じ高さに固定 */
  padding: 0 1rem;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch; /* iOSスムーズスクロール */
}

/* スクロールバーのスタイル調整（Webkit系＝Mac Safari/Chrome） */
.life-list::-webkit-scrollbar {
  width: 8px;             /* スクロールバーの幅 */
}
.life-list::-webkit-scrollbar-track {
  background: #f1f1f1;     /* トラック部分 */
}
.life-list::-webkit-scrollbar-thumb {
  background: #999;        /* スクロール部分 */
  border-radius: 4px;
}
.life-list::-webkit-scrollbar-thumb:hover {
  background: #666;        /* ホバー時 */
}
.life-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 0.8rem 5px;
  font-size: 0.9rem;
}
.life-list-item {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: ease 0.5s;
}

.life-list-item:hover{
    color: #9b8a6e;
    font-size: 105%;
}

.list-pin {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 34px;
  flex-shrink: 0;
}

.list-pin img {
  width: 100%;
  height: auto;
  display: block;
}

.list-pin-label {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: bold;
  color: #9b8a6e;
  pointer-events: none;
}
.place-name {
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap:8px;
}

.place-time {
  color: #555;
  font-size: 0.8rem;
}


.underline-trigger {
  position: relative;
  display: inline-block;
}

.underline-trigger::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 1px;
  width: 0;
  background: #9b8a6e; /* 任意の色 */
}
.concept_inner .underline-trigger::after{
    bottom: 10px;
}
.animate-underline::after {
  animation: underline-slide 2s ease forwards;
}

@keyframes underline-slide {
  0% { width: 0; left: 0; }
  40% { width: 100%; left: 0; }
  60% { width: 100%; left: 0; }
  100% { width: 0; left: 100%; } /* 左から消える */
}