main {
  margin-top: 0; /* headerの高さと一致させる */
}
.key-visual{
  position: relative;
  overflow: hidden;
  margin-right: auto;
  margin-left: auto;
  padding-top: 0;
  margin-top: 0;
}
.key_visual_background {
  width: 100%;
  height: auto;
  display: block;
  top: 0;
  z-index: 100;
}
.pc-bg {
  display: block;
  width: 100%;
  height: auto;
}

.sp-bg {
  display: none;
  width: 100%;
  height: auto;
}
.key_image {
  position: absolute;
  z-index: -10;
  top: 10%; /* 上部に固定 */
  left: 50%;
  transform: translateX(-50%); /* 横方向だけ中央揃え */
  width: 90%;
  height: auto;
}
/* .key_image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center top; /* ← トップを基準に表示 */

video{
  vertical-align: bottom;
  object-fit: cover;
  width: 100%; 
}
/*TOPキービジュアルの文字*/
.key-text-container{
  display: flex;
  justify-content: space-between;
  /* flex-direction: row-reverse;*/
  width: 100%;
  height: 100%;
  position: absolute; 
  top: 0;
  left: 0;
  align-items: flex-start;
  z-index: 1000;
  pointer-events: none;
}
.key-text-container .key-text {
  pointer-events: auto; /* ← テキストだけは操作可能にする */
}
.textcont1{
  position: absolute;
  right: 6%;
  top: 15%;
  height: auto;
  text-orientation: upright;
  writing-mode: vertical-rl;
  font-size: 2vw;
}
.textcont2{
  position: absolute;
  left: 6%;
  top: 15%;
  height: auto;
  text-orientation: upright;
  writing-mode: vertical-rl;
  font-size: 2vw;
}
.key-text{
  background-color: white;
  padding: 30px 10px 10px 5px;
  letter-spacing: 1em;
}
.key-text::before{
  display: inline-block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  inset: 5px -5px -5px 5px;
  border: #DB292C 0.2vw solid;
  content: '';
}
.key-text1{
  position: relative;
  margin-left: 10px;
}
.key-text2{
  position: relative;
  translate: 0 4em;
}

/* 自転車↓================================ */
.slope{
  position: absolute;
  left: 20%;
  bottom: 30.1vw;
  z-index: 101;
  rotate: 14.7deg;
}
.bicycle{
  width: 4vw;
  animation: movingBicycle 10s infinite ease-in-out;
}
@keyframes movingBicycle{
  0%{translate: 0 0;}
  49%{scale: 1 1;}
  50%{translate: 60vw 0;scale: -1 1;}
  99%{scale: -1 1;}
  100%{translate: 0 0;scale: 1 1;}
}

/* 自転車↑================================ */

/* 歩く人↓================================ */
.slope2{
  position: absolute;
  left: 10%;
  bottom: 2.2vw;
  z-index: 101;
  rotate: -10deg;
}
.walkman{
  width: 3vw;
  animation: walkingMan 41s infinite linear;
}
@keyframes walkingMan {
  0%{translate: 0 0;}
  49%{scale: 1 1;}
  50%{translate: 70vw 0;scale: -1 1;}
  99%{scale: -1 1;}
  100%{translate: 0 0;scale: 1 1;}
}
/* 歩く人↑================================ */


/* スクロールバー　================*/
.key-bar-container{
  display: inline-block;
  position: absolute;
  bottom: 0;
  left: 3vw;
}

.scrollbar-text {
  padding: 10px 10px 21vh; /* 下の余白もvhで調整 */
  color: #fff;
  font-size: 1.5vh; /* ウィンドウ高さに応じて文字サイズを変える */
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
  transform: translateX(-50%);
}

.scrollbar {
  position: absolute;
  transform: translateX(-50%);
  bottom: 1px;
}

.scrollbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 20vh; /* バーの高さもビューポート高さに連動 */
  background: #fff;
  animation: liner 2.0s cubic-bezier(1, 0, 0, 1) infinite;
}

/*メイン＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
/* 共通＝＝＝＝＝＝＝＝＝＝＝＝＝*/
section {
  margin-bottom: 200px;
  text-align: center;
}

section h2 {
  font-size: 2em;
  margin-bottom: 50px;
}

