:root {
  --paper: #f7f2e6;
  --paper2: #f3ecdd;
  --ink: #1b1d23;
  --muted: #565a64;
  --navy: #1d2b44;
  --deepgreen: #1f3a2f;
  --enji: #6c1f2d;
  --accent: #c97a2b;
  --line: rgba(29, 43, 68, 0.18);
  --radius: 18px;
  --max: 1120px;

  /* Nav system */
  --nav-height: 68px;
  --nav-height-scrolled: 56px;
  --nav-bg: rgba(247, 242, 230, 0.82);
  --nav-bg-scrolled: rgba(247, 242, 230, 0.94);
  --nav-text-color: rgba(27, 29, 35, 0.9);
  --nav-transition-speed: 180ms;
  --accent-color: rgba(201, 122, 43, 0.95);
}

* {
  box-sizing: border-box;
}

/* Policy: never use shadows */
*,
*::before,
*::after {
  box-shadow: none !important;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      1200px 600px at 15% 8%,
      rgba(201, 122, 43, 0.08),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 80% 18%,
      rgba(108, 31, 45, 0.08),
      transparent 55%
    ),
    linear-gradient(180deg, var(--paper), var(--paper2));
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}
body.nav-scroll-lock {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-color: rgba(29, 43, 68, 0.35);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-color: rgba(201, 122, 43, 0.7);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible {
  outline: 2px solid rgba(201, 122, 43, 0.8);
  outline-offset: 2px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.skip-link:focus {
  left: 12px;
  z-index: 999;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  transition:
    background var(--nav-transition-speed) ease,
    backdrop-filter var(--nav-transition-speed) ease;
  will-change: background;
}
.site-header.scrolled {
  background: var(--nav-bg-scrolled);
}
.site-header .header-inner {
  min-height: var(--nav-height);
  transition: min-height var(--nav-transition-speed) ease;
}
.site-header.scrolled .header-inner {
  min-height: var(--nav-height-scrolled);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  width: min(327px, 100%);
  max-width: 100%;
  height: 40px;
  color: var(--nav-text-color);
}
.brand-mark {
  width: 40px;
  height: 40px;
  background: #c23b22;
  border-radius: 2px;
  border: 3px solid rgba(201, 122, 43, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 900;
  font-size: 18px;
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  transform: translateY(-1px);
}
.brand-name {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(27, 29, 35, 0.92);
  text-shadow: none;
}
.brand-kicker {
  margin-top: 6px;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 8px;
  letter-spacing: 0.34em;
  color: rgba(27, 29, 35, 0.55);
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item{margin:0; padding:0}
.nav-link {
  font-size: 12px;
  text-decoration: none;
  padding: 6px 2px;
  border-radius: 0;
  border: 0;
  color: rgba(27, 29, 35, 0.72);
  letter-spacing: 0.02em;
  position: relative;
  white-space: nowrap;
}
.nav-link[aria-current="page"] {
  color: rgba(27, 29, 35, 0.88);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--nav-transition-speed) ease;
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(27, 29, 35, 0.9);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(29, 43, 68, 0.16);
  white-space: nowrap;
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.55);
}
.nav-cta-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
}
.nav-cta-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Nav toggle button + overlay */
.nav-toggle-btn {
  display: none;
  width: 40px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: inherit;
}
.nav-toggle-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #c23b22;
  border-radius: 2px;
  transition:
    transform var(--nav-transition-speed) ease,
    opacity var(--nav-transition-speed) ease;
  will-change: transform, opacity;
}
.site-header.nav-open .nav-toggle-btn span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header.nav-open .nav-toggle-btn span:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle-btn span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.nav-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-overlay-top, var(--nav-height));
  bottom: 0;
  height: calc(100vh - var(--nav-overlay-top, var(--nav-height)));
  background: rgba(27, 29, 35, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--nav-transition-speed) ease;
  will-change: opacity;
  z-index: 998;
}
.site-header.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

main {
  display: block;
  padding-top: var(--nav-height);
}

