/*
 * るるてぃか ウェブサイト — 制作：みろん
 * トップ画面とヘッダーの最終デザイン。読み込み順：3/4。
 * セレクター・宣言・メディア条件の順序は、現在の表示を維持するため保持。
 */

/* 明るい左側の文字と、右側の青い曲面・提供イラスト */

/* ヘッダーとナビゲーション */
.header {
  background: #fbfdfff5;
  border-bottom-color: #dbe6f180;
}
.header.is-scrolled {
  background: #fffffffa;
  box-shadow: 0 6px 26px #203b6910;
}
.header nav a {
  color: #254473;
}
.header nav a::after {
  background: #bb9655;
}

/* トップ画面 */
.hero {
  background: radial-gradient(ellipse at 24% 40%,#fff 12%,#f4f9ff 58%,#e9f2fd 100%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  border-radius: 52% 0 0 52% / 50% 0 0 50%;
  background: radial-gradient(ellipse at 55% 36%,#496aa4 0,#315386 44%,#1c3a67 85%);
  pointer-events: none;
}
.hero::before {
  z-index: -1;
  width: 660px;
  height: 660px;
  right: -80px;
  top: 60px;
  opacity: .065;
}
.hero-inner {
  min-height: 690px;
  max-height: 800px;
  height: calc(100svh - 76px);
  padding: 42px 72px 72px;
  grid-template-columns: .96fr 1.04fr;
}
.hero-copy {
  max-width: 540px;
  padding: 0;
  align-self: center;
}
.hero h1 {
  width: 390px;
  max-width: 90%;
  margin: 0 0 18px;
}
.hero h1 img {
  filter: none;
}
.gold-line {
  max-width: 190px;
  margin: 16px 0 23px;
  color: #bc9654;
}
.gold-line::before {
  background: linear-gradient(90deg,#b9975c,#dfcba280);
}
.hero-catch {
  font-size: clamp(1.35rem,1.9vw,1.75rem);
  font-weight: 600;
  color: #244372;
  line-height: 1.95;
  letter-spacing: .04em;
  text-shadow: none;
}
.hero-sub {
  font-size: 1rem;
  font-weight: 500;
  color: #4c6484;
  margin-top: 18px;
  max-width: 350px;
  line-height: 2;
}
.hero .actions {
  margin-top: 27px;
  gap: 12px;
}
.hero .button {
  min-height: 50px;
  padding-inline: 27px;
  font-size: .9375rem;
}
.hero .button-blue {
  background: #284e85;
  border: 1px solid #284e85;
  color: #fff;
  box-shadow: 0 6px 20px #294e8518;
}
.hero .button-blue .play-icon {
  background: #ffffff20;
  color: #fff;
}
.hero .button-blue:hover {
  background: #203f70;
}
.hero .button-white {
  background: #ffffffcc;
  border: 1px solid #bcd0e8;
  color: #294971;
  box-shadow: none;
}
.hero .button-white:hover {
  background: #fff;
}
.hero-art {
  right: 0;
  width: 58%;
  height: 100%;
  margin: 0;
}
.hero-art>img {
  height: calc(100% - 48px);
  max-height: 780px;
  max-width: 95%;
  bottom: 24px;
  translate: 15px 0;
  filter: drop-shadow(0 14px 26px #0f2b541a);
}
.hero .star-one {
  display: none;
}
.hero .star-two {
  color: #ba965b;
  left: 45%;
  bottom: 33%;
}
.hero .star-three {
  color: #e5cb93;
  right: 4%;
  top: 7%;
  font-size: 24px;
}
.ambient-stars i:nth-child(1) {
  display: none;
}
.ambient-stars i:nth-child(2) {
  color: #abc6e5;
  left: 4%;
  top: 72%;
}
.ambient-stars i:nth-child(3) {
  color: #d4e6ff;
  right: 32%;
  top: 13%;
}
.ambient-stars i:nth-child(4) {
  color: #d8be8b;
  right: 6%;
  bottom: 16%;
  font-size: 18px;
}
.ambient-stars i:nth-child(5),.ambient-stars i:nth-child(6) {
  display: none;
}
.scroll-cue {
  left: 72px;
  bottom: 25px;
  color: #5f7ca2;
  font-size: .6875rem;
}
.scroll-cue span {
  background: #bc9a5e;
}

/* 表示条件：(min-width:1600px) */
@media(min-width:1600px) {
  .hero-inner {
    padding-inline: 100px;
  }
  .hero h1 {
    width: 420px;
  }
  .hero-art>img {
    height: calc(100% - 48px);
  }
  .scroll-cue {
    left: 100px;
  }
}

/* 表示条件：(max-width:1100px) */
@media(max-width:1100px) {
  .hero-inner {
    min-height: 640px;
    max-height: 740px;
    padding-inline: 48px;
  }
  .hero h1 {
    width: 335px;
  }
  .hero-catch {
    font-size: 1.4rem;
    letter-spacing: .035em;
  }
  .hero-sub {
    max-width: 295px;
    font-size: .9375rem;
  }
  .hero-art {
    right: 0;
    width: 59%;
  }
  .hero-art>img {
    height: calc(100% - 44px);
    bottom: 22px;
    translate: 8px 0;
  }
  .scroll-cue {
    left: 48px;
  }
}

/* 表示条件：(max-width:850px) */
@media(max-width:850px) {
  .header nav {
    background: #fbfdfffa;
    border-color: #d5e3f3;
  }
  .header nav a {
    color: #254473;
  }
  .menu-toggle {
    background: #fff;
    border-color: #ccddef;
  }
  .menu-toggle>span:not(.sr-only) {
    background: #254473;
  }
  .hero-inner {
    min-height: 610px;
    max-height: 710px;
    height: calc(100svh - 70px);
    padding-inline: 30px;
  }
  .hero h1 {
    width: 290px;
  }
  .hero-catch {
    font-size: 1.15rem;
    letter-spacing: .035em;
  }
  .hero-sub {
    max-width: 230px;
    font-size: .875rem;
  }
  .hero .button {
    padding-inline: 19px;
    font-size: .875rem;
    min-height: 46px;
  }
  .hero-art {
    right: 0;
    width: 60%;
  }
  .hero-art>img {
    height: calc(100% - 40px);
    bottom: 20px;
    translate: 0 0;
  }
  .scroll-cue {
    left: 30px;
  }
}

/* 表示条件：(max-width:600px) */
@media(max-width:600px) {
  .hero::after {
    top: auto;
    bottom: -65px;
    right: -23%;
    width: 146%;
    height: 54%;
    border-radius: 50% 50% 0 0 / 30% 30% 0 0;
    background: radial-gradient(ellipse at 55% 25%,#6384b5,#3c6196 50%,#274977 100%);
  }
  .hero::before {
    width: 450px;
    height: 450px;
    right: -100px;
    top: auto;
    bottom: -25px;
    opacity: .07;
  }
  .hero-inner {
    height: auto;
    min-height: 790px;
    max-height: none;
    padding: 32px 24px 54px;
    display: flex;
    gap: 0;
  }
  .hero-copy {
    max-width: none;
    width: 100%;
    text-align: center;
  }
  .hero h1 {
    width: min(275px,88%);
    max-width: 88%;
    margin: 0 auto 12px;
  }
  .gold-line {
    width: 125px;
    margin: 8px auto 14px;
  }
  .hero-catch {
    font-size: 1.17rem;
    line-height: 1.9;
    letter-spacing: .045em;
  }
  .hero-sub {
    font-size: .875rem;
    max-width: 278px;
    margin: 12px auto 0;
  }
  .hero .actions {
    margin-top: 20px;
    gap: 12px;
  }
  .hero .button {
    padding-inline: 23px;
  }
  .hero-art {
    position: relative;
    inset: auto;
    width: 100%;
    height: 390px;
    margin: 22px 0 0;
    order: 2;
    flex: none;
  }
  .hero-art>img {
    height: calc(100% - 12px);
    width: auto;
    max-width: 100%;
    max-height: none;
    bottom: 0;
    translate: 0 0;
  }
  .hero .star-two {
    left: 12%;
    bottom: 42%;
    font-size: 14px;
  }
  .hero .star-three {
    right: 6%;
    top: 25px;
    color: #bc9654;
    font-size: 17px;
  }
  .ambient-stars i:nth-child(2) {
    top: auto;
    bottom: 9%;
    left: 10%;
  }
  .ambient-stars i:nth-child(3) {
    top: auto;
    bottom: 40%;
    right: 11%;
  }
  .scroll-cue {
    left: 50%;
    transform: translateX(-50%);
    bottom: 15px;
    color: #edf5ff;
    font-size: .625rem;
  }
  .scroll-cue span {
    background: #d7bc85;
    height: 21px;
  }
}
