/********** GoogleFonts ロード **********/

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/********** 共通 **********/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-padding-top: 76px;
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 400;
  font-style: normal;

  color: white;
  line-height: 1.75em;
  margin: 0;
  padding: 0;
  background-color: #0F2C32;
  font-size: 18px;
}

header {
  background-color: #1d5764;
  color: white;
  padding: 0 30px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 76px;
  top: 0;
  left: 0;
  z-index: 1000;
}

footer {
  background-color: #1d5764;
  color: white;
  text-align: center;
  width: 100%;
  height: 3em;
  font-size: 0.8em;
  line-height: 3em;
  top: 0;
  left: 0;
}

a {
  color: white;
  text-decoration: none;
}


/********** ヘッダ タイトル **********/

.main-title {
  font-size: 1.75em;
}

.sub-title {
  font-size: 1.5em;
  padding-left: 0.5em;
}


/********** ヘッダ ナビゲーション **********/

#desktop-nav {
  display: flex;
  gap: 1.5em;
}

#desktop-nav a {
  font-size: 1.1em;
}

#desktop-nav a,
#mobile-nav a,
div.logo a {
  color: white;
  text-decoration: none;
}


/********** ハンバーガー ナビゲーション **********/

#mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -240px;
  width: 240px;
  height: auto;
  background: #2a2a2a;
  transition: right 0.3s;
  flex-direction: column;
  padding-top: 76px;
  z-index: 500;
}

#mobile-nav.active {
  right: 0;
}

#mobile-nav a {
  height: 3em;
  padding-left: 1.5em;
  font-size: 1.5em;
  line-height: 3em;
  border-bottom: 1px #999999 solid;
}

#hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.3s ease-in-out;
}

#hamburger span {
  background: white;
  height: 3px;
  width: 36px;
  margin: 4px 0;
  transition: all 0.3s ease-in-out;
}

#hamburger.close span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

#hamburger.close span:nth-child(2) {
  opacity: 0;
}

#hamburger.close span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}


/********** メインフレーム **********/

main {
  padding: 0 10% 0 10%;
  min-width: 300px;
}


/********** メインビジュアル **********/

.main-visual-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.main-visual-img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 76px);
  /* ビューポートの高さを超えない */
  object-fit: contain;
  /* 画像の比率を保つ */
  display: block;
}

.fade {
  transition: opacity 2s ease;
  /* フェードイン・アウトの速度を調整 */
}


/********** ピンナップ **********/

.pinup-container {
  display: flex;
  gap: 1.5vw;
  width: 100%;
  max-width: 768px;
  margin: 0 auto 4em auto;
}

.pinup-image {
  width: 100%;
  height: auto;
  border-radius: 0.5em;
}

/********** 2カラム ピンナップ **********/

.pinup-container_column {
  width: 50%;
  box-sizing: border-box;
}


/********** セクション **********/

section {
  width: 100%;
  max-width: 1000px;
  padding: 2em 0 4em 0;
  margin: 0 auto;
}

section h2 {
  display: flex;
  align-items: center;

  font-family: "Neuton", serif;
  font-weight: 200;
  font-style: normal;

  font-size: 3em;
  margin: 0 0 1em 0;
}

section h2:before,
section h2:after {
  content: "";
  height: 1px;
  flex-grow: 1;
  background-color: #ffffff;
}

section h2:before {
  margin-right: 7%;
}

section h2:after {
  margin-left: 7%;
}

section h3 {
  margin: 1.25em 0 0.25em 0;
  font-size: 1.6em;
  font-weight: 800;
}

section h4 {
  margin: 1.25em 0 0.25em 0;
  font-size: 1.2em;
  font-weight: 600;
}



/********** #top **********/

div#top {
  padding-top: 76px;
  margin-bottom: 4em;
}


/********** #news **********/

section#news div {
  margin-top: 1em;
}

section#news div:nth-of-type(1) {
  margin-top: 0;
}

section#news p:nth-of-type(1) {
  width: 100%;
  background: rgba(255, 255, 255, 0.125);
  padding: 0.5em 1em;
  margin: 0;
  border-radius: 1em 1em 0 0;
  vertical-align: middle;

  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

section#news p:nth-of-type(2) {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5em 1em 0.75em 1em;
  margin: 0;
  border-radius: 0 0 1em 1em;

  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

section#news p:nth-of-type(1) span:nth-of-type(1) {
  display: inline-block;
  font-size: 1.25em;
  line-height: 1em;
  margin-right: 0.75em;
}

section#news p:nth-of-type(1) span:nth-of-type(2) {
  display: inline-block;
  font-size: 0.9em;
  line-height: 1em;
}

section#news p:nth-of-type(2) span:nth-of-type(1) {
  display: block;
  font-size: 1em;
}


/********** 在廊 **********/

p.label {
  display: inline-block;
  margin: 0;
  padding: 3px 8px 5px 8px;
  background-color: #1d5764;
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1em;
  border-radius: 0.333em;
}

