/* This is the project stylesheet */

:root {
  /* Colors */
  --alice-blue: rgba(235, 246, 253, 1);
  --black-2: rgba(0, 0, 0, 1);
  --gray042: rgba(106, 106, 106, 1);
  --gray060: rgba(153, 153, 153, 1);
  --lavender: rgba(227, 239, 247, 1);
  --light-grey: rgba(204, 204, 204, 1);
  --siiibo-black: rgba(35, 35, 35, 1);
  --siiibo-blue056: rgba(54, 161, 231, 1);
  --steel-blue: rgba(51, 146, 209, 1);
  --steel-blue-2: rgba(50, 143, 205, 1);
  --white: rgba(255, 255, 255, 1);
  --white-smoke: rgba(246, 248, 249, 1);
  --old-lace: rgba(255, 246, 227, 1);
  --sandy-brown: rgba(255, 197, 71, 1);
}

/* -----------------------------------------------------------------
ページヘッダー
----------------------------------------------------------------- */

.page-header {
  background-color: var(--alice-blue);
  padding: 40px 20px;
}
@media screen and (min-width: 520px) {
  .page-header {
    padding: 40px 28px;
  }
}
@media screen and (min-width: 1440px) {
  .page-header {
    padding: 40px 0;
    display: grid;
    place-items: center;
  }
}
.page-header-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media screen and (min-width: 768px) {
  .page-header-content {
    align-items: center;
    flex-direction: row;
  }
}
@media screen and (min-width: 1440px) {
  .page-header-content {
    width: 1216px;
  }
}
.title-and-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 8px;
}
@media screen and (min-width: 520px) {
  .title-and-description {
    gap: 16px;
  }
}
.page-header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--siiibo-black);
}
@media screen and (min-width: 520px) {
  .page-header-title {
    font-size: 40px;
  }
}
.page-header-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--black-2);
}
@media screen and (min-width: 520px) {
  .page-header-description {
    font-size: 16px;
    line-height: 32px;
  }
}
.page-header-image {
  width: 100%;
}
@media screen and (min-width: 520px) {
  .page-header-image {
    width: 320px;
    height: auto;
  }
}

/* -----------------------------------------------------------------
主要コンテンツ
----------------------------------------------------------------- */

.content {
  background-color: var(--white-smoke);
  padding: 0;
}
@media screen and (min-width: 1250px) {
  .content {
    padding: 30px 80px 30px 112px;
    display: flex;
    padding: 30px 28px;
    justify-content: center;
    gap: 10px;
  }
}

/* -----------------------------------------------------------------
ナビゲーション
----------------------------------------------------------------- */

.navigation {
  display: flex;
  flex-direction: column;
  width: 280px;
  padding: 10px 20px;
  gap: 22px;
}
.navigation-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray042);
}
.navigation-items {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 16px;
}
.navigation-item.-selected {
  opacity: 1;
  text-decoration: none;
}
.-selected .item-label {
  color: var(--gray042);
}
.item-label-icon {
  display: inline-grid;
  place-items: center;
  height: 16px;
  width: 20.72px;
}
.item-label-icon > img {
  width: 13.33px;
  height: 13.33px;
}
.item-label {
  font-size: 18px;
  font-weight: 700;
  align-items: center;
  display: flex;
  color: var(--steel-blue);
  gap: 12px;
}
.navigation-item {
  display: flex;
  align-items: center;
  color: var(--steel-blue);
  text-decoration: underline;
}
.navigation-item:not(.-selected):hover {
  opacity: 0.5;
  transition: 0.5s;
}

/* -----------------------------------------------------------------
ガイド記事
----------------------------------------------------------------- */

.article {
  background-color: var(--white);
  padding: 50px 20px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media screen and (min-width: 768px) {
  .article {
    padding: 32px 28px 50px;
  }
}
@media screen and (min-width: 960px) {
  .article {
    padding: 32px 72.5px 50px;
  }
}
@media screen and (min-width: 1250px) {
  .article {
    width: 793px;
  }
}

.article-header {
  width: 100%;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--light-grey);
}
@media screen and (min-width: 768px) {
  .article-header {
    grid-template-columns: 1fr 407px;
  }
}

