/* =========================
   ijime0.com minimal theme
   ========================= */

:root{
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f7f7fb;
  --card: #ffffff;
  --shadow: 0 12px 30px rgba(0,0,0,.06);
  --radius: 18px;

  --accent: #111827;
  --accent2: #374151;

  --btn: #111827;
  --btnText: #ffffff;

  --maxw: 1100px;
}

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

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width: min(100% - 36px, var(--maxw));
  margin-inline:auto;
}

.skiplink{
  position:absolute;
  left:-9999px; top:auto;
  width:1px; height:1px;
  overflow:hidden;
}
.skiplink:focus{
  left:12px; top:12px;
  width:auto; height:auto;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 0;
}
/* ===== Mobile Header Fix ===== */
@media (max-width: 768px){

  .header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .brand{
    width: 100%;
  }

  .nav{
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav-link{
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* ===== Brand Logo (Header) ===== */

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 260px;
}

.brand-logo{
  display:block;
  height:40px;      /* PC時 */
  width:auto;
  flex: 0 0 auto;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.2;
  min-width: 0;
}

.brand-ja{
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-en{
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* スマホでは英語行を隠してロゴ＋日本語だけに（スッキリ） */
@media (max-width: 560px){
  .brand-logo{ height:34px; }
  .brand-en{ display:none; }
}

/* 既存の brand-mark（i0四角）を使わないので非表示（残っていても安全） */
.brand-mark{ display:none !important; }

.nav{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.nav-link{
  font-size: 14px;
  color: var(--accent2);
  padding: 8px 10px;
  border-radius: 12px;
}
.nav-link:hover{
  background: var(--soft);
  text-decoration:none;
}

/* Hero */
.hero{
  padding: 44px 0 26px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: center;
}
.eyebrow{
  margin:0 0 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .3px;
}
.hero-title{
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.hero-lead{
  margin: 0 0 18px;
  color: var(--accent2);
  font-size: 16px;
}
.hero-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}

.hero-visual{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height: 260px;
}
.hero-img{
  display:block;
  width:100%;
  height:auto;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
  text-decoration:none !important;
}
.btn-primary{
  background: var(--btn);
  color: var(--btnText);
  border-color: transparent;
}
.btn-primary:hover{ filter: brightness(0.96); }
.btn-ghost{
  background: #fff;
}
.btn-ghost:hover{ background: var(--soft); }

/* Sections */
.section{
  padding: 42px 0;
}
.section-soft{
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title{
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.2px;
}
.section-lead{
  margin: 0 0 18px;
  color: var(--accent2);
}

/* Cards / grids */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
}
.card h3{
  margin:0 0 8px;
  font-size: 16px;
}
.card p{ margin:0; color: var(--accent2); }

.bullet{
  margin: 0;
  padding-left: 18px;
}
.bullet li{
  margin: 10px 0;
}

.callout{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

/* Definition list */
.dl{
  margin:0;
}
.dl-row{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.dl-row:last-child{ border-bottom: none; }
dt{
  font-weight: 700;
  color: var(--accent2);
}
dd{
  margin:0;
}

/* Footer */
.site-footer{
  padding: 28px 0;
}
.footer-inner{
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.footer-title{
  margin:0;
  font-weight: 800;
}
.footer-sub{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-copy{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Notes */
.note{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* Responsive */
@media (max-width: 880px){
  .hero-inner{
    grid-template-columns: 1fr;
  }
  .nav{
    gap: 8px;
  }
  .grid3{
    grid-template-columns: 1fr;
  }
  .grid2{
    grid-template-columns: 1fr;
  }
  .dl-row{
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
