/*
Theme Name: My Custom Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://yourwebsite.com/
Description: カスタムテーマ
Version: 1.0
*/

/* styles.css */
@import 'reset.css'; /* リセットCSSの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');
/* 基本スタイル */
html, body {
  font-family: "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  color: #f1f1f1;
  background: #121212;
  line-height: 1.6;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
img.lazy {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
img.lazy.loaded {
    opacity: 1;
}
/*
================================================================================================================
header
================================================================================================================
*/

header {
    background-image: linear-gradient(45deg, #4678FA, #FF0080);
    padding: 4px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.nm-title-inner h1 img {
    height: 50px;
    display: block;
    margin: 0 auto;
}

ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: contents;
}

.menu__single {
    position: relative;
}

.menu__single > a {
    color: #fff;
    padding: 10px 20px;
     font-weight: bold;
    text-decoration: none;
    display: block;
    text-align: center;
    white-space: nowrap;
    transition: background 0.3s;
}

.menu__single > a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.menu__second-level {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-image: linear-gradient(45deg, #3658C1, #C70067);
    list-style: none;
    margin: 0;
    padding: 0;
    width: 200%;
    z-index: 10;
}

.menu__second-level li a {
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
    white-space: nowrap;
}

.menu__second-level li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.menu__single:hover .menu__second-level {
    display: block;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr;
    }

    .menu__single > a {
        width: 100%;
    }

    .menu__second-level {
        position: static;
        width: 100%;
    }
}

/*
================================================================================================================
WordPress タイトル部分
================================================================================================================
*/
.titlebar {
    width: 100%; /* 親要素の幅に合わせて100%に */
    font-size: 3rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: #0ff;
    letter-spacing: 4px;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #00f;
}
/*
================================================================================================================
container
================================================================================================================
*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  flex: 1;  /* コンテンツ部分を縦いっぱいに広げる */
}

.section.frame {
  width: 100%;
  background: #202020;
  text-align: left !important;
  font-size: 12px !important;
  padding: 20px;
}
.section.frame + .section.frame {
  margin-top: 40px !important;
}
.section .cat-inner {
  background: #000;
  padding: 20px;
  margin: 10px auto 20px;
}
.section .cat-inner .info-title {
  font-size: 18px;
}
.section .cat-inner ul {
  margin: 20px auto 10px;
  padding: 2px 4px;
  font-size: 16px;
}
.section .cat-inner li {
  list-style-type: disc;
  list-style-position: inside;
}
.section .cat-inner p {
  font-size: 12px;
  margin: 10px 0;
  text-align: left;
}
.lms-page .section .cat-inner p.lms-concept-copy {
  font-size: clamp(1.6rem, 4.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin: 8px 0 16px;
  color: #fff;
}
.lms-feature-dummy {
  display: block;
  width: 100%;
  max-width: 960px;
  margin-top: 12px;
  border: 1px solid #2f4a74;
}
.lms-feature-copy {
  font-size: 16px !important;
  line-height: 1.7;
  margin: 10px 0;
}
.lms-page .cat-inner .info-title + .lms-feature-copy {
  margin-top: 0;
  padding-top: 14px;
}
.lms-page .cat-inner > .lms-feature-copy + .skin-img,
.lms-page .cat-inner > .lms-feature-copy + .lms-autodownload-video {
  margin-top: 16px;
}
.lms-page .cat-inner > .skin-img + .lms-feature-copy,
.lms-page .cat-inner > .lms-autodownload-video + .lms-feature-copy {
  margin-top: 24px;
}
.lms-page .cat-inner > .skin-img + .skin-img {
  margin-top: 20px;
}
.lms-page .lms-audio-customize code {
  overflow-wrap: anywhere;
  color: #d8d8d8;
  font-family: Consolas, "Courier New", monospace;
}
.lms-page .lms-audio-notice {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 3px solid #666;
  background: #181818;
}
.lms-page .lms-audio-notice strong {
  color: #eee;
  font-size: 15px;
}
.lms-page .lms-audio-notice p {
  margin-bottom: 0;
  font-size: 14px !important;
}
.lms-page .lms-audio-heading {
  display: block;
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #444;
  color: #e8e8e8;
  font-size: 16px;
}
.lms-page .lms-audio-pack-grid,
.lms-page .lms-audio-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.lms-page .lms-audio-pack,
.lms-page .lms-audio-details > section {
  min-width: 0;
  padding: 16px;
  border: 1px solid #383838;
  background: #171717;
}
.lms-page .lms-audio-pack__title {
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #333;
  color: #eee;
  font-size: 16px;
  font-weight: 700;
}
.lms-page .lms-audio-path {
  margin: 0 0 14px !important;
  padding: 10px 12px;
  border: 1px solid #333;
  background: #111;
  font-size: 13px !important;
  line-height: 1.6;
}
.lms-page .lms-audio-file-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
}
.lms-page .lms-audio-file-list--se {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lms-page .lms-audio-file-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-bottom: 1px solid #303030;
  background: #1c1c1c;
  list-style: none;
}
.lms-page .lms-audio-file-list li span {
  color: #b9c2d0;
  font-size: 12px;
}
.lms-page .lms-folder-tree {
  margin: 18px 0 24px;
  overflow-x: auto;
  border: 1px solid #383838;
  background: #121212;
}
.lms-page .lms-folder-tree pre {
  margin: 0;
  padding: 16px;
  color: #ddd;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
}
.lms-page .lms-audio-details .lms-audio-heading {
  margin-top: 0;
}
.lms-page .lms-audio-details ul,
.lms-page .lms-random-guide ul {
  margin: 10px 0 0;
  padding: 0;
}
.lms-page .lms-audio-details li,
.lms-page .lms-random-guide li {
  margin-top: 8px;
  line-height: 1.7;
}
.lms-page .lms-audio-details p {
  font-size: 14px !important;
  line-height: 1.75;
}
.lms-page .lms-audio-steps {
  display: grid;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  counter-reset: none;
}
.lms-page .lms-audio-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #303030;
  background: #191919;
  list-style: none;
}
.lms-page .lms-audio-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #555;
  border-radius: 2px;
  color: #ddd;
  font-weight: 700;
}
.lms-page .lms-audio-steps p {
  margin: 3px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.65;
}
.lms-page .lms-random-guide {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #383838;
  border-left: 3px solid #666;
  background: #171717;
}
.lms-page .lms-random-guide__title {
  padding-bottom: 7px;
  border-bottom: 1px solid #333;
  color: #eee;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
@media (max-width: 760px) {
  .lms-page .lms-audio-pack-grid,
  .lms-page .lms-audio-details {
    grid-template-columns: 1fr;
  }
  .lms-page .lms-audio-file-list--se {
    grid-template-columns: 1fr;
  }
  .lms-page .lms-folder-tree pre {
    font-size: 11px;
  }
}
.lms-page .lms-autodownload-video {
  width: 100%;
  max-width: 1280px;
  height: auto;
}
.lms-page .lms-format-list {
  margin: 20px auto 10px;
  padding: 2px 4px;
}
.lms-page .lms-format-list li {
  list-style-position: inside;
  line-height: 1.75;
}
.lms-page .lms-format-list li + li {
  margin-top: 14px;
}
.lms-page .lms-format-list li > .skin-img {
  margin-top: 14px;
}
.lms-page .cat-inner li > .skin-img.lms-advanced-option-img {
  margin-top: 16px;
}
.lms-page .lms-format-list li > .skin-img.lms-estimated-img img {
  width: 100%;
  max-width: 520px;
  height: auto;
}
.lms-page .lms-format-list .lms-format-images {
  margin-top: 14px;
}
.lms-page .lms-inline-command {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid #2f4a74;
  background: #111827;
  color: #c7f8ff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
  line-height: 1.5;
}
.lms-page .lms-coming-soon {
  position: relative;
  border: 1px solid #2f4a74;
  background: linear-gradient(135deg, rgba(15, 28, 48, 0.95), rgba(34, 12, 42, 0.95));
  overflow: hidden;
}
.lms-page .lms-coming-soon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #50c8c8, #ff00c8);
}
.lms-page .lms-coming-soon__lead {
  margin: 8px 0 4px;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 8vw, 4rem) !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c7f8ff;
  text-shadow: 0 0 12px rgba(80, 200, 200, 0.55), 0 0 22px rgba(255, 0, 200, 0.3);
}
.lms-page .lms-coming-soon__sub {
  margin: 0;
  text-align: center;
  font-size: 14px !important;
  letter-spacing: 0.03em;
  color: #c9d8ef;
}
.frame__images {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.frame__images img,
.frame__images video {
  width: 100%;
}
.frame img,
.frame video {
  max-width: 960px; /* 任意の最大幅 */
  vertical-align: bottom;
}
.info-title {
  display: block;
  position: relative;
  font-size: 22px;
  background: #1b1b1b;
  text-align: left;
  color: #fff;
  border-left: 5px solid #50C8C8;
  padding: 8px 10px 8px 14px !important;
  margin: 0 auto 10px;
}
.info-title-sub {
  display: block;
  font-size: 16px;
  margin: 20px auto 10px;
  padding: 2px 4px;
  border-bottom: 2px solid #ff00C8;
}
.download-container {
  margin: 20px auto;
  padding: 2px 4px;
  font-size: 16px;
}
.download-container p {
  font-size: 16px !important;
}
a.download {
  color: #00FFFF;
}
a.download:hover {
  text-decoration: underline;
}
ul.no-style li {
  list-style: none !important;
  font-size: 12px;
}
/*
=============================
ニュース
=============================
*/
ul#info-news > li {
  display: flex;
  position: relative;
  min-height: 100px;
  padding: 20px 10px;
}
#info-menu {
  display: flex;
  list-style: none;
  padding: 0;
}
.content {
  display: none;
  min-height: 500px;
  padding: 20px;
}
.content.active {
  display: block;
}

