@charset "UTF-8";
:root{
  --sun-yellow:#FFB627;
  --sun-orange:#FF8C42;
  --cream:#FFF8EC;
  --cream-deep:#FFEFD2;
  --brown:#3A2E1F;
  --brown-soft:#6B5640;
  --coral:#FF5D5D;
  --white:#FFFFFF;
  --green:#5FAE6B;
  --blue:#4FA3D1;
}
*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--cream);
  color:var(--brown);
  font-family:"Zen Maru Gothic","Hiragino Maru Gothic ProN","Yu Gothic","Meiryo",sans-serif;
  -webkit-font-smoothing:antialiased;
  position:relative;
}
body::before{
  content:"";
  position:fixed;
  top:0; right:0; bottom:0; left:0;
  z-index:-1;
  background-image:var(--page-bg-image, none);
  background-size:cover;
  background-position:center;
  opacity:.25;
  pointer-events:none;
}
a{ text-decoration:none; color:inherit; cursor:pointer; }

/* ===== Header ===== */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 32px;
  background:var(--cream);
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:3px dashed var(--sun-orange);
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:21px;
  color:var(--brown);
  letter-spacing:.01em;
}
.logo svg{ width:42px; height:42px; flex-shrink:0; }
.logo .en{ font-size:20px; }
.logo .sub{ display:block; font-size:10px; font-weight:700; color:var(--sun-orange); letter-spacing:.12em; }
nav{ display:flex; gap:4px; flex-wrap:wrap; }
nav a{
  padding:9px 15px;
  border-radius:999px;
  font-weight:700;
  font-size:13.5px;
  color:var(--brown);
  transition:transform .15s ease, background .15s ease;
  white-space:nowrap;
}
nav a:hover{ background:var(--cream-deep); transform:translateY(-2px); }
nav a.active{ background:var(--sun-orange); color:var(--white); }

/* ===== Shared ===== */
.wrap{ max-width:1080px; margin:0 auto; padding:0 32px; }
.section-label{
  text-align:center;
  font-size:13px;
  font-weight:800;
  letter-spacing:.2em;
  color:var(--sun-orange);
  margin:0 0 10px;
}
.section-title{
  text-align:center;
  font-size:30px;
  font-weight:900;
  margin:0 0 14px;
  color:var(--brown);
}
.section-desc{
  text-align:center;
  font-size:14px;
  color:var(--brown-soft);
  max-width:520px;
  margin:0 auto 46px;
  line-height:1.8;
}
.page-head{ padding:64px 32px 10px; }

.concept{ padding:70px 32px 20px; }
.concept .section-title{ line-height:1.5; margin-bottom:26px; }
.concept-text{
  max-width:680px; margin:0 auto; text-align:center; font-size:14px; line-height:2.1; color:var(--brown-soft);
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 30px;
  border-radius:999px;
  font-weight:800;
  font-size:15px;
  cursor:pointer;
  border:none;
}
.btn-primary{ background:var(--coral); color:var(--white); box-shadow:0 10px 24px -8px rgba(255,93,93,.6); }
.btn-ghost{ background:var(--white); color:var(--brown); border:2px solid var(--sun-orange); }

footer{
  background:var(--brown);
  color:#F3E6CC;
  text-align:center;
  padding:46px 32px 36px;
  font-size:13px;
  margin-top:60px;
}
footer .flogo{ font-weight:900; font-size:18px; color:var(--sun-yellow); margin-bottom:10px; }

