/*style.css*/
* {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-optical-sizing: auto;
  color: #303030;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  box-shadow: 4px 0 4px #a3a2a2, -4px 0 4px #a3a2a2;
}

html {
  width: 100%;
  margin: 0 auto;
  scroll-padding-top: 100px;
  background-color: #ffffff;
}

body {
  width: 100%;
  height: auto;
  box-shadow: 4px 0 4px #a3a2a2, -4px 0 4px #a3a2a2;
  position: relative;
}

#logo {
  width: 30vw;
  /* 画面幅の30%を使う */
  max-width: 200px;
  /* 大きくなりすぎないように制限 */
  padding-top: 5vw;
  padding-left: 2vw;
  display: inline-block;
  vertical-align: middle;
}

.home-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1600px;
  /* コンテナの最大幅と合わせる */
  max-width: 100%;
  /* 画面幅より大きくならないように */
  height: 100px;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

/*style.css*/


/*nav.css*/
/* チェックボックスは非表示（ハンバーガー制御用） */
header #check-btn {
  display: none;
}

/* ハンバーガーアイコンの3本線スタイル */
#burger span {
  position: absolute;
  height: 4px;
  width: 40px;
  left: 25px;
  background: #363636;
  mix-blend-mode: hard-light;
  transform-origin: center;
  transition: all 0.4s ease-in-out;
}

/* 各線の配置 */
#burger span:nth-of-type(1) {
  top: 35px;
}

#burger span:nth-of-type(2) {
  top: 50px;
}

#burger span:nth-of-type(3) {
  top: 65px;
}

/* ハンバーガー開いたときの変化 */
#check-btn:checked~#burger span:nth-of-type(1) {
  width: 25px;
  transform: translate(23px, 7.5px) rotate(45deg);
}

#check-btn:checked~#burger span:nth-of-type(3) {
  width: 25px;
  transform: translate(23px, -7.5px) rotate(-45deg);
}

/* PC用ナビ（画面幅970px以上） */
@media screen and (min-width: 970px) {
  header #burger {
    display: none;
    /* ハンバーガーアイコン非表示 */
  }

  header.fix {
    position: fixed;
    box-shadow: 0 4px 4px #00000040, ;
    top: 0;
    left: 0;
    right: 0;
    background-color: #cccccc;
    margin: 10px auto;
    animation: headerFix 0.3s ease;
  }
}

/* ヘッダー全体 */
header {
  z-index: 10;
  display: flex;
  align-items: center;
  height: 100px;
  display: flex;
  justify-content: space-between;
  /* 左右に分ける */
  align-items: center;
  /* 縦中央揃え */
  margin: auto;
  max-width: 1560px;
  /* 適宜調整 */
}

/* ロゴ画像（通常非表示） */
header img {
  width: 324px;
  margin-top: -40;
}

/* スクロール後の固定ヘッダーでロゴ表示 */
header.fix>img {
  display: block;
}

/* ナビゲーション右寄せ */
nav {
  margin-left: auto;
}

/* ナビメニュー */
nav ul {
  display: flex;
  list-style: none;
}

nav li {
  flex: 1;
  justify-content: center;
  width: 120px;
}

nav a {
  width: 80%;
  display: block;
  text-align: center;
  text-decoration: none;
  color: #0f0e0e;
}

.big-section .first-section {
  display: block;
  /* 初期は縦並び（スマホ） */
}

.big-section p {
  margin-top: 3%;
}

h2.midasi {
  color: #3c3c3c;
  letter-spacing: 3px;
  position: relative;
}

/* スマホ用レイアウト（970px以下） */
@media screen and (max-width: 970px) {

  /* ハンバーガーボタン配置 */
  header #burger {
    width: 100px;
    height: 100px;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    transition: all 0.4s ease-in-out;
    z-index: 5;
  }

  header #burger {
    display: block;
  }

  .hamburger-nav label {
    display: block;
  }

  #check-btn:checked~nav {
    display: block;
  }

  /* ナビ全体 */
  nav {
    background-color: #696969;
    /* ← 背景色を明示的に指定 */
    z-index: 3;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    display: none;
  }

  /* チェックされたら表示 */
  #check-btn:checked~nav {
    animation: fadeInNav 0.3s ease forwards;
    background-color: #696969
  }

  nav ul {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 140px;
    height: 70%;
  }

  nav li {
    width: 100%;
    flex: 1;
  }

  nav a {
    width: 100%;
    font-size: 3vh;
    color: #ffffff;
  }

  .big-section {
    margin: 0 17% 70px 17%;
    padding: 10px;
  }

}

/* 固定ヘッダー表示アニメーション */
@keyframes headerFix {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }

  100% {
    opacity: 1;
  }
}

/* ナビフェードインアニメーション */
@keyframes fadeInNav {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
    background-color: #696969;
  }
}

/*nav.css*/

/*ハンバーガーメニューの中身*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:where(html) {
  -webkit-text-size-adjust: none;
}

@supports not (min-block-size: 100dvb) {
  :where(html) {
    block-size: 100%;
  }
}

.midasi {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 3rem;
  color: #000000;
  font-weight: 700;
}

h1.midasi {
  padding-top: 200px;
  display: flex;
  align-items: center;
}

.midasi::before,
.midasi::after {
  content: '';
  width: 10px;
  height: 3px;
  background-color: #2a3c60;
}

.midasi::before {
  margin-right: 20px;
}

.midasi::after {
  margin-left: 20px;
}

footer {
  background-color: #4f4f4f;
  padding: 20px 0;
  text-align: center;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

#footer {
  color: #ffffff;
}