/* ==========================================================================
   base.css — reset / common variables / base tags
   ========================================================================== */

:root {
  /* colors */
  --color-brown-dark: #46250a;
  --color-brown: #6e3709;
  --color-brown-light: #d1b39b;
  --color-gold: #cd8f00;
  --color-yellow: #ffc851;
  --color-white: #ffffff;
  --color-footer-bg: #372211;

  /* fonts */
  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", sans-serif;

  /* layout */
  --content-width: 1000px;
  --header-height: 110px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scrollbar-gutter: stable;
}

/* Any in-page anchor target lands below the fixed header, not under it.
   --header-height already varies per breakpoint (see below), so this
   adapts automatically — no separate tablet/SP override needed. */
[id] {
  scroll-margin-top: var(--header-height);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--font-sans);
  color: var(--color-brown-dark);
  font-size: 1.6rem;
  line-height: 1.6;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.l-content {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

@media (max-width: 1199px) {
  :root {
    --header-height: 80px;
  }

  .l-content {
    padding: 0 6%;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 60px;
  }

  body {
    font-size: 1.4rem;
  }

  .l-content {
    padding: 0 8%;
  }
}

/* ==========================================================================
   Shared components
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 40px;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1.6;
  text-align: center;
  border: 1px solid transparent;
}

.button--gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
  transition: background 0.2s ease, color 0.2s ease;
}

.button--gold:hover {
  background: transparent;
  color: var(--color-gold);
}

.button--brown {
  background: var(--color-brown);
  border-color: var(--color-brown);
  color: var(--color-white);
  transition: background 0.2s ease, color 0.2s ease;
}

.button--brown:hover {
  background: transparent;
  color: var(--color-brown);
}

.button--yellow {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
  color: var(--color-brown-dark);
  transition: background 0.2s ease, color 0.2s ease;
}

.button--yellow:hover {
  background: transparent;
  color: var(--color-yellow);
}

.button__icon {
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("../images/common/icon-arrow.svg");
  mask-image: url("../images/common/icon-arrow.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.2s ease;
}

.js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.js-fade--in-place {
  transform: none;
}

.js-fade--in-place.is-visible {
  transform: none;
}

.js-fade--delay-1 {
  transition-delay: 0.3s;
}

.js-fade--delay-2 {
  transition-delay: 0.6s;
}

.section-heading__title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 4rem;
  letter-spacing: 0.21rem;
  color: var(--color-brown-dark);
}

.section-heading__label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.28rem;
  color: var(--color-gold);
}

.section-heading__label--yellow {
  color: var(--color-yellow);
}

.section-heading__title--brown {
  color: var(--color-brown);
}

.section-heading__title--yellow {
  color: var(--color-yellow);
}

@media (max-width: 1199px) {
  .section-heading__title {
    font-size: 3.2rem;
  }

  .section-heading__label {
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  .section-heading__title {
    font-size: 2.4rem;
  }

  .section-heading__label {
    font-size: 1rem;
  }

  .button {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

@media (max-width: 1199px) {
  .u-hide-tablet-sp {
    display: none;
  }
}
