/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #fff;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* ==========================================================================
  初期設定
   ========================================================================== */
* {
  position: relative;
}

p {
  padding: 0;
}

img {
  height: auto;
  margin: 0 auto;
  width: 100%;
}

.none {
  display: none;
}

.font-bold {
  font-weight: bold;
}

/* ==========================================================================
  スマートフォン
   ========================================================================== */

body {
  background: url(/img/sp/bg.webp) center top no-repeat #000;
  background-size: 100% auto;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
  width: 100%;
}

#wrapper {
  margin: 0 auto;
  max-width: 1190px;
  width: 100%;
}

.logo {
  z-index: 100;
  cursor: pointer;
  width: 120px;
}

h1 {
  margin: 0 0 0 12px;
}

.header {
  background: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  position: fixed;
  width: 100%;
  z-index: 9999;
}

/* 開閉メニューのスタイル */
.button {
  background: transparent;
  border: none;
  cursor: pointer;
  height: 24px;
  padding: 0;
  position: relative;
  right: 16px;
  width: 36px;
  z-index: 999;
}

.button-bar {
  background: #fff;
  content: "";
  display: block;
  height: 1px;
  position: static;
  width: 100%;
}

.button-bar::before,
.button-bar::after {
  display: block;
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background: #fff;
  transition: 0.3s ease;
}

.button-bar::before {
  top: 0;
}

.button-bar::after {
  bottom: 0;
}

.button.is-active .button-bar {
  height: 0;
}

/* ボタンをクリックしたときにバツに変える */
.button.is-active .button-bar::before {
  opacity: 1;
  top: 50%;
  transform: rotate(225deg) translateY(-50%);
  transition: 0.3s ease;
}

.button.is-active .button-bar::after {
  opacity: 1;
  top: 50%;
  transform: rotate(-225deg) translateY(-50%);
  transition: 0.3s ease;
}

.menu {
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: 0.3s ease;
  visibility: hidden;
  z-index: 10;
}

.menu.is-active {
  height: 100vh;
  opacity: 1;
  transition: 0.5s ease;
  visibility: visible;
  width: 100%;
}

.overlay {
  background: #000;
  height: 100vh;
  inset: 0;
  position: fixed;
  width: 100vw;
  z-index: 20;
}

.list {
  align-items: top;
  display: flex;
  gap: 24px;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  list-style-type: none;
  padding: 70px 40px 0 40px;
  position: relative;
  z-index: 100;
}

.item a {
  text-decoration: none;
}

/* メイン */
#main {
  margin: 0 auto;
  padding: 54px 0 0;
}

section {
  padding: 0 30px;
}

/* sectionの間のマージン */
section + section {
  margin-top: 80px;
}

#section-mv {
  padding: 0;
  position: relative;
}

#nav-pc {
  display: none;
}

#section-banner {
  margin-top: 20px;
}

.banner-sp {
  width: 80%;
}

.text-theater {
  padding-bottom: 110px;
  text-align: center;
}

/* swiper */
.swiper {
  margin: 10px auto 0;
  padding: 0 0 14px !important;
  --swiper-pagination-bullet-horizontal-gap: 8px;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: -16px !important;
  position: relative;
}

.swiper .swiper-pagination-bullet {
  background: #fff;
  height: 14px;
  opacity: 1;
  width: 14px;
}

.swiper .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: #f0fe31;
}

/* 監督コメントエリア */
.comment-area {
  margin: 20px auto;
}

.comment-img-area {
  padding: 0 30px;
}

.comment-text-area {
  padding: 30px 0 0;
}

#comment {
  padding: 0;
  transition: all .5s ease-out;
}

#comment.closed {
  display: -webkit-box;
  line-clamp: 12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 12;
}

#comment.opened {
  display: block;
  line-clamp: none;
  -webkit-line-clamp: none;
}

.comment-more-btn-area {
  margin: 20px auto 0;
}

.btn-more,
.btn-close {
  cursor: pointer;
  width: 240px;
}

/* キャスト&スタッフエリア */
#section-cast-staff {
  margin-bottom: 180px;
}

.text-cast-staff {
  margin: 40px auto;
  text-align: center;
}

#profile {
  margin: 0 auto;
  padding: 0;
  text-align: left;
  transition: all .3s ease-out;
}

#profile.opened {
  margin: 4px auto 10px;
}

.profile-more-btn-area {
  margin: 4px auto 12px;
}

.dl-cast-staff {
  display: table;
  margin: 0 auto;
  width: 90%;
}

.dl-cast-staff dt {
  display: table-cell;
  text-align: right;
  text-wrap: nowrap;
  width: 33%;
}

.dl-cast-staff dd {
  display: table-cell;
  text-align: left;
  width: 67%;
}

/* トップへ戻るボタン */
#btn-to-top {
  display: none;
  position: fixed;
  right: 10px;
  width: 18px;
  z-index: 10;
}

/* フッター */
footer {
  font-size: 14px;
  padding: 8px 0;
  text-align: center;
}

/* ==========================================================================
  タブレットとPC
   ========================================================================== */
@media screen and (min-width: 768px) {
  /*　画面サイズが768pxから1024pxまではここを読み込む　*/
  body {
    background: url(/img/pc/bg.webp) center top no-repeat #000;
    font-size: 20px;
  }

  .logo {
    width: 180px;
  }

  .header {
    position: relative;
  }

  .button {
    display: none;
  }

  /* メイン */
  #main {
    padding: 0;
  }

  /* sectionの間のマージン */
  section + section {
    margin-top: 220px;
  }
  
  #nav-pc {
    display: flex;
    justify-content: space-between;
    right: 100px;
    right: 7%;
    position: absolute;
    top: 0;
    width: 200px;
    z-index: 1;
  }
  
  .item-pc {
    padding-top: 0;
    transition: all .3s;
    width: 30px;
  }
  
  .item-pc:hover {
    padding-top: 16px;
  }

  #section-banner {
    margin-top: 100px;
  }

  .banner-pc {
    width: 90%;
  }

  h2 {
    padding: 0;
  }

  .inner-text {
    padding: 20px 15%;
  }

  .text-theater {
    padding-bottom: 180px;
  }

  /* 監督コメントエリア */
  #section-director-comment {
    margin-top: 300px;
  }
  .comment-area {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    margin: 60px auto 0;
  }

  .comment-img-area {
    padding: 0 0 0 40px;
    width: 310px;
  }
  
  .comment-text-area {
    padding: 0;
    width: 640px;
  }
  
  #comment.closed {
    line-clamp: 8;
    -webkit-line-clamp: 8;
  }
  
  #profile {
    width: 800px;
  }
  
  .dl-cast-staff {
    width: 70%;
  }
  
  /* トップへ戻るボタン */
  #btn-to-top {
    right: 12px;
    width: 22px;
  }
}



/* ==========================================================================
  PC
   ========================================================================== */
@media screen and (min-width: 1024px) {
  /*　画面サイズが1024pxからはここを読み込む　*/
  /* 初期設定 */
  a:hover {
    opacity: 0.7;
  }
}
