* {
  font-family: serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}
body {
  background-color: #f4f1ed;
  color: #623e2a;
  line-height: 1.6;
}

/* --------Skip page hide------ */

.skip {
  position: absolute;
  left: auto;
  width: 1%;
  height: 1%;
  overflow: hidden;
}

.skip:focus {
  position: static;
  width: auto;
  height: auto;
}

/* ---------Wrapper------------- */

#wrapper_homepage {
  display: grid;
  grid-template-areas:
    "header"
    "menu"
    "main"
    "footer";
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  width: auto;
}

/* ---------Header Start------------- */

header,
footer {
  width: auto;
  background-color: #1c1c1c;
  color: white;
  font-size: 16px;
}

header {
  display: grid;
  grid-area: header;
  color: white;
  grid-template-areas: "logo comment";
  align-items: center;
  width: auto;
  padding: 10px;
  box-sizing: border-box;
  justify-content: start;
}

#header_logo {
  grid-area: logo;
}

#header_comment {
  grid-area: comment;
  width: 100%;
}

/* ---------Menu Start------------- */

/* Base styles for hamburger menu */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 1.5em;
  color: #623e2a;
  cursor: pointer;
  padding: 0.5em;
}

.hamburger ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  display: none; /* Hide menu by default */
}

.nav-menu {
  grid-area: menu;
  background-color: #91713c;
  padding: 1em;
  white-space: nowrap;
}

.nav-menu ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  margin: 0 15px;
}

.nav-menu a {
  color: #623e2a;
  text-decoration: none;
  padding: 10px 20px;
  background-color: #aad2e3;
  border-radius: 5px;
}

.nav-menu a:hover {
  background-color: #69bfe4;
}

/* チェックボックスを非表示 */
#menu-btn-check {
  display: none;
}

/* ---------Homepage body------------- */

#homepage_main {
  grid-area: main;
  max-width: 1000px;
  width: auto;
  margin: 2em auto;
  min-height: 700px;
  display: grid;
  grid-template-areas:
    "image1 image1"
    "article1 image2"
    "image3 article2"
    "article3 image4";

  grid-template-columns: auto auto;
  grid-template-rows: auto auto auto auto;
  place-content: center;
  place-items: center;
  align-content: space-evenly;
}

#homepage_image1 {
  grid-area: image1;
  width: 100%;
  background-size: cover;
}

#homepage_article1 {
  grid-area: article1;
  width: 100%;
  margin: 10%;
  padding: 1em;
}

#homepage_image2 {
  grid-area: image2;
  width: 100%;
  margin: 20%;
}
#homepage_article2 {
  grid-area: article2;
  width: 100%;
  margin: 10%;
  padding: 1em;
}

#homepage_image3 {
  grid-area: image3;
  width: 100%;
  margin: 20%;
}

#homepage_article3 {
  grid-area: article3;
  width: 100%;
  margin: 10%;
  padding: 1em;
}

#homepage_image4 {
  grid-area: image4;
  width: 100%;
  margin: 20%;
}

/* --------roompage body--------- */
#roompage_main {
  grid-area: main;
  max-width: 1000px;
  width: 100%;
  margin: 2em auto;
  min-height: 700px;
  display: grid;
  grid-template-areas:
    "title"
    "image1"
    "comment"
    "content";
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  place-content: center;
  place-items: center;
  gap: 1em;
}

.title {
  grid-area: title;
  color: #2c3e50;
  margin: 1em;
  text-align: center;
  font-size: 2em;
}

#roompage_image1 {
  grid-area: image1;
  width: 100%;
  height: 100%;
  text-align: center;
}

.article1 {
  grid-area: comment;
  margin: 1em;
  padding: 0.5em;
  width: 100%;
}
/* Table */
caption {
  margin: 1em;
  font-size: 1.5em;
}
table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  border: 1px solid;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}
/* Table end */

#roompage_content {
  grid-area: content;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
}

#roompage_content > * {
  flex: 1 1 calc(50% - 20px);
  max-width: calc(50% - 20px);
}

#roompage_image2 img,
#roompage_image3 img,
#roompage_image4 img,
#roompage_image5 img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
#roompage_image2 img:hover,
#roompage_image3 img:hover,
#roompage_image4 img:hover,
#roompage_image5 img:hover {
  transform: scale(1.02);
  transition: transform 0.1s ease;
}

#roompage_article2,
#roompage_article3,
#roompage_article4,
#roompage_article5 {
  color: #333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* --------facility body--------- */
