@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}

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

ul,
ol {
  list-style: none;
}

/* ── Variables ── */
:root {
  --bg: #F8F8F6;
  --fg: #0D0D0D;
  --card: #ffffff;
  --secondary: #F0EFED;
  --muted: #EAEAE6;
  --muted-fg: #6B6B65;
  --accent: #E60012;
  --border: rgba(13, 13, 13, 0.1);
  --primary: #0D0D0D;
  --primary-fg: #ffffff;
  --font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --nav: Inter, "Noto Sans JP", sans-serif;
  --max-w: 80rem;
  --px: 1.5rem;
  --radius: 0;
}

@media (min-width: 640px) {
  :root {
    --px: 2.5rem;
  }
}

/* ── Base ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.mono {
  font-family: var(--mono);
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--muted-fg);
}

/* ── Section label ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 1rem;
  height: 1px;
  background: var(--accent);
}

.section-label span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  background: rgba(248, 248, 246, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo svg {
  height: 22px;
  width: auto;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

.header-nav a {
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: var(--muted-fg);
  transition: color 0.2s;
  position: relative;
  font-family: var(--nav);
}

.header-nav a:hover {
  color: var(--fg);
}

.header-nav a.active {
  color: var(--accent);
  font-weight: 500;
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.header--dark .header-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.header--dark .header-nav a:hover {
  color: #fff;
}

.header--dark .header-nav a.active {
  color: var(--accent);
}

/* hamburger */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--fg);
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.header--dark .hamburger {
  color: #fff;
}

.hamburger svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* mobile menu */
.mobile-menu {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a.active {
  color: var(--accent);
  font-weight: 500;
}

.mobile-menu a svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted-fg);
  fill: none;
  stroke-width: 2;
}

/* ── Footer ── */
.footer {
  background: var(--primary);
  color: var(--primary-fg);
}

.footer-inner {
  padding: 4rem var(--px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo svg {
  height: 20px;
  width: auto;
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-nav-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.footer-contact-item span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Page hero ── */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10rem var(--px);
  margin-top: 65px;
  background: var(--primary);
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(13, 13, 13, 0.8), rgba(13, 13, 13, 0.5), rgba(13, 13, 13, 0.1));
}

.page-hero-content {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  margin-top: 0.5rem;
  line-height: 1.1;
}

/* ── CTA section ── */
.cta-section {
  position: relative;
  padding: 6rem var(--px);
  background: var(--primary);
  overflow: hidden;
  text-align: center;
}

.cta-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.5);
}

.cta-content {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

.cta-btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  max-width: 36rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .cta-btns {
    flex-direction: row;
  }
}

.btn-tel,
.btn-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  flex: 1;
  transition: background 0.2s, color 0.2s;
}

.btn-tel {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-tel:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-tel svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.btn-form {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

.btn-form:hover {
  background: #c4000f;
}

.btn-form svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.cta-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #c4000f;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  transition: background 0.2s;
}

.btn-dark:hover {
  background: #333;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ── Card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
  cursor: pointer;
  text-align: left;
}

.card:hover {
  background: var(--secondary);
}

.card-img {
  position: relative;
  overflow: hidden;
  background: var(--muted);
  height: 16rem;
}

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

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

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.1);
}

.card-year {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(13, 13, 13, 0.6);
  padding: 0.1rem 0.5rem;
}

.card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-no {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted-fg);
}

.card-divider {
  width: 1rem;
  height: 1px;
  background: var(--border);
}

.card-client {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.7;
  flex: 1;
}

.card-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover .card-more {
  opacity: 1;
}

.card-more svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ── News list ── */
.news-list {
  border-top: 1px solid var(--border);
}

.news-item {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.news-item:hover {
  background: rgba(240, 239, 237, 0.4);
}

.news-thumb {
  position: relative;
  overflow: hidden;
  background: var(--muted);
  flex-shrink: 0;
  width: 9rem;
  height: 6rem;
}

@media (min-width: 768px) {
  .news-thumb {
    width: 13rem;
    height: 8rem;
  }
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-item:hover .news-thumb img {
  transform: scale(1.05);
}

.news-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.news-category {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  flex-shrink: 0;
}

.cat-press {
  background: rgba(230, 0, 18, 0.1);
  color: var(--accent);
}

.cat-recruit {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.cat-media {
  background: rgba(21, 128, 61, 0.1);
  color: #15803d;
}

.cat-default {
  background: var(--secondary);
  color: var(--muted-fg);
}

.news-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted-fg);
}

.news-item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.news-item:hover h3 {
  color: var(--accent);
}

.news-excerpt {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Table ── */
.info-table {
  width: 100%;
  background: var(--card);
}

.info-table-row {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .info-table-row {
    grid-template-columns: 1fr 2fr;
  }
}

.info-table-row:first-child {
  border-top: 1px solid var(--border);
}

.info-table-th {
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(234, 234, 230, 0.4);
  color: var(--fg);
}

@media (min-width: 768px) {
  .info-table-th {
    border-right: 1px solid var(--border);
  }
}

.info-table-td {
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  white-space: pre-line;
}

/* ── Timeline ── */
.timeline {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 9rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

@media (min-width: 768px) {
  .timeline-line {
    left: 9.5rem;
  }
}

.timeline-item {
  display: flex;
  gap: 2rem;
  position: relative;
}

.timeline-year {
  width: 9rem;
  flex-shrink: 0;
  padding-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}

.timeline-content {
  flex: 1;
  padding: 1.5rem 0 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  transform: translateX(-50%);
}

.timeline-item:last-child .timeline-content {
  border-bottom: none;
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

/* ── Services list ── */
.service-block {
  border-bottom: 1px solid var(--border);
}

.service-block:nth-child(even) {
  background: var(--secondary);
}

.service-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem var(--px);
}

@media (min-width: 1024px) {
  .service-inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.service-no {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.service-en {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted-fg);
  text-transform: uppercase;
}

.service-block h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--fg);
  margin: 1rem 0 1.5rem;
}

.service-block p {
  color: var(--muted-fg);
  line-height: 1.8;
}

.service-scope-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted-fg);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.service-scope {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-scope li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--fg);
}

