/* ====================================================
 * Common Style CSS
 * ===================================================*/
@charset "utf-8";

:root {
  --max-column-width: 720px; /* 一般要素の最大幅 */
  --bg-color: #fffaf0;
  --ac-color: #2149c1;
}

html {
  background-size: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color); /* BODY背景色 */
  min-height: 100%;
  margin: 0;
  padding: 0;
  flex-direction: column;
  display: flex;
  font-size: 18px;
  font-family: "Hiragino Kaku Gothic ProN", Meiryo, Osaka, "MS PGothic", arial,
    helvetica, sans-serif;
}

/* ヘッダー 
------------------------------------------------------------------------ */
header {
  background-color: var(--bg-color); /* ヘッダー背景色 */
  background-size: auto;
  width: 100%;
  margin: 0;
  padding: 0;
}

div#tittle {
  width: 100%;
  position: relative;
  margin: 0px 0px 0px 0px;
}

div#tittle img {
  width: 100%;
  vertical-align: bottom;
}

p#subtitle {
  position: absolute;
  top: 0;
  left: 0;
  text-align: left;
  margin: 0px 5px 0px 10px;
  font-size: medium;
  text-shadow: 1px 1px 3px black;
  color: #ffffff; /* サブタイトル文字色 */
}
@media screen and (max-width: 768px) {
  /* 表示領域が768px以下の場合に適用するスタイル */
  p#subtitle {
    font-size: small;
  }
}

p#maintitle {
  position: absolute;
  top: 20px;
  left: 0;
  text-align: left;
  margin: 0px 0px 0px 10px;
  font-size: x-large;
  font-weight: bold;
  font-family: Quicksand, sans-serif;
  text-shadow: 2px 3px 3px black;
  color: #ffffff; /* メインタイトル文字色 */
}

/* PC用メニュー 
------------------------------------------------------------------------ */
#menu-main {
  width: 85%;
  margin-top: 1em;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: var(--bg-color); /* PC用メニュー背景色 */
  text-align: center;
}
.square_btn {
  width: 13%;
  min-width: 94px;
  max-width: 200px;
  position: relative;
  display: inline-block;
  padding: 0.25em 0.5em;
  text-decoration: none;
  color: white; /* 非アクティブボタン文字色 */
  background: #4169e1; /* ボタン基本色 */
  border-bottom: solid 2px #191970; /* ボタン影色 */
  border-radius: 4px; /* 角の丸み */
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2),
    0 2px 2px rgba(0, 0, 0, 0.19);
  font-family: "Hiragino Kaku Gothic ProN", Meiryo, Osaka, "MS PGothic", arial,
    helvetica, sans-serif;
  font-weight: bold;
}
.btn_color_active {
  color: rgb(248, 236, 130); /* アクティブボタン文字色 */
}
@media screen and (max-width: 768px) {
  /* 表示領域が768px以下の場合に適用するスタイル */
  .square_btn {
    width: 42%;
  }
}
.square_btn:active {
  color: rgb(255, 230, 8); /* 押下時ボタン文字色 */
  border-bottom: none;
}
span.btn_chr_main {
  font-size: 18px;
}
span.btn_chr_sub {
  font-size: 10px;
}

/* モバイル用ハンバーガーメニューボタン
------------------------------------------------------------------------ */
#hb-check {
  display: none;
}
label.hb-btn {
  display: none;
  position: fixed;
  top: 5px;
  left: calc(100vw - 75px);
  height: 45px;
  width: 45px;
  justify-content: center;
  align-items: center;
  z-index: 4;
  border-radius: 5px;
  background-color: var(--ac-color);
  border: none;
}
@media screen and (max-width: 768px) {
  /* 表示領域が768px以下の場合に適用するスタイル */
  label.hb-btn {
    display: block;
  }
}