/* JS-only animation initial states (fallback safe) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  will-change: transform, opacity;
}
.js [data-rule] {
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* 2026 Editorial Home */
.masthead {
  padding: 54px 0 16px;
}
.masthead-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
.masthead-board {
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background:
    radial-gradient(1200px 520px at 12% 8%, rgba(201, 122, 43, 0.1), transparent 62%),
    radial-gradient(920px 520px at 86% 18%, rgba(108, 31, 45, 0.085), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.32));
  overflow: hidden;
  padding: 28px 18px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.masthead-board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(29, 43, 68, 0.065),
      rgba(29, 43, 68, 0.065) 1px,
      transparent 1px,
      transparent 16px
    );
  opacity: 0.65;
}
.masthead-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(29, 43, 68, 0.86);
}
.masthead-kicker::before {
  content: "";
  width: 38px;
  height: 1px;
  background: rgba(29, 43, 68, 0.45);
}
.masthead-title {
  position: relative;
  margin: 14px 0 10px;
  font-size: clamp(30px, 4.3vw, 52px);
  line-height: 1.14;
  letter-spacing: 0.02em;
}
.masthead-sub {
  position: relative;
  margin: 0 0 18px;
  max-width: 62ch;
  color: rgba(27, 29, 35, 0.84);
}
.masthead-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.masthead-side {
  border-radius: 22px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.38);
  padding: 14px 14px;
  display: grid;
  gap: 12px;
}
.side-block {
  border-radius: 18px;
  border: 1px solid rgba(29, 43, 68, 0.1);
  background: rgba(255, 255, 255, 0.42);
  padding: 12px 12px;
}
.side-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 900;
  color: rgba(27, 29, 35, 0.72);
  margin-bottom: 10px;
}
.side-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.side-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.55);
}
.side-link:hover {
  background: rgba(255, 255, 255, 0.72);
}
.side-body {
  margin: 0;
  color: rgba(27, 29, 35, 0.82);
  font-size: 14px;
  line-height: 1.75;
}
.side-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(27, 29, 35, 0.78);
  font-size: 13px;
}
.side-search {
  margin: 0;
}
.side-search-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.side-search-field input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.7);
  padding: 0 12px;
  font-size: 14px;
}
.side-search-field button {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.52);
  padding: 0 14px;
  font-weight: 800;
  cursor: not-allowed;
  color: rgba(27, 29, 35, 0.55);
}

.ed-head {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 14px;
}
.ed-head-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.ed-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.1em;
}
.ed-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.ed-rule {
  height: 1px;
  background: rgba(29, 43, 68, 0.22);
}
.ed-rule--thin {
  background: rgba(29, 43, 68, 0.16);
}
.ed-lede {
  margin: 0;
  color: rgba(27, 29, 35, 0.9);
  max-width: 78ch;
}
.ed-lede strong {
  color: var(--navy);
}

.intro-points {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.intro-point {
  border-radius: 18px;
  border: 1px solid rgba(29, 43, 68, 0.12);
  background: rgba(255, 255, 255, 0.38);
  padding: 12px 12px;
  display: grid;
  gap: 6px;
}
.intro-point-k {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(29, 43, 68, 0.84);
}
.intro-point-v {
  font-size: 14px;
  color: rgba(27, 29, 35, 0.82);
  line-height: 1.7;
}

.rail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}
.rail-head {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.rail-head-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.rail-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.1em;
}
.rail-note {
  margin: 0;
  color: rgba(27, 29, 35, 0.6);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.rail-card {
  border-radius: 22px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.42);
  overflow: hidden;
}
.rail-card--slider {
  padding-bottom: 12px;
}
.rail-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 0;
}
.rail-card-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
}
.rail-more {
  font-size: 12px;
  text-decoration: none;
  color: rgba(27, 29, 35, 0.66);
}
.rail-more:hover {
  color: rgba(201, 122, 43, 0.95);
}
.rail-lists {
  display: grid;
  gap: 14px;
}

