@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg: #070b11;
  --bg-soft: #0d141d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-solid: #101923;
  --text: #edf2f7;
  --text-sub: #8fa0b3;
  --accent: #2be9c8;
  --accent-2: #3d9bff;
  --accent-dark: #14b8a0;
  --accent-soft: rgba(43, 233, 200, 0.12);
  --line: rgba(255, 255, 255, 0.09);
  --navy: #0a2e2a;
  --radius: 4px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.4);
  --glow: 0 0 0 1px rgba(43, 233, 200, 0.35), 0 0 28px rgba(43, 233, 200, 0.18);
  --max-width: 1080px;
  --corner: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background:
    linear-gradient(rgba(7, 11, 17, 0.94), rgba(7, 11, 17, 0.98)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 64px),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .site-title {
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* header */
.site-header {
  background: rgba(7, 11, 17, 0.82);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}
.site-title { font-size: 18px; margin: 0; }
.site-title a { color: var(--text); }
.site-title .kana {
  display: block;
  font-family: "Rajdhani", "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--text-sub);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(43, 233, 200, 0.35);
  text-decoration: none;
}

/* hero (photo) */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05) brightness(0.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(43, 233, 200, 0.05) 0, rgba(43, 233, 200, 0.05) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(43, 233, 200, 0.05) 0, rgba(43, 233, 200, 0.05) 1px, transparent 1px, transparent 48px),
    linear-gradient(0deg, rgba(5, 8, 12, 0.92) 0%, rgba(5, 8, 12, 0.45) 55%, rgba(7, 20, 22, 0.25) 100%);
}
.hero-inner {
  position: relative;
  padding: 56px 28px 64px;
  width: 100%;
}
.hero-eyebrow {
  font-family: "Rajdhani", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.hero-eyebrow::before { content: "// "; opacity: 0.7; }
.hero h1 {
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: 0.03em;
}
.hero-lead {
  font-size: 15px;
  color: #cdd8e2;
  margin: 0;
  letter-spacing: 0.03em;
}

.hero--placeholder {
  min-height: 46vh;
}
.hero--placeholder .hero-photo.photo-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d1f24, #091319);
}
.hero--placeholder .hero-overlay {
  background:
    repeating-linear-gradient(0deg, rgba(43, 233, 200, 0.06) 0, rgba(43, 233, 200, 0.06) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(43, 233, 200, 0.06) 0, rgba(43, 233, 200, 0.06) 1px, transparent 1px, transparent 48px);
}

.page-hero {
  padding: 64px 0 34px;
  text-align: center;
  position: relative;
}
.page-hero h1 {
  font-size: 27px;
  margin: 0;
  display: inline-block;
  position: relative;
  padding-bottom: 16px;
}
.page-hero h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* photo placeholder (used elsewhere, e.g. about page) */
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(135deg, var(--bg-soft), var(--bg-soft) 12px, #0a121a 12px, #0a121a 24px);
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
  border-radius: var(--radius);
  border: 1px dashed rgba(43, 233, 200, 0.3);
}

.office-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glow);
  margin: 28px 0 40px;
  clip-path: polygon(0 0, calc(100% - var(--corner)) 0, 100% var(--corner), 100% 100%, 0 100%);
}
.office-photo.photo-placeholder { margin: 28px 0 40px; }

/* main content */
main { padding: 64px 0 88px; }
.section { margin-bottom: 64px; }
.section h2 {
  font-size: 22px;
  margin-bottom: 26px;
  position: relative;
  padding-bottom: 14px;
}
.section h2::before {
  content: "// ";
  color: var(--accent);
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
}
.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.section h3 {
  font-size: 17px;
  margin-top: 36px;
  color: var(--accent);
}
.section p { margin: 0 0 16px; color: var(--text); }
.section ul { margin: 0 0 16px; padding-left: 1.4em; }
.section li { margin-bottom: 8px; }
.section strong { color: var(--accent); font-weight: 700; }

/* service sections (with photos) */
.service-block {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: none; padding-bottom: 0; }
.service-block:first-child { padding-top: 8px; }
.service-block.is-reverse { flex-direction: row-reverse; }
.service-photo-wrap { flex: 0 0 42%; max-width: 42%; }
.service-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), var(--glow);
  clip-path: polygon(0 0, calc(100% - var(--corner)) 0, 100% var(--corner), 100% 100%, 0 100%);
}
.service-block.is-reverse .service-photo {
  clip-path: polygon(var(--corner) 0, 100% 0, 100% 100%, 0 100%, 0 var(--corner));
}
.service-photo.photo-placeholder { height: 260px; }
.service-text { flex: 1; min-width: 0; }
.service-num {
  display: block;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 6px;
}
.service-text h3 { margin: 0 0 14px; font-size: 20px; color: var(--text); }
.service-text p { color: var(--text-sub); }