ul {
  margin-left: 1.3333em;
  padding-left: 0;
}


/********** #message **********/

section#message p.message_box {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5em;
  margin-bottom: 0.5em;
  border-radius: 0.5em;
}


/********** Sale **********/
table.TBL {
  border-collapse: collapse;
  border: 1px #999999 solid;
  width: auto;
  margin: 0.5em 0;
}

table.TBL th,
td {
  border: 1px #999999 solid;
  padding: 0.25em 0.5em;
  text-align: center;
  line-height: 1.4em;
}

table.TBL th {
  background: rgba(29, 87, 100, 0.5);
}

table.TBL td span {
  font-size: 0.8em;
}


div.SIZE {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5em;
  padding: 1em 0;
}

.box {
  width: 13em;
  /* ボックスの固定幅 */
  height: 13em;
  /* 必要に応じて高さを調整 */
  border: 0.333em #999999 solid;
  background: rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5em 0;
  box-sizing: border-box;
  border-radius: 12em;
}

.box p {
  margin: 0;
  padding: 0;
  color: #000000;
  text-align: center;
}


.box p:nth-of-type(1) {
  font-size: 1.5em;
  font-weight: 500;
}

.box p:nth-of-type(2) {
  font-size: 1em;
  line-height: 1.2em;
  font-weight: 400;
}

.box span {
  display: block;
  margin-top: 0.5em;
  font-size: 0.8em;
}

.box p:nth-of-type(3) {
  font-size: 1.2em;
  font-weight: 500;
}


div.CAUTION {
  background: rgba(29, 87, 100, 0.5);
  padding: 0.75em 1em;
  margin: 1em 0;
  color: #FFFFFF;
  border-radius: 1em;
}

div.CAUTION p {
  text-align: center;
  font-size: 1.1em;
  font-weight: 500;
}

div.CAUTION ul {
  font-size: 0.9em;
}

div.CAUTION li {
  margin-top: 0.275em;
  line-height: 1.5em;
}

div.BOOK {
  display: flex;
  flex-wrap: wrap;
}

div.BOOK-container {
  display: flex;
  gap: 0.75em;
  margin-top: 1em;
  margin-right: 2em;
}

div.BOOK img {
  width: 10em;
}

div.BOOK-container span.soldout {
  background: #FF0000;
  font-weight: 600;
  padding: 0.1em 0.5em 0.3em 0.5em;
}

/********** #map **********/

.map_container {
  display: flex;
  width: 100%;
}

.map_column_l {
  width: 20em;
  /* 基準幅 */
  box-sizing: border-box;
}

.map_column_r {
  flex-grow: 1;
  /* 残りのスペースを全部取る */
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
}


/********** TOPに戻るボタン **********/

#scrollToTopBtn {
  position: fixed;
  bottom: 1.75em;
  right: 1.75em;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #267485;
  border: 4px #0F2C32 solid;
  color: white;
  cursor: pointer;
  width: 7em;
  height: 7em;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
  /* visibility: hidden; を削除 */
}

#scrollToTopBtn:hover {
  background-color: #2d869a;
}

.arrow {
  width: 0;
  height: 0;
  border-left: 1.333em solid transparent;
  border-right: 1.333em solid transparent;
  border-bottom: 1.666em solid white;
  margin-bottom: 0.5em;
}

.text {
  font-size: 1.333em;
}

#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTopBtn.hide {
  opacity: 0;
  visibility: hidden;
}


/********** @media コントロール **********/

@media (max-width: 1100px) {
  body {
    font-size: 16px;
  }
}

@media (max-width: 980px) {
  .map_container {
    flex-direction: column;
  }

  .map_column_l,
  .map_column_r {
    width: 100%;
    max-width: none;
  }

  .map_column_r {
    aspect-ratio: none;
    height: auto;
    padding-top: 1em;
  }

  #desktop-nav {
    display: none;
  }

  #hamburger {
    display: flex;
  }

  #mobile-nav {
    display: flex;
  }
}

@media (max-width: 768px) {
  main {
    padding: 0 1em 0 1em;
  }
}

@media (max-width: 500px) {
  body {
    font-size: 15px;
  }

  .main-title {
    font-size: 1.5em;
  }

  .sub-title {
    font-size: 1.3em;
  }
}

@media (max-width: 430px) {
  main {
    padding: 0 0.5em 0 0.5em;
  }

  .main-title {
    font-size: 1.35em;
  }

  .sub-title {
    font-size: 1.15em;
  }
}

@media (max-width: 390px) {
  .main-title {
    font-size: 1.2em;
  }

  .sub-title {
    font-size: 1.0em;
  }
}

@media (max-width: 355px) {
  .main-title {
    font-size: calc(11vw - calc(7em/10));
  }

  .sub-title {
    display: none;
  }
}

/*
@media (max-width: 250px) {
    .main-title {
        display: none;
    }
}
*/