@media (min-width: 920px) {
  .masthead-grid {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 18px;
  }
  .masthead-board {
    min-height: 380px;
    padding: 34px 28px;
  }
  .rail-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
  }
  .rail-sticky {
    position: sticky;
    top: calc(var(--nav-height) + 18px);
  }
  .intro-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero {
  padding: 46px 0 16px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
.hero-grid--single {
  grid-template-columns: 1fr;
}
.hero-card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.62),
      rgba(255, 255, 255, 0.35)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(29, 43, 68, 0.07),
      rgba(29, 43, 68, 0.07) 1px,
      transparent 1px,
      transparent 12px
    );
  border: 1px solid rgba(29, 43, 68, 0.14);
  overflow: hidden;
}
.hero-card:before {
  content: "";
  position: absolute;
  inset: -40px -80px auto auto;
  width: 260px;
  height: 260px;
  background:
    radial-gradient(
      circle at 35% 35%,
      rgba(108, 31, 45, 0.24),
      transparent 62%
    ),
    radial-gradient(circle at 70% 65%, rgba(31, 58, 47, 0.18), transparent 60%);
  filter: blur(2px);
  transform: rotate(18deg);
}
.hero-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--navy);
  letter-spacing: 0.14em;
}
.hero-kicker:before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(29, 43, 68, 0.45);
}
.hero-title {
  position: relative;
  margin: 12px 0 8px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: 0.02em;
}
.hero-sub {
  position: relative;
  margin: 0 0 18px;
  color: rgba(27, 29, 35, 0.86);
  max-width: 62ch;
}
.hero-board {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-tools {
  border-radius: var(--radius);
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.35);
  padding: 14px 14px;
}
.quick-search--hero .quick-field input {
  background: rgba(255, 255, 255, 0.7);
}
.quick-links--hero {
  margin-top: 12px;
}
.quick-links--hero .quick-link {
  font-size: 12px;
  padding: 10px 12px;
}
.cta-row {
  position: relative;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(29, 43, 68, 0.2);
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-weight: 700;
}
.btn-primary {
  border-color: rgba(201, 122, 43, 0.35);
  background: linear-gradient(
    180deg,
    rgba(201, 122, 43, 0.18),
    rgba(201, 122, 43, 0.1)
  );
}
.btn:hover {
  transform: translateY(-1px);
}

.hero-aside {
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.35);
}
.hero-aside h2 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.08em;
}
.hero-aside p {
  margin: 0;
  color: rgba(27, 29, 35, 0.86);
  font-size: 15px;
}
.hero-aside ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.hero-aside li {
  margin: 6px 0;
  color: rgba(27, 29, 35, 0.86);
  font-size: 15px;
}

.section {
  padding: 26px 0;
}

/* Front bento (slider + lists) */
.front-bento {
  padding-top: 8px;
}
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.bento-card {
  border-radius: 20px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.42);
  overflow: hidden;
}
.bento-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 0;
}
.bento-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
}
.bento-more {
  font-size: 12px;
  text-decoration: none;
  color: rgba(27, 29, 35, 0.66);
}
.bento-more:hover {
  color: rgba(201, 122, 43, 0.95);
}

