@charset "utf-8";

/* ======================
about
====================== */
.about {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #342222;
  background-image: url("https://rkw.co.jp/system_panel/uploads/images/about1.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: clamp(2.5rem, -6.042rem + 17.8vw, 15.313rem) 0;
}
.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(52, 34, 34, 0.7);
  pointer-events: none;
  z-index: 0;
}
.about__inner {
  position: relative;
  height: 100%;
  z-index: 1;
      padding-right: clamp(1.25rem, 0.417rem + 1.736vw, 2.5rem);
    padding-left: clamp(1.25rem, 0.417rem + 1.736vw, 2.5rem);
}
.about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.about__title {
  font-size: clamp(1.5rem, 0.5rem + 2.083vw, 3rem);
  font-weight: 700;
  line-height: 1.458;
  text-align: center;
  background-image: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0) 60%);
  background-size: 300% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: about-title-mask 2.4s ease-out forwards;
}
.about__text {
  margin-top: clamp(1.875rem, 0.625rem + 2.604vw, 3.75rem);
  font-size: clamp(0.875rem, 0.625rem + 0.521vw, 1.25rem);
  font-weight: 500;
  line-height: clamp(1.75rem, 1.167rem + 1.215vw, 2.625rem);
  color: #fff;
  text-align: center;
}

@keyframes about-title-mask {
  to {
    background-position: 0 0;
  }
}

/* ======================
story
====================== */
.story {
  position: relative;
  z-index: 0;
  min-height: 200vh;
  background-color: #fff;
  clip-path: inset(0);
}
.story::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: 100vh;
  margin-bottom: -100vh;
  background-image: url("https://rkw.co.jp/system_panel/uploads/images/bg3.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.story__inner {
  position: sticky;
  top: 80px;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding-right: clamp(1.25rem, -5.417rem + 13.889vw, 18rem);
  padding-left: clamp(1.25rem, -5.417rem + 13.889vw, 18rem);
  box-sizing: border-box;
  z-index: 1;
}
.story__container {
  position: relative;
  width: 100%;
  max-width: 1344px;
  margin-inline: auto;
  padding-top: clamp(1.25rem, 0.417rem + 1.736vw, 2.5rem);
  padding-bottom: clamp(1.25rem, 0.417rem + 1.736vw, 2.5rem);
}
.story .title1 {
  margin-bottom: clamp(2.5rem, -0.833rem + 6.944vw, 7.5rem);
}
.story-content__wrap {
  display: grid;
  width: 100%;
}
.story__content {
  display: flex;
  align-items: flex-start;
  grid-area: 1 / 1;
  gap: clamp(1.25rem, -4.583rem + 12.153vw, 9.625rem);
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.story__content.is-active {
  opacity: 1;
  pointer-events: auto;
}
.story__left {
  flex-shrink: 0;
  width: clamp(12.625rem, 2.958rem + 20.139vw, 27.125rem);
}
.story__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 434 / 499;
  object-fit: cover;
}
.story__right {
  flex: 1;
  min-width: 0;
  max-width: 756px;
  padding-top: clamp(0.5rem, -0.333rem + 1.736vw, 2.25rem);
}
.story__title {
  font-family: "Zen Old Mincho", serif;
  font-size: clamp(1.5rem, 1rem + 1.042vw, 2.25rem);
  font-weight: 700;
  line-height: clamp(2.5rem, 1.667rem + 1.736vw, 4rem);
  color: #1d1d1d;
}
.story__text {
  margin-top: clamp(1.25rem, 0.417rem + 1.736vw, 2.5rem);
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(0.875rem, 0.708rem + 0.347vw, 1.125rem);
  font-weight: 400;
  line-height: clamp(1.5rem, 1rem + 1.042vw, 2.25rem);
  color: #000;
}
.story-number__wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 3.25em;
  font-family: "Zen Old Mincho", serif;
  font-size: clamp(0.875rem, 0.708rem + 0.347vw, 1.125rem);
  font-weight: 700;
  line-height: 1.5;
  color: #cbcbcb;
}
.story-number__1,
.story-number__2 {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  color: #cbcbcb;
  transition: opacity 0.45s ease, color 0.45s ease;
}
.story-number__1.is-active,
.story-number__2.is-active {
  opacity: 1;
  color: #000;
}
.story-number__gray {
  display: block;
  padding-left: 1.35em;
  color: #cbcbcb;
}
.story-number__gray::before {
  content: "/";
}
/* ======================
story - admin
====================== */
#wrapper .story {
  height: auto !important;
  min-height: 0;
}
#wrapper .story::before {
  position: absolute;
  height: 100%;
  margin-bottom: 0;
}
#wrapper .story__inner {
  position: static;
  display: block;
  min-height: 0 !important;
  top: auto !important;
  padding-top: 40px;
  padding-bottom: 40px;
}
#wrapper .story-content__wrap {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
#wrapper .story__content {
  display: flex;
  grid-area: auto;
  opacity: 1;
  pointer-events: auto;
}
#wrapper .story-number__wrap {
  position: static;
  margin-top: 20px;
}
#wrapper .story-number__1,
#wrapper .story-number__2 {
  position: static;
  display: inline;
  opacity: 1;
  color: #000;
}
#wrapper .story-number__gray {
  display: inline;
  padding-left: 0;
}

