@charset "UTF-8";
/* CSS Document */

*,*::before,*::after{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*スマホ用*/
.a{
  max-width: 767px;
  margin: 0 auto;
  background-color: #F5F4F1;
  min-width: 767px;
}
@media(min-width:768px){
  .a{
    border-left:3px solid #d0b786;
    border-right: 3px solid #d0b786;
  }
}
/*ここまで*/

.matome{
  display: flex;
  bottom: 0px;
  position: fixed;
  z-index: 999;
}
.yoyaku{
  width: 1739px;
}
.menu-btn
{
  width: 138px;
}


body{
  background-color: #FFF;
  background-image: url("../images/hosi@2x.png"),url("../images/logo2@2x.png");
  background-size: 120px,300px;
  background-position:center,top 50px right 50px;
  background-repeat: repeat-x,no-repeat;
  background-attachment: fixed;
  font-family: serif;
}


.container{
  width: 93%;
  margin: 0 auto;
}
 /*①トップ*/
img{
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

section .top{
background-image: url("../images/title.jpg");
height: 1100px;  
background-position: center;
background-size: cover;
}

.top h1{
  width: 300px;
  margin: 0 auto;
}

.top p{
  writing-mode: vertical-rl;
  color: #fff;
  text-align: center;
  font-size: 35px;
  font-family: serif;
 margin: 0 auto;
 position: relative;
 top: -580px; 
text-shadow: 0px 0px 7px #000;
}

.top h2{
width: 650px;
margin: 0 auto;
  position: relative;
 top: -480px; 
}
/*①ここまで*/

/*②キャッチ*/
.catch{
  background-color: #00599f;
  padding: 90px 0;
}

.catch p{
color: #fff;
text-align: center;
font-family: serif;
font-size: 28px;  
padding: 30px 0;
}
/*②ここまで*/

/*③質問*/
.questoin1{
  margin: 50px 0;
  width: 730px;
  padding-left: 50px;
}
.questoin2{
width: 700px;
margin: 0 auto;
  padding-left: 150px;
}
.question3{
  width: 390px;
  margin: 20px 0 35px 0;
}
.questoin_txt{
  font-family: serif;
  font-size: 35px;
  text-align: center;
  margin: 30px 0;
}
/*③ここまで*/

/*④プラネタリウムメイン*/
.main{
  margin-left: 18px;
}

.plan{
  width: 90%;
  display: block;
  margin: 0 auto;
}
/*④ここまで*/

/*⑤プラン詳細*/
.mokuji{
  width: 355px;
  display: block;
  margin: 0 auto;
  padding: 60px 0 0 0;
}

/*⑤ここまで*/


/*⑥お客様の声*/
.slider li {
margin: 40px 10px;
}

.slider li{
  transition-duration: 0.5s;
  border-radius: 50px;
}
.slider li:hover{
  transform:translateY(-30px);
  box-shadow: 0 0 13px 0 rgba(0,0,0,0.5);
  border-radius: 50px;
}
/*⑥ここまで*/

/*⑦ギャラリー*/
ul#polaroids a:after {
  content: attr(title);
  font-family: serif;
  color: #00599f;
  font-size: 20px;
}
ul#polaroids li a {
  position: relative;
  float: left;
  padding: 10px 10px 20px;
  background-color: white;
  -moz-box-shadow: 0 4px 10px #333;
  -webkit-box-shadow: 0 4px 10px #333;
  box-shadow: 0 4px 10px #333;
  -webkit-transform: rotate(5deg);
  -moz-transform: rotate(5deg);
  transform: rotate(5deg);
  width: 200px;
  margin: 0 auto;
  text-decoration: none;
  text-align: center;
}
ul#polaroids li a {
  -webkit-transform: rotate(5deg);
  -moz-transform: rotate(5deg);
  transform: rotate(5deg);
}

ul#polaroids li:nth-child(2n+1) a {
  -webkit-transform: rotate(-10deg);
  -moz-transform: rotate(-10deg);
  transform: rotate(-10deg);
  position: relative;
  top: -5px;
  left: 20px;
}
ul#polaroids li:nth-child(3) a {
  -webkit-transform: rotate(30deg);
  -moz-transform: rotate(30deg);
  transform: rotate(10deg);
  position: relative;
  top: -150px;
  left: 20px;
}
ul#polaroids li:nth-child(4) a {
  position: relative;
  top: -10px;
  left: 20px;
}
ul#polaroids li a:hover {
  -webkit-transform: scale(1.3);
  -moz-transform: scale(1.3);
  transform: scale(1.3);
  z-index: 6;
  transition: 500ms;
}

ul#polaroids li{
  list-style: none;
  padding: 35px;
  min-width: 767px;
}
/*⑦ここまで*/


/*⑧アクセス*/
.iflame{
text-align: center;
}
.iflame p{
  font-size: 24px;
  padding-top: 20px;
}
.iflame address{
  font-size: 30px;
}
/*⑧ここまで*/


/*⑨予約フォーム*/
input,select{
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  width: 600px;
  height: 80px;
  font-size: 28px;
}

textarea{
width: 600px;
  height: 300px;
  resize: none;
  min-height: 150px;
  max-height: 600px;
  background-color: #fff;
  font-size: 30px;
}

.form p{
  text-align: center;
  padding: 10px;
  font-family: serif;
  font-size: 28px;
}
.form .botan{
  background-color:#F5F4F1 ;
  width: 250px;
  height: 100%;
  display: block;
  margin: 0 auto;
}
/*⑨ここまで*/


