/* ===================================================
   CSS Variables
=================================================== */
:root {
  --base-font: "Noto Sans JP", sans-serif;
  --title-font: "Noto Serif JP", serif;
  --subtitle-font: "Noto Serif JP", serif;
  --sub-font: "Noto Sans JP", sans-serif;

  --base-weight: 400;
  --base-weight2: 500;
  --base-weight3: 600;

  --color-base: #FAF6E8;
  --color-main: #972223;
  --color-sub: #6B3A2E;
  --color-accent: #C49A3A;
  --color-bg: #FAF6E8;
  --color-bg-sub: #FFF3D8;
  --color-text-sub: #6F5A4A;
  --color-white: #FFFFFF;

  --max-width: 1120px;
  --header-height-pc: 88px;
  --header-height-sp: 72px;
  --footer-fixed-height: 0px;

  --font-sp-section-title: 25px;
  --font-sp-card-title: 23px;
  --font-sp-body: 16px;
  --font-sp-small: 14px;
}


/* ===================================================
   Base
=================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--base-font);
  font-weight: var(--base-weight);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  background-color: var(--color-bg);
  color: #3d2b1f;
}

@media (min-width: 1024px) {
  body {
    font-size: 16px;
  }
}

a {
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

h1,
h2,
h3 {
  font-family: var(--title-font);
  font-weight: var(--base-weight3);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h2,
h3 {
  line-height: 1.5;
}

h3 {
  color: var(--color-sub);
}

h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 19px; }

.text-hero { font-size: clamp(28px, 8vw, 40px); }
.text-lead { font-size: 19px; }
.text-small { font-size: 15px; }
.text-caption { font-size: 13px; }

.sp-view {
  display: none;
}

.pc-view {
  display: inline;
}

@media (max-width: 767px) {
  .sp-view {
    display: inline;
  }

  .pc-view {
    display: none;
  }
}

@media (min-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
  .text-hero { font-size: clamp(32px, 5vw, 56px); }
  .text-lead { font-size: 18px; }
  .text-small { font-size: 14px; }
  .text-caption { font-size: 12px; }
}


/* ===================================================
   Layout
=================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 40px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 40px;
  }
}

.section {
  padding: 60px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }
}


/* ===================================================
   Section Title
=================================================== */
.section-en {
  font-family: var(--sub-font);
  font-size: 12px;
  font-weight: var(--base-weight3);
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-align: center;
  display: block;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--title-font);
  font-weight: var(--base-weight3);
  font-size: clamp(30px, 3.2vw, 42px);
  text-align: center;
  color: var(--color-main);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .section-head {
    margin-bottom: 4rem;
  }
}


/* ===================================================
   Button
=================================================== */
.btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--color-main);
  color: var(--color-white);
  font-family: var(--base-font);
  font-weight: var(--base-weight2);
  font-size: 15px;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-main);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.btn:hover {
  opacity: 0.85;
  color: var(--color-white);
}


/* ===================================================
   Header
=================================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#header.is-scrolled {
  background: rgba(250, 246, 232, 0.78);
  box-shadow: 0 1px 0 rgba(196, 154, 58, 0.2);
}

@media (min-width: 1024px) {
  #header {
    height: var(--header-height-pc);
  }

  #header .container {
    max-width: 1280px;
  }
}

.logo img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease;
}

#header.is-scrolled .logo img {
  filter: none;
}

@media (min-width: 1024px) {
  #header {
    height: var(--header-height-pc);
  }

  .logo img {
    height: 44px;
  }
}


/* ===================================================
   Navigation (PC)
=================================================== */
#nav {
  display: none;
}

