@charset "UTF-8";

body {
  display: flex;
  flex-direction: row;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  color: #333;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

/* body {
  font-family: sans-serif;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  background-color: #1E88E5;
  background: linear-gradient(#1E88E5, rgb(30, 30, 177));
  overflow-x: hidden;
} 
*/

body.scroll-block {
  overflow-y: hidden;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: #333;
  text-decoration: none;
}

/* a:hover {
  opacity: .8;
  text-decoration: underline;
} */

p {
  margin: 0;
}

p+p {
  margin-top: 1em;
}

figure {
  margin: 0;
}

img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

video {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

form {
  margin: 0;
  padding: 0;
}

/* ======================
 * === ヘッダー ===
 * ======================*/

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  /* padding: 24px 48px; */
  padding: 0 20px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1001;

  >a {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

#headerLogo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: .5em;
  transition: .2s ease-out;
}

#headerLogo:hover {
  opacity: 0.8;
  cursor: pointer;
}

header h1 {
  display: flex;
  flex-direction: column;
  color: #fff;
}

header h1 span:first-child {
  font-size: 14px;
}

header h1 span:last-child {
  font-size: 26px;
}

.global-nav ul {
  display: flex;
  list-style: none;
  gap: 16px;
  align-items: center;
}

.global-nav ul li:nth-last-child(1) {
  padding: 12px;
  border-radius: 6px;
  background-color: #26a69a;
  transition: .3s;
}

.global-nav ul li:nth-last-child(2) {
  padding: 12px;
  border-radius: 6px;
  background-color: #26a69a;
  transition: .3s;
}

.global-nav ul li:nth-last-child(2):hover {
  background-color: #90CAF9;
}

.global-nav ul li:nth-last-child(1):hover {
  background-color: #90CAF9;
}

.global-nav ul li.current {
  position: relative;
}

.global-nav ul li.current a::after {
  transform: translateX(-50%) scaleX(1);
}

.global-nav a {
  color: #fff;
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  transition: transform 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 260ms cubic-bezier(0.2, 1, 0.3, 1);
  opacity: 0.95;
}

.global-nav a:hover,
.global-nav a:focus {
  transform: translateY(-3px);
}

.global-nav a:hover::after,
.global-nav a:focus::after {
  transform: translateX(-50%) scaleX(1);
}

.global-nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

/* レスポンシブ用のメニュー */
.resp-nav {
  display: none;
}

.hamburger {
  display: none;
  /* position: fixed; */
  position: relative;
  /* top: 10px;
  right: 20px;
  z-index: 100; */
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger__line {
  position: absolute;
  left: 11px;
  width: 26px;
  height: 2px;
  background-color: #fff;
  transition: all .4s;
}

.hamburger__line:nth-of-type(1) {
  top: 14px;
}

.hamburger__line:nth-of-type(2) {
  top: 23px;
}

.hamburger__line:nth-of-type(3) {
  top: 31px;
}

/* メニューオープン時 */
.hamburger.active .hamburger__line:nth-of-type(1) {
  transform: translateY(9px) rotate(-45deg);
}

.hamburger.active .hamburger__line:nth-of-type(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
}

.nav {
  position: fixed;
  top: 60px;
  right: 0;
  width: 200px;
  height: auto;
  background-color: #fff;
  border-radius: 2em 0 0 2em;
  border-bottom: 4px solid #219388;
  border-left: 4px solid #219388;
  border-top: 4px solid #219388;
  box-shadow: 4px 0 4px rgba(0, 0, 0, .1);
  transform: translateX(100%);
  transition: transform .4s;
  z-index: 90;
}

.nav.active {
  transform: translateX(0);
}

.nav__list {
  margin: 0;
  padding: 20px 5px;
  list-style: none;
  text-align: center;
}

.nav__item:nth-last-child(1) {
  box-sizing: border-box;
  background-color: #26a69a;
  border-radius: 24px 0 0 24px;
  font-weight: 600;
  margin-bottom: .5em;

  >a {
    color: #fff;
  }
}

.nav__item>a {
  font-weight: 600;
}

.nav__item {
  padding: 16px 5px;
  margin-bottom: 4px;
  border-radius: 24px 0 0 24px;
  transition: .3s;
}

.nav__item:hover {
  background-color: #90CAF9;

  a {
    color: #fff;
  }
}

.nav__item:nth-last-child(2),
.nav__item:nth-last-child(1) {
  box-sizing: border-box;
  background-color: #26a69a;
  border-radius: 24px 0 0 24px;
  font-weight: 600;

  >a {
    color: #fff;
  }
}

.nav__item:nth-last-child(2):hover,
.nav__item:nth-last-child(1):hover {
  background-color: #90CAF9;

  a {
    color: #fff;
  }
}

.nav__item.current {
  background-color: #1565C0 !important;
}

.nav__item.current a {
  color: #fff;
}

.nav__link {
  display: block;
  padding: 15px 0;
  color: #333;
  text-decoration: none;
}

@media (max-width: 1050px) {
  .hamburger {
    display: block;
  }

  .global-nav {
    display: none;
  }

  .resp-nav {
    display: block;
  }

  header {
    padding: 0 1em 0 1em;

    a>h1 {
      display: none;
    }
  }

  header h1 span:first-child {
    font-size: 12px;
  }

  header h1 span:last-child {
    font-size: 20px;
  }
}

/* =========================
 * === レスポンシブ対応 ===
 * =========================*/

/* タブレット以下 (1024px以下) - 縦分割レイアウト */
@media screen and (max-width: 1024px) {
  body {
    flex-direction: column;
    overflow: hidden;
  }


  /* 上部75%: 詳細説明エリア */
  .description-area {
    order: 1;
    width: 100%;
    height: 75%;
    overflow-y: auto;
    border-bottom: 2px solid #000;
    padding-top: 60px;
  }

  /* 下部25%: 作品一覧エリア */
  .content {
    order: 2;
    width: 100%;
    height: 25%;
    padding-top: 0 !important;
    border-right: none !important;
    border-top: 2px solid #000;
    overflow: hidden !important;
  }

  .content-area {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    white-space: nowrap;
  }

  .content-area h2 {
    display: none;
  }

  /* 横スクロール用のカードレイアウト */
  .card {
    display: flex;
    flex-direction: row;
    gap: 10px;
    height: 100%;
    align-items: center;
  }

  .card-item {
    flex: 0 0 auto;
    width: 150px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    white-space: normal;
  }

  .card-item img {
    width: 100%;
    /* height: 70%; */
    height: auto;
    object-fit: cover;
  }

  .card-item h3 {
    font-size: 0.85rem;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  /* カスタムスクロールバーを横向きに */
  .custom-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #ccc;
    z-index: 10;
  }

  .custom-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 50px;
    background: #888;
    opacity: 0;
  }

  .custom-bar:hover {
    opacity: 0;
  }


}

/* スマートフォン横向き (768px以下) */
@media screen and (max-width: 768px) {
  .content-area {
    padding: 8px;
  }

  .card-item {
    width: 120px;
    height: 90%;
  }

  .card-item h3 {
    font-size: 0.75rem;
  }

  .description-area {
    padding: 15px;
    padding-top: 10px;
  }
}

/* スマートフォン縦向き (480px以下) */
@media screen and (max-width: 480px) {
  .description-area {
    height: 70%;
    padding: 10px;
    padding-top: 5px;
  }

  .content {
    height: 25%;
  }

  .content-area {
    padding: 6px;
  }

  .card {
    gap: 8px;
  }

  .card-item {
    width: 100px;
    height: 90%;
    padding: 6px;
  }

  .card-item h3 {
    font-size: 0.7rem;
  }
}