.dense-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.dense-item + .dense-item {
  border-top: 1px solid rgba(29, 43, 68, 0.1);
}
.dense-link {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  min-height: 56px;
}
.dense-link:hover {
  background: rgba(255, 255, 255, 0.35);
}
.dense-link:focus-visible {
  outline: 2px solid rgba(201, 122, 43, 0.55);
  outline-offset: -2px;
  background: rgba(255, 255, 255, 0.42);
}
.dense-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.dense-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.58);
  color: rgba(27, 29, 35, 0.72);
  letter-spacing: 0.04em;
}
.dense-pill--tone {
  border-color: rgba(201, 122, 43, 0.22);
  background: rgba(201, 122, 43, 0.07);
}
.dense-date {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(27, 29, 35, 0.55);
}
.dense-title {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(27, 29, 35, 0.9);
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dense-excerpt {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(27, 29, 35, 0.7);
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Slider */
.bento-slider {
  padding-bottom: 12px;
}
.slider {
  position: relative;
}
.slider-viewport {
  overflow: hidden;
}
.slider-track {
  display: flex;
  transition: transform 360ms ease;
  will-change: transform;
}
.slide {
  width: 100%;
  flex: 0 0 100%;
  position: relative;
  min-height: 220px;
  padding: 16px 14px 14px;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(201, 122, 43, 0.18), transparent 55%),
    radial-gradient(760px 420px at 80% 25%, rgba(108, 31, 45, 0.14), transparent 55%),
    repeating-linear-gradient(90deg, rgba(29, 43, 68, 0.06), rgba(29, 43, 68, 0.06) 1px, transparent 1px, transparent 14px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22));
}
.slide[data-theme="navy"] .slide-bg {
  background:
    radial-gradient(900px 420px at 22% 18%, rgba(29, 43, 68, 0.22), transparent 56%),
    radial-gradient(760px 420px at 82% 28%, rgba(201, 122, 43, 0.14), transparent 58%),
    repeating-linear-gradient(90deg, rgba(29, 43, 68, 0.055), rgba(29, 43, 68, 0.055) 1px, transparent 1px, transparent 14px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22));
}
.slide[data-theme="green"] .slide-bg {
  background:
    radial-gradient(900px 420px at 18% 18%, rgba(31, 58, 47, 0.2), transparent 56%),
    radial-gradient(760px 420px at 84% 24%, rgba(201, 122, 43, 0.13), transparent 58%),
    repeating-linear-gradient(90deg, rgba(31, 58, 47, 0.045), rgba(31, 58, 47, 0.045) 1px, transparent 1px, transparent 14px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22));
}
.slide[data-theme="enji"] .slide-bg {
  background:
    radial-gradient(900px 420px at 20% 22%, rgba(108, 31, 45, 0.2), transparent 56%),
    radial-gradient(760px 420px at 84% 22%, rgba(29, 43, 68, 0.14), transparent 58%),
    repeating-linear-gradient(90deg, rgba(108, 31, 45, 0.05), rgba(108, 31, 45, 0.05) 1px, transparent 1px, transparent 14px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22));
}
.slide-body {
  position: relative;
  max-width: 56ch;
}
.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(27, 29, 35, 0.72);
}
.slide-title {
  margin: 10px 0 6px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.slide-sub {
  margin: 0 0 12px;
  color: rgba(27, 29, 35, 0.78);
  font-size: 14px;
  line-height: 1.75;
}
.slide-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(29, 43, 68, 0.16);
  background: rgba(255, 255, 255, 0.55);
}
.slide-link:hover {
  background: rgba(255, 255, 255, 0.68);
}
.slide-link:active {
  transform: translateY(1px);
}
.slide-link-icon {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* More services */
.more-services {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.more-services-summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(27, 29, 35, 0.82);
  padding: 10px 0;
}
.more-services[open] .more-services-summary {
  color: rgba(201, 122, 43, 0.95);
}
.cards--more {
  margin-top: 10px;
}
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 0;
}
.slider-btn {
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.52);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 44px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.slider-btn:hover {
  background: rgba(255, 255, 255, 0.66);
}
.slider-btn:focus-visible {
  outline: 2px solid rgba(201, 122, 43, 0.55);
  outline-offset: 2px;
}
.slider-dots {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(29, 43, 68, 0.22);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.slider-dot[aria-selected="true"] {
  background: rgba(201, 122, 43, 0.75);
  border-color: rgba(201, 122, 43, 0.9);
}

/* Quick actions */
.quick-actions {
  margin: 10px 12px 0;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(29, 43, 68, 0.12);
  background: rgba(255, 255, 255, 0.34);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.quick-search {
  margin: 0;
}
.quick-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(27, 29, 35, 0.62);
  margin-bottom: 8px;
}
.quick-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.quick-field input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.62);
  padding: 0 12px;
  font-size: 14px;
}
.quick-field button {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.52);
  padding: 0 14px;
  font-weight: 800;
  cursor: not-allowed;
  color: rgba(27, 29, 35, 0.55);
}
.quick-field input:disabled {
  opacity: 0.9;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quick-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.55);
}
.quick-link:hover {
  background: rgba(255, 255, 255, 0.68);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 14px;
}
.section-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.08em;
}
.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.lede {
  margin: 0;
  color: rgba(27, 29, 35, 0.9);
  max-width: 78ch;
}
.lede strong {
  color: var(--navy);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.card {
  border-radius: 18px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.42);
  padding: 16px 16px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}
