@charset "UTF-8";
/* ==================================================
   1. Base & Layout Settings
   ================================================== */
html {
  height: 100%;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
}

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

#wrapper {
  margin: 0;
  min-width: 375px;
  box-sizing: border-box;
  position: relative;
}

.contentWrap {
  margin: 0 auto;
  max-width: 1024px;
  min-width: 320px;
  background-color: #fff;
}


/* 背景装飾パターン */
#bgWrap {
  padding-top: 90px;
  position: relative;
}

#mainWrap:after {
  position: absolute;
  margin-top: min(40px, calc((100vw - 1024px) / 4 + 110px));
  margin-left: min(40px, calc((100vw - 1024px) / 4));
  inset: 0;
  content: '';
  z-index: -1;
  background-image: url("../img/bg02.jpg");
  background-repeat: repeat;
  background-size: 12px 12px;
}

#bgWrap:after {
  position: absolute;
  margin-top: min(150px, calc((100vw - 1024px) / 4 + 110px));
  margin-left: min(40px, calc((100vw - 1024px) / 4));
  inset: 0;
  content: '';
  z-index: -1;
  background-image: url("../img/bg02.jpg");
  background-repeat: repeat;
  background-size: 12px 12px;
}

/* ==================================================
   2. Navigation & Hamburger Menu
   ================================================== */
/* ハンバーガーボタン */
.hamburger-menu {
  padding: 9px;
  width: 50px;
  height: 50px;
  background-color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 1001;
  border: none;
  position: absolute;
  top: 20px;
  right: 20px;
}

.hamburger-line {
  width: 100%;
  height: 4px;
  background-color: #397066;
  transition: all 0.3s ease-in-out;
}

/* 開閉アニメーション */
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(10px, -10px);
}

/* スライドメニュー */
.slide-menu {
  position: fixed;
  top: -100%;
  width: 100%;
  background: #353535;
  transition: 0.3s ease-in-out;
  overflow-y: auto;
  overflow-x: hidden;
}

.slide-menu.active {
  top: 0;
}

.menu-list {
  list-style: none;
  padding-top: 90px;
  margin: 0;
}

.menu-list li {
  margin: 0;
  padding: 0;
  border-top: dotted 1px #fff;
}

.menu-list a {
  display: block;
  padding: 10px 0;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s ease;
}

.menu-list a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* ==================================================
   3. Common Components
   ================================================== */
/* セクションタイトル背景 */
.titBg {
  background-image: url("../img/tittleBg.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 390px;
}
.titBg2 {
  background-image: url("../img/tittleBg2.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 390px;
  background-color: #585858;
}
.titBg h2 {
  text-align: center;
  padding-bottom: 20px;
}
.titBg2 h2 {
  text-align: center;
  padding-bottom: 20px;
  padding-top: 40px;
}

.titBg h2 span {
  font-size: 24px;
  color: #397066;
  line-height: 24px;
  font-weight: 600;
  border-bottom: solid 1px #397066;
  display: inline;
}
.titBg2 h2 span {
  font-size: 24px;
  color: #FFF;
  line-height: 24px;
  font-weight: 600;
  border-bottom: solid 1px #FFF;
  display: inline;
}

/* FG REMAKE ボックス */
#fgBox {
  min-height: 360px;
  width: 100%;
  padding-bottom: 20px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

#fgBox h2 {
  width: 112px;
  height: 95px;
  background: url("../img/fglogo.svg") no-repeat center/cover;
}

#fgBox h2 span {
  display: none;
}

/* ==================================================
   4. Footer & PageTop Button
   ================================================== */
footer {
  width: 100%;
  min-height: 50px;
  background-color: #353535;
  position: relative; /* JSで.pagetopが移動した際の絶対配置基準 */
  bottom: 0;
}

footer p {
  font-size: 12px;
  line-height: 36px;
  text-align: center;
  color: #fff;
}

/* ページトップボタン（通常時：画面固定） */
.pagetop {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 0;
  bottom: 0;
  background: #A18E21;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* フッター到達時（JSで処理：絶対配置へ切り替え） 
.pagetop.is-footer {
  position: absolute;
  bottom: 36px;
}
*/
/* フッター到達時（JSで処理：絶対配置へ切り替え） */
.pagetop.is-footer {
  position: absolute;
  right: 0;
  top: 0;                   /* フッターの一番上端に合わせる */
  bottom: auto;            /* bottom指定を打ち消す */
  transform: translateY(-100%); /* ボタンの高さ分（50px）丸ごと上に持ち上げる */
}

.pagetopArrow {
  margin: 14px 0 0 14px;
  height: 24px;
  width: 24px;
  border-top: 4px solid #fff;
  border-right: 4px solid #fff;
  transform: translateY(20%) rotate(-45deg);
}

.pagetop:hover .pagetopArrow {
  opacity: 0.6;
}


@media screen and (min-width: 768px) {
  #fgBox {
    min-height: 270px;
  }

  #fgBox h2 {
    width: 126px;
    height: 107px;
  }
}

@media screen and (min-width: 1024px) {
  .hamburger-menu {
    right: 0;
    width: 70px;
    height: 70px;
    padding: 14px;
  }

  .hamburger-line {
    height: 6px;
  }

  .hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(13px, 11px);
  }

  .hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(12px, -10px);
  }

  .menu-list {
    padding-top: 110px;
  }

  #bgWrap {
    padding-top: 110px;
  }
}