/*
Theme Name: 帝京医学雑誌 Child
Template: twentytwentyfive
Version: 1.0.0
*/

/* ===== Tokens ===== */
:root{
  --brand:#0050bd;
  --brand-2:#0a63e6;
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;

  --accent:#b6d4ff;
  --accent-2:#0369a1;

  --accent-soft:#fef2f2;

  --card:#ffffff;

  /* 角丸は極力なくす */
  --radius: 0px;

  --shadow: 0 6px 18px rgba(0,0,0,.06);
  --max:1120px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height:1.55;
  font-weight: 400;
}

a{ color:var(--brand-2); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ===== Header ===== */
.site-header,
header{
  background:var(--brand);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.18);
}

.header-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.brand{
  min-width:260px;
  display:flex;
  flex-direction:column;
  gap:0;
  align-items:flex-start;
}

.brand-jp{
  display:block;
  height:28px;
  width:auto;
  max-width:100%;
  object-fit:contain;
}
.brand-divider{
  width:100%;
  height:2px;
  background:#ffffff;
  opacity:.9;
  margin:8px 0 6px;
  max-width:420px;
}
.brand-en{
  display:block;
  height:14px;
  width:auto;
  max-width:420px;
  object-fit:contain;
  margin-top:0;
}

.issn{
  font-size:12px;
  opacity:.95;
  white-space:nowrap;
}

.issn a{
  color: #fff;
}

/* nav（使う場合のみ） */
.nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}
.nav a{
  color:#fff;
  font-size:14px;
  padding:8px 10px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.08);
}
.nav a:hover{
  background:rgba(255,255,255,.16);
  text-decoration:none;
}

/* ===== Layout ===== */
.wrap{
  max-width:var(--max);
  margin:18px auto 48px;
  padding:0 18px;
}
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr; /* 50:50 */
  gap:28px;
  align-items:start;
}

/* ===== Cards ===== */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card + .card{ margin-top:14px; }

.card .title{
  background:var(--accent);
  padding:10px 12px;
  font-weight:900;
  font-size:14px;
  color:var(--accent-2);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.card .body{
  padding:12px 12px 14px;
  font-size:14px;
}
.card .body p{
  padding: 0;
  margin: 10px 0 0;
}
.card .body p:first-child{
  margin-top: 0;
}
.card .body strong{
  font-weight: bold;
}

/* ===== Notice box ===== */
.note{
  background:var(--accent-soft);
  border-left:4px solid #b91c1c;
  padding:10px 10px;
  border-radius:var(--radius);
  margin-top:10px;
}
.warning{
  display:inline-block;
  background:#b91c1c;
  color:#ffffff;
  font-weight:800;
  font-size:12px;
  padding:2px 8px;
  border-radius:var(--radius);
  line-height:1.6;
}

.small{ font-size:12.5px; color:var(--muted); }

.list{
  margin:8px 0 0;
  padding-left:18px;
}
.list li{ margin:6px 0; }

/* ===== お知らせ（共通） ===== */
.notice{
  border:1px solid var(--line);
  padding:10px 10px;
  margin-top:12px;
  background:#fff;
}
.notice__badge{
  display:inline-block;
  font-weight:800;
  font-size:12px;
  padding:2px 8px;
  line-height:1.6;
}
.notice__title{
  margin-top:6px;
  font-weight:800;
}
.notice__body p{
  margin:6px 0 0;
  font-size:13px;
  line-height:1.7;
}
.notice__note{
  margin-top:8px;
  font-size:12.5px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding-top:8px;
}

/* 注意（赤系） */
.notice--alert{
  background: var(--accent-soft);
  border-left: 4px solid #b91c1c;
}
.notice--alert .notice__badge{
  background:#b91c1c;
  color:#fff;
}

/* 通常（青系） */
.notice--normal{
  background: rgba(3,105,161,.06);
  border-left: 4px solid var(--accent-2);
}
.notice--normal .notice__badge{
  background: var(--accent-2);
  color:#fff;
}

/* ===== Backnumber link ===== */
.issue-link{
  display:inline;
  padding:0;
  border:none;
  background:transparent;
  color:var(--brand);
  text-decoration:underline;
}
.issue-link:hover{ text-decoration:none; }

/* ===== Latest issue ===== */
.issuebar{
  font-weight:800;
  font-size:13px;
  color:var(--accent-2);
  background:rgba(3,105,161,.08);
  border:1px solid rgba(3,105,161,.18);
  padding:8px 10px;
  border-radius:var(--radius);
  margin-bottom:14px;
}

.block{
  margin:12px 0 0;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}
.block h3{
  margin:0 0 6px;
  font-size:14px;
  font-weight: bold;
}
.block .meta{
  font-size:12.5px;
  color:var(--muted);
  margin-bottom:8px;
}

/* モックに合わせて、最新号本文は小さめ */
.latest .block p{
  font-size:11px;
  line-height:1.7;
  margin:0;
}

/* ===== Tags ===== */
.tag{
  display:inline-block;
  font-size:12px;
  font-weight:800;
  padding:2px 8px;
  border-radius:var(--radius);
  margin-right:8px;
  vertical-align:middle;
  border:1px solid rgba(0,0,0,.08);
  background:#ffffff;
  color:var(--brand);
  white-space:nowrap;
}
.tag--review{ background:#e0efff; }
.tag--original{ background:#dbeafe; }
.tag--essay{ background:#e5e7eb; color:#111827; }

/* ===== Footer ===== */
footer{
  margin-top:24px;
  padding-top:14px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12.5px;
}

/* ===== Responsive ===== */
@media (max-width: 1200px){
  .wrap{ padding: 0 14px; }
  .grid{ gap:22px; }
}
@media (max-width: 980px){
  .grid{ grid-template-columns:1fr; }
  .header-inner{ flex-wrap:wrap; justify-content:flex-start; }
  .nav{ justify-content:flex-start; width:100%; }
  .issn{ text-align:left; width:100%; }
}
@media (max-width: 640px){
  .header-inner{ padding:14px 14px; }
  .brand{ min-width:0; }
  .brand-jp{ height:32px; max-width:100%; }
  .brand-divider{ max-width:100%; margin:7px 0 5px; }
  .brand-en{ height:12px; max-width:100%; }
  .nav a{ font-size:13px; padding:7px 9px; }
  .card .body{ padding:12px; }
  .issuebar{ font-size:12.5px; }
  .block{ padding:11px; }
  .block h3{ font-size:13.5px; }
  .small{ font-size:12px; }
}
@media (max-width: 420px){
  .nav{ gap:10px; }
  .nav a{ padding:6px 8px; }
}

/* ===== Simple 404 ===== */
.simple-404{
  box-shadow: var(--shadow);
  margin-top: 1.5em;
}
.simple-404 .body p{ margin: 0 0 10px; }
.simple-404-actions{ margin-top: 14px; }
.simple-404-btn{
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  text-decoration: none;
}
.simple-404-btn:hover{
  text-decoration: underline;
}