.news-list {
  list-style-type: none;
  padding: 0;
}
.news-list li {
  padding: 4px 0;
  display: block;
}
.news-list li a {
  color: #00F0E1;
}
.news-list li a:hover {
  text-decoration: underline;
}
.news-main {
  list-style-type: none;
  border-bottom: 1px solid #ddd; /* 見出しごとの下線 */
  padding: 20px 10px;
}
.news-main li:first-child {
  color: #a08cf0;
  font-size: 13px;
  font-weight: bold;
  border-bottom: none;
}
.news-main li:nth-child(2) {
  position: relative;
  color: #00F0E1;
  font-size: 13px;
  font-weight: bold;
}
.news-main li:nth-child(2)::before {
  content: "\00BB"; /* Unicodeエスケープシーケンス */
}
.news-main li:nth-child(3) {
  font-size: 12px;
  margin-top: 5px;
}
.news-main li.select::after,
.news-main li.decide::after,
.news-main li.play::after,
.news-main li.result::after,
.news-main li.all::after {
  display: inline-block;
  padding: 1px 10px;
  margin-left: 10px;
  border-radius: 3px;
  color: white;
  font-weight: bold;
}
.news-main li.select::after {
  content: "SELECT";
  background-color: #4A90E2;
}
.news-main li.decide::after {
  content: "DECIDE";
  background-color: #E74C3C;
}
.news-main li.play::after {
  content: "PLAY";
  background-color: #2ECC71;
}
.news-main li.result::after {
  content: "RESULT";
  background-color: #8E44AD;
}
.news-main li.all::after {
  content: "ALL";
  background-color: #6B7280;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: #000;
  cursor: pointer;
  font-weight: bold;
  border-width: 1px;
  border-style: solid;
  border: 1px solid #5a5a5a;
  border-bottom: 1px solid #D81B60;
  margin-right: -1px;
  position: relative;
  z-index: 1;
}
.tab:last-child {
  margin-right: 0; /* 最後のタブだけは margin を適用しない */
}
.tab:hover {
  color: #EC2F74;
}
.tab.active {
  background: #000;
  color: #EC2F74;
  border: 1px solid #D81B60;
  border-bottom: 1px solid #323232;
  z-index: 2;
}
/*
================================================================================================================
skin-introduction
================================================================================================================
*/
.skin-introduction {
  margin-top: 30px;
}
.skin-introduction .table li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.skin-introduction .table a {
  color: #00FFFF;
}
.skin-introduction .table a:hover {
  text-decoration: underline;
}
.skin-introduction .table li span {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  text-align: center;
  border-right: 1px solid #ddd;
}
.skin-introduction.table li span:last-child {
  border-right: none;
}
.skin-introduction .header {
  font-weight: bold;
  background-color: #2C3E50;
}
.skin-introduction .header span {
  border-bottom: 2px solid #aaa;
}
/*
================================================================================================================
donate
================================================================================================================
*/
.donate .table {
  margin: 20px auto;
  width: 100%;
  border: 1px solid #ddd;
}
.donate .table li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.donate .table a {
  color: #00FFFF;
}
.donate .table a:hover {
  text-decoration: underline;
}
.donate .table li span {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  text-align: center;
  border-right: 1px solid #ddd;
}
.donate.table li span:last-child {
  border-right: none;
}
.donate .header {
  font-weight: bold;
  background-color: #2C3E50;
}
.donate .header span {
  border-bottom: 2px solid #aaa;
}
/*
================================================================================================================
skinoption
================================================================================================================
*/
.skinoption .table {
  margin: 20px auto;
  width: 100%;
  border: 1px solid #ddd;
}
.skinoption .table li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.skinoption .table a {
  color: #00FFFF;
}
.skinoption .table a:hover {
  text-decoration: underline;
}
.skinoption .table li span {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  text-align: center;
  border-right: 1px solid #ddd;
}
.skinoption.table li span:last-child {
  border-right: none;
}
.skinoption .header {
  font-weight: bold;
  background-color: #2C3E50;
}
.skinoption .header span {
  border-bottom: 2px solid #aaa;
}
/*
================================================================================================================
customize
================================================================================================================
*/
.customize .table-1 {
  margin: 20px 0 0;
  width: 100%;
  border: 1px solid #ddd;
}
.customize .table-1 li {
  display: grid;
  grid-template-columns: 1fr;
}
.customize .table-1 li span {
  padding: 8px;
  text-align: center;
  border-right: 1px solid #ddd;
}
.customize .table-1 li span:last-child {
  border-right: none;
}
.customize .header {
  font-weight: bold;
  background-color: red;
}
.customize .header span {
  border-bottom: 2px solid #aaa;
}
.customize .table-3 {
  margin: 0 0 20px;
  width: 100%;
  border: 1px solid #ddd;
}
.customize .table-3 li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.customize .table-3 li span {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  text-align: center;
  border-right: 1px solid #ddd;
}
.customize .table-3 li span:last-child {
  border-right: none;
}
.customize .header {
  font-weight: bold;
  background-color: #2C3E50;
}
.customize .header span {
  border-bottom: 2px solid #aaa;
}
/*
================================================================================================================
mp4
================================================================================================================
*/
.gallery-video {
  width: 100%;
  height: auto; /* 高さを自動調整 */
  display: block; /* 余白をなくす */
  padding-bottom: 50px;
}
.gallery-1 {
  padding-bottom: 50px;
  width: 200%;
  display: block; /* 余白をなくす */
}

