@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+JP:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:    #0e0e0e;
  --sf:    #161616;
  --sf2:   #1e1e1e;
  --bd:    rgba(255,255,255,0.07);
  --or:    #ff6a00;
  --wh:    #f0f0f0;
  --mu:    #666;
  --ft:    'Bebas Neue', sans-serif;
  --fb:    'Noto Sans JP', sans-serif;
}

body {
  background: var(--bg);
  color: var(--wh);
  font-family: var(--fb);
  font-size: 14px;
  line-height: 1.7;
}

/* ─── HEADER ─── */
header {
  border-bottom: 1px solid var(--bd);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--ft);
  font-size: 1.7rem;
  letter-spacing: .04em;
  color: var(--wh);
  text-decoration: none;
}
.logo .ac { color: var(--or); }

nav { display: flex; gap: 2rem; }
nav a {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mu);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color .2s;
}
nav a:hover { color: var(--wh); }
nav a.active { color: var(--wh); }
nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--or);
}

/* ─── SHARED LAYOUT ─── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
}

.sec-label {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--bd); }

/* ─── SIDEBAR ─── */
aside {}
.side-sec { margin-bottom: 2.2rem; }
.side-sec h4 {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or);
  border-bottom: 1px solid var(--bd);
  padding-bottom: .4rem;
  margin-bottom: .9rem;
}
.prof { text-align: center; }
.prof-ico {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--sf2);
  border: 2px solid var(--or);
  margin: 0 auto .7rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.prof-ico img { width: 100%; height: 100%; object-fit: cover; }
.prof-ico span { font-size: 1.5rem; }
.prof-name {
  font-family: var(--ft);
  font-size: 1.2rem;
  letter-spacing: .05em;
  display: block;
  margin-bottom: .2rem;
}
.prof-bio { font-size: 11px; color: var(--mu); line-height: 1.7; }
.soc { display: flex; justify-content: center; gap: .4rem; margin-top: .6rem; }
.soc a {
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--mu);
  text-decoration: none;
  border: 1px solid var(--bd);
  padding: 2px 9px;
  transition: all .2s;
}
.soc a:hover { border-color: var(--or); color: var(--or); }

.tc { display: flex; flex-wrap: wrap; gap: .3rem; }
.ct {
  font-size: 11px;
  padding: 3px 9px;
  background: var(--sf);
  color: var(--mu);
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.ct:hover { background: var(--or); color: #fff; }

.arc { list-style: none; }
.arc li {
  display: flex;
  justify-content: space-between;
  padding: .38rem 0;
  font-size: 12px;
  border-bottom: 1px solid var(--bd);
  color: var(--mu);
  transition: color .2s;
}
.arc li a { color: inherit; text-decoration: none; display: flex; justify-content: space-between; width: 100%; }
.arc li a:hover { color: var(--wh); }
.arc .n { color: var(--or); font-size: 11px; }

.rmini { display: flex; flex-direction: column; gap: .65rem; }
.rmi {
  display: flex; gap: .65rem;
  text-decoration: none; color: inherit;
  transition: opacity .2s;
}
.rmi:hover { opacity: .7; }
.rmi-th { width: 50px; height: 62px; flex-shrink: 0; background: var(--sf2); overflow: hidden; }
.rmi-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rmi-info { display: flex; flex-direction: column; justify-content: center; gap: .15rem; }
.rmi-t { font-family: var(--ft); font-size: .9rem; letter-spacing: .03em; display: block; line-height: 1.2; }
.rmi-d { font-size: 11px; color: var(--mu); }

/* ─── PAGINATION ─── */
.pgn { display: flex; gap: 1px; background: var(--bd); width: fit-content; margin-top: 1.8rem; }
.pg {
  width: 34px; height: 34px;
  background: var(--bg); border: none;
  color: var(--mu); font-size: 13px;
  cursor: pointer; font-family: var(--fb);
  transition: all .2s;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.pg:hover { background: var(--sf2); color: var(--wh); }
.pg.active { background: var(--or); color: #fff; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--bd);
  padding: 1.8rem 2rem;
  text-align: center;
}
.fl { font-family: var(--ft); font-size: 1.2rem; letter-spacing: .05em; display: block; margin-bottom: .2rem; }
.fl .ac { color: var(--or); }
footer p { font-size: 11px; color: var(--mu); letter-spacing: .1em; }

/* ─── UTILITY ─── */
.badge {
  display: inline-block;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--or); border: 1px solid var(--or);
  padding: 2px 10px; margin-bottom: .9rem;
}
.btn-more {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--or); text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid var(--or);
  transition: opacity .2s;
}
.btn-more:hover { opacity: .7; }

/* ─── INDEX: HERO ─── */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--sf2);
  border-bottom: 1px solid var(--bd);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14,14,14,.93) 0%,
    rgba(14,14,14,.65) 45%,
    rgba(14,14,14,.1)  100%
  );
}
.hero-txt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 2rem 2.8rem;
}
.hero-inner { max-width: 540px; }
.hero-title {
  font-family: var(--ft);
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: .02em;
  line-height: 1;
  color: var(--wh);
  margin-bottom: .65rem;
}
.hero-excerpt {
  font-size: 13px;
  color: rgba(240,240,240,.65);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  max-width: 360px;
}