/* ======================
greeting
====================== */
.greeting {
  position: relative;
  z-index: 1;
  background-color: #fff;
  padding-top: clamp(3.75rem, 1.25rem + 5.208vw, 7.5rem);
  padding-bottom: clamp(3.75rem, 0.375rem + 7.031vw, 8.8125rem);
}
.greeting__inner {
  padding-right: clamp(1.25rem, -5.417rem + 13.889vw, 18rem);
  padding-left: clamp(1.25rem, -5.417rem + 13.889vw, 18rem);
}
.greeting__container {
  width: 100%;
  max-width: 1344px;
  margin-inline: auto;
}
.greeting .title1 {
  margin-bottom: clamp(2.5rem, 0.75rem + 3.646vw, 5.125rem);
}
.greeting .title1__top {
  justify-content: center;
}
.greeting__content {
  display: flex;
  align-items: flex-start;
  gap: clamp(2.5rem, -1.375rem + 8.073vw, 8.3125rem);
  width: 100%;
}
.greeting__left {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  gap: 4px;
}
.greeting__img {
  display: block;
  width: clamp(11.1875rem, 1.896rem + 19.358vw, 25.125rem);
  height: auto;
  aspect-ratio: 402 / 540;
  object-fit: cover;
}
.greeting__name {
  display: flex;
  flex-direction: row;
  gap: 11px;
  margin-top: 2px;
}
.greeting-name__1 {
  font-family: "Zen Old Mincho", serif;
  font-size: clamp(0.75rem, 0.667rem + 0.174vw, 0.875rem);
  font-weight: 500;
  line-height: 1.5;
  color: #1d1d1d;
}
.greeting-name__2 {
  font-family: "Zen Old Mincho", serif;
  font-size: clamp(1rem, 0.917rem + 0.174vw, 1.125rem);
  font-weight: 500;
  line-height: 1.5;
  color: #1d1d1d;
}
.greeting__right {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  max-width: 672px;
  padding-top: clamp(0.5rem, 0.083rem + 0.868vw, 1.625rem);
}
.greeting__title {
  display: flex;
  flex-direction: column;
}
.greeting-title__top {
  display: flex;
  align-items: center;
  gap: 4px;
}
.greeting-title-top__icon {
  width: clamp(0.875rem, 0.5rem + 0.781vw, 1.4375rem);
  height: auto;
}
.greeting-title-top__sub {
  font-family: "Zen Old Mincho", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
}
.greeting-title__main {
  margin-top: 3px;
  font-family: "Zen Old Mincho", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: #1d1d1d;
}
.greeting-right__title {
  margin-top: clamp(1.25rem, 0.25rem + 2.083vw, 2.75rem);
  font-family: "Zen Old Mincho", serif;
  font-size: clamp(1.25rem, 1.083rem + 0.347vw, 1.5rem);
  font-weight: 500;
  line-height: clamp(2rem, 1.667rem + 0.694vw, 2.5rem);
  color: #000;
}
.greeting-right__text {
  margin-top: clamp(1.25rem, 1.083rem + 0.347vw, 1.5rem);
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(0.875rem, 0.792rem + 0.174vw, 1rem);
  font-weight: 400;
  line-height: clamp(1.5rem, 1.333rem + 0.347vw, 1.75rem);
  color: #1d1d1d;
}
.achievement {
  margin-top: clamp(2.5rem, 2.417rem + 0.174vw, 2.625rem);
}
.achievement__title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid #707070;
}
.achievement-title__icon {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background-color: #1d1d1d;
}
.achievement-title__main {
  font-family: "Zen Old Mincho", serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #1d1d1d;
}
.achievement__text {
  margin-top: 17px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: #000;
}

@media (max-width: 767px) {
  .about {
    background-image: url("https://rkw.co.jp/system_panel/uploads/images/about1--sp.png");
  }
  .about::before {
    background-color: rgba(7, 2, 2, 0.7);
  }
  .about__text {
    font-size: clamp(0.75rem, 0.63rem + 0.51vw, 0.875rem);
  }
  
  .story {
    min-height: 220vh;
  }
  .story__inner {
    top: 60px;
    min-height: calc(100vh - 60px);
    padding-right: 20px;
    padding-left: 20px;
  }
  .story .title1 {
    margin-bottom: 40px;
  }
  .story__content {
    flex-direction: column;
    align-items: center;
    gap: 40px;
        max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .story__left {
    width: 202px;
  }
  .story__img {
    aspect-ratio: 202 / 232;
  }
  .story__right {
    width: 100%;
    max-width: none;
    padding-top: 0;
  }
  .story__title {
    line-height: 40px;
    text-align: center;
  }
  .story__text {
    margin-top: 30px;
  }
  .story__text br {
    display: none;
  }
  
  .greeting__inner {
    padding-right: 20px;
    padding-left: 20px;
  }
  .greeting .title1 {
    margin-bottom: 40px;
  }
  .greeting__content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .greeting__left {
    justify-content: center;
  }
  .greeting__img {
    width: 179px;
    aspect-ratio: 179 / 241;
  }
  .greeting__name {
    margin-top: 0;
  }
  .greeting__right {
    width: 100%;
    max-width: 500px;
    padding-top: 0;
  }
  .greeting__title {
    align-items: center;
  }
  .greeting-right__title {
    margin-top: 40px;
    text-align: center;
  }
  .greeting-right__title br {
    display: none;
  }
  .greeting-right__text {
    margin-top: 20px;
  }
  .greeting-right__text br {
    display: none;
  }
  .achievement {
    margin-top: 40px;
  }
  .achievement__text {
    margin-top: 20px;
    font-size: 14px;
  }
}

@media (max-width: 374px) {
  .about__title {
    font-size: 21px;
  }
}