.gallery-3 {
  padding-bottom: 50px;
  display: grid;
  grid-template-columns: 6fr 2fr; /* 左を広く、右を狭く */
  width: 100%;
  gap: 10px; /* 動画とサムネイルの間に50pxの間隔を追加 */
}

.gallery-4 {
  padding-bottom: 50px;
  display: grid;
  grid-template-columns: 8fr 2fr; /* 左を広く、右を狭く */
  width: 100%;
  gap: 10px; /* 動画とサムネイルの間に50pxの間隔を追加 */
}

/* 左側のYouTube動画エリア */
.preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* 16:9 の比率 */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#videoPlayer {
  width: 100%;
  height: 100%;
  border: none;
}

/* 右側のサムネイルスライダー */
.thumbnail-slider {
  display: flex;
  flex-direction: column;
  height: 100%; /* 左の動画と高さを揃える */
  overflow-y: auto; /* スクロール可能 */
}

/* サムネイル画像のスタイル */
.thumbnail-container {
  width: 100%; /* 親要素にフィット */
  aspect-ratio: 16 / 9; /* サムネイルを 16:9 に保つ */
  overflow: hidden;
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  opacity: 0.5; /* すべてのサムネイルを暗くする */
}

.thumbnail.active {
  opacity: 1; /* 再生中の動画のサムネイルを明るくする */
}
h3 {
  font-size: 1.4em;
  font-weight: bold;
  color: #fff;
  padding-bottom: 5px;
  border-bottom: 2px solid #007BFF; /* 青い線を追加 */
}
/*
================================================================================================================
ログイン画面
================================================================================================================
*/
/* Simple WP Membership - Custom Login CSS (Dark Theme) */
.swpm-login-form,
.swpm-login-widget-form {
    max-width: 360px;
    margin: 20px auto;
    padding: 30px;
    background-color: #2b2b2b;
    border: 2px solid #3d3d3d;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.swpm-login-form h2,
.swpm-login-widget-form h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.swpm-login-form label,
.swpm-login-widget-form label {
    display: block;
    margin-bottom: 8px;
    color: #bbb;
    font-weight: bold;
}

.swpm-login-form input[type="text"],
.swpm-login-form input[type="password"],
.swpm-login-widget-form input[type="text"],
.swpm-login-widget-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #3d3d3d;
    color: #fff;
    border: 1px solid #555;
    border-radius: 0;
    box-sizing: border-box;
}

