:root {
  --ase-navy: #071427;
  --ase-navy-soft: #0e2342;
  --ase-blue: #1688ee;
  --ase-cyan: #35c5f0;
  --ase-ink: #142033;
  --ase-muted: #667085;
  --ase-line: #dce5ef;
  --ase-surface: #ffffff;
  --ase-bg: #f4f7fb;
  --ase-radius: 18px;
  --ase-shadow: 0 18px 50px rgba(7, 20, 39, .09);
}

html { scroll-behavior: smooth; }
body {
  color: var(--ase-ink);
  background: var(--ase-bg);
  font-family: Inter, "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 1rem;
  line-height: 1.9;
}

#header {
  background: linear-gradient(110deg, var(--ase-navy) 0%, #0c1d38 72%, #102957 100%);
  border: 0;
  box-shadow: 0 8px 30px rgba(4, 16, 34, .18);
}
#header > .container { width: calc(100% - 32px); max-width: none; }
#header .navbar { min-height: 76px; justify-content: space-between; flex-wrap: nowrap; }
#header .navbar-section.logo { flex: 0 0 auto; }
#header .navbar-section.desktop-menu { min-width: 0; flex: 0 1 auto; justify-content: flex-end; margin-left: clamp(2.5rem, 8vw, 7.5rem); }
#header .navbar-brand,
#header .navbar-brand:visited,
#header .dropmenu ul li a { color: #fff; }
#header .navbar-brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
#header .navbar-brand img,
#header .navbar-brand svg { display: none; }
#header .navbar-brand::after { content: "自動化SEの雑記"; }
#header .dropmenu a[href$="/typography"],
#header .dropmenu a[href$="/wordpress-import"] { display: none; }
#header .navbar-brand::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 14px 2px 0;
  border-radius: 999px;
  background: var(--ase-cyan);
  box-shadow: 0 0 18px rgba(53, 197, 240, .8);
}
#header .dropmenu > ul { display: flex; flex-wrap: nowrap; align-items: center; }
#header .dropmenu ul li a { padding: .7rem .5rem; font-size: .78rem; font-weight: 650; white-space: nowrap; opacity: .82; }
#header .dropmenu ul li a:hover,
#header .dropmenu ul li.active > a { color: var(--ase-cyan) !important; opacity: 1; }

@media (min-width: 841px) and (max-width: 1150px) {
  #header .navbar-section.desktop-menu { margin-left: 2rem; }
  #header .dropmenu ul li a { padding: .7rem .32rem; font-size: .7rem; }
}