/* ===== TOP page ===== */
.hero{
  position:relative;
  overflow:hidden;
  padding:80px 32px 110px;
  background:linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  background-size:cover;
  background-position:center;
  text-align:center;
}
.cloud{ position:absolute; opacity:.9; animation:float-cloud linear infinite; }
@keyframes float-cloud{ from{ transform:translateX(-120px); } to{ transform:translateX(calc(100% + 120px)); } }
.hero-inner{ position:relative; z-index:2; max-width:760px; margin:0 auto; }
.eyebrow{
  display:inline-block; background:var(--white); border:2px solid var(--sun-orange); color:var(--sun-orange);
  font-weight:800; font-size:13px; padding:6px 18px; border-radius:999px; margin-bottom:22px; letter-spacing:.05em;
}
.hero h1{
  font-size:50px; line-height:1.25; margin:0 0 18px; font-weight:900; color:var(--brown);
  text-shadow:0 1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff, 0 -1px 0 #fff, 0 3px 16px rgba(255,255,255,.85), 0 0 32px rgba(255,255,255,.6);
}
.hero h1 span{
  display:inline-block; color:#B8391A;
  text-shadow:0 1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff, 0 -1px 0 #fff, 0 3px 16px rgba(255,255,255,.85), 0 0 32px rgba(255,255,255,.6);
}
.hero p.lead{
  font-size:17px; color:var(--brown-soft); line-height:1.9; margin:0 0 36px;
  text-shadow:0 1px 10px rgba(255,255,255,.9), 0 0 20px rgba(255,255,255,.7);
}
.hero-ctas{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.confetti{ position:absolute; border-radius:3px; animation:fall linear infinite; opacity:.85; }
@keyframes fall{ 0%{ transform:translateY(-20px) rotate(0deg); opacity:0; } 10%{ opacity:.85; } 100%{ transform:translateY(420px) rotate(280deg); opacity:0; } }

.cards{ max-width:1080px; margin:0 auto; padding:70px 32px 100px; display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.card{
  background:var(--white); border-radius:24px; padding:30px 26px;
  box-shadow:0 14px 30px -16px rgba(58,46,31,.25);
  transition:transform .2s ease, box-shadow .2s ease;
  position:relative; overflow:hidden; border:3px solid transparent;
}
.card:hover{ transform:translateY(-6px) rotate(-1deg); box-shadow:0 20px 36px -16px rgba(58,46,31,.35); }
.card .icon{ width:54px; height:54px; border-radius:16px; display:flex; align-items:center; justify-content:center; font-size:26px; margin-bottom:18px; }
.card h3{ margin:0 0 8px; font-size:19px; font-weight:800; }
.card p{ margin:0; font-size:13.5px; color:var(--brown-soft); line-height:1.7; }
.card .tag{ position:absolute; top:18px; right:18px; font-size:11px; font-weight:800; background:var(--cream-deep); color:var(--brown-soft); padding:4px 10px; border-radius:999px; }
.c1 .icon{ background:#FFF1D6; } .c2 .icon{ background:#FFE7DA; } .c3 .icon{ background:#FFE2E2; }
.c4 .icon{ background:#E9F5E1; } .c5 .icon{ background:#DDEEFF; } .c6 .icon{ background:#F3E6FF; }

.topics-preview{ background:var(--white); padding:80px 32px; }
.topic-item{ display:flex; align-items:center; gap:18px; padding:18px 0; border-bottom:2px dashed var(--cream-deep); }
.topic-item:last-child{ border-bottom:none; }
.topic-date{ font-size:12px; font-weight:800; color:var(--white); background:var(--sun-orange); padding:6px 12px; border-radius:999px; white-space:nowrap; }
.topic-cat{ font-size:11px; font-weight:800; color:var(--sun-orange); border:1.5px solid var(--sun-orange); padding:3px 9px; border-radius:999px; white-space:nowrap; }
.topic-text{ font-size:14.5px; font-weight:700; flex:1; }

/* ===== TOPICS page ===== */
.filter-row{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-bottom:40px; }
.chip{ padding:8px 16px; border-radius:999px; border:2px solid var(--cream-deep); background:var(--white); font-size:12.5px; font-weight:800; color:var(--brown-soft); cursor:pointer; }
.chip.active{ background:var(--sun-orange); border-color:var(--sun-orange); color:var(--white); }
.topics-list{ max-width:760px; margin:0 auto; padding-bottom:90px; }
.topic-row{ display:flex; gap:18px; align-items:flex-start; background:var(--white); border-radius:18px; padding:20px 22px; margin-bottom:14px; box-shadow:0 8px 20px -14px rgba(58,46,31,.2); }
a.topic-row{ transition:transform .15s ease, box-shadow .15s ease; }
a.topic-row:hover{ transform:translateY(-2px); box-shadow:0 14px 28px -14px rgba(58,46,31,.32); }
.topic-row .thumb{ width:54px; height:54px; border-radius:14px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:24px; }
.topic-row .body h4{ margin:2px 0 6px; font-size:15px; font-weight:800; }
.topic-row .body p{ margin:0; font-size:13px; color:var(--brown-soft); line-height:1.7; }
.topic-row .meta{ display:flex; gap:8px; align-items:center; margin-bottom:6px; }

/* ===== Lock screen ===== */
.lock-wrap{ max-width:420px; margin:30px auto 100px; background:var(--white); border-radius:28px; padding:46px 38px; text-align:center; box-shadow:0 18px 40px -20px rgba(58,46,31,.3); border:3px dashed var(--sun-orange); }
.lock-wrap .lock-icon{ font-size:46px; margin-bottom:14px; }
.lock-wrap h3{ margin:0 0 8px; font-size:19px; font-weight:900; }
.lock-wrap p{ margin:0 0 24px; font-size:13px; color:var(--brown-soft); line-height:1.8; }
.lock-input{ width:100%; padding:13px 16px; border-radius:14px; border:2px solid var(--cream-deep); font-size:14px; margin-bottom:14px; text-align:center; font-weight:700; }
.preview-note{ text-align:center; font-size:12.5px; color:var(--brown-soft); margin:38px 0 26px; padding:14px; background:var(--cream-deep); border-radius:14px; max-width:600px; margin-left:auto; margin-right:auto; }

/* ===== Works page ===== */
.work-grid{ max-width:1080px; margin:0 auto; padding:0 32px 100px; display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.work-card{ background:var(--white); border-radius:22px; overflow:hidden; box-shadow:0 12px 26px -16px rgba(58,46,31,.25); }
.work-thumb{ height:140px; display:flex; align-items:center; justify-content:center; font-size:40px; }
.work-body{ padding:20px 22px; }
.work-body h4{ margin:0 0 6px; font-size:16px; font-weight:800; }
.work-meta{ display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 10px; }
.work-meta span{ font-size:11px; font-weight:800; background:var(--cream-deep); color:var(--brown-soft); padding:4px 10px; border-radius:999px; }
.work-body p{ margin:0; font-size:13px; color:var(--brown-soft); line-height:1.7; }

/* ===== Novels page ===== */
.novel-grid{ max-width:1080px; margin:0 auto; padding:0 32px 100px; display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.novel-card{ background:var(--white); border-radius:22px; padding:26px 22px; box-shadow:0 12px 26px -16px rgba(58,46,31,.25); position:relative; }
a.novel-card{ display:block; transition:transform .2s ease, box-shadow .2s ease; }
a.novel-card:hover{ transform:translateY(-6px) rotate(-1deg); box-shadow:0 20px 36px -16px rgba(58,46,31,.38); }
.novel-status{ position:absolute; top:18px; right:18px; font-size:10.5px; font-weight:800; padding:4px 10px; border-radius:999px; color:var(--white); }
.st-ongoing{ background:var(--blue); }
.st-done{ background:var(--green); }
.novel-card .spine{ width:42px; height:54px; border-radius:6px; margin-bottom:16px; }
.novel-card h4{ margin:0 0 8px; font-size:16px; font-weight:800; padding-right:50px; }
.novel-card p.desc{ margin:0 0 14px; font-size:12.5px; color:var(--brown-soft); line-height:1.7; }
.novel-tags{ display:flex; gap:6px; flex-wrap:wrap; }
.novel-tags span{ font-size:10.5px; font-weight:700; border:1.5px solid var(--cream-deep); color:var(--brown-soft); padding:3px 9px; border-radius:999px; }
.novel-eps{ font-size:11.5px; color:var(--sun-orange); font-weight:800; margin-top:12px; }
.novel-like-btn{
  display:inline-flex; align-items:center; gap:8px; margin-top:16px; padding:9px 18px; border-radius:999px;
  border:2px solid var(--cream-deep); background:var(--white); color:var(--brown-soft); font-weight:800; font-size:13px; cursor:pointer;
  transition:border-color .15s, color .15s, background .15s;
}
.novel-like-btn .novel-like-icon{ font-size:15px; }
.novel-like-btn:hover{ border-color:var(--coral); }
.novel-like-btn.liked{ border-color:var(--coral); background:#FFE2E2; color:var(--coral); }

/* ===== Games page ===== */
.game-filters{ max-width:900px; margin:0 auto 28px; padding:0 32px; display:flex; gap:16px; flex-wrap:wrap; }
.game-filter-select-wrap{ display:flex; align-items:center; gap:8px; }
.game-filter-label{ font-size:11px; font-weight:800; color:var(--brown-soft); white-space:nowrap; }
.game-filter-select{ font-size:13px; font-weight:700; color:var(--brown); background:var(--white); border:2px solid var(--cream-deep); border-radius:10px; padding:7px 32px 7px 12px; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B0956A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; cursor:pointer; min-width:160px; }
.game-filter-select:focus{ outline:none; border-color:var(--sun-orange); }
.game-list{ max-width:900px; margin:0 auto; padding:0 32px 100px; display:flex; flex-direction:column; gap:8px; }
.game-row{ display:none; background:var(--white); border-radius:14px; box-shadow:0 10px 22px -16px rgba(58,46,31,.22); text-decoration:none; color:inherit; grid-template-columns:auto 2fr 1.2fr 1fr 0.9fr 28px; gap:12px; align-items:center; padding:15px 20px; transition:background .15s, box-shadow .15s; }
.game-row.show{ display:grid; }
.game-row:hover{ background:#FFFBF2; box-shadow:0 14px 30px -12px rgba(58,46,31,.28); }
.game-hw-badges{ display:flex; flex-wrap:wrap; gap:6px; }
.game-hw-badge{ font-size:11px; font-weight:800; padding:4px 9px; border-radius:999px; white-space:nowrap; background:#F2F2F2; color:#555; }
.game-hw-empty{ opacity:.3; }
.game-name-col{ font-size:14.5px; font-weight:800; color:var(--brown); }
.game-series-col{ font-size:12.5px; color:var(--brown-soft); }
.game-genre-col{ font-size:12.5px; color:var(--brown-soft); }
.game-rating-col{ font-size:12px; color:var(--sun-orange); white-space:nowrap; }
.game-col-empty{ opacity:.35; }
.game-arrow{ font-size:14px; color:var(--sun-orange); font-weight:800; text-align:right; }

.favorite-type-banners{ max-width:900px; margin:0 auto 22px; padding:0 32px; display:flex; gap:10px; flex-wrap:wrap; }
.favorite-type-btn{
  padding:9px 18px; border-radius:999px; background:var(--white); border:2px solid var(--cream-deep);
  font-weight:800; font-size:13px; color:var(--brown-soft); cursor:pointer; transition:background .15s, color .15s, border-color .15s;
}
.favorite-type-btn:hover{ border-color:var(--sun-orange); }
.favorite-type-btn.active{ background:var(--sun-orange); border-color:var(--sun-orange); color:var(--white); }

/* ===== Game/Favorite single page ===== */
.game-detail{ max-width:680px; margin:0 auto; padding:0 32px 100px; }
.game-detail-head{ margin-bottom:24px; }
.game-detail-head h1{ font-size:26px; font-weight:900; margin:8px 0 0; }
.game-detail-rating{ font-size:18px; color:var(--sun-orange); margin-top:6px; }
.game-detail-meta{ display:flex; flex-wrap:wrap; gap:10px 28px; margin-bottom:20px; padding:18px 20px; background:var(--cream); border-radius:14px; }
.game-detail-item{ display:flex; align-items:baseline; gap:8px; font-size:13.5px; }
.game-detail-label{ font-size:11px; font-weight:800; color:var(--sun-orange); background:#FFF5E0; padding:2px 8px; border-radius:999px; }
.game-detail-achievements{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.game-ach-badge{ font-size:12px; font-weight:800; padding:5px 13px; border-radius:999px; background:#E9F5E1; color:var(--green); }
.game-detail-comment{ font-size:14px; color:var(--brown); line-height:1.85; background:var(--white); border-radius:14px; padding:18px 22px; box-shadow:0 6px 18px -12px rgba(58,46,31,.18); }

/* ===== Life page ===== */
.life-tabs{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:30px; }
.life-tab{ padding:10px 20px; border-radius:999px; background:var(--white); border:2px solid var(--cream-deep); font-weight:800; font-size:13px; cursor:pointer; color:var(--brown-soft); }
.life-tab.active{ background:var(--coral); border-color:var(--coral); color:var(--white); }
.life-panel{ display:none; max-width:680px; margin:0 auto 100px; }
.life-panel.show{ display:block; }
.placeholder-box{ background:var(--white); border:2.5px dashed var(--cream-deep); border-radius:20px; padding:48px 30px; text-align:center; color:var(--brown-soft); font-size:13.5px; line-height:1.9; }
.placeholder-box .ic{ font-size:34px; display:block; margin-bottom:12px; }

/* ===== Recipe cards ===== */
.recipe-page-wrap{ max-width:900px; margin:0 auto 100px; padding:0 24px; }
.recipe-category-filter{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.recipe-category-badge{ font-size:11px; font-weight:800; color:var(--sun-orange); background:#FFF5E0; padding:2px 9px; border-radius:999px; white-space:nowrap; }
.recipe-search-wrap{ margin-bottom:20px; }
.recipe-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.recipe-card{ background:var(--white); border-radius:18px; padding:18px 20px; box-shadow:0 8px 20px -14px rgba(58,46,31,.2); display:flex; flex-direction:column; gap:8px; text-decoration:none; color:inherit; transition:transform .15s, box-shadow .15s; }
.recipe-card:hover{ transform:translateY(-3px); box-shadow:0 14px 28px -14px rgba(58,46,31,.3); }
.recipe-card.recipe-done{ opacity:.6; }
.recipe-thumb{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:12px; }
.recipe-thumb-placeholder{ width:100%; aspect-ratio:4/3; border-radius:12px; background:var(--cream-deep); display:flex; align-items:center; justify-content:center; font-size:34px; }
.recipe-card-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.recipe-title{ margin:0; font-size:14.5px; font-weight:800; line-height:1.4; flex:1; }
.recipe-done-badge{ font-size:10px; font-weight:800; background:var(--green); color:var(--white); padding:2px 7px; border-radius:999px; vertical-align:middle; }
.recipe-time{ font-size:11.5px; font-weight:700; color:var(--sun-orange); white-space:nowrap; flex-shrink:0; }
.recipe-ingredients{ margin:0; font-size:12.5px; color:var(--brown-soft); line-height:1.6; }
.recipe-foot{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:auto; padding-top:4px; }
.recipe-season-badge{ font-size:10.5px; font-weight:800; background:var(--cream-deep); color:var(--brown-soft); padding:3px 9px; border-radius:999px; }
.recipe-priority{ font-size:10.5px; font-weight:800; padding:3px 9px; border-radius:999px; }
.prio-high{ background:#FFE2E2; color:var(--coral); }
.prio-mid{ background:#FFF1D6; color:var(--sun-orange); }
.prio-low{ background:var(--cream-deep); color:var(--brown-soft); }
.recipe-source{ font-size:11px; color:var(--brown-soft); margin-left:auto; }

@media(max-width:860px){ .recipe-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px){ .recipe-grid{ grid-template-columns:1fr; } }

/* ===== Recipe detail (single-recipe.php) ===== */
.recipe-detail{ max-width:680px; margin:0 auto; padding:0 24px 100px; }
.recipe-detail-thumb{ margin-bottom:24px; }
.recipe-detail-thumb img{ width:100%; border-radius:20px; object-fit:cover; }
.recipe-detail-meta{ display:flex; gap:24px; margin-bottom:28px; flex-wrap:wrap; }
.recipe-detail-item{ display:flex; flex-direction:column; gap:4px; }
.recipe-detail-label{ font-size:11px; font-weight:800; color:var(--brown-soft); letter-spacing:.05em; }
.recipe-detail-section{ margin-bottom:28px; }
.recipe-detail-section h3{ font-size:15px; font-weight:900; color:var(--brown); margin:0 0 12px; }
.recipe-ingredient-list{ list-style:none; margin:0; padding:0; }
.recipe-ingredient-list li{ display:flex; justify-content:space-between; padding:10px 4px; border-bottom:1px solid var(--cream-deep); font-size:13.5px; }
.recipe-ingredient-list li:last-child{ border-bottom:none; }
.recipe-step-list{ margin:0; padding-left:22px; }
.recipe-step-list li{ margin-bottom:14px; font-size:13.5px; line-height:1.8; color:var(--brown-soft); }
.recipe-reference{ margin-top:20px; font-size:12.5px; color:var(--brown-soft); }

/* ===== Karaoke table ===== */
.karaoke-search-wrap{ margin-bottom:20px; }
.karaoke-search{ width:100%; padding:13px 18px; border-radius:14px; border:2px solid var(--cream-deep); font-size:15px; font-family:inherit; margin-bottom:14px; transition:border-color .15s; }
.karaoke-search:focus{ outline:none; border-color:var(--sun-orange); }
.karaoke-filter-row{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.karaoke-count{ font-size:12px; color:var(--brown-soft); font-weight:700; margin:0; }
.karaoke-table-wrap{ overflow-x:auto; border-radius:16px; box-shadow:0 8px 20px -14px rgba(58,46,31,.2); }
.karaoke-table{ width:100%; border-collapse:collapse; font-size:13.5px; background:var(--white); }
.karaoke-table thead th{ background:var(--cream-deep); color:var(--brown-soft); font-size:11px; font-weight:800; padding:10px 14px; text-align:left; white-space:nowrap; }
.karaoke-table td{ padding:10px 14px; border-bottom:1px solid var(--cream-deep); }
.karaoke-table tbody tr:last-child td{ border-bottom:none; }
.karaoke-table tbody tr:hover{ background:var(--cream); }
.ka-artist{ font-size:12px; font-weight:700; color:var(--brown-soft); white-space:nowrap; }
.ka-title{ font-weight:700; }
.ka-freq{ font-size:11.5px; font-weight:700; color:var(--brown-soft); white-space:nowrap; }
.ka-badge{ text-align:center; }
.ka-yes{ color:var(--green); font-weight:800; font-size:15px; }
.ka-no{ color:var(--cream-deep); font-size:15px; }

/* ===== Novel detail (overview) ===== */
.novel-detail{ max-width:760px; margin:0 auto; padding:0 32px 100px; }
.novel-detail-head{ display:flex; gap:24px; align-items:flex-start; background:var(--white); border-radius:22px; padding:28px 26px; box-shadow:0 12px 26px -16px rgba(58,46,31,.22); margin-bottom:24px; }
.spine-lg{ width:52px; min-height:110px; border-radius:8px; flex-shrink:0; }
.novel-detail-info{ flex:1; }
.novel-detail-info h1{ font-size:26px; font-weight:900; margin:10px 0 10px; line-height:1.3; }

.novel-overview-content{ background:var(--white); border-radius:22px; padding:30px 34px; margin-bottom:24px; box-shadow:0 8px 20px -14px rgba(58,46,31,.15); }
.novel-overview-content h2{ font-size:17px; font-weight:800; border-left:4px solid var(--sun-orange); padding-left:12px; margin:28px 0 12px; }
.novel-overview-content h2:first-child{ margin-top:0; }
.novel-overview-content p{ font-size:14.5px; line-height:1.9; margin:0 0 14px; color:var(--brown-soft); }
.novel-overview-content h3{ font-size:15px; font-weight:800; margin:20px 0 8px; }

.chapter-list{ background:var(--white); border-radius:22px; padding:26px 28px; box-shadow:0 8px 20px -14px rgba(58,46,31,.15); }
.chapter-list h2{ font-size:17px; font-weight:800; margin:0 0 14px; }
.chapter-item{ display:flex; align-items:center; gap:14px; padding:13px 0; border-bottom:1.5px dashed var(--cream-deep); color:var(--brown); transition:color .15s; }
.chapter-item:last-child{ border-bottom:none; }
.chapter-item:hover{ color:var(--sun-orange); }
.chapter-title{ font-size:14.5px; font-weight:700; flex:1; }
.chapter-arrow{ font-size:13px; color:var(--sun-orange); opacity:0; transition:opacity .15s; }
.chapter-item:hover .chapter-arrow{ opacity:1; }

/* ===== Chapter reading page ===== */
.chapter-detail{ max-width:680px; margin:0 auto; padding:60px 32px 100px; }
.chapter-heading{ font-size:24px; font-weight:900; margin:0 0 36px; }
.novel-body{ font-size:16px; line-height:2.2; color:var(--brown); }
.novel-body p{ margin:0 0 1.6em; }

.chapter-nav{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:64px; padding-top:28px; border-top:2px dashed var(--cream-deep); }
.chapter-nav-btn{ font-size:12.5px; font-weight:800; color:var(--sun-orange); padding:10px 18px; border:2px solid var(--sun-orange); border-radius:999px; white-space:nowrap; max-width:190px; overflow:hidden; text-overflow:ellipsis; transition:background .15s, color .15s; }
.chapter-nav-btn:hover{ background:var(--cream-deep); }
.chapter-nav-index{ background:var(--sun-orange); color:var(--white) !important; }
.chapter-nav-index:hover{ background:var(--sun-orange); opacity:.85; }

@media (max-width:860px){
  .novel-detail-head{ flex-direction:column; }
  .spine-lg{ width:100%; height:14px; min-height:auto; }
  .chapter-nav{ flex-wrap:wrap; justify-content:center; }
}

/* ===== Hamburger button ===== */
.hamburger-btn{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:42px;
  height:42px;
  background:var(--cream-deep);
  border:2px solid var(--sun-orange);
  border-radius:12px;
  cursor:pointer;
  padding:0;
  flex-shrink:0;
}
.hamburger-btn span{
  display:block;
  width:20px;
  height:2.5px;
  background:var(--brown);
  border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
  transform-origin:center;
}
.hamburger-btn.open span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2){ opacity:0; transform:scaleX(0); }
.hamburger-btn.open span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

/* ===== Mobile nav overlay ===== */
.mobile-nav-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:49;
  background:rgba(58,46,31,.45);
  backdrop-filter:blur(2px);
  opacity:0;
  transition:opacity .25s ease;
}
.mobile-nav-overlay.open{ opacity:1; }
.mobile-nav-panel{
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:72%;
  max-width:300px;
  background:var(--cream);
  border-left:3px dashed var(--sun-orange);
  display:flex;
  flex-direction:column;
  padding:80px 24px 40px;
  gap:6px;
  transform:translateX(100%);
  transition:transform .28s cubic-bezier(.4,0,.2,1);
}
.mobile-nav-overlay.open .mobile-nav-panel{ transform:translateX(0); }
.mobile-nav-panel a{
  padding:14px 18px;
  border-radius:14px;
  font-weight:800;
  font-size:15px;
  color:var(--brown);
  transition:background .15s ease;
  white-space:nowrap;
}
.mobile-nav-panel a:hover{ background:var(--cream-deep); }
.mobile-nav-panel a.active{ background:var(--sun-orange); color:var(--white); }

body.nav-open{ overflow:hidden; }

@media (max-width:860px){
  nav{ display:none; }
  .hamburger-btn{ display:flex; }
  .mobile-nav-overlay{ display:block; }
  .hero h1{ font-size:32px; }
  .cards, .work-grid, .novel-grid{ grid-template-columns:1fr; }
  .game-filters{ padding:0 16px; gap:10px; }
  .game-filter-select{ min-width:130px; }
  .game-list{ padding:0 16px 80px; }
  .game-row{ grid-template-columns:auto 1fr 20px; gap:8px; padding:13px 16px; }
  .game-series-col, .game-genre-col, .game-rating-col{ display:none; }
  .favorite-type-banners{ padding:0 16px; }
  .game-detail{ padding:0 16px 80px; }
}

/* ===== Quiz page ===== */
.quiz-wrap{
  max-width:640px;
  margin:0 auto;
  padding:0 24px 100px;
}

/* カテゴリー選択画面 */
.quiz-screen-head{ text-align:center; margin-bottom:24px; }
.quiz-screen-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
  color:var(--sun-orange);
  margin:0 0 6px;
}
.quiz-screen-title{
  font-size:20px;
  font-weight:900;
  color:var(--brown);
  margin:0;
}
.quiz-cat-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-bottom:8px;
}
.quiz-cat-btn{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:26px 16px;
  background:var(--white);
  border:2.5px solid var(--cream-deep);
  border-radius:20px;
  cursor:pointer;
  transition:border-color .15s, transform .15s, box-shadow .15s;
  box-shadow:0 8px 20px -14px rgba(58,46,31,.2);
}
.quiz-cat-btn:hover{
  border-color:var(--sun-orange);
  transform:translateY(-4px);
  box-shadow:0 14px 28px -14px rgba(58,46,31,.3);
}
.quiz-cat-all{ border-style:dashed; }
.quiz-cat-icon{ font-size:36px; line-height:1; }
.quiz-cat-name{ font-size:14px; font-weight:800; color:var(--brown); }
.quiz-diff-grid{ grid-template-columns:repeat(2,1fr); }
.quiz-diff-btn{ position:relative; }
.quiz-diff-count{
  font-size:11px;
  font-weight:800;
  color:var(--brown-soft);
  background:var(--cream-deep);
  padding:3px 9px;
  border-radius:999px;
}
.quiz-diff-btn.quiz-diff-easy:hover{ border-color:var(--green); background:#E9F5E1; }
.quiz-diff-btn.quiz-diff-mid:hover{ border-color:var(--sun-orange); background:#FFF5E0; }
.quiz-diff-btn.quiz-diff-hard:hover{ border-color:var(--coral); background:#FFE8E8; }
.quiz-back-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  border-radius:999px;
  background:var(--cream-deep);
  border:none;
  font-size:13px;
  font-weight:800;
  color:var(--brown-soft);
  cursor:pointer;
  margin-bottom:20px;
  transition:background .15s;
}
.quiz-back-btn:hover{ background:#F0E4CC; }
.quiz-card-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
  flex-wrap:wrap;
  gap:8px;
}
.quiz-card-meta .quiz-back-btn{ margin-bottom:0; }
.quiz-current-cat{
  font-size:12px;
  font-weight:800;
  color:var(--sun-orange);
  background:#FFF5E0;
  padding:4px 12px;
  border-radius:999px;
}

.quiz-set-name{
  margin:0 0 12px;
  font-size:13px;
  font-weight:700;
  color:#888;
  text-align:center;
}

.quiz-progress-bar-wrap{
  height:8px;
  background:var(--cream-deep);
  border-radius:99px;
  margin-bottom:32px;
  overflow:hidden;
}
.quiz-progress-bar{
  height:100%;
  background:linear-gradient(90deg, var(--sun-yellow), var(--sun-orange));
  border-radius:99px;
  transition:width .4s cubic-bezier(.4,0,.2,1);
}
.quiz-card{
  background:var(--white);
  border-radius:24px;
  padding:34px 30px;
  box-shadow:0 14px 30px -16px rgba(58,46,31,.25);
  border:3px solid var(--cream-deep);
}
.quiz-step{
  font-size:12px;
  font-weight:800;
  color:var(--sun-orange);
  letter-spacing:.12em;
  margin-bottom:10px;
}
.quiz-question{
  font-size:20px;
  font-weight:900;
  color:var(--brown);
  line-height:1.5;
  margin:0 0 26px;
}
.quiz-question-note{
  margin:-14px 0 26px;
  font-size:13px;
  font-weight:600;
  color:var(--brown-soft);
  background:var(--cream-deep);
  border-radius:10px;
  padding:8px 14px;
}
.quiz-choices{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.quiz-choice{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 18px;
  border-radius:14px;
  border:2.5px solid var(--cream-deep);
  background:var(--cream);
  font-size:14.5px;
  font-weight:700;
  color:var(--brown);
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease, transform .1s ease;
  text-align:left;
  width:100%;
}
.quiz-choice:hover{ border-color:var(--sun-orange); background:var(--cream-deep); transform:translateX(3px); }
.quiz-choice.correct{ border-color:var(--green); background:#E9F5E1; color:var(--green); }
.quiz-choice.wrong{ border-color:var(--coral); background:#FFE8E8; color:var(--coral); }
.quiz-choice.reveal-correct{ border-color:var(--green); background:#E9F5E1; color:var(--green); }
.quiz-choice[disabled]{ cursor:default; transform:none; }
.quiz-choice-label{
  width:26px;
  height:26px;
  border-radius:8px;
  background:var(--cream-deep);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
  flex-shrink:0;
}
.quiz-feedback{
  margin-top:18px;
  padding:14px 18px;
  border-radius:14px;
  font-size:13.5px;
  font-weight:700;
  line-height:1.6;
  display:none;
}
.quiz-feedback.show{ display:block; }
.quiz-feedback.ok{ background:#E9F5E1; color:var(--green); }
.quiz-feedback.ng{ background:#FFE8E8; color:var(--coral); }
.quiz-next-btn{
  margin-top:22px;
  width:100%;
  padding:15px;
  border-radius:14px;
  background:var(--sun-orange);
  color:var(--white);
  font-weight:800;
  font-size:15px;
  border:none;
  cursor:pointer;
  display:none;
  transition:opacity .15s;
}
.quiz-next-btn.show{ display:block; }
.quiz-next-btn:hover{ opacity:.88; }

.quiz-result{
  background:var(--white);
  border-radius:24px;
  padding:46px 30px;
  display:block;
  text-align:center;
  box-shadow:0 14px 30px -16px rgba(58,46,31,.25);
  border:3px solid var(--cream-deep);
}
.quiz-result-icon{ font-size:58px; margin-bottom:14px; }
.quiz-result h2{ font-size:26px; font-weight:900; margin:0 0 10px; }
.quiz-result .score-num{ font-size:54px; font-weight:900; color:var(--sun-orange); line-height:1; margin:14px 0; }
.quiz-result .score-label{ font-size:14px; color:var(--brown-soft); margin:0 0 28px; }
.quiz-result .msg{ font-size:14.5px; color:var(--brown-soft); line-height:1.8; margin:0 0 30px; }
.quiz-retry-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 34px;
  border-radius:999px;
  background:var(--sun-orange);
  color:var(--white);
  font-weight:800;
  font-size:15px;
  border:none;
  cursor:pointer;
  transition:opacity .15s;
}
.quiz-retry-btn:hover{ opacity:.88; }

/* ===== Typing / Maze mini games ===== */
.typing-meta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  margin-bottom:20px;
  font-size:14px;
  font-weight:800;
  color:var(--brown-soft);
}
.typing-timer, .maze-play .typing-timer{
  font-size:22px;
  color:var(--sun-orange);
}
.typing-target{
  text-align:center;
  font-size:34px;
  font-weight:900;
  color:var(--brown);
  margin:10px 0 24px;
}
.typing-input{
  display:block;
  width:100%;
  max-width:340px;
  margin:0 auto;
  padding:14px 18px;
  border-radius:14px;
  border:2.5px solid var(--cream-deep);
  font-size:18px;
  text-align:center;
  box-sizing:border-box;
}
.typing-input:focus{ outline:none; border-color:var(--sun-orange); }
.typing-start, .maze-start{ text-align:center; }
.typing-start .quiz-retry-btn, .maze-start .quiz-retry-btn{ margin-top:18px; }

.maze-wrap{
  display:flex;
  justify-content:center;
  margin-bottom:20px;
}
.maze-canvas{
  max-width:100%;
  border-radius:16px;
  box-shadow:0 14px 30px -16px rgba(58,46,31,.25);
  border:3px solid var(--cream-deep);
}
.maze-dpad{
  display:grid;
  grid-template-columns:repeat(3,52px);
  grid-template-rows:repeat(3,52px);
  gap:6px;
  justify-content:center;
  margin:0 auto;
}
.maze-dpad-btn{
  border-radius:14px;
  background:var(--cream-deep);
  border:none;
  font-size:20px;
  font-weight:800;
  color:var(--brown);
  cursor:pointer;
  transition:background .15s;
}
.maze-dpad-btn:hover{ background:var(--sun-orange); color:var(--white); }

/* ===== Family page ===== */
.family-page-wrap{ max-width:900px; margin:0 auto 100px; padding:0 24px; }

.memory-month-heading{ font-size:15px; font-weight:900; color:var(--brown); margin:34px 0 14px; }
.memory-month-heading:first-child{ margin-top:0; }
.memory-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.memory-card{ background:var(--white); border-radius:16px; overflow:hidden; box-shadow:0 8px 20px -14px rgba(58,46,31,.2); text-decoration:none; color:inherit; display:flex; flex-direction:column; transition:transform .15s, box-shadow .15s; }
.memory-card:hover{ transform:translateY(-3px); box-shadow:0 14px 28px -14px rgba(58,46,31,.3); }
.memory-thumb{ width:100%; aspect-ratio:4/3; object-fit:cover; }
.memory-thumb-placeholder{ width:100%; aspect-ratio:4/3; background:var(--cream-deep); display:flex; align-items:center; justify-content:center; font-size:32px; }
.memory-card-body{ padding:12px 14px; }
.memory-title{ margin:0 0 6px; font-size:13.5px; font-weight:800; line-height:1.4; }
.memory-meta{ margin:0; font-size:11px; color:var(--brown-soft); font-weight:700; }

.ranking-card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.ranking-card{ background:var(--white); border-radius:18px; padding:28px 16px; text-align:center; box-shadow:0 8px 20px -14px rgba(58,46,31,.2); text-decoration:none; color:inherit; transition:transform .15s, box-shadow .15s; }
.ranking-card:hover{ transform:translateY(-3px); box-shadow:0 14px 28px -14px rgba(58,46,31,.3); }
.ranking-card-icon{ font-size:32px; display:block; margin-bottom:10px; }
.ranking-card-title{ margin:0; font-size:14px; font-weight:800; }

@media(max-width:700px){
  .memory-grid, .ranking-card-grid{ grid-template-columns:repeat(2,1fr); }
}

/* ===== Memory detail (single-memory.php) ===== */
.memory-detail{ max-width:680px; margin:0 auto; padding:0 24px 100px; }
.memory-detail-meta{ font-size:12.5px; color:var(--brown-soft); margin:0 0 20px; }
.memory-detail-thumb{ margin-bottom:24px; }
.memory-detail-thumb img{ width:100%; border-radius:20px; object-fit:cover; }
.memory-detail-content{ font-size:14.5px; line-height:1.9; color:var(--brown); margin-bottom:28px; }
.memory-gallery-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:36px; }
.memory-gallery-img{ width:100%; aspect-ratio:1; object-fit:cover; border-radius:12px; }

.memory-comments{ border-top:2px solid var(--cream-deep); padding-top:28px; }
.memory-comments h3{ font-size:15px; font-weight:900; margin:0 0 16px; }
.memory-comment-list{ list-style:none; margin:0 0 28px; padding:0; }
.memory-comment{ background:var(--white); border-radius:14px; padding:14px 18px; margin-bottom:10px; box-shadow:0 8px 20px -16px rgba(58,46,31,.2); }
.memory-comment-meta{ margin:0 0 6px; font-size:11.5px; color:var(--brown-soft); }
.memory-comment-text{ margin:0; font-size:13.5px; line-height:1.7; }
.memory-comments .comment-form input[type="text"],
.memory-comments .comment-form input[type="email"],
.memory-comments .comment-form textarea{
  width:100%; padding:11px 14px; border-radius:10px; border:2px solid var(--cream-deep); font-size:13.5px; font-family:inherit; margin-bottom:10px; box-sizing:border-box;
}
.memory-comments .comment-form textarea{ min-height:100px; resize:vertical; }
.memory-comments .comment-form input[type="submit"]{
  padding:12px 28px; border-radius:999px; background:var(--sun-orange); color:var(--white); font-weight:800; font-size:14px; border:none; cursor:pointer;
}

/* ===== Ranking detail (single-ranking.php) ===== */
.ranking-detail{ max-width:560px; margin:0 auto; padding:0 24px 100px; }
.ranking-vote-list{ display:flex; flex-direction:column; gap:10px; }
.ranking-vote-btn{
  display:flex; align-items:center; gap:14px; padding:14px 18px; border-radius:14px; border:2.5px solid var(--cream-deep);
  background:var(--white); font-size:14.5px; font-weight:700; color:var(--brown); cursor:pointer; text-align:left; width:100%;
  transition:border-color .15s, background .15s, transform .1s;
}
.ranking-vote-btn:hover{ border-color:var(--sun-orange); background:var(--cream); transform:translateX(3px); }
.ranking-vote-btn[disabled]{ cursor:default; opacity:.6; transform:none; }
.ranking-vote-img{ width:44px; height:44px; object-fit:cover; border-radius:10px; flex-shrink:0; }

.ranking-result-list{ display:flex; flex-direction:column; gap:12px; }
.ranking-result-item{ display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; }
.ranking-result-rank{ font-size:13px; font-weight:900; color:var(--sun-orange); width:34px; }
.ranking-result-label{ font-size:14px; font-weight:800; color:var(--brown); }
.ranking-result-count{ font-size:12px; font-weight:800; color:var(--brown-soft); }
.ranking-result-bar-wrap{ grid-column:1/-1; height:10px; background:var(--cream-deep); border-radius:999px; overflow:hidden; }
.ranking-result-bar{ height:100%; background:linear-gradient(90deg, var(--sun-yellow), var(--sun-orange)); border-radius:999px; transition:width .5s ease; }

.ranking-comment-input-wrap{ margin-top:6px; }
.ranking-comment-input{
  width:100%; padding:11px 14px; border-radius:10px; border:2px solid var(--cream-deep); font-size:13.5px; font-family:inherit; resize:vertical; box-sizing:border-box;
}
.ranking-comment-input:focus{ outline:none; border-color:var(--sun-orange); }
.ranking-comment-heading{ font-size:15px; font-weight:900; margin:28px 0 14px; }
.ranking-comment-list{ list-style:none; margin:0; padding:0; }
.ranking-comment-item{ background:var(--white); border-radius:14px; padding:14px 18px; margin-bottom:10px; box-shadow:0 8px 20px -16px rgba(58,46,31,.2); }
.ranking-comment-text{ margin:8px 0 0; font-size:13.5px; line-height:1.7; }

/* ===== ユーザー名バッジ ===== */
.user-badge{
  display:inline-block; padding:3px 11px; border-radius:999px; font-size:12px; font-weight:800; line-height:1.6; white-space:nowrap;
}

/* ===== NEWバッジ ===== */
.new-badge{
  display:inline-block; padding:2px 9px; border-radius:999px; background:var(--coral); color:var(--white);
  font-size:10px; font-weight:900; letter-spacing:.04em; vertical-align:middle; margin-left:6px;
}

/* ===== ご意見箱 (page-opinions.php) ===== */
.opinion-page-wrap{ max-width:640px; margin:0 auto; padding:0 24px 100px; }
.opinion-form{ display:flex; flex-direction:column; gap:12px; margin-bottom:36px; }
.opinion-form-input{
  width:100%; padding:14px 16px; border-radius:14px; border:2px solid var(--cream-deep); font-size:14px; font-family:inherit; resize:vertical; box-sizing:border-box;
}
.opinion-form-input:focus{ outline:none; border-color:var(--sun-orange); }
.opinion-form .btn{ align-self:flex-end; }
.opinion-list{ display:flex; flex-direction:column; gap:14px; }
.opinion-item{ background:var(--white); border-radius:14px; padding:16px 20px; box-shadow:0 8px 20px -16px rgba(58,46,31,.2); }
.opinion-item-meta{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.opinion-item-date{ font-size:11.5px; color:var(--brown-soft); }
.opinion-item-text{ margin:0; font-size:14px; line-height:1.8; color:var(--brown); }
.opinion-item-delete{ display:inline-block; margin-top:10px; font-size:11.5px; font-weight:800; color:var(--coral); }
