@charset "UTF-8";

/* =========================================================
   共通ベーススタイル
   ========================================================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* メインコンテナ */
.main-container {
    padding: 30px 20px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* エラーメッセージ用 */
.error-box {
    color: #c0392b; background-color: #fadbd8; padding: 20px; border-radius: 8px;
    text-align: center; margin: 30px 0; border: 1px solid #c0392b; line-height: 1.6;
}

/* =========================================================
   ヘッダー・フッター
   ========================================================= */
.site-header {
    background-color: #001A55;
    width: 100%;
    padding: 28px 20px;
    box-sizing: border-box;
    position: relative;
}
.header-inner {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
    /* ★追加：タイトルを明朝体にする指定（Windows/Mac両対応） */
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HGS明朝E", "MS PMincho", serif;
}
.logout-btn {
    position: absolute; top: 50%; right: 20px; transform: translateY(-50%);
    padding: 8px 16px; background-color: transparent; color: #ffffff;
    border: 1px solid rgba(255,255,255,0.5); border-radius: 4px;
    text-decoration: none; font-size: 0.9rem; transition: all 0.2s ease;
}
.logout-btn:hover {
    background-color: rgba(255,255,255,0.1); border-color: #ffffff;
}

.site-footer { background-color: #001A55; color: #ffffff; padding: 40px 20px 20px; margin-top: auto; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-columns { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6; }
.footer-col { min-width: 260px; }
.copyright { text-align: center; font-size: 0.85rem; opacity: 0.8; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 15px; }

/* =========================================================
   ログイン画面専用 (login.html)
   ========================================================= */
/* ログイン画面にのみ背景SVGを適用（縦横150pxで隙間なく敷き詰める） */
body.page-login::before {
    content: ""; position: fixed; inset: 0;
    background-image: url("../img/background.png"); 
    background-repeat: repeat; 
    background-size: 250px 250px; 
    opacity: 0.08; pointer-events: none; z-index: -1;
}
body.page-login .main-container { padding: 10px 20px; }
.top-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 10px 0 20px; }
.top-bg { padding: 26px 14px 30px; }
.kv-wrap {
    width: min(700px, 100%); overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}
.kv-img { width: 100%; height: auto; display: block; }
.subtitle-img { width: min(650px, 100%); height: auto; display: block; margin-top: -6px; opacity: 0.95; }
.demand-img { width: min(650px, 100%); height: auto; display: block; }

.login-mini { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; margin-bottom: 20px; align-items: center; }
.login-item { display: flex; align-items: center; gap: 10px; }
.login-label { font-weight: bold; color: #001A55; width: 110px; text-align: right; white-space: nowrap; }
.login-mini input {
    padding: 12px 14px; width: 220px; border: 1px solid #ccc; border-radius: 8px;
    font-size: 0.95rem; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.05); transition: 0.2s;
}
.login-mini input:focus { border-color: #001A55; outline: none; box-shadow: 0 0 0 3px rgba(0,26,85,0.1); }

.enter-btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 14px 52px; background: #111; color: #fff;
    text-decoration: none; font-weight: 800; letter-spacing: 0.12em; border-radius: 10px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18); transition: transform .08s ease, box-shadow .15s ease, background .15s ease; margin-top: 10px;
}
.enter-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(0,0,0,0.22); background: #000; }

/* =========================================================
   プログラム一覧 (menu.html) & 講座視聴 (video.html) 共通
   ========================================================= */
