@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ==================================================
  CSS Variables
================================================== */

:root {
  --color-primary:       #0b6f07;
  --color-primary-dark:  #004906;
  --color-primary-light: #15920f;
  --color-text:          #333;
  --color-text-dark:     #111;
  --color-text-muted:    #777;
  --color-bg-white:      #fff;
  --color-bg-gray:       #f5f5f0;
  --color-dark-overlay:  rgba(42, 54, 42, 0.7);

  --shadow-btn:          0 6px 14px rgba(11, 111, 7, 0.22);
  --shadow-btn-hover:    0 9px 18px rgba(11, 111, 7, 0.32);
  --shadow-card:         0 8px 18px rgba(11, 111, 7, 0.22);
  --shadow-card-hover:   0 12px 24px rgba(11, 111, 7, 0.32);

  --transition-base:     0.3s ease;
  --transition-fill:     0.35s ease;
  --transition-bg:       0.8s ease;

  --radius-pill:         999px;

  --container-max:       1180px;
  --container-width:     90%;
  --container-width-sp:  88%;
}

/* ==================================================
  Base
================================================== */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 100%;
  line-height: 1.8;
  letter-spacing: 0.02em;
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img,
video {
  max-width: 100%;
  height: auto;
}

img {
  vertical-align: bottom;
  border: 0;
}

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

a:hover {
  text-decoration: none;
}

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

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

button {
  cursor: pointer;
}

main {
  display: block;
}

/* ==================================================
  Layout Utilities  (.l-*)
================================================== */

.l-container {
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
}

.l-section {
  padding: 95px 0 100px;
}

.l-section--large {
  padding: 105px 0 110px;
}

.l-section--gray {
  background: var(--color-bg-gray);
}

.l-section--white {
  background: var(--color-bg-white);
}

@media screen and (max-width: 768px) {
  .l-container {
    width: var(--container-width-sp);
  }

  .l-section,
  .l-section--large {
    padding: 70px 0 75px;
  }
}

/* ==================================================
  Component: Section Heading  (.c-heading)
================================================== */

.c-heading {
  margin: 0 0 48px;
}

.c-heading__en {
  margin: 0 0 16px;
  color: var(--color-primary);
  font-family: var(--font-Mincho);
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
}

.c-heading__ja {
  margin: 0;
  color: var(--color-text-dark);
  font-family: var(--font-Mincho);
  font-size: 2.3em;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

@media screen and (max-width: 768px) {
  .c-heading {
    margin-bottom: 30px;
  }

  .c-heading__en {
    margin-bottom: 14px;
    font-size: 1em;
    letter-spacing: 0.14em;
  }

  .c-heading__ja {
    font-size: 1.9em;
  }
}

/* ==================================================
  Component: Button Base  (.c-btn)
================================================== */

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
  cursor: pointer;
}

.c-btn__text {
  position: relative;
  z-index: 2;
}

.c-btn::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: var(--transition-base);
}

/* ==================================================
  Component: "More" Link  (.c-more-link)
================================================== */

.c-more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  position: relative;
  transition: color var(--transition-base);
}

.c-more-link::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.c-more-link::after {
  content: "";
  width: 0;
  height: 1px;
  position: absolute;
  left: 28px;
  bottom: -5px;
  transition: width var(--transition-base);
}

.c-more-link:hover::before {
  transform: translateX(4px) scale(1.08);
  opacity: 0.8;
}

.c-more-link:hover::after {
  width: calc(100% - 28px);
}

/* --------------------------------------------------
  Page Top Button
-------------------------------------------------- */

#page-top {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  opacity: 0;
  transform: translateX(100px);
}

#page-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: rgba(10, 87, 9, 0.506);
  border-radius: 100vh;
  color: #fff;
  font-family: var(--font-Montserrat);
  font-size: 0.8rem;
  font-weight: 700;
  font-style: normal;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}

#page-top a:hover {
  background: #777;
}

#page-top.LeftMove {
  animation: LeftAnime 0.5s forwards;
}

@keyframes LeftAnime {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#page-top.RightMove {
  animation: RightAnime 0.5s forwards;
}

@keyframes RightAnime {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* --------------------------------------------------
  Fade In Triggers（スクロールアニメーション）
-------------------------------------------------- */

.fadeInUpTrigger,
.fadeInDownTrigger,
.fadeInUpTriggerOnce {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fadeInUpTrigger,
.fadeInUpTriggerOnce {
  transform: translateY(32px);
}

.fadeInDownTrigger {
  transform: translateY(-32px);
}

.fadeInUpTrigger.is-show,
.fadeInDownTrigger.is-show,
.fadeInUpTriggerOnce.is-show {
  opacity: 1;
  transform: translateY(0);
}
