@charset "utf-8";

/* =================================================
  ハイメと臓器姫 公式サイト CSS
  -------------------------------------------------
  整理方針
  - Bootstrap CSSは読み込まない。
  - このページで実際に必要だったBootstrap由来の初期化だけを下記に移植。
  - 未使用だったPV、pixivバナー、container_1、上へ戻るボタン用CSSは削除。
  - ヘッダー演出はjQueryアニメーションではなくCSS transitionで実装。
================================================= */

/* =================================================
  1. Bootstrapから移植した最小リセット
  -------------------------------------------------
  Bootstrapを外すと、bodyの余白、box-sizing、画像の縦位置などが
  ブラウザ初期値に戻るため、このサイトに必要な分だけを定義します。
================================================= */

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "游ゴシック", YuGothic,
    "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN",
    "メイリオ", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #000;
}

main,
header,
footer,
section {
  display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

/* =================================================
  2. 共通パーツ
================================================= */

body {
  /* PC時にSTORY背景として見える共通背景。固定背景はPC幅のみで有効化します。 */
  background-image: url(../images/bg_05.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hover-fade {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.hover-fade:hover,
.hover-fade:focus-visible {
  opacity: 0.7;
}

/* 画像置換見出し用。文字は残しつつ、画面上では背景画像を表示します。 */
.section-title {
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}

/* =================================================
  3. ヘッダー
  -------------------------------------------------
  - .site-header__characters: キャラクター背景
  - .site-header__yellow-bg: PC幅で右側に黄色背景を継ぎ足す装飾
  - .site-header__title: ロゴ画像
================================================= */

.site-header {
  position: relative;
  height: 260px;
  overflow: hidden;
  background-image: url(../images/bg_01.jpg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.site-header__characters {
  position: absolute;
  inset: 0;
  background-image: url(../images/bg_02.png);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.site-header__yellow-bg {
  display: none;
}

.site-header__title {
  position: absolute;
  top: 0;
  right: -110px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background-image: url(../images/logo.png);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
}

/* JavaScript有効時だけ、読み込み完了まで演出用の初期位置に置きます。 */
.js .site-header__characters {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.js .site-header__title {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s,
    transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s;
}

.js .site-header.is-loaded .site-header__characters,
.js .site-header.is-loaded .site-header__title {
  opacity: 1;
  transform: translate(0, 0);
}

/* =================================================
  4. STORY / あらすじ
================================================= */

.story {
  padding: 60px 10px 50px;
  background-image: url(../images/bg_05.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.section-title--story {
  height: 50px;
  margin-bottom: 35px;
  background-image: url(../images/h2_01.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 100%;
}

.story__lead,
.story__summary {
  text-align: center;
}

.story__lead img,
.story__summary img {
  width: 100%;
  max-width: 547px;
}

.story__lead {
  margin-bottom: 20px;
}

.story__summary {
  margin: 15px 0 10px;
}

.story-sample {
  margin-right: -5px;
  text-align: center;
  font-size: 0; /* inline-block間の隙間をHTMLコメントなしで消すため */
}

.story-sample__item {
  display: inline-block;
  width: 50%;
  max-width: 187px;
  padding: 0 5px 5px 0;
  vertical-align: top;
}

.story-sample__item img {
  width: 100%;
}

.story__image {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =================================================
  5. CHARACTER / キャラクター紹介
================================================= */

.character {
  padding: 20px 10px 30px;
  text-align: center;
  background-color: #f5dd45;
}

.character__image {
  width: 100%;
  max-width: 750px;
}

.character__image--first {
  max-width: 732px;
}

/* =================================================
  6. OTHER / 関連リンク
================================================= */

.links {
  text-align: center;
  background-color: #000;
}

.links__amazon {
  display: inline-block;
}

.links__amazon img {
  width: 100%;
  max-width: 900px;
}

.links__list {
  padding-top: 10px;
}

.links__item img {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

/* =================================================
  7. フッター
================================================= */

.site-footer {
  padding: 50px 0 1em;
  text-align: center;
  background-color: #000;
}

.site-footer__notice {
  margin-top: 3em;
  padding: 0 1em;
  color: #fff;
  font-size: 8pt;
}

/* =================================================
  8. タブレット以上
================================================= */

@media screen and (min-width: 768px) {
  .site-header {
    height: 500px;
  }

  .site-header__title {
    right: -182px;
  }

  .section-title--story {
    width: 100%;
    height: 80px;
    background-size: auto;
  }

  .character {
    padding: 20px 20px 60px;
  }

  .links__list {
    padding-top: 40px;
  }

  .links__item {
    display: inline-block;
    width: 200px;
    margin: 0 15px;
  }
}

/* =================================================
  9. PC幅
================================================= */

@media screen and (min-width: 1025px) {
  body {
    background-attachment: fixed;
  }

  .site-header__characters {
    background-size: auto;
  }

  .site-header__yellow-bg {
    position: absolute;
    left: 50%;
    display: block;
    width: 100%;
    height: 100%;
    margin-left: 717px;
    background-image: url(../images/bg_02_sub.jpg);
  }

  .site-header__title {
    right: auto;
    min-width: 1250px;
  }

  .story {
    background: none;
  }

  .story-sample {
    width: 752px;
    margin: 0 auto;
  }

  .story-sample__item {
    width: auto;
    max-width: none;
    box-sizing: content-box;
  }

  .story-sample__item img {
    width: auto;
  }

  .character {
    padding: 20px 0 60px;
  }

  .character__image {
    display: block;
    width: auto;
    max-width: none;
    margin: auto;
  }

  .character__image--indent {
    padding-left: 100px;
  }
}

/* =================================================
  10. アニメーション軽減設定
  -------------------------------------------------
  OS側で「動きを減らす」を選んでいる場合、ヘッダー演出を即時表示にします。
================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