.card p {
  margin: 0;
  color: rgba(27, 29, 35, 0.86);
  font-size: 15px;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tag {
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.45);
  color: rgba(27, 29, 35, 0.82);
}
.tag.enji {
  border-color: rgba(108, 31, 45, 0.22);
  background: rgba(108, 31, 45, 0.06);
}
.tag.green {
  border-color: rgba(31, 58, 47, 0.22);
  background: rgba(31, 58, 47, 0.06);
}
.tag.navy {
  border-color: rgba(29, 43, 68, 0.22);
  background: rgba(29, 43, 68, 0.06);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.panel {
  border-radius: 18px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.38);
  padding: 16px 16px;
}
.panel h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.panel p {
  margin: 0;
  color: rgba(27, 29, 35, 0.86);
  font-size: 15px;
}
.panel ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.panel li {
  margin: 6px 0;
  color: rgba(27, 29, 35, 0.86);
  font-size: 15px;
}

.cta-band {
  margin-top: 10px;
  border-radius: 20px;
  border: 1px solid rgba(201, 122, 43, 0.28);
  background: linear-gradient(
    180deg,
    rgba(201, 122, 43, 0.12),
    rgba(255, 255, 255, 0.34)
  );
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-band p {
  margin: 0;
  color: rgba(27, 29, 35, 0.86);
  font-size: 15px;
}
.cta-band .btn {
  background: rgba(255, 255, 255, 0.62);
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 0.9fr;
  gap: 26px;
  padding: 34px 0 22px;
  align-items: start;
}
.footer-brand-name {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 0 0 10px;
}
.footer-brand-body {
  margin-top: 0;
}
.footer-desc {
  margin: 10px 0 14px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(27, 29, 35, 0.72);
  max-width: 44ch;
}
.footer-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(27, 29, 35, 0.72);
  min-height: 1.35em;
}
.footer-title-link {
  text-decoration: none;
  color: inherit;
  transition: color var(--nav-transition-speed) ease;
}
.footer-title-link:hover {
  color: rgba(201, 122, 43, 0.95);
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  text-decoration: none;
  color: rgba(27, 29, 35, 0.68);
  transition: color var(--nav-transition-speed) ease;
  font-size: 12px;
}
.footer-links a:hover {
  color: rgba(201, 122, 43, 0.95);
}
.footer-links li {
  margin: 8px 0;
}
.company-meta {
  color: rgba(27, 29, 35, 0.72);
  font-size: 12px;
  line-height: 1.9;
}
.company-meta strong {
  font-size: 14px;
}
.company-meta a {
  text-decoration: none;
  color: rgba(27, 29, 35, 0.72);
  transition: color var(--nav-transition-speed) ease;
}
.company-meta a:hover {
  color: rgba(201, 122, 43, 0.95);
}
.footer-social {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(27, 29, 35, 0.68);
}
.footer-icon-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-icon-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(27, 29, 35, 0.7);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(29, 43, 68, 0.14);
  transition:
    background var(--nav-transition-speed) ease,
    color var(--nav-transition-speed) ease,
    transform var(--nav-transition-speed) ease;
}
.footer-icon-link:hover {
  color: rgba(201, 122, 43, 0.95);
  background: rgba(255, 255, 255, 0.72);
}
.footer-icon-link:active {
  transform: translateY(1px);
}
.footer-icon-link svg {
  width: 18px;
  height: 18px;
  display: block;
}
.footer-social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 10px;
}
.footer-social-links a {
  text-decoration: none;
  color: rgba(27, 29, 35, 0.68);
  transition: color var(--nav-transition-speed) ease;
}
.footer-social-links a:hover {
  color: rgba(201, 122, 43, 0.95);
}
.footer-bottom {
  padding: 16px 0 26px;
  border-top: 1px solid rgba(29, 43, 68, 0.12);
  color: rgba(27, 29, 35, 0.58);
  font-size: 12px;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 920px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "slider slider"
      "notice news";
    align-items: start;
  }
  .bento-slider { grid-area: slider; }
  .bento-notice { grid-area: notice; }
  .bento-news { grid-area: news; }
}
@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-desc {
    max-width: 60ch;
  }
}
/* Breakpoint: Mobile nav (<= 1000px) */
@media (max-width: 1000px) {
  body {
    font-size: 16px;
  }
  .container {
    width: min(var(--max), calc(100% - 28px));
  }
  .header-inner {
    padding: 12px 0;
    gap: 5px;
    flex-wrap: wrap;
  }
  .brand-link {
    min-width: 0;
    width: auto;
    max-width: calc(100% - 52px);
  }

  .nav-toggle-btn {
    display: inline-flex;
    order: 3;
    margin-left: auto;
  }
  .nav {
    order: 2;
    margin-left: auto;
    gap: 10px;
  }
  .nav-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-panel-top, var(--nav-height));
    padding: 10px 0 14px;
    background: rgba(247, 242, 230, 0.98);
    border-bottom: 1px solid rgba(29, 43, 68, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--nav-transition-speed) ease,
      opacity var(--nav-transition-speed) ease;
    will-change: transform, opacity;
    z-index: 999;
  }
  .site-header.nav-open .nav-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links {
    width: calc(100% - 28px);
    max-width: var(--max);
    margin: 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0;
  }
  .nav-item{width:100%}
  .nav-link {
    font-size: 13px;
    padding: 14px 10px;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    transition:
      background var(--nav-transition-speed) ease,
      transform var(--nav-transition-speed) ease;
  }
  .nav-link::after {
    content: none;
  }
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.55);
  }
  .nav-link:focus-visible {
    outline: 2px solid rgba(201, 122, 43, 0.55);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.55);
  }
  .nav-link:active {
    transform: translateY(1px);
    background: rgba(255, 255, 255, 0.66);
  }
  .nav-cta {
    width: min(var(--max), calc(100% - 28px));
    margin: 10px auto 0;
    justify-content: center;
    min-height: 48px;
  }
  .nav-cta span:last-child {
    display: inline;
  }
  .nav-cta-icon {
    width: 18px;
    height: 18px;
    border-radius: 0;
    background: transparent;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover {
    transform: none;
  }
  .slider-track { transition: none; }
  @media (max-width: 1000px) {
    .nav-panel { transition: none; }
    .nav-toggle-btn span { transition: none; }
    .nav-overlay { transition: none; }
  }
}

