/*
Theme Name: TEI Minimal
Theme URI: https://tokyoeroticinsider.com/
Author: Tokyo Erotic Insider
Author URI: https://tokyoeroticinsider.com/
Description: Ultra-minimal WordPress theme for a pixel-accurate landing page. Includes head/footer hooks for plugin compatibility.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tei-minimal
*/

/* ========= Base ========= */
html, body { height: 100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  color:#ffe6f1;
  /* 背景画像はPHP側の --bg でも上書き可能 */
  background: url('https://tokyoeroticinsider.com/wp-content/uploads/2025/09/tei-background.jpg')
              no-repeat center center fixed;
  background-size: cover;
  /* 全体のトーン(見本合わせ) */
  background-color:#0b0002;
  background-blend-mode:multiply;
}

/* ========= Header (fixed) ========= */
.tei-header{
  position: fixed; inset: 0 0 auto 0;
  display:flex; align-items:center; gap:24px;
  padding:14px 32px;
  background:rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(255,68,119,.18);
  z-index:1000;
}
.tei-header .brand img {
  height: 150px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 51, 102, 0.5))
          brightness(1.2)
          contrast(1.1);
}


/* primary nav */
.tei-nav{ display:flex; align-items:center; gap:22px; }
.tei-nav > a,
.tei-nav .has-dd{
    color: #ffd0e3; 
	text-decoration:none; 
	font-size: 20px; 
	font-weight:600; 
	letter-spacing:.2px;
    padding:8px 6px; 
	border-radius:6px; 
	background:none; 
	border:none; 
	cursor:pointer;
	transition: color .2s, 
    text-shadow .2s;
}

.tei-nav > a:hover,
.tei-nav .has-dd:hover {
  color: #f4f4f4;
  text-shadow:
    0 0 10px rgba(255, 42, 42, 0.9),
    0 0 25px rgba(255, 42, 42, 0.6),
    0 0 60px rgba(255, 42, 42, 0.4);
}


/* dropdown */
.dropdown{ position:relative; }
.dropdown .dd{
  position:absolute; top:100%; left:0; min-width:220px;
  padding:8px; margin-top:8px; list-style:none;
  background: rgba(15,0,5,.92);
  border:1px solid rgba(255,68,119,.35);
  border-radius:10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4), 0 0 18px rgba(255,68,119,.18);
}
.dropdown .dd[hidden]{ display:none; }
.dropdown .dd a{
  display:block; padding:10px 12px; border-radius:8px; color:#ffd0e3; text-decoration:none;
}
.dropdown .dd a:hover{ background:rgba(255,68,119,.08); color:#fff; }

/* right CTA */
.btn-cta{
  margin-left:auto;
  display:inline-flex; align-items:center; justify-content:center;
  height:38px; padding:0 16px; border-radius:999px;
  border:1.6px solid rgba(255,68,119,.7);
  background: rgba(255,68,119,.14);
  color: #ff3366; /* 🔥濃い赤寄りネオン */
  text-shadow:
    0 0 10px rgba(255, 51, 102, 0.9),
    0 0 25px rgba(255, 51, 102, 0.6),
    0 0 60px rgba(255, 51, 102, 0.4); 
	text-decoration:none; font-weight:800;
    box-shadow: 0 0 12px rgba(255,68,119,.35), inset 0 0 10px rgba(255,68,119,.2);
    transition: all .18s ease;
}
.btn-cta:hover{
  background: rgba(255,68,119,.32); color:#fff;
  box-shadow: 0 0 18px rgba(255,68,119,.6), 0 0 40px rgba(255,68,119,.35);
}

/* mobile nav toggle */
.navcheck{ display:none; }
.navbtn{
  margin-left:auto; width:36px; height:28px; display:none;
  flex-direction:column; justify-content:space-between; cursor:pointer;
}
.navbtn span{ height:3px; background:#ffbcd6; border-radius:2px; display:block;
  filter: drop-shadow(0 0 6px rgba(255,68,119,.5));
}

/* ========= Landing Wrapper ========= */
.tei-landing{ position:relative; z-index:1; }

/* ========= Hero ========= */
.tei-landing .hero{
  /* 固定ヘッダー分の被りを避けつつフル画面に見せる */
  min-height: calc(70vh - 30px);
  padding-top:30px;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center;
  background: var(--bg) no-repeat center center / cover;
  position:relative; overflow:hidden; isolation:isolate;
}

.tei-landing .hero::after{
  content:""; position:absolute; inset:0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(1.5px);
  z-index:1;
}
.tei-landing .hero-inner{ position:relative; z-index:2; max-width:1100px; padding:0 24px; color:#fff; }
.tei-landing .logo{ width:160px; max-width:40vw; margin:10px auto 32px; display:block;
  filter: drop-shadow(0 0 10px rgba(255,51,102,.4));
}

/* heading neon */
.tei-landing h1 {
  font-size: 80px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 40px;
  color: #ff3366; /* 🔥濃い赤寄りネオン */
  text-shadow:
    0 0 10px rgba(255, 51, 102, 0.9),
    0 0 25px rgba(255, 51, 102, 0.6),
    0 0 60px rgba(255, 51, 102, 0.4);
}

/* hero main button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px; /* 中央配置と高さ統一 */
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 20px;
  border: 2px solid rgba(255, 51, 102, 0.8);
  background: radial-gradient(circle at 40% 40%, rgba(255, 51, 102, 0.35), rgba(255, 51, 102, 0.1));
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 51, 102, 0.8);
  box-shadow:
    0 0 15px rgba(255, 51, 102, 0.6),
    inset 0 0 12px rgba(255, 51, 102, 0.2);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: rgba(255, 51, 102, 0.55);
  transform: translateY(-2px);
  box-shadow:
    0 0 25px rgba(255, 51, 102, 0.9),
    0 0 60px rgba(255, 51, 102, 0.6),
    inset 0 0 18px rgba(255, 51, 102, 0.3);
}

