@charset "UTF-8";

/* ==========================================================
   月癒 Header
   PC / SP 共通
========================================================== */

:root {
  --header-height: 56px;
  --header-bg: rgba(247, 245, 241, 0.96);
  --header-border: rgba(84, 63, 50, 0.14);
  --header-text: #302833;
  --header-brand: #7d8b7b;
  --header-brand-dark: #5d6b5d;
  --header-brand-light: #9aa694;
  --header-muted: #786f68;
  --header-line: #06c755;
}

/* Arkheデフォルトのヘッダー操作部を非表示 */
.header-menu-toggle,
.menu-toggle,
.mobile-menu-toggle {
  display: none !important;
}

/* ==========================================================
   Header shell
========================================================== */

.site-header {
  position: fixed !important;
  inset: 0 0 auto;
  z-index: 999999 !important;

  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  width: 100%;
  height: var(--header-height);

  background: var(--header-bg) !important;
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 2px 10px rgba(84, 63, 50, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 112px;
  align-items: center;
  column-gap: 1rem;

  width: min(calc(100% - 2rem), 1180px);
  height: 100%;
  margin-inline: auto;
}

/* ==========================================================
   Logo
========================================================== */

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  min-width: 0;
  padding: 0;
  margin: 0;

  overflow: hidden;
}

.header-logo a,
.header-logo .custom-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.header-logo img,
.header-logo .custom-logo {
  display: block;

  width: 100%;
  height: 100%;
  max-width: 44px;
  max-height: 44px;

  object-fit: contain;
  object-position: center;
  margin: 0;
  padding: 0;
}

.header-logo-text {
  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;

  color: var(--header-brand);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
}

/* ==========================================================
   Center area / Brand / PC nav
========================================================== */

.header-center {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
}

.site-title {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.65rem;

  min-width: 0;
  margin: 0;

  font-family: var(--font-heading);
  line-height: 1.2;
  white-space: nowrap;
}

.site-name {
  color: var(--header-brand);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.site-subname {
  color: var(--header-muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.site-location {
  color: var(--header-muted);
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
  padding-left: 1rem;
}

.pc-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 1rem;

  min-width: 0;
  margin-right: 1.5rem;
}

.pc-nav a {
  position: relative;

  color: var(--header-text);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;

  transition: color 0.2s ease;
}

.pc-nav a + a::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 50%;

  width: 1px;
  height: 13px;

  background: rgba(84, 63, 50, 0.28);
  transform: translateY(-50%);
}

/* ==========================================================
   LINE button
========================================================== */

.header-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  width: 112px;
  height: 100%;
}

.line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 104px;
  min-height: 38px;
  padding-inline: 0.7rem;

  border-radius: 6px;
  background: var(--header-line);
  color: #fff !important;

  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* PCではSP要素を隠す */
.hamburger,
.sp-nav {
  display: none !important;
}

/* ==========================================================
   Hover
========================================================== */

@media (hover: hover) and (pointer: fine) {
  .pc-nav a:hover {
    color: var(--header-brand-light);
  }

  .line-btn:hover {
    color: #fff !important;
    opacity: 0.9;
    transform: translateY(-1px);
  }
}

/* ==========================================================
   Tablet
========================================================== */

@media screen and (max-width: 1080px) and (min-width: 769px) {
  .header-inner {
    grid-template-columns: 44px minmax(0, 1fr) 104px;
    column-gap: 0.75rem;
    width: min(calc(100% - 1.5rem), 1000px);
  }

  .header-logo {
    width: 44px;
    height: 44px;
  }

  .header-logo img,
  .header-logo .custom-logo {
    max-width: 44px;
    max-height: 44px;
  }

  .site-name {
    font-size: 1.2rem;
  }

  .site-subname,
  .site-location {
    font-size: 0.72rem;
  }

  .pc-nav {
    gap: 0.75rem;
    margin-left: 1rem;
  }

  .pc-nav a {
    font-size: 0.7rem;
  }

  .header-line {
    width: 104px;
  }

  .line-btn {
    width: 96px;
    font-size: 0.7rem;
  }
}

/* ==========================================================
   Mobile
========================================================== */

@media screen and (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .header-inner {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    column-gap: 0.5rem;

    width: 100%;
    padding-inline: 0.5rem;
  }

  .header-logo {
    width: 44px;
    height: 44px;
    justify-self: start;
  }

  .header-logo img,
  .header-logo .custom-logo {
    max-width: 44px;
    max-height: 44px;
  }

  .header-center {
    justify-content: center;
    overflow: hidden;
  }

  .site-title {
    flex-direction: column;
    justify-content: center;
    gap: 0;
    max-width: 100%;
    text-align: center;
  }

  .site-name {
    font-size: 1.08rem;
    letter-spacing: 0.28em;
  }

  .site-subname {
    margin-top: 0.08rem;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  .site-location {
    display: none;
  }

  .pc-nav,
  .header-line {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    justify-self: end;

    width: 44px;
    height: 44px;
    gap: 4px;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .hamburger span {
    display: block;

    width: 22px;
    height: 2px;

    background: var(--header-brand-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hamburger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .sp-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    z-index: 999998;

    display: none !important;
    flex-direction: column;

    width: 100%;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;

    background: var(--color-background);
    box-shadow: 0 6px 18px rgba(84, 63, 50, 0.14);
  }

  .sp-nav.is-open {
    display: flex !important;
  }

  .sp-nav a {
    display: block;

    width: 100%;
    padding: 0.9rem 1rem;

    border-bottom: 1px solid rgba(84, 63, 50, 0.12);

    color: var(--header-text);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-align: center;
    text-decoration: none;
  }

  .sp-nav .sp-site-link {
    background: #dfe5dc;
    color: var(--header-brand);
    font-weight: 700;
  }

  .sp-nav .sp-line-btn {
    background: var(--header-line);
    color: #fff;
    font-weight: 700;
  }
}

/* ==========================================================
   Anchor offset
========================================================== */

html {
  scroll-behavior: smooth;
}

section[id],
div[id] {
  scroll-margin-top: calc(var(--header-height) + 14px);
}