.service-scope li::before {
  content: '';
  display: block;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-info-item > :first-child {
    align-self: center;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  background: rgba(230, 0, 18, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.contact-info-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted-fg);
  /* margin-bottom: 0.25rem; */
}

.contact-info-value {
  font-size: 0.875rem;
  color: var(--fg);
  font-weight: 500;
}

.contact-info-sub {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.25rem;
}

.hours-box {
  background: var(--secondary);
  padding: 1.25rem;
}

.hours-box .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}

.hours-box .value {
  font-size: 0.875rem;
  color: var(--fg);
}

.hours-box .note {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.25rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted-fg);
}

.form-label .req {
  color: var(--accent);
  margin-left: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
  border-radius: var(--radius);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(107, 107, 101, 0.5);
}

.form-textarea {
  resize: none;
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted-fg);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
  text-align: center;
}

.form-success-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(230, 0, 18, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.form-success-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.form-success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.form-success p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

/* ── Detail page ── */
.detail-hero {
  padding-top: 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .detail-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.detail-section {
  margin-bottom: 3rem;
}

.detail-aspect {
  position: relative;
  overflow: hidden;
  background: var(--muted);
  aspect-ratio: 16/9;
}

.detail-aspect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-box {
  background: var(--secondary);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}

.sidebar-dl {
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sidebar-dt {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 0.25rem;
}

.sidebar-dd {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}

.sidebar-cta {
  background: rgba(230, 0, 18, 0.05);
  border: 1px solid rgba(230, 0, 18, 0.2);
  padding: 1.5rem;
}

.sidebar-cta p {
  font-size: 0.875rem;
  color: var(--fg);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.sidebar-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  width: 100%;
  transition: background 0.2s;
}

.sidebar-cta a:hover {
  background: #c4000f;
}

.sidebar-cta a svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ── Sections ── */
.section {
  padding: 6rem var(--px);
}

.section-sm {
  padding: 4rem var(--px);
}

.section-lg {
  padding: 8rem var(--px);
}

.section-dark {
  background: var(--primary);
}

.section-secondary {
  background: var(--secondary);
}

.section-border {
  border-top: 1px solid var(--border);
}

/* ── Home hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13, 13, 13, 0.8), rgba(13, 13, 13, 0.5), rgba(13, 13, 13, 0.1));
}

.hero-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7rem var(--px) 5rem;
  width: 100%;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(230, 0, 18, 0.8);
}

.hero-tag::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  max-width: 55rem;
}

.hero h1 span {
  color: rgba(230, 0, 18, 0.8);
}

.hero h2 {
  font-size: clamp(0.97rem, 2.72vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  max-width: 55rem;
}

.hero p {
  max-width: 34rem;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 3rem;
}

@media (max-width: 640px) {
  .mid-hide {
    display: none;
  }
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-btns {
    flex-direction: row;
  }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

.hero-scroll-line {
  width: 1px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.2);
}

.hero-fx{
	position:absolute;
	inset:0;
	z-index:2;
	overflow:hidden;
	pointer-events:none;
}

/* 左上ドット */
.dots{
	position:absolute;
	left:0;
	top:55px;

	width:230px;
	height:230px;

	background-image:
		radial-gradient(rgba(255,0,0,.45) 1px, transparent 1px);

	background-size:16px 16px;

	mask-image:linear-gradient(to right,#000 60%,transparent);
}

.hero-fx .line {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45vw;
    height: 25vw;
    max-width: 550px;
    max-height: 300px;
    background: linear-gradient(
        135deg,
        rgba(230, 0, 18, 0) 0%,
        rgba(230, 0, 18, 0.25) 100%
    );
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}
/* ── Filter tabs ── */
.filter-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 4rem;
  z-index: 40;
}

.filter-bar-inner {
  display: flex;
  overflow-x: auto;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  scrollbar-width: none;
}

.filter-bar-inner::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--muted-fg);
  transition: color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
  color: var(--fg);
}

.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Responsive ── */
@media (min-width: 768px) {
  :root {
    --px: 2.5rem;
  }

  .section {
    padding: 2rem 2.5rem 8rem;
  }

  .section-sm {
    padding: 1rem 2.5rem 5rem;
  }
}


/* ── News preview (home) ── */
.news-preview-list {
  border-top: 1px solid var(--border);
}

.news-preview-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.news-preview-item:hover {
  background: rgba(240, 239, 237, 0.4);
}

.news-preview-thumb {
  flex-shrink: 0;
  width: 7rem;
  height: 5rem;
  overflow: hidden;
  background: var(--muted);
}

@media (min-width: 768px) {
  .news-preview-thumb {
    width: 9rem;
    height: 6rem;
  }
}

.news-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-preview-item:hover .news-preview-thumb img {
  transform: scale(1.05);
}

.news-preview-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.news-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.news-badge {
  font-size: 0.75rem;
  font-family: monospace;
  padding: 0.125rem 0.5rem;
  flex-shrink: 0;
}

.news-badge--press {
  background: rgba(230, 0, 18, 0.1);
  color: var(--accent);
}

.news-badge--recruit {
  background: #eff6ff;
  color: #2563eb;
}

.news-badge--media {
  background: #f0fdf4;
  color: #15803d;
}

.news-badge--default {
  background: var(--secondary);
  color: var(--muted-fg);
}

.news-preview-date {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--muted-fg);
}

