﻿@charset "UTF-8";

/* CSS変数 */
:root {
  --font--ja: "Noto Serif JP";

  --black: #333;
  --white: #fdfdfd;
}

/* 階層 */
:root {
  --loading: 300;
  --modal: 200;
  --hamburger: 100;
  --header: 30;
  --floating: 20;
  --footer: 10;
  --default: 0;
}

/* 初期設定 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;

  /* ヘッダー隠し */
  container-type: scroll-state;
}

a {
  cursor: pointer;
  text-decoration: none;
}

img {
  vertical-align: bottom;
  max-width: 100%;
  height: auto;
}

summary {
  list-style: none;
  cursor: pointer;
}

body {
  font-family: var(--font--ja);
  color: var(--black);
  background-color: var(--white);
  letter-spacing: 0px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}

/* インナー */
.inner {
  width: 100%;
  height: 100%;
  padding-left: 24px;
  padding-right: 24px;
  margin: 0 auto;

  @media (768px <=width) {
    padding-left: 72px;
    padding-right: 72px;
    max-width: 1044px;
  }
}

/* ヘッダー */
.header {
  background-color: darkseagreen;
  padding: 0 20px;
  height: 80px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: var(--header);

  /* ヘッダー隠し */
  transition: translate 0.3s;
  translate: 0 0;

  @container scroll-state(scrolled: bottom) {
    translate: 0 -100%;
  }
}

.header__logo {
  font-size: 24px;
  font-weight: 700;
}

.header__logo__link {
  display: block;
}

/* ハンバーガー */
.hamburger {
  width: 50vw;
  height: 100vh;
  position: fixed;
  top: 0;
  right: -50vw;
  background-color: antiquewhite;
  transition: right 0.2s;
  z-index: var(--hamburger);

  /* @media (768px <=width) {
    display: none;
  } */
}

.hamburger__button.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-size: 50px;
  position: fixed;
  top: 10px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: antiquewhite;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--hamburger);

  &:hover {
    opacity: 0.7;
  }
}

.hamburger[open] {
  right: 0;

  >.hamburger__button.material-symbols-outlined {
    position: static;
    margin-left: auto;
    margin-top: 10px;
    margin-right: 20px;
    background-color: #ccc;
  }
}

.hamburger__menu {
  list-style: none;
  padding: 0 20px;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hamburger__link {
  border-bottom: 1px solid #333;
}

/* スライダー */
.slider {
  height: 80vh;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  display: flex;
  gap: 40px;
  padding: 10px;

  >img {
    scroll-snap-align: center;
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 0 5px #333;
  }
}

.slider__text {
  margin-top: 20px;
  text-align: center;
}

/* タブ */
.tab__wrapper {
  margin-top: 200px;
  box-shadow: 0 0 3px #333;

  >input {
    display: none;
  }
}

.tab {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100% / 2);
  height: 50px;
  border-bottom: 2px solid #ccc;
  cursor: pointer;
  float: left;

  &:hover {
    opacity: 0.7;
  }
}

.tab__wrapper input:checked {
  +.tab {
    background-color: #ccc;
  }
}

.tab__content {
  padding: 40px;
  display: none;
  clear: both;
}

#tab__01:checked~#tab__content__01,
#tab__02:checked~#tab__content__02 {
  display: block;
}

/* アコーディオン */
.accordion__wrapper {
  margin-top: 200px;
  border-bottom: 2px solid #ccc;
}

.accordion__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #ccc;
  padding: 20px 10px;

  &:hover {
    background-color: antiquewhite;
  }
}

.accordion__icon.material-symbols-outlined {
  width: 35px;
  height: 35px;
  background-color: #ccc;
  border-radius: 100%;
  font-size: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s;
}

.accordion[open] {
  .accordion__icon.material-symbols-outlined {
    transform: rotate(180deg);
  }
}

.accordion__content {
  padding: 20px;
  border-left: 2px solid #ccc;
  margin-bottom: 40px;
}

/* モーダル */
.modal__wrapper {
  margin-top: 200px;
  display: inline-flex;
  flex-direction: column;
  gap: 50px;
}

.modal__title {
  border-bottom: 1px solid #333;
}

.modal[open] {
  >.modal__title {
    &::after {
      content: '';
      position: fixed;
      inset: 0;
      margin: auto;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: calc(var(--modal) - 1);
    }
  }
}

.modal__content {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 70vw;
  height: 40vh;
  padding: 20px;
  background-color: #fdfdfd;
  border-radius: 10px;
  z-index: var(--modal);
}

/* トップに戻るボタン */
.to__top.noto-emoji-mono {
  font-family: "Noto Emoji";
  font-optical-sizing: auto;
  position: fixed;
  right: 20px;
  bottom: 20px;
  font-size: 60px;
  font-weight: 400;
  line-height: 100%;
  color: darkseagreen;
  z-index: var(--floating);

  &:hover {
    opacity: 0.7;
  }
}