@charset "UTF-8";

@font-face {
  font-family: "myfont";
  src: url("../font/Buildingsandundertherailwaytracksfree_ver.otf") format("truetype");
  font-display: swap;
}

/* ページ全体の基本設定 */
body {
  margin: 0; /* ブラウザのデフォルトマージンを削除 */
  padding: 0;
  background-color: #ffffe6;
  position: relative;
  overflow-x: hidden; /* 横スクロールを防止 */
}

/* ヘッダー */
.head-top {
  position: relative;
}

.header-container {
  display: flex;
  justify-content: left;
  align-items: flex-start;
  position: relative;
  width: 100%;
  height: 500px;
}

.header-container2 {
  display: flex;
  justify-content: left;
  align-items: flex-end;
  position: relative;
  width: 100%;
  height: 0;
}

.header-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 85%;
  background-image: url(../images/photo_s.png);
  background-size: cover;
  background-position: top;
  z-index: 1;
}

/* 端まで広げる画像 */
.header-image {
  position: absolute;
  top: 0;
  left: 0; /* 左端に配置 */
  width: 100%;
  height: auto;
  z-index: 2;
}

.header-image2 {
  position: relative;
  margin-left: auto;
  padding-right: 30px;
  width: 50%;
  height: auto;
  z-index: 2;
}

.header-image3 {
  position: relative;
  display: flex;
  padding-left: 30px;
  width: 50%;
  height: auto; /* 'cover' は無効な値のため 'auto' に修正 */
  z-index: 2;
}

.header-image4 {
  position: absolute;
  display: flex;
  padding-left: 30px;
  width: 40%;
  height: auto; /* 'cover' は無効な値のため 'auto' に修正 */
  z-index: 3;
}

.header-image5 {
  position: absolute;
  display: flex;
  padding-right: 30px;
  right: 0;
  width: 40%;
  height: auto; /* 'cover' は無効な値のため 'auto' に修正 */
  z-index: 3;
}

.logo-image {
  position: relative;
  text-align: left;
  margin-top: 15px;
  margin-left: 15px;
  width: 25%;
  height: auto;
  z-index: 3;
}

/*hamburger*/
.hamburger {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 150;
    width: 30px;
    height: 30px;
    cursor: pointer;
  }
  
  .hamburger.is-active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(135deg);
  }
  
  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.is-active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-135deg);
  }
  
  .hamburger span {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 4px;
    border-radius: 8px;
    background-color: #ffffff;
    transition: transform .3s;
  }
  
  .hamburger.is-active span {
    background-color: #ffffff;
  }
  
  .hamburger span:nth-child(1) {
    top: 30%;
  }
  
  .hamburger span:nth-child(2) {
    top: 60%;
  }
  
  .hamburger span:nth-child(3) {
    top: 90%;
  }

body.is-fixed {
  overflow: hidden;
}

.menu {
  position: fixed; /* 画面全体に表示するため fixed に変更 */
  top: 0;
  left: 0;
  z-index: 130;
  width: 100%;
  height: 100vh; /* 高さを画面全体に */
  overflow-y: auto;
  background-color: #ffffe6;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu.is-active {
  transform: translateY(0);
}

.menu-header-container {
  position: relative;
}

.menu-header-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.menu-logo-image {
  position: relative;
  text-align: left;
  margin-top: 15px;
  margin-left: 15px;
  width: 25%;
  height: auto;
}

.menu-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    padding-bottom: 100px;
    padding-top: 100px;
    /* 下部に余白を追加 */
  }

.menu-item {
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid #672B20;
  text-align: center;
  padding: 30px;
}

.menu-title {
  font-family: "Zen Maru Gothic ", "Kiwi Maru", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #672B20;
  margin-bottom: 20px;
}

.menu-logout {
    color: #dc3545; /* 赤色 */
  }

.menu-subtitle {
  font-family: "Zen Maru Gothic", "Kiwi Maru", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #672B20;
}

a {
  text-decoration: none;
}

/* メインコンテンツ */
main {
  position: relative;
  z-index: 5;
}

.text {
  text-align: center;
  font-size: 16px;
  font-family: "Yusei Magic", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #672b20;
  padding-bottom: 20px;
}

.text-bottom {
  text-align: center;
  font-size: 16px;
  font-family: "Yusei Magic", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #672b20;
  padding-top: 20px;
}

.text-color {
  color: #ff7455;
}

.text-color2 {
  color: #89DB76;
}

.text-color3 {
  color: #ffd767;
}

.text-color4 {
  color: #65A8F4;
}

.dig {
  position: relative;
  display: flex;
}

.dig-dig {
  position: absolute;
  display: flex;
  padding-top: 300px;
  right: 0;
  width: 30%;
  height: auto;
  z-index: 1;
}

/* ... 他の .dig-dig* スタイルも同様 ... */
.dig-dig2 {
  position: absolute;
  display: flex;
  padding-top: 300px;
  left: 0;
  width: 40%;
  height: auto;
  z-index: 1;
}

.dig-dig3 {
  position: absolute;
  display: flex;
  padding-top: 100px;
  right: 0;
  width: 30%;
  height: auto;
  z-index: 1;
}

.dig-dig4 {
  position: absolute;
  display: flex;
  padding-top: 650px;
  left: 0;
  width: 60%;
  height: auto;
  z-index: 1;
}

