@charset "utf-8";

:root {
  --accent-color: #ff0411;
  --main-color: #4dc7ff;
  --link-color: #1155cc;
  --white: #ffffff;
  --black: #222;
  font-family: "Arimo", sans-serif;
  font-size: 10px;
  line-height: 2;
}

body {
  margin-top: 65px;
  background-color: rgb(247, 247, 248);
}

p {
  font-size: 1.6rem;
  padding: 20px 0;
}

img {
  display: block;
  margin: 0 auto;
  width: 300px;
}

.wrapper {
  width: 96%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2%;
  background-color: var(--white);
}

.separator {
  width: 100%;
  height: 10px;
  background-color: var(--black);
  margin: 50px 0;
}

.section {
  background-color: var(--white);
  padding: 30px 10px;
  margin: 20px auto;
  box-shadow: 0 2px 13px 0 rgba(0, 0, 0, 0.15);
}

.section_title {
  font-size: 1.8rem;
  text-align: center;
  padding: 5px 0;
}

.section_title_sub {
  text-align: center;
  overflow-wrap: break-word;
}

.section_title_sub a {
  color: var(--link-color);
  font-size: 1.6rem;
}

/* ライン */
.line {
  text-align: center;
  font-size: 1.8rem;
  margin: 15px 0;
}

/* 赤色 */
.red {
  color: var(--accent-color);
}

/* 青色 */
.blue {
  color: var(--main-color);
}

/* 太字 */
.bold {
  font-weight: bold;
}

/* ===== header ===== */

#header {
  position: fixed;
  display: flex;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 65px;
  background-color: #ffffff;
  border-bottom: solid 1px #d9d9d9;
}

/* == ロゴ === */
#header_logo a img {
  width: 40px;
}

.header_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 96%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ハンバーガーメニュー */
.humburger_button {
  position: relative;
  border-style: none;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 5px;
}

/* ハンバーガーメニューの棒の設定 */
.humburger_button span {
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  width: 25px;
  height: 3px;
  border-radius: 1px;
  transition-duration: 0.3s;
  background-color: #333;
}

/* 一番上の棒 */
.humburger_button span:nth-child(1) {
  top: 30%;
}

/* 真ん中の棒 */
.humburger_button span:nth-child(2) {
  top: 50%;
}

/* 一番下の棒 */
.humburger_button span:nth-child(3) {
  top: 70%;
}

/* ===== ハンガーメニューが閉じた時の設定 =====*/

.humburger_button.active span:nth-child(1),
.humburger_button.active span:nth-child(3) {
  top: 50%;
  left: 50%;
}

/* 一番上の棒 */
.humburger_button.active span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 真ん中の棒 */
.humburger_button.active span:nth-child(2) {
  opacity: 0;
}

/* 一番下の棒 */
.humburger_button.active span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ===== ナビゲーションメニューの設定 ===== */

.main_nav {
  position: fixed;
  opacity: 0;
  right: -100%;
  transition-duration: 500ms;
  bottom: 0;
  width: 100%;
  height: 100svh;
  padding-top: 65px;
  background-color: var(--white);
}

.main_list {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.main_item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 15%;
  border-bottom: 1px solid #d9d9d9;
}

.main_item:nth-child(1) {
  border-top: 1px solid #d9d9d9;
}

.main_item a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  font-weight: bold;
}

.main_item a:hover {
  color: #33333378;
}

/* ナビゲーションメニューを表示 */
.main_nav.active {
  right: 0;
  opacity: 1;
  overflow-x: hidden;
}

/* ===== ここまで ===== */

.text_description {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 4%;
}

.hero_text {
  font-size: 1.4rem;
  letter-spacing: 1px;
  padding: 10px 0;
}

/* HeroSection */

#hero {
  height: 70vh;
  color: var(--white);
  background-color: var(--main-color);
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -3%;
}

#hero_inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  height: 100%;
}

.wrapper {
  margin: 0 auto;
  padding: 2%;
  background-color: var(--white);
}

#hero_title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-weight: bold;
  letter-spacing: 2px;
}

#hero_title span:nth-child(1)::before {
  content: "＼";
}

#hero_title span:nth-child(1)::after {
  content: "／";
}

#hero_title span:nth-child(1) {
  font-size: 2rem;
}

#hero_title span:nth-child(2) {
  font-size: 2.5rem;
}

.last {
  margin: 10px auto;
}