/* company table */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.company-table th, .company-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.company-table th {
  width: 9em;
  background: rgba(255, 255, 255, 0.02);
  font-weight: 500;
  color: var(--accent);
  font-family: "Rajdhani", "Noto Sans JP", sans-serif;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.company-table td { color: var(--text); }
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

/* news list */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:first-child { border-top: 1px solid var(--line); }
.news-list a {
  display: flex;
  gap: 24px;
  padding: 20px 6px;
  color: var(--text);
  align-items: baseline;
  border-left: 2px solid transparent;
  transition: padding-left 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.news-list a:hover {
  color: var(--accent);
  text-decoration: none;
  padding-left: 16px;
  border-left-color: var(--accent);
}
.news-list time {
  color: var(--text-sub);
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.news-list .news-title { flex: 1; }

.news-more { text-align: right; margin-top: 20px; }
.news-more a {
  font-size: 14px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* article page */
.article-date {
  color: var(--text-sub);
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}
.article-title { font-size: 26px; margin: 0 0 32px; }
.article-body p { margin: 0 0 18px; }
.back-link { margin-top: 40px; }

/* service cards (top page) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  display: block;
  backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - var(--corner)) 0, 100% var(--corner), 100% 100%, 0 100%);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--glow);
  border-color: rgba(43, 233, 200, 0.4);
  text-decoration: none;
}
.card:hover .card-photo { transform: scale(1.06); }
.card-photo-wrap {
  position: absolute;
  inset: 0;
}
.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card-photo.photo-placeholder { border-radius: 0; border: none; }
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 17, 0.35) 0%, rgba(7, 11, 17, 0.82) 75%, rgba(7, 11, 17, 0.94) 100%);
}
.card-body {
  position: relative;
  z-index: 2;
  padding: 30px 26px;
}
.card-index {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card h3 { margin: 10px 0 10px; font-size: 17px; color: #fff; }
.card p { margin: 0; color: #cdd8e2; font-size: 14px; }

/* contact box */
.contact-box {
  background: linear-gradient(160deg, rgba(43, 233, 200, 0.1), rgba(13, 20, 29, 0.4) 55%), var(--surface-solid);
  border: 1px solid rgba(43, 233, 200, 0.3);
  color: var(--text);
  padding: 44px;
  text-align: center;
  border-radius: var(--radius);
}
.contact-box p { color: var(--text-sub); margin: 0; }
.contact-box .tel {
  font-family: "Rajdhani", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin: 12px 0;
  letter-spacing: 0.08em;
  text-shadow: 0 0 24px rgba(43, 233, 200, 0.45);
}
.contact-box .hours { color: var(--text-sub); font-size: 13px; }

/* contact page: fax / email cards */
.contact-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 22px;
}
.contact-sub-card {
  background: linear-gradient(160deg, rgba(43, 233, 200, 0.1), rgba(13, 20, 29, 0.4) 55%), var(--surface-solid);
  border: 1px solid rgba(43, 233, 200, 0.3);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - var(--corner)) 0, 100% var(--corner), 100% 100%, 0 100%);
}
.contact-sub-label {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.contact-sub-value {
  font-family: "Rajdhani", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin: 0;
  word-break: break-all;
  text-shadow: 0 0 24px rgba(43, 233, 200, 0.45);
}
.contact-sub-value a { color: #fff; }
.contact-sub-value a:hover { color: var(--accent); text-decoration: none; }

/* access page: map */
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 16px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.map-link:hover { color: var(--accent); text-decoration: none; }
.map-link-icon { color: var(--accent); font-size: 14px; }

.map-embed {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm), var(--glow);
}
.map-embed iframe {
  display: block;
  filter: invert(92%) hue-rotate(180deg) contrast(90%) saturate(120%);
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--text-sub);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 800px) {
  .card-grid { grid-template-columns: 1fr; }
  .service-block,
  .service-block.is-reverse { flex-direction: column; }
  .service-photo-wrap { max-width: 100%; }
  .contact-sub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: 56vh; }
  .hero h1 { font-size: 28px; }
  .office-photo { height: 220px; }
  .company-table th { width: 7em; }
  nav.main-nav ul { gap: 2px; }
  nav.main-nav a { padding: 7px 10px; }
  .contact-box .tel { font-size: 28px; }
}