.news-preview-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}

.news-preview-item:hover .news-preview-title {
  color: var(--accent);
}

.news-preview-excerpt {
  font-size: 0.75rem;
  color: var(--muted-fg);
  line-height: 1.6;
  display: none;
}

@media (min-width: 768px) {
  .news-preview-excerpt {
    display: block;
  }
}

.news-preview-footer {
  margin-top: 1.5rem;
}

/* ── CTA flex layout ── */
.cta-btns-flex {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .cta-btns-flex {
    flex-direction: row;
    align-items: flex-start;
  }
}

.cta-btn-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cta-btn-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.cta-form-btn {
  width: 100%;
  justify-content: center;
}

/* ── card-link ── */
.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card-link:hover {
  background: var(--secondary);
}

/* pagination */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: .2s ease;
}

.nav-links a:hover {
  border-color: rgb(230, 0, 18);
  color: rgb(230, 0, 18);
}

.nav-links .current {
  background: rgb(230, 0, 18);
  border-color: rgb(230, 0, 18);
  color: #fff;
}

.nav-links .dots {
  border: none;
  background: transparent;
  padding: 0;
  min-width: auto;
  color: #999;
}

.nav-links .prev,
.nav-links .next {
  padding: 0 1.2rem;
}

.mw_wp_form .error {
  display: inline-block;
  position: relative;
  margin-top: 6px;
  padding: 6px 10px;
  background: rgb(230, 0, 18);
  color: #fff !important;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 4px;
  width: fit-content;
  /* ← これで文字数に合わせて伸縮 */
  max-width: 100%;
  /* はみ出し防止 */
  white-space: nowrap;
  /* 改行させない */
}

/* 吹き出しの三角 */
.mw_wp_form .error::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 10px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent rgb(230, 0, 18) transparent;
}

textarea:has(+ .error),
input:has(+ .error) {
  border: 1px solid rgb(230, 0, 18);
}

.grecaptcha-badge {
  bottom: 80px !important;
}

/* cookie */
.cookie-banner {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: min(460px, calc(100vw - 32px));
    z-index: 9999;
    display: none;
    padding: 28px;
    background: rgba(38, 38, 38, .96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    color: #fff;
    transition: bottom .25s ease;
}

body.scroll-top-show .cookie-banner {
    bottom: 90px;
}
.cookie-banner.is-show {
    display: block;
}

.cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-banner__content h2 {
    margin: 0 0 .75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.cookie-banner__content p {
    margin: 0;
    color: rgba(255,255,255,.75);
    line-height: 1.8;
    font-size: .95rem;
}

.cookie-banner__content a {
    color: rgb(230, 0, 18);
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    gap: 12px;
}

.cookie-banner__button {
    flex: 1;
    height: 48px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.cookie-banner__button--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
}

.cookie-banner__button--secondary:hover {
    background: rgba(255,255,255,.06);
}

.cookie-banner__button--primary {
    background: rgb(230,0,18);
    color: #fff;
}

.cookie-banner__button--primary:hover {
    background: rgb(200,0,16);
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        padding: 20px;
        border-radius: 16px;
    }

    .cookie-banner__buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cookie-banner__button {
        min-width: 0;
        width: 100%;
        height: 52px;
        font-size: .9rem;
    }
}

.btn-send {
  border: none;
}