:root {
  --brand: #0ea564;
  --brand-ink: #0a7d4c;
  --bg: #fff;
  --ink: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --surface: #f8fafc;
  --focus: #2563eb;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
  --shadow-md: 0 12px 30px rgba(10,20,30,.08);
  --maxw: 1400px;
  --header-height: 56px;
  --cta: #2F80ED;
  --cta-shadow: rgba(47,128,237,.28);
  --cta-shadow-hover: rgba(47,128,237,.33);
}

* { box-sizing: border-box; }

html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans JP";
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: .02em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { font: inherit; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.85); /* 元の背景色 */
  backdrop-filter: saturate(180%) blur(10px); /* 元のブラー効果 */
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header.is-scrolled {
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header .container { margin-left: 20px; margin-right:20px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  height: 28px;
  width: 320px;
}

.brand_mark {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.header .brand {
  display: flex;
  align-items: center;
  gap: clamp(5px, 2vw, 10px);
  height: 45px;
}

.header .brand .brand_mark {
  height: calc(180% * 0.6667);
  width: auto;
  max-height: none;
  max-width: none;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.brand_logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-ink));
}

.brand_name { letter-spacing: .3px; }

/* 后加 */
@media (max-width: 465px) {
  .header .container { margin-left: 10px; margin-right:10px; }
  .header .brand .brand_mark {
    width:180px;
  }
}
@media (max-width: 380px) {
  .header .container { margin-left: 5px; margin-right:8px; }
  .header .brand .brand_mark {
    width:160px;
  }
}
@media (max-width: 350px) {
  .header .brand .brand_mark {
    width:150px;
  }
}
@media (max-width: 335px) {
  .header .brand .brand_mark {
    width:140px;
  }
}
@media (max-width: 315px) {
  .header .brand .brand_mark {
    width:120px;
  }
}
@media (max-width: 300px) {
  .header .brand .brand_mark {
    width:100px;
  }
}

.nav_links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 22px;
  flex: 1;
}

.nav_link {
  padding: 12px 10px;
  border-radius: 10px;
  white-space: nowrap;
  line-height: 1;
}

.nav_link:hover {
  background: color-mix(in srgb, var(--cta) 8%, transparent);
}

@supports not (color: color-mix(in srgb, white 10%, black)) {
  .nav_link:hover { background: rgba(47,128,237,.08); }
}

.nav_item--cta { margin-left: 12px; }

.nav_cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
  font-weight: 700;
  border: 0;
  color: #fff;
  background: var(--cta);
  box-shadow: 0 8px 16px var(--cta-shadow);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.nav_cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 20px var(--cta-shadow-hover);
}

.nav_cta:active { transform: translateY(1px); }

.nav_tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 24px;
  position: relative;
  z-index: 45;
}

.iconbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  color: #6b7280;
}

.iconbtn:hover {
  background: rgba(0,0,0,.05);
  color: #111827;
}

.nav_burger {
  display: none; /* PCでは常に非表示 */
}

.lang { position: relative; }
.lang_label { margin-left: 5px; }

.lang_menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  min-width: 160px;
  z-index: 46;
}

.lang.is-open .lang_menu { display: block; }

.lang_menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
}

.lang_menu a:hover { background: var(--surface); }

.lang_menu a.is-active {
  font-weight: 700;
  color: var(--cta);
}

.searchpanel {
  position: fixed;
  inset: 72px 0 0 0;
  background: #f5f7f9;
  z-index: 39;
  display: none;
}

.searchpanel.is-open { display: block; }

.searchpanel_inner { padding: 24px 20px; }

.searchpanel_bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

.searchpanel_bar input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.searchpanel_close {
  border: 0;
  background: #fff;
  border-left: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  color: #6b7280;
}

.searchpanel_close:hover {
  background: var(--surface);
  color: #111827;
}