@media (min-width: 1024px) {
  #nav {
    display: block;
  }

  #nav ul {
    display: flex;
    align-items: center;
  }

  #nav li {
    position: relative;
    padding-inline: 1.5rem;
  }

  #nav li:first-child {
    padding-left: 0;
  }

  #nav li:last-child {
    padding-right: 0;
  }

  #nav li + li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%);
  }

  #nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    font-weight: var(--base-weight2);
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
    position: relative;
  }

  #nav a span {
    line-height: 1.3;
  }

  #nav a small {
    margin-top: 3px;
    font-family: var(--sub-font);
    font-size: 8px;
    font-weight: var(--base-weight2);
    letter-spacing: 0.12em;
    line-height: 1;
  }

  #nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
  }

  #nav a:hover {
    color: var(--color-accent);
  }

  #nav a:hover::after {
    width: 100%;
  }

  #header.is-scrolled #nav a {
    color: var(--color-sub);
  }

  #header.is-scrolled #nav li + li::before {
    background: rgba(107, 58, 46, 0.28);
  }
}


/* ===================================================
   Hamburger Button
=================================================== */
.js-menu-trigger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: 12px 9px;
  background: rgba(151, 34, 35, 0.88);
}

.js-menu-trigger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-white);
  transition: background 0.4s ease;
}

#header.is-scrolled .js-menu-trigger span {
  background: var(--color-white);
}

@media (min-width: 1024px) {
  .js-menu-trigger {
    display: none;
  }
}


/* ===================================================
   Mobile Menu Overlay
=================================================== */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-sub);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.js-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 246, 232, 0.8);
  font-size: 24px;
  transition: color 0.3s ease;
}

.js-menu-close:hover {
  color: var(--color-accent);
}

#menu-overlay nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

#menu-overlay nav li {
  position: relative;
  width: min(280px, calc(100vw - 64px));
  padding: 0.85rem 0;
  text-align: center;
}

#menu-overlay nav li + li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: rgba(250, 246, 232, 0.25);
}

#menu-overlay nav li::after {
  content: '›';
  position: absolute;
  top: 50%;
  right: 8%;
  color: var(--color-accent);
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

#menu-overlay nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--title-font);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--color-bg-sub);
  transition: color 0.3s ease;
}

#menu-overlay nav a span {
  line-height: 1.35;
}

#menu-overlay nav a small {
  margin-top: 3px;
  font-family: var(--sub-font);
  font-size: 9px;
  font-weight: var(--base-weight2);
  letter-spacing: 0.14em;
  line-height: 1;
}

#menu-overlay nav a:hover {
  color: var(--color-accent);
}

@media (min-width: 1024px) {
  #menu-overlay {
    display: none;
  }
}


/* ===================================================
   Back to Top
=================================================== */
.js-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-sub);
  color: var(--color-bg);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 50;
}

.js-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.js-back-to-top:hover {
  background: var(--color-main);
  color: var(--color-white);
}


/* ===================================================
   Image Hover
=================================================== */
.image-hover {
  overflow: hidden;
}

.image-hover img {
  transition: transform 0.6s ease;
}

.image-hover:hover img {
  transform: scale(1.05);
}


/* ===================================================
   Fade In
=================================================== */
.js-fadein {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-fadein.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-fadein.delay-1 {
  transition-delay: 0.1s;
}

.js-fadein.delay-2 {
  transition-delay: 0.2s;
}

.js-fadein.delay-3 {
  transition-delay: 0.3s;
}


/* ===================================================
   Footer
=================================================== */
#footer {
  background: var(--color-sub);
  padding: 48px 0 32px;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

#footer .logo img {
  height: 32px;
  filter: brightness(0) invert(1) sepia(1) hue-rotate(10deg) saturate(0.8);
}

#footer address {
  color: rgba(250, 246, 232, 0.75);
  font-size: 13px;
  line-height: 2;
}

#footer address a {
  color: rgba(250, 246, 232, 0.75);
}

#footer address a:hover {
  color: var(--color-accent);
}

#footer .container > p {
  color: rgba(250, 246, 232, 0.45);
  border-top: 1px solid rgba(250, 246, 232, 0.1);
  padding-top: 1.25rem;
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
}


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