:root {
  --black: #0A0A0A;
  --dark: #1A1A1A;
  --text: #222;
  --muted: #666;
  --light: #999;
  --bg: #F7F7F7;
  --white: #FFF;
  --border: #E4E4E4;
  --radius: 10px;
  --radius-sm: 5px;
}

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

body {
  font-family: "Hiragino Sans", "Noto Sans JP", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 15px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo-main {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -.5px;
}

.logo-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .85rem;
}

.btn-apply {
  border: 1.5px solid rgba(255,255,255,.6);
  color: white !important;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .8rem !important;
  font-weight: 600;
  transition: background .15s;
}

.btn-apply:hover { background: rgba(255,255,255,.1); }

/* ── Hero ── */
.hero {
  background: var(--dark);
  color: white;
  padding: 52px 40px;
  border-radius: var(--radius);
  margin: 24px 0 0;
  text-align: center;
}

.hero-tag {
  font-size: .78rem;
  background: rgba(255,255,255,.12);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: .05em;
}

.hero h1 {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 10px;
}

.hero-sub {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  margin-bottom: 28px;
}

.btn-hero {
  display: inline-block;
  background: white;
  color: var(--black);
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 24px;
  text-decoration: none;
  font-size: .9rem;
  transition: opacity .15s;
}

.btn-hero:hover { opacity: .88; }

/* ── Hero Lang Flags ── */
.hero-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.hero-lang-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.75);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: .78rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
  line-height: 1;
}

.hero-lang-btn:hover {
  background: rgba(255,255,255,.18);
  color: white;
}

.hero-lang-btn.active {
  background: white;
  color: var(--black);
  border-color: white;
  font-weight: 700;
}

.hero-flag { font-size: 1rem; }
.hero-lang-name { font-size: .75rem; }

/* ── Header Lang Tabs ── */
.lang-tabs {
  display: flex;
  gap: 2px;
}

.lang-tabs button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.55);
  font-size: .72rem;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  font-family: inherit;
  transition: all .12s;
  white-space: nowrap;
}

.lang-tabs button:hover { color: white; background: rgba(255,255,255,.1); }

.lang-tabs button.active {
  color: white;
  font-weight: 700;
  background: rgba(255,255,255,.15);
}

@media (max-width: 760px) {
  .lang-tabs { display: none; }
}

/* ── Index Layout ── */
.index-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  margin-bottom: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .index-layout { grid-template-columns: 1fr; }
  .index-sidebar { display: none; }
}

.index-sidebar {
  position: sticky;
  top: 66px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: none;
}
.index-sidebar::-webkit-scrollbar { display: none; }

/* Profile Card */
.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
  text-align: center;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.profile-avatar span {
  color: white;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.profile-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-bio {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: left;
  margin-bottom: 12px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.profile-tags span {
  font-size: .68rem;
  background: var(--bg);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.sidebar-cta {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

/* ── Article Grid ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 56px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  transition: transform .18s, box-shadow .18s;
  display: block;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.11);
}

.card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #EBEBEB;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.card:hover .card-img img { transform: scale(1.03); }

.card-img--placeholder {
  background: var(--dark);
}

.card-img--placeholder .card-cat {
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
}

.card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--black);
  color: white;
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: .04em;
}

.card-body { padding: 16px; }

.card h2 {
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.card-excerpt {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.65;
}

time {
  font-size: .7rem;
  color: var(--light);
}

.tag {
  font-size: .66rem;
  background: var(--bg);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* ── Article Page ── */
.layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  margin: 24px auto;
  align-items: start;
}

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  aside { display: none; }
  .hero { padding: 36px 20px; }
  .hero h1 { font-size: 1.25rem; }
  nav a:not(.btn-apply) { display: none; }
  article { padding: 20px; }
}

article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}

.article-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-header .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.article-header h1 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.45;
}

.article-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--black);
}

.article-body h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 18px 0 8px;
}

.article-body p { margin-bottom: 14px; }

.article-body ul,
.article-body ol { margin: 10px 0 14px 20px; }

.article-body li { margin-bottom: 5px; }

.article-body strong { font-weight: 700; }

.article-body a { color: var(--text); text-decoration: underline; }

/* ── Sidebar ── */
aside { position: sticky; top: 66px; }

.cta-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  margin-bottom: 12px;
}

.cta-price {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.cta-lead {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.btn-cta {
  display: block;
  background: var(--black);
  color: white;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 8px;
  transition: opacity .12s;
}

.btn-cta:hover { opacity: .8; }

.btn-cta--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  margin-bottom: 0;
}

.btn-cta--ghost:hover { background: var(--bg); opacity: 1; }

.cta-note {
  font-size: .66rem;
  color: var(--light);
  margin-top: 4px;
}

/* ── Footer ── */
footer {
  background: var(--dark);
  color: #666;
  padding: 24px 0;
  text-align: center;
  font-size: .8rem;
  margin-top: 56px;
}