/* Chatbot (shared) */
.np-chatbot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1001;
  pointer-events: none;
}
.np-chatbot > * {
  pointer-events: auto;
}

.np-chatbot-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(29, 43, 68, 0.22);
  background:
    radial-gradient(520px 240px at 15% 12%, rgba(201, 122, 43, 0.12), transparent 62%),
    radial-gradient(520px 240px at 88% 20%, rgba(108, 31, 45, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4));
  color: rgba(27, 29, 35, 0.92);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}
.np-chatbot-launcher {
  position: relative;
}
.np-chatbot-launcher::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(29, 43, 68, 0.05),
      rgba(29, 43, 68, 0.05) 1px,
      transparent 1px,
      transparent 10px
    );
  opacity: 0.65;
  pointer-events: none;
}
.np-chatbot-launcher::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 1px dashed rgba(201, 122, 43, 0.55);
  opacity: 0.75;
  pointer-events: none;
}
.np-chatbot-launcher:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 122, 43, 0.55);
}
.np-chatbot-launcher:active {
  transform: translateY(0);
}
.np-chatbot-launcher:focus-visible {
  outline: 2px solid rgba(201, 122, 43, 0.55);
  outline-offset: 3px;
}
.np-chatbot-launcher-label {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: rgba(29, 43, 68, 0.88);
  transform: translateX(0.14em);
  pointer-events: none;
}

