@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* --------------------
   全体
-------------------- */
html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Noto Sans JP', sans-serif;
  color: #333;
}

a {
  color: #ff8100;
}

a:hover {
  opacity: 0.6;
}

.red {
  color: #f40;
}

.pc {
  display: block;
}

.sp {
  display: none !important;
}

/* =========================
   SP 固定お問い合わせバー（全ページ共通）
========================= */
:root {
  --sp-fixed-height: 56px;
}

.sp-fixed-contact {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--sp-fixed-height);
  display: flex;
  z-index: 9999;
}

.sp-tel-link,
.sp-fixed-form {
  width: 50%;
  padding: 12px 0;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sp-tel-link {
  background: #0a751f;
}

.sp-fixed-form {
  background: #075216;
}

.tel-icon,
.mail-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.tel-text,
.form-text {
  font-size: 1.2rem;
  font-weight: 700;
}

@media (min-width: 769px) {
  .sp-fixed-contact {
    display: none;
  }
}

/* --------------------
   ヘッダー全体
-------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #149628;
  width: 100%;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.header .inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 10px;
}

/* ロゴ */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 5px 0;
}

.logo img {
  height: 53px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.logo:hover img {
  opacity: 0.8;
}

/* メニュー部分 */
.main-nav {
  display: flex;
  justify-content: center;
  margin: 0 20px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 0.8rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* お問い合わせボタン（ヘッダー用） */
.contact-btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 100%;
  background: #0a751f;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #0a751f;
  color: #fff;
  text-decoration: none;
  gap: 2px;
}

.contact-btn:hover {
  opacity: 0.8;
}

.contact-btn .contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  background: #fff;
  color: #0a751f;
  padding: 1px 0;
  border-radius: 10px;
  width: 100%;
  text-align: center;
}

.contact-btn .contact-tel {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ハンバーガーメニュー共通 */
.nav-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #fff;
  padding: 0 0.5rem 0.5rem;
  user-select: none;
}

/* パンくず */
.breadcrumb {
  margin: 0 auto 0.6rem;
  padding: 0 1.4rem;
  font-size: 0.8rem;
  color: #666;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 0.3rem;
}




/* フッター共通 */
.site-footer {
  background-color: #149628;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  align-items: center;
}

.footer-left {
  flex: 1;
}

.footer-right {
  flex: 1;
  text-align: right;
}

.footer-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-right li {
  display: inline;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.footer-right li:not(:last-child)::after {
  content: ' |';
  margin-left: 0.5rem;
}

.footer-right a {
  color: #fff;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}


/* =========================
  ページ共通レイアウト
========================= */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ページヒーロー */
.page-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 3.5em;
  height: 3px;
  margin: 0.6rem auto 0;
  background: #149628;
  border-radius: 2px;
}

.page-hero p {
  color: #555;
}






/* メディアクエリ共通 */
/* --------------------
   共通レスポンシブ
-------------------- */

/* 1024px以下 */
@media (max-width: 1024px) {
  .main-nav {
    justify-content: flex-start;
  }
}

/* 768px以下（スマホ） */
@media (max-width: 768px) {
  body {
    padding-bottom: var(--sp-fixed-height);
  }

  .pc {
    display: none !important;
  }
  .sp {
    display: block !important;
  }

  .header .inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    position: relative;
  }

  .logo img {
    width: 80%;
    height: auto;
  }

  /* ハンバーガーメニュー / × */
  .menu-icon {
    display: block;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 3;
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.8rem;
    color: #fff;
    transition: transform 0.3s ease;
  }

  .nav-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    opacity: 0;
    cursor: pointer;
    z-index: 4;
  }

  /* メニュー開閉で×に切り替え */
  .nav-toggle:checked + .menu-icon span {
    content: "close";
  }

  /* ナビ */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #149628;
    display: none;
    flex-direction: column;
    padding: 0;
    margin: 0;
    z-index: 2;
  }

  .nav-toggle:checked + .menu-icon + .main-nav {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: #fff;
  }

  .contact-btn-wrapper {
    flex-shrink: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80%;
  }

  .footer-right {
    text-align: left;
  }

  .footer-right ul {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .footer-right li {
    width: 50%;
    box-sizing: border-box;
    display: block;
    margin: 0;
    padding-bottom: 0.5rem;
  }

  .footer-right li:not(:last-child)::after {
    content: '';
    margin: 0;
  }

  .page {
    padding: 1.5rem 1rem;
  }

  .page-hero h1 {
    font-size: 1.7rem;
  }
}


/* 480px以下 */
@media screen and (max-width: 480px) {
  html {
    font-size: 14px;
  }
}