#facility_main {
  grid-area: main;
  max-width: 1000px;
  width: 100%;
  margin: 2em auto;
  display: grid;
  grid-template-areas:
    "title"
    "comment"
    "images-comments";
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  place-content: center;
  place-items: center;
  gap: 1em;
}

#images-comments {
  grid-area: images-comments;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  align-items: flex-start;
}

.figure-container {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

picture {
  width: 100%;
  margin: 0;
}

picture img {
  width: 100%;
  height: auto;
  display: block;
}

article {
  width: 100%;
  margin-top: 1em;
}

/* --------activity body--------- */

#activity_main {
  grid-area: main;
  max-width: 1000px;
  width: 100%;
  margin: 2em auto;
  display: grid;
  grid-template-areas:
    "title"
    "comment"
    "images-comments";
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
}

#activity_main #images-comments {
  grid-area: images-comments;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  align-items: flex-start;
}

#activity_main .figure-container img {
  width: 100%;
  height: auto;
}

#activity_main .figure-container article {
  width: 100%;

  margin: 2em;
  padding: 1em;
  background-color: #f4f1ed;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* --------booking--------- */

#booking_main {
  grid-area: main;
  max-width: 1000px;
  width: 100%;
  margin: 2em auto;
  display: grid;
  grid-template-areas:
    "title title"
    "reception reception"
    "comment comment"
    "booking booking"
    "vcard gmap";
  grid-template-columns: auto auto;
  grid-template-rows: auto auto auto auto auto;
  place-content: center;
  place-items: center;
  gap: 2em;
}

#reception {
  grid-area: reception;
  width: 100%;
}
/* picture {
  width: 100%;
  margin: 0;
}

picture img {
  width: 100%;
  height: auto;
  display: block;
} */

#theForm {
  grid-area: booking;
  width: 90%;
  text-align: center;
  margin: 10%;
  background-color: white;
}

.vcard {
  grid-area: vcard;
  width: 100%;
  text-align: center;
  margin: 10%;
  padding: 5%;
  background-color: white;
}

iframe {
  width: 100%;
  padding: 1%;
}
.gmap {
  grid-area: gmap;
  width: 100%;
  text-align: center;
  margin: 10%;
  background-color: white;
}

/* cart page */

#cartpage_title {
  grid-area: title;
  font-family: "Montserrat", sans-serif;
  color: #1a202c;
  text-align: center;
  margin-bottom: 1em;
  font-size: 2em;
  width: 100%;
}

#cart_items,
#cart_terms,
#cart_summary {
  width: 100%;
  background: #ffffff;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

#cart_items {
  grid-area: cart;
  width: 100%;
}

#cart_summary {
  grid-area: summary;
  width: 100%;
}

/* form */

section {
  clear: both;
  padding-top: 10px;
  width: 100%;
}

form {
  background-color: #ffffff;

  margin: 0 auto;
  padding: 14px;
  border: solid 2px #88a61b;
}

section.two label {
  font-weight: bold;
  float: left;
  width: 100px;
  text-align: right;
  padding-right: 10px;
  position: relative;
}

section.two input,
section.two select {
  float: left;
  width: 150px;
  text-align: left;
}

section.two select {
  width: 157px;
}

section.one {
  text-align: center;
}

#submit {
  clear: both;
  width: 125px;
  height: 30px;
  background: #f29f05;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  font-weight: bold;
}

.tooltip {
  display: block;
  position: absolute;
  visibility: hidden;
  left: auto;
  top: 0;
  width: auto;
  padding: 0.5em;
  font-weight: normal;
  color: #fff;
  background-color: #88a61b;
  border: solid 2px #0e3d59;
}

.error {
  color: #d92525;
}
span.error {
  padding-left: 10px;
}

.correct {
  color: green;
}

.correct-check {
  color: green;
  font-size: 16px;
  margin-left: 10px;
}

.check {
  color: green;
}

/* -------- 404 -------------- */

#errorpage {
  grid-area: main;
  max-width: 1000px;
  width: 100%;
  margin: 2em auto;
  display: grid;
  grid-template-areas: "comment404 image1";
  grid-template-columns: auto 60%;
  grid-template-rows: auto;
}

#comment404 {
  grid-area: comment404;
  padding: 10%;
  text-align: center;
}

#error404 {
  font-size: 5em;
  text-align: center;
  margin: 3rem 0;
}

#bottle {
  grid-area: image1;
  display: flex;
  justify-content: center;
  align-items: center;
}
#bottle img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.error-container {
  text-align: center;
  padding: 20px;
}

/* assessment */

