/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "YuGothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #307B53;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

section {
  padding: 120px 0 80px;
}

.page-breadcrumb {
  margin: 0;
  padding: 24px 0 0;
  font-size: 16px;
  margin-bottom: 130px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.page-breadcrumb a {
  transition: opacity 0.2s ease, color 0.2s ease, text-decoration 0.2s ease;
}

.page-breadcrumb a:hover {
  color: #286045;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header & menu ===== */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 24px 24px 0 0;
}

.header-inner {
  display: flex;
  justify-content: flex-end;
}

.menu-toggle {
  position: fixed;
  bottom: 100px;
  right: 50px;
  z-index: 202;
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

.menu-toggle:active {
  transform: scale(0.98);
}

.menu-toggle .menu-toggle-text {
  display: none;
}

.menu-toggle .menu-img {
  display: block;
  width: 78px;
  height: 78px;
  object-fit: contain;
  transition: transform 0.25s ease;
}


/* ===== Menu overlay & panel ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background-color: rgba(231, 231, 231, 0.9);
  z-index: 201;
  padding: 48px 40px 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.menu-panel.is-open {
  transform: translateX(0);
}

.menu-panel-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: auto;
}

.menu-panel-link {
  font-size: 20px;
  color: #307B53;
  text-decoration: underline;
  text-underline-offset: 6px;
  transition: opacity 0.2s ease, color 0.2s ease, text-underline-offset 0.2s ease;
}

.menu-panel-link:hover {
  opacity: 0.75;
  text-underline-offset: 8px;
}

.menu-panel-title {
  margin-top: auto;
}

.menu-panel-title-main {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  color: #307B53;
  line-height: 1.3;
}

.menu-panel-title-main .menu-panel-title-number {
  /*font-size: 26px;*/
  font-family: 'FOT-Cezanne ProN', sans-serif;
    margin-right: 6px;
}

.menu-panel-title-sub {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #307B53;
  line-height: 1.4;
  font-weight: 700;
    margin-bottom: 30px;
}

.menu-panel-brand {
  margin: 0;
}

.menu-panel-brand a {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-panel-brand a:hover {
  opacity: 0.5;
}

.menu-panel-brand img {
  display: inline-block;
  width: 175px;
  height: 21px;
  object-fit: contain;
  vertical-align: middle;
}

.menu-panel-brand .link-icon {
  width: 21px;
  height: 21px;
  margin-left: 6px;
}

/* ===== Mobile menu styles (共通) ===== */
@media (max-width: 768px) {
  /* SP: メニューボタン 右下に固定・スクロールしても常に同じ位置で全体が見える */
  .menu-toggle {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: max(15px, env(safe-area-inset-right, 0px)) !important;
    bottom: max(15px, env(safe-area-inset-bottom, 0px)) !important;
    z-index: 9999 !important;
    /* transform を削除して fixed がビューポート基準で効くようにする */
    transform: none !important;
    transition: opacity 0.25s ease !important;
    will-change: opacity;
  }

  /* モバイルでは hover/active の transform を無効化 */
  .menu-toggle:hover,
  .menu-toggle:active {
    transform: none !important;
  }

  .menu-toggle .menu-img {
    width: 70px;
    height: 70px;
    transition: none !important;
  }

  /* SP: メニューパネル */
  .menu-panel {
    width: 280px;
    padding: 32px 24px 60px;
  }

  .menu-panel-link {
    font-size: 18px;
  }

  .menu-panel-title-main {
    font-size: 20px;
  }

  .menu-panel-title-main .menu-panel-title-number {
    /*font-size: 28px;*/
  }

  .menu-panel-title-sub {
    font-size: 14px;
  }

  .menu-panel-brand img {
    width: 140px;
    height: auto;
  }
}

/* ===== Image placeholders ===== */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8e8e8;
  font-size: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: #307B53;
  color: #fff;
}

.btn-primary:hover {
  background-color: #286045;
}

a.btn {
  text-decoration: none;
}

a.btn:hover {
  opacity: 1;
}

.btn-arrow::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 20px;
  background-image: url("../imgs/btn-arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== Section titles ===== */
.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-top: 0;
  margin-bottom: 40px;
}

.section-title-accent {
  color: #307B53;
  text-align: center;
  margin-bottom: 20px;
}

.section-desc {
  margin: 0 0 60px;
  font-size: 14px;
  color: #307B53;
  text-align: center;
}

/* ===== Footer ===== */
.main-footer {
  padding: 48px 0;
  text-align: center;
  color: #707070;
}

.footer-logo {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: 175px;
  height: 21px;
  object-fit: contain;
  margin: 0 auto;
  margin-bottom: 10px;
}

.copyright {
  margin: 0;
  font-size: 14px;
  color: #707070;
}

/* ===== SP only (max-width: 768px で表示、PC で非表示) ===== */
.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .sp-only {
    display: revert;
  }

    /* ===== Breadcrumb ===== */
    .page-breadcrumb {
      padding: 16px 16px 12px;
      font-size: 12px;
      margin-bottom: 60px;
      max-width: 100%;
    }

  .copyright {
    font-family: 'Meiryo', 'メイリオ', 'YuGothic', sans-serif;
    font-size: 12px;
  }

  /* ===== Footer mobile ===== */
  .main-footer {
    padding: 32px 0;
    background-color: #fff;
  }

  .main-footer .container {
    padding: 0 16px;
  }

  .footer-logo {
    margin-bottom: 10px;
  }

  .footer-logo img {
    width: 175px;
    height: auto;
    margin: 0 auto;
  }
}