label.hb-btn span.hb-bar,
label.hb-btn span.hb-bar:before,
label.hb-btn span.hb-bar:after {
  content: "";
  position: absolute;
  display: block;
  height: 2px;
  width: 22px;
  background-color: rgba(255, 255, 255, 1);
  position: absolute;
}
label.hb-btn span.hb-bar {
  top: 24px;
  left: 12px;
  transition: background-color 0.3s 0s;
  background-color: rgba(255, 255, 255, 1);
}
label.hb-btn span.hb-bar:before {
  transition: bottom 0.3s 0s, transform 0.3s 0s;
  bottom: 6px;
  transform: rotate(0);
}
label.hb-btn span.hb-bar:after {
  transition: top 0.3s 0s, transform 0.3s 0s;
  top: 6px;
  transform: rotate(0);
}
/* メニューオープン時　真ん中の線を透明にし、残り２本を傾けてXにする */
#hb-check:checked ~ label.hb-btn span.hb-bar {
  transition: background-color 0.2s 0s;
  background-color: rgba(255, 255, 255, 0);
}
#hb-check:checked ~ label.hb-btn span.hb-bar::before {
  transition: bottom 0.5s 0s, transform 0.5s 0s;
  bottom: 0px;
  transform: rotate(45deg);
}
#hb-check:checked ~ label.hb-btn span.hb-bar::after {
  transition: bottom 0.5s 0s, transform 0.5s 0s;
  top: 0px;
  transform: rotate(-45deg);
}

/* モバイル用サイドメニュー
------------------------------------------------------------------------ */
#menu-side {
  display: none;
  flex-flow: column;
  background-color: white;
  width: 144px;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 0.5em;
  z-index: 3;
}
#menu-side a {
  display: block;
  width: 100%;
}
#menu-side a:link,
#menu-side a:visited {
  color: steelblue;
}

/* メイン
------------------------------------------------------------------------ */
main {
  color: steelblue;
  background-color: var(--bg-color); /* コンテンツ背景色 */
  text-align: center;
}

div.page_block {
  margin-top: 20px;
}

/* ページ初期非表示 */
div[id^="block_"] {
  display: none;
  opacity: 0;
}
div[id^="block_"].block_active {
  animation-duration: 1s;
  animation-name: showup;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}
@keyframes showup {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 中央抜きバー */
p.fadeout_border {
  display: flex;
  align-items: center;
  font-size: 18px;
  color: gray; /* 中央抜きバー文字色及び線色 */
}
p.fadeout_border:before,
p.fadeout_border:after {
  content: "";
  flex-grow: 1;
  height: 1px;
  display: block;
}
p.fadeout_border:before {
  margin-right: 0.4em;

  background: linear-gradient(-90deg, gray, transparent);
}
p.fadeout_border:after {
  margin-left: 0.4em;
  background: linear-gradient(90deg, gray, transparent);
}

/* 各要素 */

.slogan {
  font-weight: bold;
  margin: 5px;
}

span.qa_q {
  font-weight: bold;
  color: #101011; /* ＱＡ質問文字色 */
}

div.text {
  width: 65%;
  max-width: var(--max-column-width);
  margin: auto;
}

@media screen and (max-width: 768px) {
  /* 表示領域が768px以下の場合に適用するスタイル */
  div.text {
    width: 80%;
    text-align: left;
  }
}

div.box {
  width: 55%;
  max-width: var(--max-column-width);
  margin: auto;
  padding: 1.1em;
  background-color: white;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.6));
  color: black; /* BOX内文字色 */
  text-align: left;
  margin-bottom: 15px;
  white-space: pre; /* CSS 2.0 */
  white-space: pre-wrap; /* CSS 2.1 */
  white-space: pre-line; /* CSS 3.0 */
  white-space: -pre-wrap; /* Opera 4-6 */
  white-space: -o-pre-wrap; /* Opera 7 */
  white-space: -moz-pre-wrap; /* Mozilla */
  white-space: -hp-pre-wrap; /* HP Printers */
  word-wrap: break-word; /* IE 5+ */
}
@media screen and (max-width: 768px) {
  /* 表示領域が768px以下の場合に適用するスタイル */
  div.box {
    width: 85%;
  }
}

div.keep_left {
  width: 65%;
  max-width: var(--max-column-width);
  margin: auto;
  text-align: left;
  margin-bottom: 15px;
}

div.keep_left a:link {
  color: #8094ae;
}
div.keep_left a:hover {
  color: #dc143c;
}
div.keep_left a:visited {
  color: #b8860b;
}

div.large_frame {
  width: 65%;
  max-width: var(--max-column-width);
  border-radius: 10px;
  display: inline-block;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.6));
  margin: 10px;
  padding-bottom: -10px;
}

div.large_frame img {
  width: 100%;
  border-radius: 10px;
}

div.vertical_frame {
  width: 30%;
  max-width: var(--max-column-width);
  border-radius: 10px;
  display: inline-block;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.6));
  margin: 10px;
  padding-bottom: -10px;
}

div.vertical_frame img {
  width: 100%;
  border-radius: 10px;
}

