*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-serif: "Yu Mincho Demibold", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #3d3a32;
  background: #f5f1e6;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.responsive-picture {
  display: block;
  width: 100%;
  height: 100%;
}

a {
  color: inherit;
}

h1, h2, h3, h4, p {
  margin: 0;
}

p, dd, li {
  text-align: justify;
  text-justify: inter-ideograph;
  word-break: normal;
  line-break: strict;
  text-wrap: pretty;
}

.serif {
  font-family: var(--font-serif);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  border-radius: 2px;
  outline: 3px solid #4a6b3a;
  outline-offset: 3px;
}

:focus:not(:focus-visible), main:focus {
  outline: none;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f5f1e6;
}

.skip-link {
  position: fixed;
  top: -200px;
  left: 12px;
  z-index: 1000;
  padding: 14px 28px;
  color: #fffdf8;
  background: #4a6b3a;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid #e8e1d0;
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 40px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.site-brand__logo {
  display: block;
  box-sizing: border-box;
  object-fit: contain;
  border-radius: 50%;
}

.site-brand__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(74, 107, 58, 0.18);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-brand__name {
  color: #3d3a32;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-brand__en {
  margin-top: 2px;
  color: #4a6b3a;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.5vw, 32px);
}

.site-nav a {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  color: #6b6857;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: #3d3a32;
  border-bottom-color: #7a9a5b;
}

.site-nav-toggle, .site-nav-close {
  display: none;
}

.site-footer {
  padding: clamp(48px, 6vw, 64px) clamp(20px, 4vw, 40px) clamp(28px, 3vw, 36px);
  color: #d8cfb5;
  background: #3d3a32;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(32px, 4vw, 44px);
  border-bottom: 1px solid #5a5648;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.site-footer__name {
  display: block;
  color: #fffdf8;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-footer__en {
  display: block;
  margin-top: 2px;
  color: #c4d4a8;
  font-size: 10px;
  letter-spacing: 0.22em;
}

.site-footer__lead, .site-footer__address, .site-footer__hours {
  color: #b8b09a;
  font-size: 13px;
  line-height: 1.9;
}

.site-footer__heading {
  margin: 0 0 18px;
  color: #c4d4a8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
}

.site-footer__menu {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.site-footer__menu a {
  color: #d8cfb5;
  font-size: 14px;
  text-decoration: none;
}

.site-footer__address {
  margin-bottom: 14px;
  font-style: normal;
}

.site-footer__tel {
  color: #fffdf8;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-footer__hours {
  margin-top: 4px;
  font-size: 12px;
}

.site-footer__bottom {
  display: flex;
  padding-top: clamp(20px, 3vw, 28px);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #b8b09a;
  font-size: 11px;
  letter-spacing: 0.15em;
}

.site-footer__bottom small {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fffdf8;
  background: linear-gradient(135deg, #7a9a5b 0%, #4a6b3a 100%);
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(74, 107, 58, 0.3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.scrolled .back-to-top {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #3d3a32;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    padding: 88px 32px 48px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    background: #fffdf8;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-nav a {
    width: 100%;
    padding: 18px 4px;
    border-bottom: 1px solid #e8e1d0;
    color: #3d3a32;
    font-size: 17px;
  }

  .site-nav a[aria-current="page"] {
    color: #4a6b3a;
    font-weight: 700;
  }

  .site-nav-close {
    position: absolute;
    top: 22px;
    right: 24px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #3d3a32;
    background: transparent;
    border: none;
    cursor: pointer;
  }
}
