/* =========================================================
   リセット・本文・リンク・画像など最も基本となる表示
========================================================= */

/* =========================================================
   01. RESET / GLOBAL BASE
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  color: var(--sf-ink);
  background: var(--sf-ivory);

  font-family: var(--sf-sans);
  line-height: 1.8;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-menu-open {
  overflow: hidden;
}

/* =========================================================
   02. MEDIA / LINKS / FORM ELEMENTS
========================================================= */

img {
  display: block;

  max-width: 100%;
  height: auto;
}

a {
  color: inherit;

  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;

  cursor: pointer;
}

/* =========================================================
   03. TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--sf-serif);
  font-weight: 500;
  line-height: 1.45;
}

/* =========================================================
   04. ACCESSIBILITY
========================================================= */

.screen-reader-text {
  position: absolute;

  width: 1px;
  height: 1px;

  margin: -1px;
  padding: 0;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);

  white-space: nowrap;

  border: 0;
}

.sf-skip-link {
  position: fixed;
  z-index: 9999;
  top: -100px;
  left: 16px;

  padding: 10px 16px;

  color: var(--sf-green-dark);
  background: #fff;
  border: 1px solid var(--sf-gold-soft);
  box-shadow: 0 8px 24px rgba(18, 68, 58, 0.14);
}

.sf-skip-link:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--sf-gold);
  outline-offset: 3px;
}

/* =========================================================
   05. LAYOUT
========================================================= */

.sf-container {
  width: min(calc(100% - 48px), var(--sf-container));

  margin-inline: auto;
}

.sf-main {
  min-height: 55vh;
}

/* =========================================================
   06. SECTION LABEL
========================================================= */

.sf-section-label,
.sf-home-heading > p {
  color: var(--sf-gold);

  font: 600 11px/1.2 var(--sf-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* =========================================================
   07. COMMON BUTTONS
========================================================= */

.sf-button,
.sf-outline-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 50px;

  padding: 10px 25px;

  border: 1px solid transparent;

  transition: color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.sf-button {
  color: #fff;
  background: var(--sf-green);
  border-color: var(--sf-green);
}

.sf-outline-button {
  color: var(--sf-ink);
  background: transparent;
  border-color: var(--sf-line);
}

/* =========================================================
   Keyboard focus
========================================================= */

.sf-button:focus-visible,
.sf-outline-button:focus-visible {
  color: #fff;
  background: var(--sf-green-dark);
  border-color: var(--sf-green-dark);
  box-shadow: 0 14px 28px rgba(18, 68, 58, 0.2);

  transform: translateY(-5px);
}

.sf-button:active,
.sf-outline-button:active {
  box-shadow: 0 5px 12px rgba(18, 68, 58, 0.14);

  transform: translateY(-1px);
}

/* =========================================================
   08. COMMON ALIGNMENT
========================================================= */

.sf-home-center {
  margin-top: 34px;

  text-align: center;
}

/* =========================================================
   09. POINTER HOVER
   マウス操作ができる端末だけに適用
========================================================= */

@media (hover: hover) {
  .sf-button:hover,
  .sf-outline-button:hover {
    color: #fff;
    background: var(--sf-green-dark);
    border-color: var(--sf-green-dark);
    box-shadow: 0 14px 28px rgba(18, 68, 58, 0.2);

    transform: translateY(-5px);
  }
}

/* =========================================================
   10. MOBILE
========================================================= */

@media (max-width: 767px) {
  .sf-container {
    width: min(calc(100% - 32px), var(--sf-container));
  }

  .sf-button,
  .sf-outline-button {
    min-height: 48px;

    padding: 10px 20px;
  }

  .sf-section-label,
  .sf-home-heading > p {
    font-size: 10px;
  }

  .sf-home-center {
    margin-top: 28px;
  }
}

/* =========================================================
   11. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