.article-header .subtitle-and-title {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}
@media screen and (min-width: 768px) {
  .article-header .subtitle-and-title {
    gap: 8px;
  }
}
.article-header-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray060);
  align-self: stretch;
}
.article-header-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--siiibo-black);
  align-self: stretch;
}
@media screen and (min-width: 768px) {
  .article-header-title {
    font-size: 32px;
  }
}
.article-header-image {
  display: none;
}
@media screen and (min-width: 768px) {
  .article-header-image {
    display: block;
    width: 100%;
  }
}

/* -----------------------------------------------------------------
購入フロー
----------------------------------------------------------------- */

.flow-section {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  gap: 30px;
}
@media screen and (min-width: 520px) {
  .flow-section {
    margin-top: 82px;
    gap: 27px;
  }
}
.flow-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--siiibo-black);
  align-self: stretch;
  text-align: center;
  letter-spacing: 0.29px;
}
@media screen and (min-width: 520px) {
  .flow-title {
    font-size: 24px;
  }
}
.flow-image {
  display: block;
  width: 100%;
}
.flow-annotation {
  display: flex;
  justify-content: flex-end;
  font-size: 10px;
  font-weight: 400;
  line-height: 24px;
  color: var(--gray060);
}
@media screen and (min-width: 520px) {
  .flow-annotation {
    font-size: 14px;
    margin-top: 10px;
  }
}

/* -----------------------------------------------------------------
markdown
----------------------------------------------------------------- */

.article-markdown {
  display: flex;
  flex-direction: column;
  counter-reset: count;
  gap: 16px;
}
.article-markdown p:not([class]) {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--black-2);
  align-self: stretch;
}
@media screen and (min-width: 520px) {
  .article-markdown p:not([class]) {
    font-size: 16px;
    line-height: 32px;
  }
}
.article-markdown p img:not([class]) {
  display: block;
  width: 100%;
  border-radius: 5px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
  margin-bottom: 8px;
}
.article-markdown h2:not([class]) {
  display: flex;
  align-items: center;
  margin-top: 82px;
  font-size: 16px;
  gap: 8px;
}
@media screen and (min-width: 520px) {
  .article-markdown h2:not([class]) {
    font-size: 20px;
    gap: 16px;
  }
}
.article-markdown h2:not([class])::before {
  counter-increment: count;
  content: counter(count);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background-color: var(--siiibo-blue056);
  color: var(--white);
  height: 24px;
  width: 24px;
  font-size: 12px;
}
@media screen and (min-width: 520px) {
  .article-markdown h2:not([class])::before {
    height: 40px;
    width: 40px;
    font-size: 16px;
  }
}

/* -----------------------------------------------------------------
message
----------------------------------------------------------------- */

.message {
  background-color: var(--lavender);
  margin-top: 20px;
  margin-bottom: 30px;
  border-radius: 4px;
  padding: 11px 15px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  border: 1px solid var(--siiibo-blue056);
  gap: 10px;
}
.message .message-header {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 8px;
}
.message .message-header-icon {
  width: 24px;
  height: 24px;
}
.message .message-header-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--siiibo-blue056);
  flex: 1;
  margin: 0;
}
.message .message-content {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--black-2);
  flex: 1;
  margin: 0;
}
@media screen and (min-width: 520px) {
  .message .message-content {
    font-size: 15px;
    line-height: 24px;
  }
}
.message .message-content a {
  font-weight: 700;
  color: #3392d1;
  text-decoration: underline;
}
.caution {
  background-color: var(--old-lace);
  border: 1px solid var(--sandy-brown);
}
.caution .message-header-text {
  color: var(--sandy-brown);
}

/* -----------------------------------------------------------------
article footer
----------------------------------------------------------------- */

.article-footer {
  display: grid;
  place-items: center;
  margin-top: 42px;
}
.footer-button {
  font-weight: bold;
  text-decoration: underline;
  font-size: 14px;
  color: var(--steel-blue-2);
  transition: 0.2s;
}
.footer-button:hover {
  opacity: 0.5;
}