.np-chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(360px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(29, 43, 68, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(201, 122, 43, 0.06), transparent 60%),
    radial-gradient(760px 420px at 86% 20%, rgba(108, 31, 45, 0.05), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92));
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}
.np-chatbot--open .np-chatbot-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.np-chatbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(247, 242, 230, 0.55);
}
.np-chatbot-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.np-chatbot-title-mark {
  width: 30px;
  height: 30px;
  border-radius: 2px;
  border: 2px solid rgba(201, 122, 43, 0.92);
  background: #c23b22;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 900;
  font-size: 14px;
  position: relative;
  flex-shrink: 0;
}
.np-chatbot-title-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1px;
}
.np-chatbot-title-text {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-chatbot-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #c23b22;
  transition:
    transform 180ms ease,
    color 180ms ease;
}
.np-chatbot-close:hover {
  color: #c23b22;
}
.np-chatbot-close:active {
  transform: translateY(1px);
}
.np-chatbot-close:focus-visible {
  outline: 2px solid rgba(201, 122, 43, 0.55);
  outline-offset: 2px;
}
.np-chatbot-close i {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.np-chatbot-body {
  display: grid;
  grid-template-rows: 1fr auto;
  flex: 1 1 auto;
  min-height: 0;
}
.np-chatbot-log {
  padding: 12px;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.np-chatbot-msg {
  display: flex;
  margin: 0 0 10px;
}
.np-chatbot-msg--bot {
  justify-content: flex-start;
}
.np-chatbot-msg--user {
  justify-content: flex-end;
}
.np-chatbot-bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(27, 29, 35, 0.92);
  white-space: pre-wrap;
}
.np-chatbot-cta-wrap {
  margin-top: 10px;
  display: flex;
}
.np-chatbot-cta.btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transform: none;
}
.np-chatbot-cta.btn:hover {
  transform: none;
}
.np-chatbot-cta.btn:focus-visible {
  outline: 2px solid rgba(201, 122, 43, 0.55);
  outline-offset: 2px;
}
.np-chatbot-msg--user .np-chatbot-bubble {
  background: rgba(201, 122, 43, 0.12);
  border-color: rgba(201, 122, 43, 0.32);
}

.np-chatbot-choices {
  border-top: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(247, 242, 230, 0.45);
  padding: 10px;
  display: grid;
  gap: 10px;
}
.np-chatbot-choices-toggle {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.55);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}
.np-chatbot-choices-toggle:hover {
  border-color: rgba(201, 122, 43, 0.55);
}
.np-chatbot-choices-toggle:active {
  transform: translateY(1px);
}
.np-chatbot-choices-toggle:focus-visible {
  outline: 2px solid rgba(201, 122, 43, 0.55);
  outline-offset: 2px;
}
.np-chatbot-choices-toggle i {
  transition: transform 180ms ease;
}
.np-chatbot--choices-open .np-chatbot-choices-toggle i {
  transform: rotate(180deg);
}

.np-chatbot-choices-panel {
  border-radius: 14px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.45);
  overflow: auto;
  max-height: min(240px, 32vh);
  overscroll-behavior: contain;
}