h2 { text-align: center; color: #2c3e50; margin-top: 0; margin-bottom: 30px; font-weight: 600; }
.category-badge { display: inline-block; padding: 5px 12px; background-color: #2c3e50; color: white; border-radius: 20px; font-size: 0.8em; white-space: nowrap; margin-bottom: 10px;}
.info-row { margin-bottom: 6px; font-size: 0.95em; display: flex; align-items: flex-start; }
.info-row:last-child { margin-bottom: 0; }
.info-label { flex: 0 0 100px; font-weight: bold; color: #7f8c8d; padding-top: 2px; }
.info-value { flex: 1; color: #34495e; }
.large-name { font-size: 1.15em; font-weight: bold; color: #2c3e50; }

.sect-block { margin-bottom: 8px; padding: 10px 14px; background-color: #f8f9fa; border-left: 4px solid #95a5a6; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.sect-header { margin-bottom: 4px; line-height: 1.4; } 
.sect-num { font-weight: bold; color: #34495e; margin-right: 8px; }
.sect-title { font-weight: bold; color: #2c3e50; }
.sect-name { margin-bottom: 0px; }
.sect-affil { font-size: 0.85em; color: #7f8c8d; }

/* 一覧画面専用 (menu.html) */
.program-item { margin-bottom: 15px; border: none; border-radius: 8px; background: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.04); overflow: hidden; }
.summary-element { padding: 20px; background-color: #ffffff; cursor: pointer; display: flex; align-items: center; transition: background-color 0.2s; border-left: 5px solid #3498db; user-select: none; }
.summary-element:hover { background-color: #fcfcfc; }
.summary-element::after { content: "▼"; margin-left: 15px; font-size: 0.8em; color: #999; transition: transform 0.3s ease; }
.summary-element.is-open::after { transform: rotate(-180deg); }
.summary-inner { display: flex; flex-direction: column; flex: 1; }
.category-wrapper { margin-bottom: 8px; }
.title-text { color: #2c3e50; line-height: 1.4; font-weight: bold; font-size: 1.15em; }
.details-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease-in-out; }
.details-wrapper.is-open { grid-template-rows: 1fr; }
.details-inner { overflow: hidden; }
.details-content { padding: 20px; border-top: 1px solid #eee; background: #fafafa; line-height: 1.3; }
.watch-button-container { margin-top: 20px; text-align: center; }
.watch-button { display: inline-block; padding: 12px 40px; background-color: #e74c3c; color: #fff; font-size: 1.05em; font-weight: bold; text-decoration: none; border: none; border-radius: 30px; cursor: pointer; box-shadow: 0 4px 6px rgba(231, 76, 60, 0.3); transition: all 0.2s ease; }
.watch-button:hover { background-color: #c0392b; transform: translateY(-2px); box-shadow: 0 6px 8px rgba(231, 76, 60, 0.4); }

/* 視聴画面専用 (video.html) */
.course-header { margin-bottom: 25px; }
.course-title { font-size: 1.6em; font-weight: bold; color: #2c3e50; line-height: 1.4; margin: 0; }
.video-wrapper { position: relative; width: 100%; padding-bottom: 56.25%; background-color: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-bottom: 30px; }
.video-placeholder { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2em; text-align: center; padding: 20px; }
.action-area { text-align: center; margin-top: 20px; }
.back-button { display: inline-block; padding: 12px 40px; background-color: #95a5a6; color: #fff; font-size: 1em; font-weight: bold; text-decoration: none; border-radius: 30px; transition: all 0.2s ease; }
.back-button:hover { background-color: #7f8c8d; transform: translateY(-2px); }

.login-note {
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: #c90000;
}



/* =========================================================
   レスポンシブ（スマホ対応）
   ========================================================= */
@media (max-width: 600px) {
    .site-header { padding: 40px 10px 15px; } 
    .header-inner { font-size: 1.0rem; } 
    .logout-btn { top: 10px; right: 10px; transform: none; font-size: 0.8rem; padding: 4px 10px; }
    
    .info-label { flex: 0 0 50px; }
    .info-row { font-size: 0.95em; }
}
@media (max-width: 520px){
    body.page-login .main-container { padding: 26px 14px; }
    .top-bg { padding: 18px 10px 22px; border-radius: 14px; }
    .enter-btn { width: 88%; padding: 14px 0; }
    .login-label { width: 90px; font-size: 0.9rem; }
    .login-mini input { width: 180px; }
}