:root {
  --by-ink: #2e4a5b;
  --by-deep: #1f3948;
  --by-muted: #667f8e;
  --by-blue: #8cbad1;
  --by-mist: #dceef7;
  --by-ice: #eef7fb;
  --by-paper: #f8fbfc;
  --by-white: #ffffff;
  --by-line: rgba(46, 74, 91, 0.18);
  --by-jp: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --by-en: "Inter", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

.page-biyoude {
  margin: 0;
  color: var(--by-ink);
  background: var(--by-white);
  font-family: var(--by-jp);
  font-size: 16px;
  line-height: 2;
}

.page-biyoude *,
.page-biyoude *::before,
.page-biyoude *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.page-biyoude a {
  color: inherit;
}

.page-biyoude img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.by-en {
  font-family: var(--by-en);
}

.by-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  min-height: 78px;
  grid-template-columns: 1fr auto auto;
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
  padding: 0 clamp(24px, 4.5vw, 72px);
  border-bottom: 1px solid rgba(46, 74, 91, 0.14);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.by-logo {
  width: fit-content;
  color: var(--by-deep);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

.by-nav {
  display: flex;
  gap: clamp(22px, 2.4vw, 38px);
  align-items: center;
  color: var(--by-deep);
  font-size: 14px;
  font-weight: 500;
}

.by-nav a,
.by-contact-link {
  text-decoration: none;
}

.by-nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.by-nav a:hover {
  border-color: currentColor;
}

.by-contact-link {
  display: grid;
  min-width: 118px;
  min-height: 42px;
  place-items: center;
  color: var(--by-deep);
  border: 1px solid rgba(46, 74, 91, 0.34);
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
}

.by-hero {
  position: relative;
  min-height: max(720px, 100svh);
  overflow: hidden;
  background: var(--by-ice);
}

.by-hero-image {
  position: absolute;
  inset: 0;
  object-position: center;
}

.by-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 28%, rgba(255, 255, 255, 0.06) 58%, rgba(255, 255, 255, 0) 100%);
}

.by-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: max(720px, 100svh);
  width: min(680px, 53vw);
  flex-direction: column;
  justify-content: center;
  padding: 132px 40px 92px clamp(28px, 7vw, 112px);
}

.by-hero-copy > p {
  margin: 0;
  color: var(--by-muted);
  font-size: 17px;
  font-weight: 500;
}

.by-hero h1 {
  margin: 22px 0 0;
  color: var(--by-deep);
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 400;
  line-height: 1.5;
}

.by-hero h1 span {
  white-space: nowrap;
}

.by-hero-copy > a {
  width: fit-content;
  margin-top: 38px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(46, 74, 91, 0.5);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.by-hero-copy > a span {
  margin-left: 16px;
}

.by-concept,
.by-products,
.by-bubble,
.by-contact {
  padding: clamp(90px, 11vw, 160px) clamp(24px, 7vw, 112px);
}

.by-section-label {
  margin: 0 0 30px;
  color: var(--by-muted);
  font-size: 15px;
  font-weight: 500;
}

.by-concept {
  background: var(--by-white);
}

.by-concept-layout {
  display: grid;
  grid-template-columns: minmax(400px, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
}

.by-concept h2,
.by-section-head h2,
.by-contact h2 {
  margin: 0;
  color: var(--by-deep);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.6;
}

.by-concept-layout > div {
  max-width: 620px;
  color: var(--by-muted);
  font-size: 17px;
}

.by-concept-layout p {
  margin: 0 0 22px;
}

.by-concept-layout p:last-child {
  margin-bottom: 0;
}

.by-products {
  background: var(--by-ice);
}

.by-section-head {
  margin-bottom: clamp(54px, 7vw, 92px);
}

.by-products-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  grid-template-rows: repeat(2, minmax(230px, 1fr));
  gap: 24px;
}

.by-product {
  min-width: 0;
  overflow: hidden;
  background: var(--by-white);
}

.by-product-main {
  grid-row: 1 / 3;
}

.by-product-main a {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(420px, 1fr) auto;
  text-decoration: none;
}

.by-product figure {
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.by-product-main img {
  object-position: center;
  transition: transform 600ms ease;
}

.by-product-main a:hover img {
  transform: scale(1.02);
}

.by-product-copy {
  padding: 28px 30px 32px;
}

.by-product p {
  margin: 0 0 8px;
  color: var(--by-muted);
  font-size: 15px;
}

.by-product h3 {
  margin: 0;
  color: var(--by-deep);
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.3;
}

.by-product strong {
  display: block;
  margin-top: 22px;
  color: var(--by-muted);
  font-size: 14px;
  font-weight: 500;
}

.by-product strong span {
  margin-left: 12px;
}

.by-product-coming {
  display: flex;
  align-items: center;
  padding: clamp(32px, 4vw, 58px);
  border: 1px solid rgba(46, 74, 91, 0.08);
}

.by-product-coming:last-child {
  background: var(--by-paper);
}

.by-bubble {
  background: var(--by-white);
}

.by-bubble-title {
  margin-bottom: clamp(48px, 7vw, 92px);
  text-align: center;
}

.by-bubble-title p {
  margin: 0 0 12px;
  color: var(--by-muted);
  font-size: 16px;
}

.by-bubble-title h2 {
  margin: 0;
  color: var(--by-deep);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.2;
}

.by-bubble-visual {
  aspect-ratio: 16 / 7;
  margin: 0;
  overflow: hidden;
  background: var(--by-ice);
}

.by-bubble-visual img {
  object-position: center;
}

.by-bubble-intro {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(360px, 0.82fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
  padding: clamp(72px, 9vw, 130px) 0;
}

.by-bubble-intro h3 {
  margin: 0;
  color: var(--by-deep);
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 400;
  line-height: 1.6;
}

.by-bubble-intro h3 span {
  white-space: nowrap;
}

.by-bubble-intro p {
  margin: 0;
  color: var(--by-muted);
  font-size: 17px;
  line-height: 2.15;
}

.by-bubble-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 38px;
  padding: 34px;
  background: var(--by-ice) url("../hp_pictures/biyoude_picture/biyoude-bubbles-v2.jpg") center / cover no-repeat;
}

.by-bubble-data article {
  padding: clamp(34px, 5vw, 68px);
  background: rgba(255, 255, 255, 0.86);
}

.by-bubble-data p {
  margin: 0 0 18px;
  color: var(--by-muted);
  font-size: 16px;
}

.by-bubble-data strong {
  color: var(--by-deep);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.35;
}

.by-regulatory {
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--by-line);
  background: var(--by-paper);
}

.by-regulatory p {
  margin: 0;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 500;
  line-height: 1.9;
}

.by-regulatory p:first-child {
  color: #a44848;
}

.by-regulatory p + p {
  margin-top: 26px;
  color: #30466f;
}

.by-contact {
  display: grid;
  grid-template-columns: minmax(400px, 1fr) minmax(360px, 0.8fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: end;
  background: var(--by-mist);
}

.by-contact > div:last-child > p {
  margin: 0 0 34px;
  color: var(--by-muted);
  font-size: 16px;
}

.by-contact a {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--by-line);
  border-bottom: 1px solid var(--by-line);
  color: var(--by-deep);
  font-size: clamp(16px, 1.8vw, 23px);
  text-decoration: none;
}

.by-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(24px, 4.5vw, 72px);
  background: var(--by-white);
}