#homepage_as2 {
  grid-area: main;
  max-width: 1000px;
  width: auto;
  margin: 2em auto;
  min-height: 700px;
}
#homepage_as2 h1 {
  text-align: center;
  color: #2c3e50;
  font-size: 2em;
}
#homepage_as2 h2 {
  text-align: center;
}

#room_list_container {
  display: grid; /* CSS Gridを使用 */
  grid-template-columns: repeat(3, 1fr); /* 3列のグリッドを作成 */
  gap: 20px; /* 各アイテムの間隔を設定 */
  padding: 20px;
}

.room_item {
  border: 1px solid #ccc; /* 視覚的に見やすいように枠を追加 */
  padding: 15px;
  text-align: center;
  border-radius: 8px; /* 角を丸くする */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 軽いシャドウ効果 */
}

.room_image {
  max-width: 100%; /* 画像の幅を親要素に合わせる */
  height: auto; /* 画像の高さを自動調整 */
}

/* ---------Footer Start------------- */

footer {
  grid-area: footer;
}

#footer_items {
  min-height: 300px;
  display: flex;
  justify-content: space-around;
  padding: 2em;
  text-align: center;
}

footer a {
  color: #cfa38c;
}

footer li {
  padding-top: 15px;
  padding-bottom: 10px;
  list-style: none;
}
footer li:hover {
  background-color: #f4f1ed;
}

#footer_article {
  text-align: center;
  list-style: none;
  margin: 3%;
}
#footer_copy {
  text-align: center;
}
#policy:hover {
  background-color: transparent;
}

footer section {
  width: auto;
}

/* Responsive Styles */

@media screen and (max-width: 700px) {
  /* -------menu------ */
  .nav-menu ul {
    display: block; /* 縦並びに変更 */
  }

  /* メニュー項目の表示スタイル */
  .menu-content ul {
    padding: 70px 10px 0;
  }
  .nav-menu a {
    color: #f4f1ed;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #91713c;
    border-radius: 5px;
  }
  .title {
    margin: 0em;
  }

  /* 三本線アイコンのスタイル */
  .menu-btn {
    position: fixed;
    top: 1%;
    right: 1%;
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background-color: #91713c;
  }
  .menu-btn span,
  .menu-btn span:before,
  .menu-btn span:after {
    content: "";
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #aad2e3;
    position: absolute;
  }
  .menu-btn span:before {
    bottom: 8px;
  }
  .menu-btn span:after {
    top: 8px;
  }

  /* メニューオープン時にアイコンをクロス表示 */
  #menu-btn-check:checked + .menu-btn span {
    background-color: transparent;
  }
  #menu-btn-check:checked + .menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
  }
  #menu-btn-check:checked + .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* メニューコンテンツ */
  .menu-content {
    width: 30%; /* 画面の右側 70% を空けるように 30% に設定 */
    height: 60%;
    position: fixed;
    top: 0%;
    right: -100vw; /* 初期状態で画面外に非表示 */
    z-index: 80;
    background-color: #91713c;
    transition: all 0.5s; /* スムーズな移動 */
  }

  .menu-content ul {
    padding: auto;
  }

  .menu-content ul li {
    border-bottom: solid 1px #ffffff;
    list-style: none;
    margin: 2%;
  }

  .menu-content ul li a {
    display: block;
    width: 100%;

    text-decoration: none;

    position: relative;
  }

  /* チェック時にメニューを表示 */
  #menu-btn-check:checked ~ .menu-content {
    right: 0; /* 表示状態 */
  }
  /* -------homepage------ */

  #homepage_main {
    grid-template-areas:
      "image1"
      "article1"
      "image2"
      "article2"
      "image3"
      "article3"
      "image4";
    grid-template-columns: 1fr;
  }
  /* -------roompage------ */

  #roompage_content > * {
    flex: none;
    max-width: 100%;
    margin-bottom: 5%;
  }
  /* -------facility------ */
  .figure-container {
    flex: auto;
  }
  /* -------activity------ */

  #activity_main {
    justify-content: center;
  }

  #activity_main #images-comments {
    grid-area: images-comments;
    display: flex;
    flex-direction: row;
    /* flex-wrap: nowrap; */
    gap: 1em;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-x: auto;
  }

  #activity_main .picture-container {
    flex: 0 0 auto;
    width: 70%;
  }
  /* -------booking------ */
  #booking_main {
    width: 100%;
    display: grid;
    grid-template-areas:
      "title"
      "reception"
      "comment"
      "booking"
      "vcard"
      "gmap";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    place-content: center;
    place-items: center;
    align-content: space-evenly;
  }
  /* -------error------ */
  #errorpage {
    grid-template-areas:
      "comment404"
      "image1";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
}