.dig-dig5 {
  position: absolute;
  display: flex;
  padding-top: 300px;
  right: 0;
  width: 30%;
  height: auto;
  z-index: 1;
}

.box {
  position: relative;
  background: #ffffff;
  border: #ff7455 5px solid;
  border-radius: 30px;
  margin: 50px;
  padding: 50px;
  z-index: 2;
}

.husi {
  display: block; /* text-align: center を有効にするため */
  margin: 0 auto; /* 中央寄せ */
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
  max-width: 400px; /* 必要に応じて最大幅を設定 */
  height: auto;
}

.sub-font {
  font-size: 15px;
  color: #672b20;
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  padding: 0;
  text-align: left;
}

.box2 {
  position: relative;
  background: #ffffff;
  border: #89DB76 5px solid;
  border-radius: 30px;
  margin: 50px;
  padding: 50px;
  z-index: 2;
  text-align: left;
}

.box2 li {
  font-size: 15px;
  color: #672b20;
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 8px;
}

.box3 {
  position: relative;
  background: #ffffff;
  border: #ffd767 5px solid;
  border-radius: 30px;
  margin: 50px;
  padding: 50px;
  z-index: 2;
}

.box4 {
  position: relative;
  background: #ffffff;
  border: #65A8F4 5px solid;
  border-radius: 30px;
  margin: 100px 50px;
  padding: 50px 20px;
  z-index: 2;
  text-align: center;
}

.box4 ul {
  text-align: left;
  padding-left: 20px;
  display: inline-block; /* リストを中央のコンテナ内に収める */
}

.box4 li {
  font-size: 15px;
  color: #672b20;
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 8px;
  list-style-type: decimal;
}

.caution-note {
  font-size: 14px;
  color: #672b20;
  margin-top: 15px; /* リストとの間に少し余白を設ける */
}

/* MAP */
.map {
  font-size: 35px;
  padding-top: 20px;
  color: #672b20;
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
}

.map-size {
  position: relative;
  width: 100%;
  padding-top: 75%; /* アスペクト比 4:3 */
  height: 0;
  z-index: 2;
}

.map-size iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box; /* padding を含めてサイズ計算 */
}

/* ボタン */
/* ▼▼▼ 修正点: ボタンを横並びに ▼▼▼ */
.box4-buttons {
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;     /* ボタンを横に並べる */
  justify-content: center;  /* 中央揃え */
  align-items: center;
  gap: 20px;                /* ボタンとボタンの間の距離 */
  flex-wrap: wrap;          /* 画面が狭い時に折り返す */
}
/* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲ */

.btn {
  border-radius: 1000px;
  display: inline-block;
  width: 200px;
  box-sizing: border-box;
  background: #6fa1ff;
  color: #FFF;
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  text-decoration: none;
  padding: 10px 0;
}


/* フッター */
footer {
  position: relative;
}

.footer {
  display: flex;
  text-align: center;
  justify-content: left;
  align-items: flex-start;
  position: relative;
  width: 100%;
  height: 100px;
}

.footer-img {
  position: absolute;
  top: 0;
  left: 0; /* 左端に配置 */
  width: 100%;
  height: auto;
}

.footer-copy {
  position: relative;
  text-align: center;
  font-size: 10px;
  color: #ffffff;
}

/* ===============================================
PC表示用のスタイル (800px以上)
=============================================== */
@media (min-width: 800px) {

  .text {
    font-size: 36px;
    padding-bottom: 50px;
  }

  .text-bottom {
    font-size: 36px;
    padding-top: 50px;
  }

  .header-container {
    height: 1000px;
  }

  .header-image2 {
    position: absolute;
    left: 0;
    width: 30%;
  }

  .header-image3 {
    position: absolute;
    right: 0;
    width: 30%;
  }

  .header-image4,
  .header-image5 {
    width: 30%;
  }

  .hamburger {
    right: 60px;
    width: 60px;
    height: 70px;
  }

  .hamburger span {
    height: 6px;
  }

  .menu-inner {
    height: auto;
    padding-top: 250px;
  }

  .box,
  .box2,
  .box3 {
    margin: 200px;
    padding: 100px;
  }

  .sub-font,
  .box2 li,
  .box4 li {
    font-size: 24px;
  }

  .box4 {
    margin: 200px;
    padding: 70px;
  }

  .caution-note {
    font-size: 18px; /* PC版では少し大きく */
  }

  .husi {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 50px;
  }

  .box4-buttons {
    margin-top: 70px;
    gap: 30px; /* PC版ではボタン間の距離を少し広げる */
  }

  .btn {
    width: 300px;
    font-size: 24px;
    padding: 30px 0;
  }

  .map {
    font-size: 50px;
  }

  .map-size {
    padding-top: 50%;
  }

  .map-size iframe {
    padding: 50px;
  }

  .footer-copy {
    padding-top: 200px; /* フッター画像の高さに応じて調整が必要な場合があります */
  }

  .dig-dig {
    padding-top: 300px;
    width: 25%;
  }

  .dig-dig2 {
    padding-top: 300px;
    width: 30%;
  }

  .dig-dig3 {
    padding-top: 50px;
    width: 20%;
  }

  .dig-dig4 {
    padding-top: 1000px;
    width: 30%;
  }

  .dig-dig5 {
    padding-top: 300px;
    width: 20%;
  }
}