/* css reset */

@charset "utf-8";
html, body, div, span, iframe,
h1, h2, h3, h4, h5, h6, p, img, a,
ol, ul, li,
form, label,
table, tbody, tfoot, thead, tr, th, td,
article,footer, header, menu, nav, section {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    list-style: none;
    text-decoration: none;
    vertical-align: baseline;
    }

.main-layout {
  flex: 1;
  padding: 1.5em;
  margin-left: 50px;
  transition: margin-left 0.3s ease;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 100px; /* ← fixedなheaderの高さを埋める */
}

.sidebar {
  position: fixed;
  top: 60px; /* ヘッダーの高さに合わせる */
  left: 0;
  width: 220px;
  height: calc(100% - 60px); /* ビューポートの高さからヘッダー分を引く */
  background: #f5f5f5;
  padding: 1em;
  border-right: 1px solid #ccc;
  font-size: 14px;
  overflow-y: auto; /* スクロール可能に */
  z-index: 2; /* ヘッダーより手前に出す場合は調整 */
}

.content {
  margin-left: 50px; /* サイドバーの幅と一致させる！ */
  padding: 1em;
}

.sidebar ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列 */
  gap: 0.5em;
  padding: 0;
  list-style: none;
}

.sidebar h2 {
  margin-top: 0;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li {
  margin-bottom: 0.5em;
}

.content {
  flex-grow: 1;
}

.movie-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
  font-size: 14px;
}

.movie-table th,
.movie-table td {
  border: 1px solid #ccc;
  padding: 0.5em;
  vertical-align: top;
}

.movie-table th {
  background-color: #eee;
  text-align: left;
}

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

/* role-idの修飾 */

.role{
    font-size: 12px;
    font-weight: bold;
    display: block;
    text-align: center;
    margin-top: 4px;
    border-radius: 5px;
}

.role1{ /*出演*/
    background-color: #F5DEB3;
    width: 75px;
}
.role2{ /*ナレーション*/
    background-color: #87CEFA;
    width: 100px;
}
.role3{ /*監督*/
    background-color: #9DC183;
    width: 75px;
}
.role4{ /*主演*/
    background-color: #FFD700;
    width: 75px;
}
.role5{ /*声の出演*/
    background-color: #FF69B4;
    width: 100px;
}
.role6{ /*客演*/
    background-color: #A9A9A9;
    width: 75px;
}

/* サブスク */
.sub-label{
    font-size: 12px;
    font-weight: bold;
    color: white;
    display: block;
    text-align: center;
    margin-top: 4px;
    border-radius: 5px;
    width: 75px;
    color: white;
}

.prime { background-color: #FF9900; 
    width: 100px;
}     /* Amazon Prime */
.flix  { background-color: #E50914; 
    width: 75px;
}     /* Netflix */
.hulu  { background-color: #3DBB3D; 
    width: 75px;
}     /* Hulu */
.next  { background-color: #0A82DF; 
    width: 75px;
}     /* U-NEXT */
.main  { background-color: #999; 
    width: 75px;
}        /* subscription 本体用 */

/* メディア */
.media-label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  margin: 2px 2px 2px 0;
  border-radius: 5px;
  color: white;
  width: 50px;
  text-align: center;
}

/* 個別色 */
.blu { background-color: #5A68B0; }
.dvd { background-color: #6C6C6C; }
.vhs { background-color: #8B4513; }
.ld  { background-color: #B8860B; }


/* header */

header {
    width: 100%;
    height: 100px;
    background-color: #4c586f;
    position: fixed;
    z-index: 1;
    }

.header-logo h1{
    font-family:"G2サンセリフ-B";
    float:left;
    padding-right: 15px;
    font-size: 36px;
    }

.header-logo a {
    font-size: 30px;
    color: #ffffff;
    line-height: 60px;
    }

.header-list ul li {
    list-style: none;
    float: left;
    padding: 20px 10px;
    }

.header-list ul li a{
    display: block;
    text-align: center;
    font-weight: bold;
    color: black;
    background-color: white;
    border-radius: 30px;
    width: 75px;
    }

/* ▼メニューバーの装飾 */

ul.flex-header {
    margin: 0px;               /* メニューバー外側の余白(ゼロ) */
    padding: 0px 0px 0px 0px; /* メニューバー内側の余白(左に15px) */
/*    background-color: #eee;*/ /* バーの背景色 */
    }
 
/* ▼メインメニュー項目の装飾 */

ul.flex-header li {
    /* width: 125px;          メニュー項目の横幅(125px) */
    display: inline-block; /* ★横並びに配置する */
    list-style-type: none; /* ★リストの先頭記号を消す */
    position: relative;    /* ★サブメニュー表示の基準位置にする */
    }

ul.flex-header a {
    /* background-color: #cc0000; メニュー項目の背景色(濃い赤色) */
    color: black;              /* メニュー項目の文字色(白色) */
    line-height: 15px;         /* メニュー項目のリンクの高さ(40px) */
    text-align: center;        /* メインメニューの文字列の配置(中央寄せ) */
    text-decoration: none;     /* メニュー項目の装飾(下線を消す) */
    font-weight: bold;         /* 太字にする */
    display: block;            /* ★項目内全域をリンク可能にする */
    font-size: 12px;
    }

ul.flex-header a:hover {
    background-color:  #ffdddd; /* メニュー項目にマウスが載ったときの背景色(淡いピンク) */
    color:#d3d3d3;            /* メニュー項目にマウスが載ったときの文字色(濃い赤色) */
    }

/* 全体の共通スタイル */
.filter-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 1em 0;
}

/* “すべて表示”だけ単独スタイル */
.filter-menu.full li {
  margin-bottom: 0.5em;
}

/* 年代リスト：2列グリッド */
.filter-menu.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 0.5em;
  row-gap: 0.2em;
  padding: 0;
  list-style: none;
}

/* 「すべて表示」だけ2列分使う */
.filter-menu.grid li.all {
  grid-column: span 2;
  text-align: center;
}

.filter-menu.grid a {
  display: block;
  text-align: center;
  padding: 3px 4px;
  background-color: #e0e0e0;
  border-radius: 4px;
  font-size: 12px;
  color: #333;
}

/* 各リンクの共通装飾 */
.sidebar a {
  display: block;
  text-align: center;
  padding: 4px 6px;
  background-color: #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
}

.making{
  font-size: 10px;
}

/* role-idの修飾 */

.subtitle-f,
.movie-title,
.subtitle-b {
  display: block;
  margin-bottom: 2px;  /* 任意：間隔 */
}

.movie-link {
  display: block;
}

.official,
.distribution,
.other{
  font-size: 12px;
  font-weight: bold;
  color: Black;
  display: block;
  text-align: center;
  margin-top: 4px;
  border-radius: 5px;
  width: 100px;
  color: white;
  background-color: black;

}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
}

footer p {
    text-align: center;
}