/* ボタン＝＝＝*/
.button {
  display: inline-block;
  background-color: #00356e;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 50px;
  position: relative;
  transition: background-color 0.3s ease;
  margin-top: 50px;
}
.button::after {
  content: "";
  display: inline-block;
  width: 36px;  /* 画像の幅 */
  height: 16px; /* 画像の高さ */
  background-image: url('../images/top/top-arrow.svg'); /* 矢印画像のパス */
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 8px;
  vertical-align: text-bottom;
  transition: transform 0.3s ease;
}
.button:hover {
  background-color: #172245;/* メインカラー濃 */
}
.button:hover::after {
  transform: translateX(5px); /* ホバー時に矢印が少し右に動く */
}


/*＝＝KCLCとは＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
.about-text{
  display: block;
  gap: 30x;
}
.about p {
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 2em;
}
.br_span{
  display: inline-block;
}

/*＝＝五感＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
.features .feature-cards {
  display: flex;
  flex-wrap: nowrap;  
  gap: clamp(5px, 1vw, 20px);
  margin-bottom: 20px;
}

.features .feature-card {
  position: relative;
  overflow: hidden;
}

.features .feature-card img {
  width: 100%;
  height: auto;
  display: block;

}
.overlay-text {
  position: absolute; /* これを追加 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 中心に配置 */
  color: #fff;
  font-size: calc(36/1440*100vw);
  font-weight: bold;
  border-radius: 5px;
  text-align: center;
  box-shadow: rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}
/* わがまち神戸＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/

.kobe-sightseeing .sightseeing-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  /* margin-bottom: 20px; */
}

.kobe-sightseeing .sightseeing-images img {
  width: 100%;
  height: auto;
  display: block;
}
/* ニュース＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
.news ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 1185px;
  margin: 0 auto;
}

.news li {
  padding: 20px 0;
  border-bottom: 1px solid #00356e70;
  border-top: 1px solid #00356e70;
  text-align: left;
}

.news li:last-child {
  border-top: none;
}

.news span {
  margin-right: 15px;
}

/* ====イベント・活動案内POP TOPバージョン ====================== */
.calendar-btn{
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1100;
  border: none;
  background-color:transparent;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.calendar-btn.visible {
  opacity: 1;
  transform: translateY(0);
}
.calendar-btn img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}
.hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* インスタ*/
.insta-wrap{
  position: relative;
}

.insta-wrap::before{
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
}
.snapwidget-widget{
  display: block;
} .insta-wrap::after{
  content: "";
  width: 100%;
  height: 1px;
  display: inline-block;
} 


/* キーフレームアニメーション＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
@keyframes liner {/* スクロールバー*/
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  30% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  70% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

/* レスポンシブデザインを追加 ========================================
========================================================================*/
@media screen and (max-width: 900px) {
  main {
    margin-top: 30px; /* headerの高さと一致させる */
  }
  /* ====イベント・活動案内POP ======= */
  .calendar-btn {
    position: fixed;
    bottom: 20px !important;   /* 画面下からの距離 */
    right: 20px !important;    /* 画面右からの距離 */
  }
  
  .calendar-btn img {
    width: 15vw !important;
    height: auto;
    object-fit: contain;
  }
  .calendar-btn{
    top: auto !important;
    bottom: 30px !important;
    right: 30px !important;
}
/*＝＝わがまち神戸＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
.kobe-sightseeing .sightseeing-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .kobe-sightseeing .sightseeing-images img {
    aspect-ratio: 1 / 1; /* 正方形にする */
    width: 100%;
    height: auto;
    object-fit: cover; /* 中央を切り抜いて表示 */
  }
}

