:root {
  --green: #68BD82;
  --green-dark: #3F8A5A;
  --green-deep: #2C6B43;
  --green-pale: #EEF7EF;
  --green-mist: #F4F9F3;
  --green-soft: #A4D8B5;
  --accent: #FCC65A;
  --accent-deep: #EBA92E;
  --accent-soft: #FFE7B0;
  --beige: #FAF6EE;
  --ivory: #FFFBF2;
  --white: #FFFFFF;
  --text: #3A3A3A;
  --text-light: #7A7A7A;
  --text-faint: #A7A29A;
  --line: #E7E0D2;
  --line-green: #D8EBDD;
  --r: 22px;
  --r-pill: 999px;
  --sh: 0 14px 40px rgba(63, 138, 90, 0.10);
  --font-display: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --content: 1200px;
  --gutter: 40px;
  --pad-x: max(var(--gutter), calc((100% - var(--content)) / 2));
}

html,
body {
  min-width: 0 !important;
  max-width: 100%;
  overflow-x: hidden;
}

html.pc {
  display: block !important;
}

html body {
  font-family: var(--font-body);
  color: var(--text);
}

.header,
.footer,
.header *,
.footer *,
.side-fix,
.side-fix *,
.mobile-bar,
.mobile-bar * {
  box-sizing: border-box;
}

.header a,
.footer a,
.side-fix a,
.mobile-bar a {
  color: inherit;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--r-pill);
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green);
  color: #fff;
  padding: 14px 30px;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(104, 189, 130, 0.34);
}

.header .h-contact .btn-green,
.header .h-contact .btn-green:visited,
.header .h-contact .btn-green:hover,
.header .h-contact .btn-green:focus {
  color: #fff;
}

.btn-green:hover {
  background: var(--green-dark);
  box-shadow: 0 14px 30px rgba(104, 189, 130, 0.42);
}

.header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 90;
}

.admin-bar .header {
  top: 32px;
}

.header-top {
  padding: 14px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.h-logo {
  display: flex;
  align-items: center;
  gap: 13px;
}

.h-logo-img {
  height: 80px;
  width: 300px;
  object-fit: contain;
  display: block;
}

.h-contact {
  display: flex;
  align-items: center;
  gap: 22px;
}

.h-tel-label {
  font-size: 10px;
  color: var(--text-faint);
  text-align: right;
  letter-spacing: .04em;
}

.h-tel-num {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.h-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 0 var(--pad-x);
  border-top: 1px solid var(--line-green);
  overflow-x: auto;
}

.h-nav a {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  position: relative;
  white-space: nowrap;
}

.h-nav a:hover {
  color: var(--green-dark);
}

.h-nav a.active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
  font-weight: 700;
}

#main_contents {
  overflow: hidden;
}

.footer {
  background: var(--green-mist);
  padding: 60px var(--pad-x) 0;
  color: var(--text-light);
  font-size: 12.5px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 44px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .h-logo {
  margin-bottom: 16px;
}

.footer-brand .h-logo-img {
  width: auto;
  height: 44px;
}

.footer-brand p {
  line-height: 2;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-links h5 {
  color: var(--green-dark);
  font-size: 11px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

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

.footer-links ul li {
  line-height: 2.1;
}

.footer-links ul li a:hover {
  color: var(--green-dark);
}

.footer-copy {
  text-align: center;
  padding: 18px 0;
  border-top: 1px solid var(--line-green);
  font-size: 11px;
  color: var(--text-faint);
}

.side-fix {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-fix a {
  display: flex;
  align-items: center;
  gap: 10px;
  writing-mode: vertical-rl;
  padding: 20px 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  border-radius: 16px 0 0 16px;
  box-shadow: -6px 0 20px rgba(44, 107, 67, .18);
  transition: padding .25s ease;
}

.side-fix a.s-contact {
  background: var(--green);
  color: #fff;
}

.side-fix a.s-contact:hover {
  background: var(--green-dark);
  padding-right: 16px;
}

.side-fix a.s-doc {
  background: var(--accent);
  color: var(--green-deep);
}

.side-fix a.s-doc:hover {
  background: var(--accent-deep);
  color: #fff;
  padding-right: 16px;
}

.mobile-bar {
  display: none;
}

@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 22px;
  }

  body {
    font-size: 15px;
    padding-bottom: 54px;
  }

  .header-top {
    flex-wrap: wrap;
    gap: 12px;
  }

  .h-logo-img {
    width: 220px;
    height: auto;
  }

  .h-contact {
    gap: 12px;
  }

  .h-contact .btn {
    display: none;
  }

  .h-tel-num {
    font-size: 18px;
  }

  .h-nav {
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .h-nav a {
    padding: 13px 14px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 28px;
  }

  .side-fix {
    display: none;
  }

  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    box-shadow: 0 -6px 20px rgba(44, 107, 67, .16);
  }

  .mobile-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
  }

  .mobile-bar a.m-tel {
    background: var(--green);
    color: #fff;
  }

  .mobile-bar a.m-contact {
    background: var(--accent);
    color: var(--green-deep);
  }
}
