:root {
  --plimary: #960000;
  --secondary: #333333;
  --text: #000000;
  --bg: #f9f9f9;
}
html { scroll-behavior: smooth;}
body {
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}
.key-visual {
  background: #B3B3B3 url(../img/iphone/kv.jpg) no-repeat;
  background-size: cover;
  aspect-ratio: 1440 / 622;
  display: flex;
  align-items: center;
  padding-left: 11%;
}
.key-visual .page-title {
  color: #fff;
  font-size: min(4.2vw, 60px);
  text-shadow: 0 0 10px #13276F;
}
.section-iphone--bg { background-color: var(--bg);}
.section-iphone__title {
  font-size: min(3.06vw, 44px);
  text-align: center;
  margin-bottom: 50px;
}
.section-iphone__title span {
  display: block;
  color: var(--plimary);
  font-size: min(4.2vw, 60px);
}
.section-iphone__title span::before {
  content: attr(data-text);
  display: inline-block;
  font-size: 16px;
  line-height: 0.875;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--plimary);
  margin-right: 8px;
}
.section-iphone__article {
  padding-top: 100px;
}
.section-iphone__article .article-title {
  color: var(--secondary);
  font-size: min(2.3vw, 32px);
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--plimary);
  margin-bottom: 50px;
}
.section-nav .section-iphone__text-box {
  text-align: center;
}
.iphone-nav {
  max-width: 1000px;
  margin: 50px auto 0;
}
.iphone-nav__item { position: relative;}
.iphone-nav__item::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 31px auto 0;
  border-top: 21px solid var(--plimary);
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;;
}
.iphone-nav__item:last-of-type::after { content: none;}
.iphone-nav__item + .iphone-nav__item { margin-top: 25px;}
.iphone-nav__item a {
  display: flex;
  align-items: center;
  font-size: min(2.1vw, 30px);
}
.iphone-nav__item a::before {
  content: "";
  display: block;
  width: 37%;
  max-width: 370px;
  aspect-ratio: 370 / 250;
  margin-right: min(8vw, 80px); 
}
.iphone-nav__item1 a::before { background: url(../img/iphone/step01.jpg) no-repeat; background-size: cover;}
.iphone-nav__item2 a::before { background: url(../img/iphone/step02.jpg) no-repeat; background-size: cover;}
.iphone-nav__item3 a::before { background: url(../img/iphone/step03.jpg) no-repeat; background-size: cover;}
.iphone-nav__item a .no {
  display: inline-block;
  color: var(--plimary);
  font-size: min(4.87vw, 70px);
  margin-right: 17px;
}
.flow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 50px;
}
.flow-item { min-width: 0;}
.flow-item::before {
  content: "";
  display: block;
  width: 182px;
  height: 360px;
  margin: 0 auto 25px;
}
.flow-item > p { display: inline-block; position: relative; padding-left: 29px; word-break: break-all;}
.flow-item .no {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: var(--plimary);
  color: #fff;
  line-height: 24px;
  border-radius: 50%;
  text-align: center;
  position: absolute;
  top: 0; left: 0;
}
.logout-list .flow-item1::before { background: url(../img/iphone/logout1.jpg) no-repeat; background-size: cover;}
.logout-list .flow-item2::before { background: url(../img/iphone/logout2.jpg) no-repeat; background-size: cover;}
.logout-list .flow-item3::before { background: url(../img/iphone/logout3.jpg) no-repeat; background-size: cover;}
.logout-list .flow-item4::before { background: url(../img/iphone/logout4.jpg) no-repeat; background-size: cover;}
.logout-list .flow-item5::before { background: url(../img/iphone/logout5.jpg) no-repeat; background-size: cover;}
.logout-list .flow-item6::before { background: url(../img/iphone/logout6.jpg) no-repeat; background-size: cover;}
.logout-list .flow-item7::before { background: url(../img/iphone/logout7.jpg) no-repeat; background-size: cover;}
.logout-list .flow-item8::before { background: url(../img/iphone/logout8.jpg) no-repeat; background-size: cover;}
.reset-list .flow-item1::before { background: url(../img/iphone/reset1.jpg) no-repeat; background-size: cover;}
.reset-list .flow-item2::before { background: url(../img/iphone/reset2.jpg) no-repeat; background-size: cover;}
.reset-list .flow-item3::before { background: url(../img/iphone/reset3.jpg) no-repeat; background-size: cover;}
.reset-list .flow-item4::before { background: url(../img/iphone/reset4.jpg) no-repeat; background-size: cover;}
.reset-list .flow-item5::before { background: url(../img/iphone/reset5.jpg) no-repeat; background-size: cover;}
.reset-list .flow-item6::before { background: url(../img/iphone/reset6.jpg) no-repeat; background-size: cover;}

.flow-list.sim-list {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 50px;
}
.sim-list .flow-item { aspect-ratio: 475 / 317;}
.sim-list .flow-item::before { width: 100%; height: 100%;}
.sim-list .flow-item1::before { background: url(../img/iphone/sim1.png) no-repeat; background-size: cover;}
.sim-list .flow-item2::before { background: url(../img/iphone/sim2.png) no-repeat; background-size: cover;}
.sim-list .flow-item3::before { background: url(../img/iphone/sim3.png) no-repeat; background-size: cover;}
.sim-list .flow-item4::before { background: url(../img/iphone/sim4.png) no-repeat; background-size: cover;}

@media screen and (max-width: 959px) {
  body { font-size: 16px;}
  .key-visual {
    height: 420px;
    min-height: max-content;
    background: #B3B3B3 url(../img/iphone/kv-sp.jpg) no-repeat center center;
    background-size: cover;
    aspect-ratio: auto;
  }
  .key-visual .page-title { font-size: clamp(16px, 10.25vw, 40px); top: 27%; left: 7%;}
  .section-iphone__title { font-size: clamp(16px, 7.7vw, 30px);}
  .section-iphone__title span { font-size: clamp(16px, 15.4vw, 60px);}
  .section-nav .section-iphone__text-box { text-align: left;}
  .section-iphone__article .article-title { font-size: clamp(16px, 6.2vw, 24px);}
  .iphone-nav__item a { flex-direction: column-reverse; font-size: clamp(16px, 7.7vw, 30px);}
  .iphone-nav__item a .no { font-size: clamp(16px, 18vw, 70px);}
  .iphone-nav__item a > span { display: flex; align-items: center;}
  .iphone-nav__item a::before { width: 100%; margin-right: 0;}
  .flow-list { grid-template-columns: repeat(2, 1fr); gap: 20px;}
  .sim-list .flow-item { width: 100%; min-width: 0;}
}