﻿@charset "utf-8";

#PCmode {
  display: block;
}
#SPmode {
  display: none;
}

@media screen and (max-width:768px) {
  #PCmode {
    display: none;
  }
  #SPmode {
    display: block;
  }
}

/* SPnav -----------------------------------------------------------------------*/
.p-header {
  width: 100%;
  height: 70px;
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 999;
}

.p-header__inner {
  width: 100%;
  height: inherit;
  position: relative;
}

.p-header__container {
  width: 100%;
  max-width: 560px;
  height: inherit;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  background-color: #fff;
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.1);
}

.p-header__title {
  z-index: 997;
}

.p-header__title a {
  text-decoration: none;
  color: #ea8a82;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
}

.p-header__title a img {
  display: block;
  flex-shrink: 0;
}

.p-header__logo {
  height: 24px;
  width: auto;
  /* max-width: min(200px, 45vw); */
  object-fit: contain;
}

.p-header__nav {
  position: fixed;
  right: 0;
  top: 0;
  width: min(460px, 100vw);
  max-width: 100vw;
  height: 100vh;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .4s ease, visibility 0s linear .4s;
  z-index: 999;
}

.p-header__nav.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform .4s ease;
  right: 0;
  left: auto;
  background-color: #fff;
  border: 4px solid #56a753;
  border-right: none;
  border-radius: 24px 0 0 24px;
}

.p-header__nav-brand {
  position: absolute;
  bottom: 32px;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.p-header__nav-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ea8a82;
  font-weight: 700;
}

.p-header__nav-brand img {
  width: 32px;
  height: auto;
  display: block;
}

.p-header__nav-brand span {
  font-size: 14px;
  letter-spacing: 1px;
}

@media screen and (max-width: 459px) {
  .p-header__nav.active {
    border-radius: 0;
  }
  .p-header__nav-brand {
    bottom: 20px;
    top: auto;
  }
  .p-header__nav-brand img {
    width: 32px;
  }
  .p-header__nav-brand span {
    font-size: 13px;
  }
}

.p-header__nav-items {
  padding-top: 200px;
}

.p-header__nav-item {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.p-header__nav-item:last-child a {
  margin-bottom: 0;
}

.p-header__hamburger {
  width: 40px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  background-color: transparent;
  border-color: transparent;
  z-index: 9999;
  cursor: pointer;
  position: relative;
  height: 30px;
}

.hamburger span {
  width: 36px;
  height: 3px;
  background-color: #4CAF50;
  position: absolute;
  left: 0;
  transform-origin: center;
  transition: ease .4s;
  display: block;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 13px;
}

.hamburger span:nth-child(3) {
  top: 26px;
}

/* 閉じるマーク（×）に変化するときの調整 */
.hamburger.active span:nth-child(1) {
  top: 13px;
  transform: rotate(45deg);
  background-color: #4CAF50;
}

.hamburger.active span:nth-child(2) {
  opacity: 0; /* 中央のバーを消す */
}

.hamburger.active span:nth-child(3) {
  top: 13px;
  transform: rotate(-45deg);
  background-color: #4CAF50;
}

.p-header__nav-box-mask.active {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  background: rgba(0,0,0,0.55);
  transition: ease .4s;
}

.logo {
  margin-left: 10px;
}

.logo img {
  height: 24px;
  width: auto;
  max-width: min(200px, 45vw);
  object-fit: contain;
}

/* リストのレイアウト設定 */
/* ナビゲーション */
#js-nav ul {
  width: 100%;
  max-width: 300px;
  /* ナビゲーション天地中央揃え */
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}

#js-nav li {
  list-style: none;
  text-align: left;
  box-sizing: border-box;
}

#js-nav li a {
  color: #56a753;
  text-decoration: none;
  padding: 15px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 700;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}

#js-nav li a:hover {
  opacity: 0.8;
}

.nav_logo {
  height: 45px;
  display: flex;
  justify-content: end;
  align-items: end;
}

.nav_logo img {
  width: 100px;
  height: auto;
}

.botline_out {
  position: relative;
  width: 60%;
  display: flex;
  align-items: center;
  border-bottom: 0.5px solid #fff;
}

.vew_acce {
  position: absolute;
  bottom: 2px;
  right: 0;
  font-size: 12px;
  white-space: nowrap;
  padding: 2px 5px;
  color: rgb(253, 173, 35);
  background-color: #fff;
}

.header-icon {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
}

.desktop-fixed-nav {
  display: none;
}

@media screen and (min-width:1024px) {
  .desktop-fixed-nav {
    display: block;
    position: fixed;
    top: 50%;
    left: calc(75vw + 115px);
    transform: translate(-50%, -50%);
    border: 2px solid #4CAF50;
    border-radius: 24px;
    padding: 32px;
    background-color: #fff;
    z-index: 997;
    box-sizing: border-box;
  }

  .desktop-fixed-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .desktop-fixed-nav .p-header__nav-item {
    margin: 0;
    width: 180px;
    text-align: left;
  }

  .desktop-fixed-nav .p-header__nav-item a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    transition: color 0.2s ease;
  }

  .desktop-fixed-nav .p-header__nav-item a.is-current {
    color: #ea8a82 !important;
  }

  #js-nav .p-header__nav-item a.is-current {
    color: #ea8a82;
  }
}

.nav-icon {
  display: inline-block;
  width: 1.2em;
  min-width: 1.2em;
  text-align: center;
}

/* ==================== */
/* フッター */
/* ==================== */
.site-footer {
  background: linear-gradient(135deg, #2e7d32 0%, #4CAF50 100%);
  padding: 40px 20px 10px;
  text-align: center;
}

.footer-company {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-address {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

@media screen and (max-width:768px) {
  .p-header__hamburger {
    width: 32px;
    height: 24px;
  }
  .hamburger {
    height: 24px;
  }
  .hamburger span {
    width: 28px;
    height: 2px;
    position: absolute;
    left: 0;
    transition: ease .4s;
    display: block;
  }
  .hamburger span:nth-child(1) {
    top: 3px;
  }
  .hamburger span:nth-child(2) {
    top: 11px;
  }
  .hamburger span:nth-child(3) {
    top: 19px;
  }
  .hamburger.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
  }
}