.swpm-login-form .swpm-remember-me,
.swpm-login-widget-form .swpm-remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #bbb;
}

.swpm-login-form .swpm-remember-me input[type="checkbox"],
.swpm-login-widget-form .swpm-remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.swpm-login-form input[type="submit"],
.swpm-login-widget-form input[type="submit"] {
    width: 100%;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.swpm-login-form input[type="submit"]:hover,
.swpm-login-widget-form input[type="submit"]:hover {
    background-color: #45a049;
}

.swpm-login-form a,
.swpm-login-widget-form a {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #4aa8ff;
    text-decoration: none;
}

.swpm-login-form a:hover,
.swpm-login-widget-form a:hover {
    text-decoration: underline;
}
/*
================================================================================================================
ログイン中画面
================================================================================================================
*/
.swpm-login-widget-logged {
    max-width: 400px;
    margin: 50px auto;
    background-color: #2b2b2b;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    padding: 20px;
}

.swpm-logged-username,
.swpm-logged-status,
.swpm-logged-membership,
.swpm-logged-expiry {
    padding: 10px 0;
    border-bottom: 1px solid #4a4a4a;
}

.swpm-logged-username:last-child,
.swpm-logged-status:last-child,
.swpm-logged-membership:last-child,
.swpm-logged-expiry:last-child {
    border-bottom: none;
}

.swpm-logged-label {
    color: #aaaaaa;
    font-weight: bold;
}

.swpm-logged-value {
    color: #ffffff;
}

.swpm-edit-profile-link a,
.swpm-logged-logout-link a {
    display: inline-block;
    background-color: #4a90e2;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
    width: 100%;
}

.swpm-edit-profile-link a:hover,
.swpm-logged-logout-link a:hover {
    background-color: #357ab8;
}

/*
================================================================================================================
メールフォーム
================================================================================================================
*/
/* フォーム全体 */
.wpcf7 form {
    max-width: 600px;
    margin: 0 auto 50px auto;
    background: #222;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    color: #fff;
}

/* ラベル */
.wpcf7 label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

/* テキスト入力・テキストエリア */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 14px 18px;  /* ← 内側の余白を増加 */
    border: 2px solid #555;
    border-radius: 5px;
    background: #333;
    color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s;
    margin-bottom: 10px;  /* ← 各項目の間隔を調整 */
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 14px 20px;  /* ← ボタンの内側の余白を増加 */
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: 10px;  /* ← ボタンと他要素の間隔を確保 */
}