/* スマホ用レスポンシブデザイン ========================================
========================================================================*/
@media screen and (max-width: 500px) { /* スマホ（最大幅428px）以下の画面に適用するスタイル */
/* キービジュアル */
  .pc-bg {
    display: none;
  }
  .sp-bg {
    display: block;
  }
  .key_image {
    top: 20%; /* 上部に固定 */
    left: 50%;
    transform: translateX(-50%); /* 横方向だけ中央揃え */
    width: 160%;
    height: auto;
  }
  .video{
    width: 160%;
    object-fit: cover;
  }
.key-text{
  padding: 10px 10px 10px 5px;
}
  .textcont1,
  .textcont2 {
    writing-mode: horizontal-tb; /* 横書きに変更（top to bottom） */
    font-size: calc(16 / 500 * 100vw);
    width: 70vw;
    line-height: 1;
  }
  .textcont1 {
    left: -3%;
    text-align: right;
  }
  .textcont2 {
    right: auto;
    left: 30%;
    margin-top: 30em;
    text-align: center;
  }

  .key-text::before{
    inset: 3px -3px -3px 3px;
    border: #DB292C 1px solid;
    content: '';
  }
  .key-text1{
    margin-right: 1em; /* ← これで少し右にずらす */
  }
  .key-text2{
    margin-top: 20px;
    translate: none;
    margin-left: 2em; /* ← これで少し右にずらす */
  }
/* 自転車↓================================ */
.slope{
  position: absolute;
  left: 10%;
  bottom: 80vw;
  z-index: 101;
  rotate: 32deg;
}
.bicycle{
  width: 7vw;
  animation: movingBicycle 8s infinite ease-in-out;
}
@keyframes movingBicycle{
  0%{translate: 0 0;}
  49%{scale: 1 1;}
  50%{translate: 60vw 0;scale: -1 1;}
  99%{scale: -1 1;}
  100%{translate: 0 0;scale: 1 1;}
}

/* 自転車↑================================ */

/* 歩く人↓================================ */
.slope2{
  position: absolute;
  left: 10%;
  bottom: 6vw;
  z-index: 101;
  rotate: -24deg;
}
.walkman{
  width: 5vw;
  animation: walkingMan 41s infinite linear;
}
@keyframes walkingMan {
  0%{translate: 0 0;}
  49%{scale: 1 1;}
  50%{translate: 70vw 0;scale: -1 1;}
  99%{scale: -1 1;}
  100%{translate: 0 0;scale: 1 1;}
}
/* 歩く人↑================================ */

  /* スクロールバー================*/
  .key-bar-container {
    left: 60% !important;
    transform: translateX(-50%);
    gap: 10px;             /* テキストとバーの間隔 */
  }
  .scrollbar-text {
    font-size: 2vw; /* ウィンドウ高さに応じて文字サイズを変える */
    letter-spacing: 0.3em;
  }
  .scrollbar {
    position: relative;    /* 絶対位置指定解除 */
  }
  .scrollbar::after {
    height: 27vh; /* バーの高さもビューポート高さに連動 */
    background: #fff;
    animation: liner 2.0s cubic-bezier(1, 0, 0, 1) infinite;
  }
/* メイン共通＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
section {
  margin-bottom: 100px;
}

section h2 {
  font-size: 1.5em;
  margin-bottom: 30px;
}
/*＝＝五感＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
/* 全体のカードコンテナを縦並びに設定 */
.features{
  width: 100%;        /* ビューポート幅いっぱいに */
  margin: 0;           /* 中央寄せを解除 */
  padding: 0;        /* 余白をなくす */
  margin-bottom: 100px;
}
.features .feature-cards {
  display: flex; /* Flexboxを使用 */
  flex-direction: column; /* 縦方向に並べる */
  gap: 10px; /* カード間のスペース */
}

/* 各カードのスタイル（必要に応じて調整） */
.features .feature-card {
  background-color: #f9f9f9;
  overflow: hidden;
  /* 他のスタイルも必要に応じて追加 */
}

/* 画像を横長にしたい場合は以下も併せて調整 */
.features .feature-card img {
  width: 100%; /* 横幅を親要素に合わせる */
  height: 80px; /* 固定の高さを設定（例：200px） */
  object-fit: cover; /* 横長の見た目に調整 */
  display: block;
}
.overlay-text {
  font-size: calc(36/500*100vw);
  letter-spacing: 1px;
}
/* ボタン＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
.button {
  margin-top: 30px;
}
/* ニュース＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
.news-t{
  font-size: calc(16/500*100vw);
  letter-spacing: 0.5;
}
}
/* モニター1700pxの場合の表示（テキストがはみ出さない設定）＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
@media screen and (min-width: 1700px) {
  .textcont1,
  .textcont2 {
    font-size: 1.8vw; /* ← テキストがはみ出さないサイズ */
  }
  
  .key-text {
    padding: 20px 10px 10px 5px;
    letter-spacing: 0.7em;
  }

  .key-text::before {
    border-width: 0.15vw; /* 枠も相対的に細く調整 */
  }
  /*＝＝五感＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
.overlay-text {
  font-size: calc(36/1700*100vw);/* テキストがはみ出さないサイズ */
  letter-spacing: 1px;
}
}