/*⑩トップへ戻るボタン*/
.last p{
  text-align: center;
  font-family: serif;
  font-size: 25px;
  padding: 20px 0 50px 0;
  font-weight: bold;
  
}
.last a{
  color: #d0b786;
  text-decoration: none;
  width: 120px;
  display: block;
  margin: 0 auto;
  padding:30px 0 0 0;
}
/*⑩ここまで*/


/*フッター*/
footer{
  background-image: url("../images/2.jpg");
  padding-bottom: 150px;
}

footer h1{
  width: 300px;
  margin: 0 auto;
  padding-top: 40px;
}

nav ul{
  display: flex;
  list-style-type: none;
  justify-content: center;
}

nav a{
  color: #fff;
  text-decoration: none;
  padding: 24px;
  display: block;
}

footer p{
color: #fff;
text-align: center;
  font-size: 28px;
}
/*ここまで*/

/*調整用*/
.su_2{
  display: block;
  margin: -590px 0 0 0;
  padding-bottom: 30px;
}

.sr_1{
  display: block;
  width: 230px;
  margin: -650px 0 0 530px;
  padding-bottom: 950px;
}

.kari{
  margin-top: -750px;
}
.kari_yajirusi{
  margin-top: -150px;
  margin-bottom: -100px;
}

.su_3{
  margin-top: 300px;
}
/*調整用ここまで*/



/*以下スライド用*/
.scroll_up {
  transition: 0.8s ease-in-out;
  transform: translateY(30px);
  opacity: 0;
}
.scroll_up.on {
  transform: translateY(0);
  opacity: 1.5;
}

.scroll_right {
    -webkit-transition: 1s ease-in-out;
    -moz-transition: 1s ease-in-out;
    -o-transition: 1s ease-in-out;
    transition: 1s ease-in-out;
    transform: translateX(30px);
    opacity: 0;
    filter: alpha(opacity=0);
    -moz-opacity: 0;
}
.scroll_right.on {
    opacity: 1.0;
    filter: alpha(opacity=100);
    -moz-opacity: 1.0;
    transform: translateX(0);
}

.scroll_left {
    -webkit-transition: 0.8s ease-in-out;
    -moz-transition: 0.8s ease-in-out;
    -o-transition: 0.8s ease-in-out;
    transition: 0.8s ease-in-out;
    transform: translateX(-30px);
    opacity: 0;
    filter: alpha(opacity=0);
    -moz-opacity: 0;
}
.scroll_left.on {
    opacity: 1.0;
    filter: alpha(opacity=100);
    -moz-opacity: 1.0;
    transform: translateX(0);
}
/*ここまで*/

/* ======== ポップアップ調整版 ======== */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 9999;
}

#overlay.show {
  opacity: 1;
}

.cover-main {
  position: relative;
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeIn 0.6s ease;
}

/* チェキ風の枠と比率 */
.cover-main img {
  max-width: 85vw;
  max-height: 80vh;
  border: 6px solid #fff;
  box-shadow: 0 4px 25px rgba(0,0,0,0.4);
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

/* 閉じるボタンを右上に配置 */
.cover-main button {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.cover-main button:hover {
  transform: scale(1.1);
}

.cover-main button img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  border: none;
}

/* ふんわりフェードアニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== 閉じるボタン（CSS版✕マーク） ===== */
.cover-main button {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cover-main button::before,
.cover-main button::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 3px;
  background-color: #555;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.cover-main button::before {
  transform: rotate(45deg);
}
.cover-main button::after {
  transform: rotate(-45deg);
}

.cover-main button:hover {
  transform: scale(1.1);
}
.cover-main button:hover::before,
.cover-main button:hover::after {
  background-color: #000;
}


/* スライドメニュー本体 */
.side-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(208, 183, 134, 0.95);
  transform: translateY(100%); /* 初期は画面下に隠す */
  transition: transform 0.5s ease;
  z-index: 9999;
}

.side-menu.active {
  transform: translateY(0); /* 表示 */
}

.side-menu ul {
  list-style: none;
}

.side-menu li {
  margin: 10px 0;
  font-size: 30px;
}

.side-menu a {
  color: #fff;
  text-decoration: none;
  font-family: serif;
}

.side-menu a:hover {
  color: #fffacd;
}

.side-menu .close-btn {
  position: absolute;
  bottom: 100px;       /* 下からの位置 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;    /* 大きめ */
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0;         /* 初期は非表示 */
  transition: opacity 0.3s, transform 0.2s;
  z-index: 10000;
  font-family: serif;
}

.side-menu.active .close-btn {
  opacity: 1;        /* メニューが開いた時に表示 */
}

.side-menu .close-btn:hover {
  transform: translateX(-50%) scale(1.2);
}


.side-menu.active li {
  font-size: 30px;
  margin: 0 5px;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    
    display: flex;
    flex-direction: column;  /* ← 縦並び */
    align-items: center;     /* ← 水平方向（左右）中央 */
    justify-content: flex-start; /* ← 上から順番に並べる */
    gap: 30px;               /* ← メニュー同士の間隔（調整OK）*/
    margin-top: 80px;        /* ← 上の余白（詰まりすぎを防ぐ）*/
}
.side-menu ul li a {
    font-size: 35px;     /* 文字サイズ大きく */
    text-align: center;  /* 中央揃え */
    display: block;
    width: 100%;
}