@charset "UTF-8";
/* =========================================================
   会員専用サイト  ―― 晴れた日の青空をイメージしたスタイル
   ========================================================= */

:root {
  --sky-top:    #1f8fd6;
  --sky-mid:    #6cc4f5;
  --sky-low:    #b6e5ff;
  --sky-haze:   #e8f7ff;

  --ink:        #10384f;
  --ink-soft:   #476b7d;
  --line:       #d7ecf8;

  --card:       #ffffff;
  --card-soft:  #f4fbff;

  --blue:       #1783cd;
  --blue-dark:  #0f6aa8;
  --sun:        #ffc93c;
  --sun-deep:   #f5a623;
  --grass:      #3fb27f;
  --alert:      #e2564d;

  --radius:     18px;
  --radius-lg:  26px;
  --shadow:     0 10px 30px rgba(16, 74, 110, .13);
  --shadow-sm:  0 4px 14px rgba(16, 74, 110, .10);

  --wrap:       1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic",
               "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 34%, var(--sky-low) 62%, var(--sky-haze) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

/* ---------- 空の背景（太陽と雲） ---------- */
.sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.sun {
  position: absolute; top: -70px; right: -70px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, #fff8d6 0%, var(--sun) 42%, rgba(255,201,60,0) 72%);
  opacity: .85;
  animation: glow 7s ease-in-out infinite;
}
@keyframes glow { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.07); opacity: 1; } }

.cloud {
  position: absolute;
  background: #fff;
  border-radius: 100px;
  opacity: .78;
  filter: blur(.3px);
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.c1 { width: 190px; height: 52px; top: 12%;  left: -240px; animation: drift 68s linear infinite; }
.c1::before { width: 84px;  height: 84px;  top: -38px; left: 30px; }
.c1::after  { width: 62px;  height: 62px;  top: -26px; left: 100px; }

.c2 { width: 130px; height: 38px; top: 33%;  left: -200px; opacity: .6; animation: drift 92s linear infinite 10s; }
.c2::before { width: 60px; height: 60px; top: -28px; left: 22px; }
.c2::after  { width: 44px; height: 44px; top: -18px; left: 70px; }

.c3 { width: 240px; height: 60px; top: 56%;  left: -300px; opacity: .5; animation: drift 120s linear infinite 4s; }
.c3::before { width: 100px; height: 100px; top: -46px; left: 40px; }
.c3::after  { width: 74px;  height: 74px;  top: -30px; left: 128px; }

.c4 { width: 100px; height: 30px; top: 75%;  left: -160px; opacity: .42; animation: drift 78s linear infinite 22s; }
.c4::before { width: 46px; height: 46px; top: -22px; left: 16px; }
.c4::after  { width: 34px; height: 34px; top: -14px; left: 54px; }

@keyframes drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 340px)); } }

@media (prefers-reduced-motion: reduce) {
  .cloud, .sun { animation: none; }
  .c1 { left: 8%; } .c2 { left: 62%; } .c3 { left: 30%; } .c4 { left: 78%; }
}

/* ---------- レイアウト ---------- */
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.main { position: relative; z-index: 1; flex: 1 0 auto; padding: 28px 0 64px; }

/* ---------- ヘッダー ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 2px 14px rgba(16, 74, 110, .10);
}
.topbar-in { display: flex; align-items: center; gap: 12px; min-height: 62px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 30%, #fff6cf, var(--sun) 60%, var(--sun-deep));
  box-shadow: 0 0 0 5px rgba(255, 201, 60, .28);
}
.brand-text { font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 9px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem;
  transition: background .15s ease;
}
.nav a:hover, .nav a:focus-visible { background: rgba(23, 131, 205, .12); }
.nav .nav-admin { background: rgba(63, 178, 127, .16); color: #1f7a55; }
.nav .nav-out   { background: rgba(23, 131, 205, .10); }

.navtoggle, .navbtn { display: none; }

@media (max-width: 720px) {
  .navbtn {
    display: block; width: 44px; height: 44px; border-radius: 12px;
    background: rgba(23, 131, 205, .10); position: relative; cursor: pointer;
  }
  .navbtn span, .navbtn::before, .navbtn::after {
    content: ""; position: absolute; left: 12px; width: 20px; height: 2px;
    background: var(--ink); border-radius: 2px;
  }
  .navbtn span   { top: 21px; }
  .navbtn::before{ top: 14px; }
  .navbtn::after { top: 28px; }

  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .navtoggle:checked ~ .nav { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; }
}

/* ---------- 管理バー ---------- */
.adminbar { position: relative; z-index: 5; background: rgba(15, 106, 168, .92); }
.adminbar-in { display: flex; gap: 4px; overflow-x: auto; padding: 6px 0; }
.adminbar a {
  white-space: nowrap; color: #eaf6ff; text-decoration: none;
  padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.adminbar a:hover { background: rgba(255, 255, 255, .18); }

/* ---------- 見出し ---------- */
.page-head { margin: 4px 0 22px; }
.page-head h1 {
  margin: 0; font-size: clamp(1.4rem, 4.4vw, 2rem); line-height: 1.4;
  color: #fff; text-shadow: 0 2px 10px rgba(10, 60, 95, .35);
}
.page-head p { margin: 6px 0 0; color: rgba(255, 255, 255, .95); text-shadow: 0 1px 6px rgba(10, 60, 95, .3); }

h2.sec { font-size: 1.15rem; margin: 30px 0 12px; display: flex; align-items: center; gap: 9px; color: #fff; text-shadow: 0 2px 8px rgba(10,60,95,.3); }
h2.sec::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); flex: none; }