/* ========= Categories ========= */
.tei-landing .categories{ padding:40px 24px 80px; }
.tei-landing .cat-grid{
  max-width: calc(220px*5 + 26px*4);
  margin:0 auto;
  display:grid; grid-template-columns: repeat(5, 220px); gap:26px; justify-content:center;
}
.tei-landing .cat-card{
  width:220px; height:260px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; text-decoration:none;
  background: rgba(15,0,5,.6);
  border:1px solid rgba(255,68,119,.7); border-radius:10px;
  color:#ffbcd6;
  box-shadow: 0 0 10px rgba(255,68,119,.3), inset 0 0 15px rgba(255,68,119,.1);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tei-landing .cat-card:hover{
  transform: translateY(-4px);
  border-color:#ff5fa1;
  box-shadow: 0 0 20px rgba(255,68,119,.7), inset 0 0 25px rgba(255,68,119,.3);
}
.tei-landing .cat-card img{
  width:100px; height:100px; object-fit:contain; display:block; margin:0 0 14px 0;
  filter: drop-shadow(0 0 8px rgba(255,68,119,.5));
  border-radius:12px;
}
.tei-landing .cat-title{
  line-height:1.2; font-size:15px; font-weight:700; color:#ffd0e3; white-space:normal;
}

/* ========= Responsive ========= */
@media (max-width:1200px){
  .tei-landing .cat-grid{ grid-template-columns: repeat(4, 220px); }
}
@media (max-width:980px){
  .tei-landing .cat-grid{ grid-template-columns: repeat(3, 220px); }
}
@media (max-width:860px){
  .btn-cta{ display:none; }
  .navbtn{ display:flex; }
  .tei-nav{
    position:absolute; top:100%; left:0; right:0;
    display:none; flex-direction:column; gap:8px;
    background: rgba(15,0,5,.95);
    border-bottom:1px solid rgba(255,68,119,.25);
    padding:12px 18px 16px;
  }
  .tei-nav a, .tei-nav .has-dd{ padding:10px 8px; width:100%; text-align:left; }
  .navcheck:checked ~ .tei-nav{ display:flex; }
}
@media (max-width: 768px) {
  .tei-landing h1 {
    font-size: 36px;
  }
  .btn-primary {
    padding: 14px 36px;
    font-size: 16px;
  }
}
@media (max-width:640px){
  .tei-landing .logo{ width:150px; }
  .tei-landing .cat-grid{
    grid-template-columns: repeat(2, 180px);
    gap:18px; max-width: calc(180px*2 + 18px*1);
  }
  .tei-landing .cat-card{ width:180px; height:230px; }
  .tei-landing .cat-card img{ width:68px; height:68px; }
}
/* ===== Blog & Archive ===== */
.tei-wrap{ max-width: 1200px; margin: 0 auto; padding: 120px 24px 80px; }

.blog-hero{
  text-align:center;
  margin-bottom: 28px;
}
.blog-hero h1{
  font-weight:800;
  font-size: clamp(32px, 4.6vw, 48px);
  color:#ff2a2a;
  text-shadow:
    0 0 10px rgba(255,42,42,.9),
    0 0 25px rgba(255,42,42,.6),
    0 0 60px rgba(255,42,42,.35);
}
.blog-hero .sub{
  margin-top:8px; color:#ffbcd6; opacity:.9;
}

/* Grid */
.post-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 980px){
  .post-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .post-grid{ grid-template-columns: 1fr; }
}