div.small_frame {
  width: 45%;
  max-width: var(--max-column-width);
  border-radius: 10px;
  display: inline-block;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.6));
  margin: 10px;
  padding-bottom: -10px;
}

div.small_frame img {
  width: 100%;
  border-radius: 10px;
}

div.mini_frame {
  width: 13%;
  max-width: var(--max-column-width);
  border-radius: 10px;
  display: inline-block;
  padding-bottom: -10px;
  margin-bottom: 10px;
}

div.mini_frame img {
  width: 100%;
  border-radius: 10px;
  opacity: 1;
}

div.face_frame {
  width: 15%;
  max-width: var(--max-column-width);
  border-radius: 10px;
  display: inline-block;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.6));
  margin: 10px;
  padding-bottom: -10px;
}

div.face_frame img {
  width: 100%;
  border-radius: 10px;
}

div.dual_l_frame {
  width: 32%;
  max-width: var(--max-column-width);
  vertical-align: middle;
  border-radius: 10px;
  display: inline-block;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.6));
  margin: 10px;
  padding-bottom: -10px;
}

div.dual_l_frame img {
  width: 100%;
  border-radius: 10px;
}

div.dual_v_frame {
  width: 24%;
  max-width: var(--max-column-width);
  vertical-align: middle;
  border-radius: 10px;
  display: inline-block;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.6));
  margin: 10px;
  padding-bottom: -10px;
}

div.dual_v_frame img {
  width: 100%;
  border-radius: 10px;
}

@media screen and (max-width: 768px) {
  /* 表示領域が768px以下の場合に適用するスタイル */
  div.large_frame {
    width: 80%;
  }
  div.vertical_frame {
    width: 50%;
  }
  div.mini_frame {
    width: 30%;
  }
  div.face_frame {
    width: 30%;
  }
  div.dual_l_frame {
    width: 80%;
  }
  div.dual_v_frame {
    width: 65%;
  }
}
@media screen and (max-width: 320px) {
  /* 表示領域が320px以下の場合に適用するスタイル */
  div.large_frame {
    width: 90%;
  }
  div.vertical_frame {
    width: 65%;
  }
  div.mini_frame {
    width: 30%;
  }
  div.face_frame {
    width: 45%;
  }
  div.dual_l_frame {
    width: 90%;
  }
  div.dual_v_frame {
    width: 80%;
  }
}
div.gmap_frame {
  position: relative;
  display: inline-block;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  width: 70%;
  max-width: var(--max-column-width);
  overflow: hidden;
}
@media screen and (min-width: 546px) {
  div.gmap_frame {
    padding-bottom: 410px;
  }
}

div.gmap_frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

div.movie_frame {
  position: relative;
  display: inline-block;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  width: 70%;
  max-width: var(--max-column-width);
  overflow: hidden;
}

div.movie_frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

div.blog_frame {
  position: relative;
  display: inline-block;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  width: 98%;
  max-width: var(--max-column-width);
  overflow: hidden;
}

div.blog_frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

audio {
  width: 40%;
  max-width: var(--max-column-width);
  margin-bottom: 1.8em;
}

video {
  width: 70%;
  max-width: var(--max-column-width);
}

@media screen and (max-width: 768px) {
  /* 表示領域が768px以下の場合に適用するスタイル */
  audio {
    width: 60%;
  }
  video {
    width: 80%;
  }
}
@media screen and (max-width: 320px) {
  /* 表示領域が320px以下の場合に適用するスタイル */
  audio {
    width: 80%;
  }
  video {
    width: 90%;
  }
}

.floatLeft {
  float: left;
}

.clearALL {
  clear: all;
}

/* フッター 
------------------------------------------------------------------------ */
footer {
  display: flex;
  justify-content: space-around;
  width: 100%;
  background-color: var(--ac-color); /* フッター背景色 */
  color: white; /* フッター文字色 */
  text-align: left;
  font-size: 10px;
}

footer a:link {
  color: white;
} /* フッターリンク未読文字色 */
footer a:hover {
  color: white;
} /* フッターリンク選択文字色 */
footer a:visited {
  color: white;
} /* フッターリンク既読文字色 */

footer table {
  width: 100%;
}

footer td.left {
  text-align: right;
  vertical-align: top;
}

/* トップへ戻るボタン */
.btt {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: var(--ac-color);
  border: solid 2px #6969c0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}
.btt_arrow {
  height: 10px;
  width: 10px;
  border-top: 3px solid #fefefe;
  border-right: 3px solid #fefefe;
  transform: translateY(20%) rotate(-45deg);
}