.wpcf7 input[type="submit"]:hover {
    background: #45a049;
}

/* エラーメッセージ */
.wpcf7 .wpcf7-not-valid-tip {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 送信成功メッセージ */
.wpcf7-response-output {
    border: 2px solid #4CAF50;
    background: #2E7D32;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

footer {
  background-image: linear-gradient(45deg, #FF0080, #4678FA); /* headerとは逆のグラデーション */
  margin-top: auto;
  padding: 8px 0; /* footerは少し広めに */
  color: #fff; /* テキストは見やすく白に */
  text-align: center;
  font-size: 14px; /* footerらしく控えめなサイズ */
}

/*
================================================================================================================
LMS update cards
================================================================================================================
*/
.lms-updates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 30px auto;
}

.lms-updates__heading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 12px;
  color: #fff;
  background: #1f2937;
  border-left: 4px solid #50c8c8;
  border-radius: 4px;
  font-size: 24px;
}

.lms-updates__card {
  padding: 20px;
  color: #1f2937;
  background: #fff;
  border: 1px solid #d9dee7;
  border-top: 4px solid #50c8c8;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.lms-updates__card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: auto;
  padding: 0 0 12px;
  background: none;
  border-bottom: 1px solid #e5e7eb;
}

.lms-updates__title {
  margin: 0;
  padding: 0;
  color: #111827;
  border: 0;
  font-size: 18px;
  line-height: 1.4;
}

.lms-updates__date {
  flex-shrink: 0;
  color: #5b6472;
  font-size: 12px;
  white-space: nowrap;
}

.lms-updates__summary {
  margin: 14px 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}

.lms-updates__changes {
  display: grid;
  gap: 10px;
}

.lms-updates__change-group {
  padding: 10px 12px;
  background: #f6f8fa;
  border-left: 3px solid #6b7280;
}

.lms-updates__change-group h4 {
  margin: 0;
  color: #374151;
  font-size: 12px;
  line-height: 1.5;
}

.lms-updates__change-group ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.lms-updates__change-group li {
  color: #374151;
  font-size: 13px;
  line-height: 1.6;
}

.lms-updates__change-group--new {
  border-left-color: #16803c;
}

.lms-updates__change-group--improved {
  border-left-color: #2563eb;
}

.lms-updates__change-group--fixed {
  border-left-color: #dc2626;
}

@media (max-width: 860px) {
  .lms-updates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .lms-updates {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lms-updates__card-header {
    flex-direction: column;
    gap: 4px;
  }
}

/*
================================================================================================================
LMS update history page
================================================================================================================
*/
.lms-update-history {
  width: min(100% - 32px, 960px);
  margin: 40px auto;
}

.lms-update-history__page-title {
  margin: 0 0 28px;
  padding-bottom: 10px;
  color: #f1f1f1;
  border-bottom: 3px solid #50c8c8;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.3;
}

.lms-update-history__list {
  display: grid;
  gap: 24px;
}

.lms-update-history__card {
  padding: 24px;
  color: #1f2937;
  background: #fff;
  border: 1px solid #d9dee7;
  border-top: 4px solid #50c8c8;
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

.lms-update-history__card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.lms-update-history__title {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.4;
}

.lms-update-history__date {
  flex-shrink: 0;
  padding: 3px 8px;
  color: #374151;
  background: #eef2f7;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
}

.lms-update-history__summary {
  margin: 18px 0;
  color: #374151;
  font-size: 15px;
  line-height: 1.8;
}

.lms-update-history__changes {
  display: grid;
  gap: 12px;
}

.lms-update-history__change-group {
  padding: 14px 16px;
  background: #f6f8fa;
  border-left: 4px solid #6b7280;
}

.lms-update-history__change-group--new {
  border-left-color: #16803c;
}

.lms-update-history__change-group--improved {
  border-left-color: #2563eb;
}

.lms-update-history__change-group--fixed {
  border-left-color: #dc2626;
}

.lms-update-history__change-title {
  margin: 0;
  padding: 0;
  color: #1f2937;
  border: 0;
  font-size: 14px;
  line-height: 1.5;
}

.lms-update-history__change-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.lms-update-history__change-item {
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}

.lms-update-history__change-item + .lms-update-history__change-item {
  margin-top: 4px;
}

.lms-update-history__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.lms-update-history__media-item {
  margin: 0;
}

.lms-update-history__media-image,
.lms-update-history__media-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.lms-update-history__media-caption {
  margin-top: 6px;
  color: #5b6472;
  font-size: 12px;
  line-height: 1.5;
}

.lms-update-history__empty {
  margin: 0;
  padding: 24px;
  color: #374151;
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 600px) {
  .lms-update-history {
    width: min(100% - 20px, 960px);
    margin: 24px auto;
  }

  .lms-update-history__card {
    padding: 18px;
  }

  .lms-update-history__card-header {
    flex-direction: column;
    gap: 8px;
  }

  .lms-update-history__media {
    grid-template-columns: 1fr;
  }
}