.post-card{
  background: rgba(15,0,5,.70);
  border:1px solid rgba(255,68,119,.7);
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 0 10px rgba(255,68,119,.25), inset 0 0 15px rgba(255,68,119,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.35), 0 0 18px rgba(255,68,119,.45);
}
.post-card .thumb img{ width:100%; height:220px; object-fit:cover; display:block; }

.post-card .meta{
  display:flex; align-items:center; gap:10px;
  font-size:12px; padding:12px 16px 0; color:#ffd0e3; opacity:.9;
}
.post-card .meta .sep{ opacity:.6; }
.post-card .title{
  font-size: clamp(18px,2.4vw,22px);
  font-weight:800; line-height:1.25; margin: 8px 16px 6px;
}
.post-card .title a{ color:#fff; text-decoration:none; }
.post-card .title a:hover{
  color:#ff2a2a;
  text-shadow: 0 0 10px rgba(255,42,42,.7);
}
.post-card .excerpt{ color:#ffbcd6; margin:0 16px 16px; }
.post-card .readmore{
  display:inline-flex; align-items:center; justify-content:center;
  margin: 0 16px 18px; padding:10px 14px; border-radius:999px;
  border:1.6px solid rgba(255,51,102,.75); color:#fff; text-decoration:none;
  background: rgba(255,51,102,.12);
  box-shadow: 0 0 10px rgba(255,51,102,.4), inset 0 0 10px rgba(255,51,102,.2);
}
.post-card .readmore:hover{
  background: rgba(255,51,102,.35);
}

/* Single */
.tei-article .article{ max-width: 880px; margin: 0 auto; }
.article-head .meta{
  color:#ffd0e3; opacity:.9; margin-bottom:6px; font-size:14px;
}
.article-head .title{
  font-size: clamp(30px,4.4vw,46px); font-weight:800;
  color:#ff2a2a;
  text-shadow: 0 0 10px rgba(255,42,42,.9), 0 0 25px rgba(255,42,42,.6);
  margin-bottom: 14px;
}
.article-head .feat img{ width:100%; height:auto; border-radius:14px; box-shadow: 0 8px 26px rgba(0,0,0,.4); margin:16px 0 8px; }

.tei-article .content{
  color:#ffe6f1; line-height:1.85; font-size:18px;
}
.tei-article .content p{ margin: 1.1em 0; }
.tei-article .content a{ color:#ff8ab6; text-decoration:underline; }
.tei-article .content h2, .tei-article .content h3{
  color:#fff; margin-top: 1.6em;
}

/* Post bottom */
.article-foot{ margin-top:28px; }
.article-foot .tags a{
  display:inline-block; margin:0 6px 8px 0; padding:6px 10px; border-radius:999px;
  background: rgba(255,51,102,.12); border:1px solid rgba(255,51,102,.5); color:#fff; text-decoration:none;
}
.article-foot .post-nav{ display:flex; justify-content:space-between; gap:10px; margin-top:22px; }
.article-foot .post-nav a{ color:#fff; text-decoration:none; }
.article-foot .post-nav a:hover{ color:#ff2a2a; text-shadow: 0 0 10px rgba(255,42,42,.7); }


