@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;600&display=swap");

/* =========================
   Base
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: #3f463f;
  background: #fbfaf7;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  line-height: 1.9;
  letter-spacing: 0.03em;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p,
li,
summary,
input,
textarea,
select,
button {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

p,
li {
  overflow-wrap: break-word;
  word-break: normal;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   Header
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120, 136, 124, 0.12);
}

.header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  position: relative;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}

.site-brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo {
  color: #4d544d;
  font-size: 0.96rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-nav {
  min-width: 0;
  justify-self: center;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.site-nav li {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.site-nav a {
  display: inline-block;
  text-decoration: none;
  color: #4e564e;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: nowrap;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #2f3730;
  opacity: 0.72;
}

.site-nav a[aria-current="page"] {
  color: #2f3730;
}

.header-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  background: #7e9478;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.header-contact-button:hover,
.header-contact-button:focus-visible {
  background: #6d8468;
  transform: translateY(-1px);
}

.header-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(120, 136, 124, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.header-menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #4e564e;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-open .header-menu-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-open .header-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .header-menu-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================
   Footer
========================= */
.site-footer {
  padding: 54px 0 34px;
  background: #f6f2ea;
  border-top: 1px solid rgba(120, 136, 124, 0.1);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 12px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #424942;
}

.footer-text {
  max-width: 760px;
  margin: 0 auto 22px;
  color: #596059;
  line-height: 1.95;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 22px;
  margin: 0 0 18px;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;
  color: #556154;
  font-size: 0.94rem;
  transition: opacity 0.25s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  opacity: 0.72;
}

.footer-copy {
  margin: 0;
  color: #6c746c;
  font-size: 0.86rem;
}

/* =========================
   Focus
========================= */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(126, 148, 120, 0.7);
  outline-offset: 3px;
}

/* =========================
   Responsive
========================= */

/* 小さめノートPC〜タブレット横で無理に1行維持しない */
@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 68px;
    padding: 10px 0;
  }

  .site-brand {
    min-width: 0;
  }

  .site-brand-mark {
    width: 30px;
    height: 30px;
  }

  .site-logo {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 16px;
    background: rgba(251, 250, 247, 0.98);
    border: 1px solid rgba(120, 136, 124, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(60, 70, 60, 0.08);
  }

  .site-header.is-open .site-nav {
    display: block;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-content: stretch;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 10px 4px;
    font-size: 0.95rem;
    white-space: normal;
  }

  .header-contact-button {
    display: none;
  }

  .header-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .site-logo {
    font-size: 0.88rem;
  }

  .site-nav {
    left: 0;
    right: 0;
    padding: 14px;
  }

  .site-footer {
    padding: 46px 0 30px;
  }

  .footer-nav ul {
    gap: 12px 18px;
  }

  .footer-nav a {
    font-size: 0.9rem;
  }
}
/* メニュー内のお問い合わせはスマホ用 */
.nav-contact-mobile {
  display: none;
}

@media (max-width: 1180px) {
  .header-contact-button {
    display: none;
  }

  .nav-contact-mobile {
    display: list-item;
  }
}