/* ─── INDEX: GRID ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bd);
  border: 1px solid var(--bd);
  margin-bottom: .5rem;
}
.card {
  background: var(--bg);
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background .2s;
}
.card:hover { background: var(--sf); }
.card-thumb {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--sf2);
  position: relative;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb.no-img-placeholder {
  display: flex; align-items: center; justify-content: center;
}
.card-thumb.no-img-placeholder::after {
  content: 'NO IMAGE';
  font-family: var(--ft); font-size: .85rem;
  letter-spacing: .2em; color: rgba(255,255,255,.1);
}
.ctag {
  position: absolute;
  bottom: .55rem; left: .55rem;
  font-size: 10px; letter-spacing: .1em;
  background: rgba(14,14,14,.85);
  color: var(--mu); padding: 2px 7px;
}
.card-body { padding: .85rem 1rem; }
.card-body h3 {
  font-family: var(--ft);
  font-size: 1.08rem; letter-spacing: .03em;
  color: var(--wh); margin-bottom: .15rem; line-height: 1.1;
}
.card-body .dt { font-size: 11px; color: var(--mu); display: block; margin-bottom: .35rem; }
.card-body .ex { font-size: 12px; color: var(--mu); line-height: 1.6; }

/* ─── DETAIL: パンくずバー ─── */
.post-breadcrumb-bar {
  background: var(--sf);
  border-bottom: 1px solid var(--bd);
  padding: .65rem 2rem;
}
.post-breadcrumb-bar .breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── DETAIL: メインイラスト表示エリア ─── */
.post-image-stage {
  background: #000;
  border-bottom: 1px solid var(--bd);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 2rem;
}
.post-image-wrap {
  max-width: 1000px;
  width: 100%;
  position: relative;
}
.post-main-img {
  width: 100%;
  height: auto;           /* 縦横比そのまま表示 */
  display: block;
  object-fit: contain;
}
.post-image-wrap.img-error {
  min-height: 240px;
  background: var(--sf2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-image-wrap.img-error::after {
  content: 'NO IMAGE';
  font-family: var(--ft);
  font-size: 1rem;
  letter-spacing: .2em;
  color: var(--bd);
}

/* ─── DETAIL: CONTENT ─── */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: 11px; color: var(--mu);
  letter-spacing: .1em; margin-bottom: 0;
}
.post-breadcrumb-bar .breadcrumb { margin-bottom: 0; }
.breadcrumb a { color: var(--mu); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--or); }
.breadcrumb span { color: rgba(255,255,255,.3); }

.post-meta { display: flex; align-items: center; gap: .8rem; margin-bottom: .65rem; }
.ptag {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--or); border: 1px solid var(--or); padding: 2px 9px;
}
.pdate { font-size: 11px; color: var(--mu); letter-spacing: .1em; }

.post-title {
  font-family: var(--ft);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: .03em; line-height: 1;
  color: var(--wh); margin-bottom: 1.8rem;
}

.post-body {
  border-top: 1px solid var(--bd);
  padding-top: 1.8rem;
  margin-bottom: 3rem;
  max-width: 660px;
}
.post-body p {
  font-size: 14px; line-height: 1.95;
  color: rgba(240,240,240,.8); margin-bottom: 1.1rem;
}
.post-body h3 {
  font-family: var(--ft);
  font-size: 1.35rem; letter-spacing: .05em;
  color: var(--wh); margin: 1.8rem 0 .65rem;
  padding-left: .7rem;
  border-left: 2px solid var(--or);
  border-radius: 0;
}
.post-body h4 {
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--or); margin: 1.5rem 0 .5rem;
}
.post-body ul, .post-body ol {
  padding-left: 1.5rem; margin-bottom: 1.1rem;
  color: rgba(240,240,240,.75);
}
.post-body li { margin-bottom: .35rem; font-size: 14px; line-height: 1.8; }
.post-body img {
  width: 100%; height: auto; display: block;
  margin: 1.5rem 0; border: 1px solid var(--bd);
}
.post-body blockquote {
  border-left: 2px solid var(--or); border-radius: 0;
  padding: .5rem 1rem; margin: 1.5rem 0;
  color: var(--mu); font-style: italic;
}
.post-body a { color: var(--or); text-decoration: underline; text-underline-offset: 3px; }

/* ─── DETAIL: POST NAV ─── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
  border-top: 1px solid var(--bd);
  padding-top: 1.8rem;
}
.pnav-prev { text-align: left; }
.pnav-next { text-align: right; }
.pnav-link { text-decoration: none; color: inherit; display: inline-flex; flex-direction: column; gap: .15rem; transition: opacity .2s; }
.pnav-link:hover { opacity: .7; }
.nav-lbl { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--or); }
.nav-ttl { font-family: var(--ft); font-size: .95rem; letter-spacing: .03em; }
.pnav-home {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mu); text-decoration: none;
  border: 1px solid var(--bd); padding: 5px 14px;
  transition: all .2s; white-space: nowrap;
}
.pnav-home:hover { border-color: var(--or); color: var(--or); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { height: 360px; }
  .hero-title { font-size: 2.4rem; }
  .post-image-stage { padding: 1rem; }
  .post-nav { grid-template-columns: 1fr; gap: .8rem; }
  .pnav-next { text-align: left; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}