/* Custom scrollbars (panel internals) */
.np-chatbot-log,
.np-chatbot-choices-panel {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(29, 43, 68, 0.35) transparent; /* Firefox */
}
.np-chatbot-log::-webkit-scrollbar,
.np-chatbot-choices-panel::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.np-chatbot-log::-webkit-scrollbar-track,
.np-chatbot-choices-panel::-webkit-scrollbar-track {
  background: transparent;
}
.np-chatbot-log::-webkit-scrollbar-thumb,
.np-chatbot-choices-panel::-webkit-scrollbar-thumb {
  background: rgba(29, 43, 68, 0.26);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
.np-chatbot-log::-webkit-scrollbar-thumb:hover,
.np-chatbot-choices-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(29, 43, 68, 0.34);
  border: 2px solid transparent;
  background-clip: padding-box;
}
.np-chatbot-log::-webkit-scrollbar-corner,
.np-chatbot-choices-panel::-webkit-scrollbar-corner {
  background: transparent;
}
.np-chatbot-choice-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}
.np-chatbot-choice {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(29, 43, 68, 0.14);
  background: rgba(255, 255, 255, 0.55);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}
.np-chatbot-choice:hover {
  border-color: rgba(201, 122, 43, 0.55);
}
.np-chatbot-choice:active {
  transform: translateY(1px);
}
.np-chatbot-choice:focus-visible {
  outline: 2px solid rgba(201, 122, 43, 0.55);
  outline-offset: 2px;
}

@media (max-width: 1000px) {
  .np-chatbot {
    right: 12px;
    bottom: 12px;
  }
  .np-chatbot-panel {
    bottom: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .np-chatbot-launcher,
  .np-chatbot-panel,
  .np-chatbot-close,
  .np-chatbot-choice {
    transition: none;
  }
}

/* Mobile: bottom sheet (open => slides up) */
@media (max-width: 620px) {
  .np-chatbot {
    right: 12px;
    bottom: 12px;
  }

  .np-chatbot-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: none;
    height: min(88vh, calc(100dvh - 88px));
    border-radius: 18px 18px 0 0;
    transform: translateY(18px);
  }

  .np-chatbot--open .np-chatbot-panel {
    transform: translateY(0);
  }

  .np-chatbot-head {
    padding-bottom: 12px;
  }

  .np-chatbot-choices {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

/* ------------------------------------------------------------
  日本語コメント：ホーム（index.php）に書かれていた背景の共通化
  - body の和紙テクスチャを他ページでも使えるように main.css に集約
  - Newsページでは `<main class="home-newspaper">` を付与して流用
------------------------------------------------------------ */

:root {
  --color-bg: #F5F0E8;
  --color-text: #1A1A1A;
  --color-accent: #C53D43;
  --color-border: #D0C8B8;

  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition-speed: 220ms;
}

body {
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(197, 61, 67, 0.06), transparent 55%),
    radial-gradient(900px 520px at 90% 0%, rgba(184, 134, 11, 0.05), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(26, 26, 26, 0.018) 0 1px, transparent 1px 7px),
    var(--color-bg);
}

/* 印章装飾（index.php の流儀を流用） */
#main.home-newspaper {
  isolation: isolate;
}

#main.home-newspaper .np-seal {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(197, 61, 67, 0.75);
  position: relative;
  background:
    linear-gradient(135deg, rgba(197, 61, 67, 0.10), transparent 65%),
    radial-gradient(circle at 30% 25%, rgba(197, 61, 67, 0.22), transparent 55%);
  transform: rotate(-6deg);
  flex: none;
}

#main.home-newspaper .np-seal::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(197, 61, 67, 0.45);
}

#main.home-newspaper .np-seal::after {
  content: "紡";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 12px;
  color: rgba(197, 61, 67, 0.82);
  letter-spacing: 0.02em;
}

/* Recruit disabled UI + toast */
[data-recruit-disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.np-recruit-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 12px 14px;
  border: 1px solid rgba(26, 26, 26, 0.20);
  background: rgba(245, 240, 232, 0.92);
  color: rgba(26, 26, 26, 0.86);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  font-size: 14px;
  line-height: 1.65;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.np-recruit-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.np-recruit-toast.is-hidden {
  opacity: 0;
}

@media (max-width: 1000px) {
  .np-recruit-toast {
    top: var(--recruit-toast-top, 72px);
    bottom: auto;
    width: max-content;
    max-width: min(92vw, 720px);
    white-space: normal;
    line-height: 1.7;
  }
}