.triangle1 {
  /*三角形左上*/
  position: absolute;
  top: 0;
  left: 0;
  border-left: 80px solid var(--accent-color);
  border-bottom: 80px solid transparent;
}

.triangle2 {
  /*三角形右下*/
  position: absolute;
  bottom: 0;
  right: 0;
  border-left: 80px solid transparent;
  border-bottom: 80px solid var(--accent-color);
}

/* ===== 下層ページ ==== */

.section_hero_title {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10vh;
  color: var(--white);
  background-color: var(--main-color);
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.section_h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.section_h2 span {
  background-color: #fff2cc;
  padding: 5px;
}

.section_h3 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

/* ===== footer ===== */

#footer {
  background-color: var(--black);
  color: var(--white);
}

#copyright {
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === 目次 ===  */
.toc {
  margin-bottom: 30px;
  padding: 1em 1em 1em 2em;
  box-shadow: 0 2px 13px 0 rgba(0, 0, 0, 0.15);
  background-color: var(--white);
  color: #333333;
}

.lower {
  box-shadow: none;
  background-color: #f2f2f2;
}

.toc div {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 10px 0;
  font-size: 2rem;
  font-weight: bold;
}

.toc div::before {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z' fill='%23333'%3E%3C/path%3E%3C/svg%3E");
  content: "";
}

.toc ol {
  padding: 0 1.2em;
  overflow: hidden;
  font-size: 1.4rem;
}

.toc ol ol {
  margin-top: 5px;
}

.toc li {
  padding: 5px 0;
}

.toc a {
  color: var(--link-color);
  border-bottom: 1px solid var(--link-color);
}

.toc a:hover,
.section_title_sub a:hover {
  color: #1156cc81;
}

/* ===== HoursSection ===== */

.end {
  text-align: end;
}

.img_frame {
  width: 300px;
  margin: 0 auto;
  overflow: hidden; /* 拡大部分が表示領域をはみ出さないようにする */
}

.img_1 {
  width: 100%;
  transform: scale(1.2);
  object-position: -10px -30px; /* 左下を基準に画像を表示 */
}

.img_2 {
  width: 100%;
  transform: scale(1.2);
  object-position: -10px -20px; /* 左下を基準に画像を表示 */
}

.img_3 {
  width: 100%;
  transform: scale(1.2);
  object-position: -10px -40px; /* 左下を基準に画像を表示 */
}

@media (max-width: 320px) {
  :root {
    font-size: 8px;
  }

  #hero {
    height: 70vh;
  }
}

@media (min-width: 768px) {
  :root {
    font-size: 14px;
  }

  .section {
    padding: 60px 20px;
    margin: 50px auto;
  }

  .triangle1 {
    /*三角形左上*/
    border-left: 100px solid var(--accent-color);
    border-bottom: 100px solid transparent;
  }

  .triangle2 {
    /*三角形右下*/
    border-left: 100px solid transparent;
    border-bottom: 100px solid var(--accent-color);
  }

  img,
  .img_frame {
    width: 500px;
  }

  .img_1 {
    object-position: -10px -45px; /* 左下を基準に画像を表示 */
  }

  .img_2 {
    object-position: -10px -25px; /* 左下を基準に画像を表示 */
  }

  .img_3 {
    object-position: -10px -65px; /* 左下を基準に画像を表示 */
  }
}

@media (min-width: 1024px) {
  :root {
    font-size: 16px;
  }

  /* ===== ナビゲーションメニューの設定 ===== */

  .header_container {
    width: 100%;
  }

  .wrapper {
    width: 92%;
  }

  #header_logo {
    display: none;
  }

  p {
    padding: 20px 0;
  }

  #hero {
    height: 80vh;
  }

  .humburger_button {
    display: none;
  }

  .main_nav {
    position: static;
    opacity: 1;
    width: 100%;
    height: 50%;
    top: 0;
    right: 0;
    padding-top: 0;
  }

  .main_list {
    flex-direction: row;
    align-items: center;
    height: 100%;
  }

  .main_item {
    flex: 1;
    height: 100%;
    padding: 0;
    border-style: none;
    border-right: 1px solid #d9d9d9;
  }

  .main_item:nth-child(4) {
    flex: 0.9;
  }

  .main_item:last-child {
    flex: 0.6;
    border-style: none;
  }

  .main_item a {
    font-size: 1rem;
  }

  .main_item:nth-child(1) {
    border-style: none;
    border-right: 1px solid #d9d9d9;
  }
}