/* ---------- カード ---------- */
.card {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 18px;
}
.card h2 { margin-top: 0; font-size: 1.12rem; }
.card + .card { margin-top: 0; }
.card-tight { padding: 16px; border-radius: var(--radius); }

/* ---------- ログイン画面 ---------- */
.is-bare .main { display: grid; place-items: center; padding: 5vh 0 8vh; }
.login-box { width: min(100%, 430px); }
.login-hero { text-align: center; margin-bottom: 18px; color: #fff; }
.login-hero .logo {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 12px;
  background: radial-gradient(circle at 32% 30%, #fff6cf, var(--sun) 58%, var(--sun-deep));
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .28), 0 8px 22px rgba(10, 60, 95, .25);
}
.login-hero h1 { margin: 0; font-size: 1.35rem; text-shadow: 0 2px 10px rgba(10, 60, 95, .35); }
.login-hero p  { margin: 4px 0 0; font-size: .93rem; opacity: .95; text-shadow: 0 1px 6px rgba(10, 60, 95, .3); }

/* ---------- フォーム ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.hint { font-size: .84rem; color: var(--ink-soft); margin: 5px 0 0; }

input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--card-soft);
  border: 2px solid var(--line); border-radius: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; background: #fff;
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23, 131, 205, .16);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: right 18px center, right 12px center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; min-height: 48px;
  font: inherit; font-weight: 700; font-size: 1rem;
  color: #fff; background: linear-gradient(180deg, #2b9ae0, var(--blue-dark));
  border: none; border-radius: 999px; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 16px rgba(15, 106, 168, .30);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 9px 20px rgba(15, 106, 168, .34); }
.btn:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-sun  { background: linear-gradient(180deg, #ffd35c, var(--sun-deep)); color: #4a3000; box-shadow: 0 6px 16px rgba(245, 166, 35, .32); }
.btn-ghost{ background: #fff; color: var(--blue-dark); border: 2px solid var(--line); box-shadow: none; }
.btn-danger { background: linear-gradient(180deg, #ec6a61, #cf4239); box-shadow: 0 6px 16px rgba(207, 66, 57, .28); }
.btn-sm { padding: 7px 15px; min-height: 38px; font-size: .88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- お知らせ ---------- */
.flash {
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px;
  font-weight: 600; box-shadow: var(--shadow-sm); background: #fff;
  border-left: 6px solid var(--blue);
}
.flash-ok   { border-left-color: var(--grass); }
.flash-warn { border-left-color: var(--sun-deep); }
.flash-err  { border-left-color: var(--alert); }

.notice-err {
  background: #fff2f1; border: 2px solid #f6c9c5; color: #a4302a;
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-weight: 600;
}

/* ---------- 動画カード ---------- */
.video-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.vcard {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}
.vcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16, 74, 110, .20); }
.vthumb {
  aspect-ratio: 16 / 9; background: linear-gradient(140deg, #8fd2f7, #d8f0ff);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vthumb .play {
  position: absolute; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(10, 60, 95, .28);
  display: grid; place-items: center;
}
.vthumb .play::after {
  content: ""; border-left: 16px solid var(--blue-dark);
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.vbody { padding: 15px 17px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vtitle { font-weight: 700; font-size: 1.02rem; line-height: 1.5; }
.vmeta { font-size: .82rem; color: var(--ink-soft); margin-top: auto; }

.tag {
  display: inline-block; font-size: .76rem; font-weight: 700;
  padding: 3px 11px; border-radius: 999px;
  background: rgba(23, 131, 205, .12); color: var(--blue-dark);
}
.tag-sun { background: rgba(255, 201, 60, .28); color: #7a5200; }

/* ---------- 動画プレイヤー ---------- */
.player {
  aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius);
  overflow: hidden; background: #04283d; box-shadow: var(--shadow);
}
.player iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- テーブル ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; min-width: 560px; }
table.tbl th, table.tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl th { background: var(--card-soft); font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: #fafdff; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }

/* ---------- 統計タイル ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.stat { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat .n { font-size: 1.9rem; font-weight: 700; line-height: 1.2; color: var(--blue-dark); }
.stat .l { font-size: .83rem; color: var(--ink-soft); }
.stat.warn .n { color: var(--sun-deep); }
.stat.bad  .n { color: var(--alert); }

/* ---------- バッジ ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.b-ok    { background: #e2f6ec; color: #1f7a55; }
.b-warn  { background: #fff3d9; color: #8a5a00; }
.b-bad   { background: #fdeceb; color: #b23a31; }
.b-mute  { background: #eef4f8; color: #5d7d8e; }

/* ---------- その他 ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--ink-soft); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.empty .big { font-size: 2.6rem; }

.foot { position: relative; z-index: 1; padding: 22px 0 34px; color: #0d4a6b; font-size: .85rem; text-align: center; flex: none; }
.foot p { margin: 2px 0; }
.foot-note { opacity: .85; line-height: 1.9; }
.foot a { color: #0b4b70; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .field { margin-bottom: 0; flex: 1 1 160px; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span {
  padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--blue-dark);
  text-decoration: none; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm);
}
.pager .cur { background: var(--blue-dark); color: #fff; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: .95rem; }
.dl dt { color: var(--ink-soft); font-size: .88rem; }
.dl dd { margin: 0; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dd { margin-bottom: 10px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