.by-footer a {
  color: var(--by-deep);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.by-footer small {
  color: var(--by-muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .by-header {
    grid-template-columns: 1fr auto;
  }

  .by-nav {
    display: none;
  }

  .by-concept-layout,
  .by-bubble-intro,
  .by-contact {
    grid-template-columns: 1fr;
  }

  .by-products-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .by-product-main {
    grid-row: auto;
  }

  .by-product-main a {
    grid-template-rows: minmax(520px, 66vw) auto;
  }

  .by-product-coming {
    min-height: 230px;
  }

}

@media (max-width: 680px) {
  .by-header {
    min-height: 66px;
    padding: 0 20px;
  }

  .by-logo {
    font-size: 16px;
  }

  .by-contact-link {
    min-width: 92px;
    min-height: 36px;
    font-size: 12px;
  }

  .by-hero {
    min-height: 760px;
  }

  .by-hero-image {
    height: 48%;
    object-position: 64% center;
  }

  .by-hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.96) 100%);
  }

  .by-hero-copy {
    min-height: 760px;
    width: auto;
    justify-content: flex-end;
    padding: 350px 22px 70px;
  }

  .by-hero-copy > p {
    font-size: 14px;
  }

  .by-hero h1 {
    margin-top: 14px;
    font-size: clamp(38px, 11vw, 50px);
  }

  .by-hero-copy > a {
    margin-top: 24px;
    font-size: 14px;
  }

  .by-concept,
  .by-products,
  .by-bubble,
  .by-contact {
    padding-right: 22px;
    padding-left: 22px;
  }

  .by-section-label {
    font-size: 14px;
  }

  .by-concept h2,
  .by-section-head h2,
  .by-contact h2 {
    font-size: clamp(34px, 9.4vw, 44px);
  }

  .by-concept-layout > div {
    font-size: 15px;
  }

  .by-product-main a {
    grid-template-rows: 430px auto;
  }

  .by-product-copy {
    padding: 24px 20px 28px;
  }

  .by-product-coming {
    min-height: 190px;
    padding: 28px 22px;
  }

  .by-bubble-title {
    text-align: left;
  }

  .by-bubble-title h2 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .by-bubble-visual {
    aspect-ratio: 4 / 5;
  }

  .by-bubble-visual img {
    object-position: 38% center;
  }

  .by-bubble-intro {
    padding: 66px 0;
  }

  .by-bubble-intro h3 {
    font-size: clamp(29px, 7.7vw, 34px);
  }

  .by-bubble-intro p {
    font-size: 15px;
  }

  .by-bubble-data {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .by-bubble-data article {
    padding: 30px 22px;
  }

  .by-bubble-data p {
    font-size: 14px;
  }

  .by-bubble-data strong {
    font-size: clamp(31px, 9vw, 42px);
  }

  .by-regulatory {
    padding: 24px 20px;
  }

  .by-regulatory p {
    font-size: 14px;
    line-height: 1.85;
  }

  .by-contact > div:last-child {
    margin-top: 20px;
  }

  .by-footer {
    padding: 26px 22px;
  }
}

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

  .by-product-main img {
    transition: none;
  }
}