#body-wrapper { padding: 4rem 0 5rem; background: var(--ase-bg); }
#body-wrapper > .container { max-width: 1120px; }
.ase-hero {
  margin: 0 0 3rem;
  padding: clamp(2.2rem, 7vw, 5.2rem);
  color: #fff;
  border-radius: 28px;
  background: radial-gradient(circle at 72% 20%, rgba(53,197,240,.26), transparent 34%), linear-gradient(125deg, #071427, #0c2344 62%, #263b94);
  box-shadow: 0 24px 70px rgba(7,20,39,.22);
}
.ase-hero h1 { max-width: 820px; margin: .2rem 0 .4rem; color: #fff; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.12; letter-spacing: -.04em; }
.ase-hero > p:not(.ase-eyebrow) { margin: 0 0 1.8rem; color: rgba(255,255,255,.78); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.ase-eyebrow { margin: 0; color: var(--ase-cyan); font-size: .76rem; font-weight: 800; letter-spacing: .18em; }
.ase-primary { display: inline-block; padding: .8rem 1.35rem; color: #fff !important; background: var(--ase-blue); border-radius: 999px; font-weight: 750; text-decoration: none; }
.ase-discovery { margin: 0 0 1.5rem; }
.ase-discovery h2 { margin: .15rem 0 .25rem; color: var(--ase-ink); font-size: clamp(1.65rem, 3vw, 2.35rem); }
.ase-lead { margin: 0; color: var(--ase-muted); }
.ase-category-switcher { display: flex; flex-wrap: wrap; gap: .65rem; align-items: flex-start; margin-top: 1.25rem; }
.ase-category-switcher details { display: contents; }
.ase-category-switcher summary { cursor: pointer; padding: .52rem .9rem; border: 1px solid var(--ase-line); border-radius: 999px; background: #fff; color: #38506d; font-size: .88rem; font-weight: 700; list-style: none; transition: .18s ease; }
.ase-category-switcher summary::-webkit-details-marker { display: none; }
.ase-category-switcher details[open] > summary { color: #fff; border-color: var(--ase-blue); background: var(--ase-blue); }
.ase-category-switcher details > .ase-card-grid { display: none; flex: 0 0 100%; order: 10; width: 100%; margin-top: .55rem; }
.ase-category-switcher details[open] > .ase-card-grid { display: grid; }
.ase-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.ase-filter > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ase-chips label { cursor: pointer; padding: .52rem .9rem; border: 1px solid var(--ase-line); border-radius: 999px; background: #fff; color: #38506d; font-size: .88rem; font-weight: 700; transition: .18s ease; }
#ase-all:checked ~ .ase-chips label[for="ase-all"],
#ase-it:checked ~ .ase-chips label[for="ase-it"],
#ase-trend:checked ~ .ase-chips label[for="ase-trend"],
#ase-note:checked ~ .ase-chips label[for="ase-note"] { color: #fff; border-color: var(--ase-blue); background: var(--ase-blue); }
#ase-it:checked ~ .ase-card-grid .ase-card:not(.ase-it),
#ase-trend:checked ~ .ase-card-grid .ase-card:not(.ase-trend),
#ase-note:checked ~ .ase-card-grid .ase-card:not(.ase-note) { display: none; }
.ase-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.15rem; }
.ase-card { display: flex; min-height: 310px; padding: 0; flex-direction: column; color: var(--ase-ink) !important; background: #fff; border: 1px solid var(--ase-line); border-radius: 18px; box-shadow: 0 12px 36px rgba(7,20,39,.07); text-decoration: none; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.ase-card:hover { transform: translateY(-5px); box-shadow: var(--ase-shadow); }
.ase-card > img { width: 100%; height: 150px; margin: 0; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; background: linear-gradient(135deg,#dcecff,#eef4fb); }
.ase-card > div { display: flex; flex: 1; padding: 1.15rem 1.25rem 1.3rem; flex-direction: column; }
.ase-card span { color: var(--ase-blue); font-size: .8rem; font-weight: 800; letter-spacing: .06em; }
.ase-card h3 { margin: .65rem 0 1rem; font-size: 1.06rem; line-height: 1.65; }
.ase-card b { margin-top: auto; color: #0f72c7; font-size: .86rem; }
.lunoa-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; margin-top: 2rem; padding: 1.4rem 1.6rem; color: #fff; border-radius: 20px; background: radial-gradient(circle at 15% 30%,rgba(89,226,255,.28),transparent 24%),linear-gradient(120deg,#08172d,#2938a5); box-shadow: var(--ase-shadow); }
.lunoa-banner h2 { margin: .1rem 0; color: #fff; }
.lunoa-banner p { margin: 0; color: rgba(255,255,255,.78); }
.lunoa-orb { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.12); color: #77e8ff; font-size: 1.7rem; font-weight: 900; }
.section-hero { margin: -.5rem 0 2rem; padding: clamp(1.8rem,5vw,3.4rem); border-radius: 22px; background: linear-gradient(130deg,#eef7ff,#f6f4ff); }
.section-hero h1 { margin: .15rem 0 .5rem; color: var(--ase-ink); font-size: clamp(2rem,5vw,3.4rem); }
.section-hero p:last-child { max-width: 760px; margin: 0; color: var(--ase-muted); }
.link-list { display: grid; gap: .8rem; }
.link-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.3rem; color: var(--ase-ink); border: 1px solid var(--ase-line); border-radius: 14px; background: #fff; text-decoration: none; }
.link-list a:hover { border-color: #81c8f4; box-shadow: 0 10px 28px rgba(7,20,39,.08); }
.link-list span { color: var(--ase-blue); }
.empty-state { padding: 2.5rem; border: 1px dashed #b5c8dd; border-radius: 18px; text-align: center; background: #f7fbff; }
.lunoa-release { margin: -.5rem 0 2rem; padding: clamp(2rem,7vw,5rem); color: #fff; border-radius: 28px; background: radial-gradient(circle at 78% 22%,rgba(82,220,255,.27),transparent 30%),linear-gradient(130deg,#071326,#172e7b); }
.lunoa-release h1 { max-width: 900px; margin: .35rem 0 1rem; color: #fff; font-size: clamp(2.2rem,6vw,4.5rem); line-height: 1.15; }
.release-lead { max-width: 760px; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.release-actions,.release-badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.ase-secondary { display: inline-block; padding: .8rem 1.35rem; color: #fff !important; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; text-decoration: none; }
.release-badges span { padding: .4rem .7rem; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .78rem; }
.feature-section { padding: 1rem 0 2rem; }
.feature-section h2 { color: var(--ase-ink); }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.feature-grid article { padding: 1.25rem; border: 1px solid var(--ase-line); border-radius: 16px; background: #fff; }
.feature-grid b { color: #174b84; }
.feature-grid p { margin-bottom: 0; color: var(--ase-muted); }
.download-panel { padding: 2rem; border-radius: 20px; background: #eef7ff; }
.download-panel h2 { color: var(--ase-ink); }
.form-field { margin-bottom: 1rem; }
form label { color: var(--ase-ink); font-weight: 700; }
form input[type="text"],form input[type="email"],form textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #bdcada; border-radius: 10px; background: #fff; }
form button[type="submit"] { padding: .8rem 1.5rem; color: #fff; border: 0; border-radius: 999px; background: var(--ase-blue); font-weight: 800; }
#body-wrapper .content-item {
  background: var(--ase-surface);
  border: 1px solid rgba(220, 229, 239, .85);
  border-radius: var(--ase-radius);
  box-shadow: var(--ase-shadow);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
}
.content-title {
  color: var(--ase-ink);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.025em;
  text-align: left !important;
  margin: 0 0 1rem;
}
.blog-date { color: var(--ase-muted); font-size: .9rem; text-align: left; }
.e-content { font-size: 1.03rem; }
.e-content p { margin: 1.15em 0; }
.e-content h2 {
  margin: 2.6em 0 .9em;
  padding: .72em .85em;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(110deg, var(--ase-navy-soft), #16498b);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.45;
  scroll-margin-top: 104px;
}
.e-content h3 {
  margin: 2.1em 0 .7em;
  padding: 0 0 .45em .75em;
  border-left: 5px solid var(--ase-blue);
  border-bottom: 1px solid var(--ase-line);
  color: var(--ase-ink);
  font-size: 1.3rem;
  scroll-margin-top: 104px;
}
.e-content h4 { color: #174b84; margin-top: 1.8em; }
.e-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.8rem auto;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(7, 20, 39, .12);
}
.e-content a { color: #096fc7; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.e-content blockquote {
  margin: 1.8rem 0;
  padding: 1.1rem 1.35rem;
  border-left: 5px solid var(--ase-cyan);
  border-radius: 0 12px 12px 0;
  background: #eef8ff;
}
.e-content :not(pre) > code {
  padding: .16em .42em;
  color: #b4235a;
  background: #f4f0f5;
  border: 1px solid #e8dfe8;
  border-radius: 6px;
  font-size: .9em;
  overflow-wrap: anywhere;
}
.ase-code-block {
  margin: 1.7rem 0;
  overflow: hidden;
  border: 1px solid #263b55;
  border-radius: 13px;
  background: #0b1422;
  box-shadow: 0 12px 30px rgba(7, 20, 39, .14);
}
.ase-code-toolbar {
  display: flex;
  min-height: 43px;
  padding: .42rem .55rem .42rem .9rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #a9bad0;
  background: #111f32;
  border-bottom: 1px solid #263b55;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .04em;
}
.ase-code-copy {
  min-width: 76px;
  padding: .34rem .7rem;
  color: #e7f4ff;
  background: #1c3551;
  border: 1px solid #385674;
  border-radius: 7px;
  font: inherit;
  letter-spacing: 0;
  cursor: pointer;
  transition: background .16s, border-color .16s;
}
.ase-code-copy:hover,
.ase-code-copy:focus-visible { background: #245a83; border-color: #54bff1; outline: none; }
.ase-code-copy.is-copied { color: #d8fff0; background: #176647; border-color: #35b67d; }
.ase-code-block pre {
  max-width: 100%;
  margin: 0;
  padding: 1.1rem 1.2rem 1.25rem;
  overflow: auto;
  color: #e7edf6;
  background: #0b1422;
  border: 0;
  border-radius: 0;
  font: 500 .9rem/1.72 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}
.ase-code-block pre code {
  display: block;
  min-width: max-content;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  white-space: pre;
}
.e-content table { display: block; overflow-x: auto; }

.blog-listing .content-item { margin-bottom: 1.4rem; transition: transform .2s ease, box-shadow .2s ease; }
.blog-listing .content-item:hover { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(7, 20, 39, .13); }
.blog-listing .content-title a { color: var(--ase-ink); text-decoration: none; }
.blog-listing > .container {
  width: calc(100% - 48px);
  max-width: 1280px !important;
}
.blog-listing #item.column {
  width: 100%;
  max-width: none;
  flex: 0 0 100%;
}
.blog-listing #sidebar { display: none; }
.blog-listing .e-content {
  width: 100%;
}
.pagination li a,
.btn, .button { border-radius: 999px; }

#footer {
  color: rgba(255,255,255,.72);
  background: var(--ase-navy) !important;
  border: 0;
}
#footer a { color: #fff; }
.ase-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.25rem; margin-bottom: 1.5rem; }
.ase-footer-nav a { font-size: .86rem; text-decoration: none; opacity: .82; }
.ase-footer-nav a:hover { color: var(--ase-cyan); opacity: 1; }
.ase-footer-brand { margin: 0; color: #fff; font-size: 1.1rem; font-weight: 800; text-align: center; }
.ase-copyright { margin: .35rem 0 0; font-size: .8rem; text-align: center; }

@media (max-width: 840px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  #header .navbar { min-height: 64px; }
  #body-wrapper { padding: 2rem 0 3rem; }
  #body-wrapper > .container { padding-left: 14px; padding-right: 14px; }
  .blog-listing > .container { width: 100%; }
  #body-wrapper .content-item { padding: 1.25rem 1.1rem 1.8rem; border-radius: 14px; }
  .content-title { font-size: 1.65rem; }
  .e-content { font-size: .98rem; line-height: 1.85; }
  .e-content h2 { margin-top: 2.1em; font-size: 1.3rem; }
  .e-content h3 { font-size: 1.15rem; }
  .ase-code-block { margin-right: -.25rem; margin-left: -.25rem; border-radius: 10px; }
  .ase-code-block pre { padding: 1rem; font-size: .82rem; }
  .ase-hero { border-radius: 18px; }
  .lunoa-banner { grid-template-columns: auto 1fr; }
  .lunoa-banner .ase-primary { grid-column: 1 / -1; text-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .link-list a { flex-direction: column; }
  .ase-card-grid { grid-template-columns: 1fr; }
  .ase-card { min-height: 0; }
  .ase-footer-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); text-align: center; }
}
