@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
}
img {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #050505;
}

ul {
  list-style: none;
  text-decoration: none;
}
a {
  text-decoration: none;
}
.main_image {
  max-width: 100%;
  margin: 0 auto;
  vertical-align: bottom;
  /* position: relative; */
  /* overflow: hidden;  */
}

.main_image video {
  width: 100%;
  /* height: auto; */
}

header {
  background-color: #f3e8ef;
}
.header_inner {
  display: flex;
  justify-content: space-between;
  background-color: #f3e8ef;
  flex-wrap: wrap;
}
header.header_inner container {
  display: flex;
  height: 100px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  /* flex-wrap: wrap; */
}
header h1 {
  font-size: 20px;
  padding-bottom: 5px;
  margin-bottom: 10px;
  margin-top: 20px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
nav li {
  border-left: 1px solid #000;
}

nav li:last-of-type {
  border-right: 1px dotted#050505;
}
nav li a {
  display: flex;
  padding: 0 25px;
  line-height: 70px;
  color: #000;
  justify-content: flex-end;
  font-weight: bold;
}
nav ul a:hover {
  background-color: #f4f2f2;
}
/* main side */
.main_image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
/* .main_image  */

/* 上の.main_imageをコメントアウトするとYouTubeが消える ので下記修正*/

.about {
  /* display: flex;
    margin: 30px auto;
    flex-wrap: wrap;
    justify-content: center;

    ここをコメントアウトすることによってYouTube表示

     */
}

.about h2,
.about h3 {
  flex-wrap: wrap;
  margin: 100px;
  text-align: center;

  margin: 0 auto;
  text-align: center;
  margin-top: 200px;
}

.about h2 {
  margin-top: 150px;

  text-align: center;
}

.about h3 {
  margin-top: 20px;
  margin-bottom: 100px;
  font-size: 20px;
}
.iframe-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#contents .flex {
  display: flex;
  justify-content: space-around;
  background-color: #f4e5f9;
  padding: 50px;
}
#contents .reverse {
  flex-direction: row-reverse;
  background-color: rgba(178, 238, 238, 0.672);
}
#contents .box img {
  width: 600px;
}
#contents .box h3 {
  font-size: 36px;

  font-family: sans serif;
  font-weight: bold;
  margin-top: 150px;
}
#contents .box p {
  font-size: 20px;
  margin-top: 20px;
}

.another {
  display: flex;
  background-color: rgb(211, 236, 220);
  justify-content: space-around;
  flex-wrap: wrap;
}
footer {
  background-color: #f3e8ef;
}
.footer_inner p {
  text-align: center;
  line-height: 50px;
  padding: 30px 0;
  font-size: 25px;
}

.upto {
  position: fixed;
  right: 50px;
  bottom: 100px;
  width: 75px;
  height: 60px;
  background-color: rgba(210, 144, 218, 0.598);
  border-radius: 10px;
  /* display: none; */
}

.upto a {
  display: block;
  line-height: 60px;
  text-align: center;
  font-size: 10px;
  text-decoration: none;
  color: #f4f2f2;
}

/* @media side */
@media (max-width: 768px) {
  .header_inner container {
    display: block;
    height: auto;
    text-align: center;
    background-color: rgb(220, 153, 230);
  }
  h1 {
    text-align: center;
    margin: 0 auto;
  }

  nav ul li a {
    text-align: center;
    width: 100%;
    height: auto;
    font-size: 15px;
    line-height: 18px;
    padding: 0;
  }
  .about h3 {
    font-size: 16px;
  }
  #contents .flex {
    display: block;
    text-align: center;
  }
  .another {
    text-align: center;
  }
}

/* 追記 */
/* スマホ用（画面幅768px以下）の表示調整 */
@media screen and (max-width: 768px) {
  /* ヘッダー全体の余白調整 */
  header {
    padding: 10px 15px !important;
    text-align: center;
  }

  /* タイトルロゴのサイズ調整 */
  header h1,
  header .logo {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }


  /* navを中央に寄せる この3行のみ追記0819*/
  header nav {
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  /* ナビゲーションの折り返し設定 */
  header nav ul {
    display: flex !important;
    flex-wrap: wrap !important; /* 横幅からはみ出したら折り返す */
    justify-content: center !important; /* 中央寄せ */
    gap: 8px 12px !important; /* メニュー同士の間隔（上下 左右） */
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  /* 各メニュー項目の調整 */
  header nav ul li {
    display: inline-block !important;
    white-space: nowrap; /* 各単語内での途切れを防止 */
  }

  header nav ul li a {
    font-size: 12px !important; /* スマホ用に文字を少し小さく */
    line-height: 1.4 !important;
  }
}
