.story-page {
  width: 100%;
  overflow: hidden;
}

.story-hero {
  position: relative;
  width: 100%;
  height: 520px;
  background-color: #d8d4cc;
  display: flex;
  align-items: center;
  padding: 0 8%;
}
.story-hero {
  background-image: url("../images/story.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.story-hero {
  position: relative;
}
.story-hero {
  position: relative;
  z-index: 2;
}

.story-origin {
  position: relative;
  z-index: 1;
}
.story-hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
  transform: none;
}

.story-hero-text h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
}

.story-hero-text p {
  font-size: 20px;
  line-height: 2;
  margin: 0;
}


.story-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.story-hero h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 40px;
}

.story-lead {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 70px;
}
.story-origin {
  background-image: url("../images/story-kurasi.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.story-origin {
  width: 100%;
  min-height: 520px;
  height: auto;
  padding: 100px 8%;
  margin: 0;
  position: relative;
}
.story-origin {
  position: relative;
  width: 100%;
  height: 520px;
  margin: 0;
  padding: 0 8%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background-color: #e5e2dc;
}
.story-origin {
  position: relative;
  background-image: url("../images/story-kurasi.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.story-origin-text {
  position: relative;
  z-index: 2;
}

.story-origin-text h2 {
  font-size: 48px;
  font-weight: 400;
  margin: 0 0 40px;
}

.story-origin-text p {
  font-size: 20px;
  line-height: 2;
  margin: 0 0 24px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.story-origin-text h2,
.story-origin-text p {
  color: #eeeeee;
}
.story-visual {
  width: 100%;
  margin: 0;
}

.story-visual-image {
  position: relative;
  width: 100%;
  height: 600px;
  background-color: #c8c8c3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-visual-text {
  position: relative;
  z-index: 2;
  width: 84%;
  max-width: 1000px;
  text-align: right;
  transform: translateX(7%);
}

.story-visual-main {
  max-width: 100%;
  font-size: clamp(24px, 2.65vw, 38px);
  line-height: 1.8;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  text-align: right;
}

.story-visual-small {
  width: min(100%, 650px);
  max-width: 100%;
  margin: 0 0 0 auto;
  font-size: 20px;
  line-height: 2;
  letter-spacing: 0.05em;
  text-align: right;
}

.story-visual-small p {
  margin: 0 0 16px;
}

.story-function {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background-color: #d8d4cc;
}

.story-function-image {
  width: calc(100% - 60px);
  height: 600px;
  margin-left: 40px;
  background-color: #f3f1ed;
  transform: translateY(-16px);
}

.story-function-text {
  padding: 80px 7% 80px 13%;
  box-sizing: border-box;
}

.story-function-text p {
  font-size: 16px;
  line-height: 2;
  margin: 0 0 32px;
}

.story-contrast {
  margin: 45px 0;
}

.story-contrast p {
  font-size: 17px;
  margin: 0 0 12px;
}
.story-function-text h2 {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 50px 0 30px;
}
.story-name {
  width: 100%;
  min-height: 380px;
  padding: 30px 8%;
  box-sizing: border-box;

  display: flex;
  align-items: center;

  background-color: #f3f1ed;
  justify-content: space-between;
}
.story-name-text {
  width: 48%;
}

.story-name-text p {
  font-size: 16px;
  line-height: 2;
  margin: 0 0 28px;
}

.story-name-text p:last-child {
  margin-bottom: 0;
}

.story-name-logo {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-name-logo img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
}
.story-visual-image {
  background-image: url("../images/story-japan.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.story-visual-image {
  background-image: url("../images/story-japan.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.story-visual-image .story-visual-text,
.story-visual-image .story-visual-text p {
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.7);
}

/* STORY 文字サイズ調整 */

.story-function-text p,
.story-name-text p {
  font-size: 20px;
  line-height: 2.1;
}

.story-contrast p {
  font-size: 21px;
}

.story-function-text h2 {
  font-size: 38px;
}

.story-visual-small {
  font-size: clamp(16px, 1.55vw, 22px);
}

/* スマホでは画面幅に合わせる */
@media (max-width: 767px) {
  .story-function-text p,
  .story-name-text p,
  .story-contrast p,
  .story-visual-small {
    font-size: 16px;
  }

  .story-function-text h2 {
    font-size: 28px;
  }
}

.story-function-image {
  background-image: url("../images/story-function.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .story-hero,
  .story-origin {
    min-height: 440px;
    height: auto;
    padding: 100px 7%;
    background-position: center;
  }

  .story-hero-text h1,
  .story-hero h1 {
    font-size: clamp(38px, 5vw, 48px);
  }

  .story-hero-text p,
  .story-origin-text p {
    font-size: clamp(16px, 2vw, 19px);
  }

  .story-origin-text h2 {
    font-size: clamp(34px, 4.5vw, 44px);
    line-height: 1.5;
  }

  .story-visual-image {
    min-height: 520px;
    height: auto;
    padding: 72px 0;
    box-sizing: border-box;
  }

  .story-visual-text {
    width: 84%;
    max-width: 900px;
    transform: none;
  }

  .story-visual-main,
  .story-visual-small {
    max-width: 100%;
    font-size: clamp(20px, 2.7vw, 28px);
    text-align: right;
    transform: none;
  }

  .story-visual-small {
    margin: 28px 0 0 auto;
    font-size: clamp(16px, 2vw, 20px);
  }

  .story-function {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .story-function-image {
    width: calc(100% - 28px);
    height: clamp(400px, 52vw, 540px);
    margin-left: 18px;
    transform: none;
  }

  .story-function-text {
    padding: 64px 8%;
  }

  .story-function-text p,
  .story-name-text p {
    font-size: 16px;
    line-height: 2;
  }

  .story-function-text h2 {
    margin: 34px 0 22px;
    font-size: clamp(26px, 3.2vw, 34px);
  }

  .story-contrast p {
    font-size: 17px;
  }

  .story-name {
    min-height: 320px;
    gap: 6%;
    padding: 60px 7%;
  }

  .story-name-text {
    width: 58%;
  }

  .story-name-logo {
    width: 36%;
  }
}

@media (max-width: 767px) {
  .story-hero {
    min-height: 78svh;
    height: auto;
    padding: 100px 24px 60px;
    background-position: center;
  }

  .story-hero-text h1,
  .story-hero h1 {
    margin-bottom: 24px;
    font-size: clamp(34px, 10vw, 44px);
  }

  .story-hero-text p {
    font-size: 15px;
    line-height: 1.9;
  }

  .story-origin {
    min-height: 0;
    height: auto;
    padding: 72px 24px;
    background-position: center;
  }

  .story-origin-text h2 {
    margin-bottom: 24px;
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.5;
  }

  .story-origin-text p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 18px;
  }

  .story-visual-image {
    min-height: 0;
    height: auto;
    padding: 72px 0;
    background-position: center;
  }

  .story-visual-text {
    width: calc(100% - 40px);
    transform: none;
  }

  .story-visual-main {
    margin-bottom: 22px;
    font-size: clamp(19px, 5.4vw, 25px);
    line-height: 1.8;
    text-align: left;
    transform: none;
  }

  .story-visual-small {
    max-width: 100%;
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
    transform: none;
  }

  .story-visual-small p {
    margin: 0;
  }

  .story-function {
    grid-template-columns: 1fr;
  }

  .story-function-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
    transform: none;
  }

  .story-function-text {
    padding: 48px 24px 56px;
  }

  .story-function-text p,
  .story-name-text p {
    font-size: 15px;
    line-height: 1.95;
    margin-bottom: 22px;
  }

  .story-function-text h2 {
    margin: 32px 0 20px;
    font-size: clamp(24px, 6.5vw, 30px);
  }

  .story-contrast {
    margin: 30px 0;
  }

  .story-contrast p {
    font-size: 15px;
    line-height: 1.8;
  }

  .story-name {
    min-height: 0;
    padding: 56px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  .story-name-text,
  .story-name-logo {
    width: 100%;
  }

  .story-name-logo img {
    width: min(100%, 360px);
  }
}