.mega_panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #000; /* 元の黒背景 */
  padding: 24px 28px;
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
  z-index: 1000;
  transition: opacity .3s ease, transform .3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.mega_panel.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mega_grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  align-items: start;
  column-gap: 56px;
  row-gap: 18px;
  white-space: nowrap;
}

.mega_parent {
  grid-column: 1/2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega_children {
  grid-column: 2/5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 56px;
}

.mega_item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  border-radius: 6px;
  transition: all .3s ease;
  position: relative;
}

.mega_item:hover {
  background: color-mix(in srgb, var(--cta) 15%, transparent);
  color: var(--cta);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

@supports not (color: color-mix(in srgb, white 10%, black)) {
  .mega_item:hover { background: rgba(47,128,237,.15); color: #2F80ED; }
}

.mega_item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--cta);
  transition: width .3s ease;
}

.mega_item:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  background: var(--cta);
  color: #fff;
  box-shadow: 0 10px 24px var(--cta-shadow);
  transition: background .3s ease, filter .3s ease, box-shadow .3s ease;
  margin-top: 50px;
}

.btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 24px var(--cta-shadow-hover);
}

.btn--brand {
  background: var(--cta);
  color: #fff;
}

.btn--ghost {
  border-color: #ffffff44;
  color: #fff;
  background: transparent;
}

.btn--ghost:hover { background: #ffffff10; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* 后加 */
@media (max-width: 720px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--3 { grid-template-columns: repeat(1, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.card_media {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

.card_body { padding: 16px; }

.card_kicker {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.card_title { font-weight: 700; margin: 6px 0 8px; }
.card_meta { font-size: 14px; color: var(--muted); }
.card_desc { color: #475569; }
.card--site { position: relative; }
.card--site .card_media { aspect-ratio: 4/3; }
.card--site .card_title { font-weight: 700; margin-bottom: 4px; }

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #eef2ff;
  color: #374151;
}

.badge--new { background: #dcfce7; color: #166534; }
.badge--abs { position: absolute; top: 10px; right: 10px; }

.pillrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.pill {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #f1f5f9;
  color: #334155;
}

.snap { position: relative; }

.snaptrack {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(360px, 86vw);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 14px;
}

.snaptrack>* { scroll-snap-align: center; }

.snapbtn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  box-shadow: var(--shadow-sm);
}

.snapnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.tile {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.tile_img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.tile_label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}

.banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 10px;
}

.banner img { display: block; width: 100%; }

.banner_label {
  position: absolute;
  inset: auto 12px 12px 12px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

.footer {
  background: #0b0f0c;
  color: #cbd5e1;
  padding: 5px 0 0;
  overflow: hidden;
}

.footer a { color: #d1fae5; }

.footer_cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
}

.footer_brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.footer_logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-ink));
}

.footer_badge { display: block; width: 88px; height: auto; aspect-ratio: 1/1; }
.footer_text strong { display: block; line-height: 1.3; }
.footer_brand .muted { white-space: nowrap; margin: 0; text-align: center; }

/* 后加 */
@media (max-width: 465px) {
  .footer_brand .muted { font-size:0.875rem; }
  .allRight{display: none!important;}
}

.kicker {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.backtop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(8px);
  transition: .2s;
  pointer-events: none;
}

.backtop.is-show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.header .nav { justify-content: flex-start !important; }
.header .brand { margin-right: auto !important; }
.header .nav_links { flex: 0 0 auto !important; margin-left: auto !important; gap: 26px; }
.header .nav_tools { flex: 0 0 auto !important; margin-left: 16px; }

.tiles {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(416px, 1fr));
  gap: 22px;
}

.tiles .tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tiles .tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.page > .h1, .page > .h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.page > .lead {
  text-align: center;
  margin: 8px auto 0;
  max-width: 70ch;
}


html[lang="en"] .nav_links {
  max-width: 100%;
  white-space: nowrap;
}
html[lang="en"] .h1 {
  font-size: 2rem; /* 長いタイトル用 */
}