/* ========================================
   ROOT
======================================== */

:root {
  --bg-main: #07111f;
  --bg-deep: #040a12;
  --bg-card: rgba(12, 28, 47, 0.74);
  --bg-card-hover: rgba(19, 43, 70, 0.92);

  --text-main: #f4f7fa;
  --text-sub: #aebccc;
  --text-muted: #71859a;

  --accent: #6fb8e8;
  --accent-light: #b6ddf7;
  --accent-dark: #2f719e;

  --border: rgba(139, 190, 224, 0.18);
  --border-hover: rgba(124, 195, 240, 0.58);

  --header-height: 78px;

  --max-width: 1180px;
  --narrow-width: 900px;
}


/* ========================================
   RESET
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(28, 78, 112, 0.28),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      #081523 0%,
      #06101c 45%,
      #040b13 100%
    );

  color: var(--text-main);

  font-family:
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "YuGothic",
    "Noto Sans JP",
    sans-serif;

  line-height: 1.8;
  letter-spacing: 0.04em;
}

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

button {
  font: inherit;
}

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


/* ========================================
   PARTICLE CANVAS
======================================== */

#particleCanvas {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  z-index: -1;

  pointer-events: none;

  opacity: 0.7;
}


/* ========================================
   HEADER
======================================== */

.site-header {
  position: fixed;

  top: 0;
  left: 0;

  z-index: 1000;

  width: 100%;
  height: var(--header-height);

  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background: rgba(4, 12, 22, 0.88);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 1px 0 rgba(255,255,255,0.08),
    0 8px 30px rgba(0,0,0,0.25);
}

.header-inner {
  width: min(calc(100% - 64px), var(--max-width));
  height: 100%;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* LOGO */

.site-logo {
  display: flex;
  flex-direction: column;

  line-height: 1.25;
}

.logo-main {
  font-size: 15px;
  font-weight: 600;

  letter-spacing: 0.12em;
}

.logo-sub {
  margin-top: 4px;

  color: var(--accent);

  font-size: 9px;
  font-weight: 500;

  letter-spacing: 0.32em;
}


/* NAVIGATION */

.global-nav {
  display: flex;
  align-items: center;

  gap: 36px;
}

.global-nav a {
  position: relative;

  color: #c4d0db;

  font-size: 12px;
  font-weight: 500;

  letter-spacing: 0.08em;

  transition: color 0.25s ease;
}

.global-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0;
  height: 1px;

  background: var(--accent);

  transition: width 0.25s ease;
}

.global-nav a:hover {
  color: #ffffff;
}

.global-nav a:hover::after {
  width: 100%;
}


/* MOBILE NAV BUTTON */

.nav-toggle {
  display: none;

  width: 38px;
  height: 38px;

  border: 0;
  background: transparent;

  cursor: pointer;
}

.nav-toggle span {
  display: block;

  width: 24px;
  height: 1px;

  margin: 6px auto;

  background: #ffffff;

  transition: 0.3s ease;
}


/* ========================================
   HERO
======================================== */

.hero {
  position: relative;

  min-height: 760px;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.hero::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 720px;
  height: 720px;

  transform: translate(-50%, -50%);

  background:
    radial-gradient(
      circle,
      rgba(70, 150, 201, 0.11),
      transparent 68%
    );

  pointer-events: none;
}

.hero-inner {
  position: relative;

  z-index: 2;

  width: calc(100% - 40px);

  text-align: center;
}

.hero-label {
  margin-bottom: 24px;

  color: var(--accent);

  font-family: Arial, sans-serif;
  font-size: 10px;

  letter-spacing: 0.46em;
}

.hero h1 {
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: clamp(34px, 5vw, 64px);
  font-weight: 400;

  line-height: 1.55;

  letter-spacing: 0.1em;
}

.hero h1 span {
  color: #ffffff;
}

.hero-line {
  width: 48px;
  height: 1px;

  margin: 32px auto;

  background: var(--accent);
}

.hero-description {
  color: var(--text-sub);

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: 15px;

  line-height: 2;

  letter-spacing: 0.13em;
}

.hero-scroll {
  position: absolute;

  top: calc(100% + 100px);
  left: 50%;

  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 12px;

  color: var(--text-muted);

  font-family: Arial, sans-serif;
  font-size: 8px;

  letter-spacing: 0.3em;
}

.scroll-line {
  width: 1px;
  height: 55px;

  background:
    linear-gradient(
      to bottom,
      var(--accent),
      transparent
    );

  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {

  0% {
    opacity: 0.2;
    transform: scaleY(0.4);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }

  100% {
    opacity: 0.2;
    transform: scaleY(0.4);
    transform-origin: bottom;
  }

}


/* ========================================
   COMMON SECTION
======================================== */

.section {
  position: relative;

  padding: 120px 0;
}

.section-inner {
  width: min(calc(100% - 64px), var(--max-width));

  margin: 0 auto;
}

.section-inner.narrow {
  max-width: var(--narrow-width);
}

.section-heading {
  margin-bottom: 56px;

  text-align: center;
}

.section-en {
  margin-bottom: 12px;

  color: var(--accent);

  font-family: Arial, sans-serif;
  font-size: 9px;

  letter-spacing: 0.42em;
}

.section-heading h2 {
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: clamp(24px, 3vw, 35px);
  font-weight: 400;

  line-height: 1.6;

  letter-spacing: 0.07em;
}

.heading-note {
  color: #b9c6d2;

  font-size: 0.78em;
}

.case-type {
  display: inline-block;

  margin-top: 18px;
  padding: 5px 18px;

  border: 1px solid rgba(111, 184, 232, 0.35);
  border-radius: 30px;

  color: var(--accent-light);

  font-size: 11px;

  letter-spacing: 0.12em;
}


/* ========================================
   ABOUT
======================================== */

.intro-box {
  position: relative;

  padding: 50px 58px;

  border: 1px solid var(--border);

  background:
    linear-gradient(
      135deg,
      rgba(22, 47, 70, 0.48),
      rgba(7, 18, 30, 0.45)
    );

  backdrop-filter: blur(8px);
}

.intro-box::before {
  content: "";

  position: absolute;

  top: -1px;
  left: 44px;

  width: 80px;
  height: 2px;

  background: var(--accent);
}

.intro-box p {
  color: #c4ced8;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: 15px;

  line-height: 2.3;
}

.intro-box p + p {
  margin-top: 24px;
}

.intro-box strong {
  color: #ffffff;
  font-weight: 500;
}


/* ========================================
   CASE SECTIONS
======================================== */

.case-section {
  border-top: 1px solid rgba(255,255,255,0.045);

  background:
    linear-gradient(
      180deg,
      rgba(10, 25, 40, 0.23),
      rgba(3, 10, 17, 0.15)
    );
}

.admin-section {
  background:
    linear-gradient(
      180deg,
      rgba(5, 15, 26, 0.12),
      rgba(14, 31, 47, 0.28)
    );
}


/* ========================================
   RECORD LIST
======================================== */

.record-list {
  max-width: 960px;

  margin: 0 auto;

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

.record-item {
  position: relative;

  min-height: 108px;

  display: grid;

  grid-template-columns: 90px 1fr 50px;
  align-items: center;

  padding: 20px 24px 20px 10px;

  border-bottom: 1px solid var(--border);

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    padding-left 0.25s ease;
}

.record-item::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 2px;
  height: 100%;

  background: var(--accent);

  transform: scaleY(0);

  transition: transform 0.25s ease;
}

.record-item:hover {
  padding-left: 18px;

  background:
    linear-gradient(
      90deg,
      rgba(62, 137, 188, 0.14),
      rgba(17, 37, 55, 0.05)
    );

  border-color: var(--border-hover);
}

.record-item:hover::before {
  transform: scaleY(1);
}


/* NUMBER */

.record-number {
  color: rgba(135, 193, 230, 0.58);

  font-family:
    "Times New Roman",
    serif;

  font-size: 28px;
  font-weight: 400;

  letter-spacing: 0.04em;

  text-align: center;
}

.record-number.complaint {
  font-family:
    "Yu Mincho",
    serif;

  font-size: 23px;
}


/* CONTENT */

.record-content {
  padding-left: 20px;
}

.record-label {
  margin-bottom: 2px;

  color: var(--text-muted);

  font-family: Arial, sans-serif;
  font-size: 8px;

  letter-spacing: 0.28em;
}

.record-content h3 {
  display: inline-block;

  margin-right: 18px;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: 17px;
  font-weight: 400;

  letter-spacing: 0.08em;
}

.record-content time {
  color: #a7b7c5;

  font-size: 13px;

  letter-spacing: 0.08em;
}

.record-arrow {
  color: var(--accent);

  font-family: Arial, sans-serif;
  font-size: 19px;

  text-align: center;

  transition: transform 0.25s ease;
}

.record-item:hover .record-arrow {
  transform: translateX(7px);
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
  padding: 70px 0 42px;

  border-top: 1px solid rgba(255,255,255,0.07);

  background: rgba(2, 7, 13, 0.72);
}

.footer-inner {
  width: min(calc(100% - 64px), var(--max-width));

  margin: 0 auto;

  text-align: center;
}

.footer-title p {
  font-family:
    "Yu Mincho",
    serif;

  font-size: 16px;

  letter-spacing: 0.1em;
}

.footer-title span {
  display: block;

  margin-top: 7px;

  color: var(--accent-dark);

  font-family: Arial, sans-serif;
  font-size: 8px;

  letter-spacing: 0.34em;
}

.footer-nav {
  margin-top: 34px;

  display: flex;
  justify-content: center;

  gap: 30px;
}

.footer-nav a {
  color: #8999a8;

  font-size: 11px;

  transition: color 0.2s ease;
}

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

.copyright {
  margin-top: 38px;

  color: #516170;

  font-family: Arial, sans-serif;
  font-size: 9px;

  letter-spacing: 0.08em;
}


/* ========================================
   PAGE TOP
======================================== */

.page-top {
  position: fixed;

  right: 30px;
  bottom: 30px;

  z-index: 900;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(111, 184, 232, 0.32);

  background: rgba(5, 17, 29, 0.84);

  color: var(--accent-light);

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(12px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease;
}

.page-top.show {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

.page-top:hover {
  background: rgba(24, 65, 94, 0.9);
}


/* ========================================
   REVEAL ANIMATION
======================================== */

.reveal,
.fade-up {
  opacity: 0;

  transform: translateY(24px);

  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
}

.reveal.is-visible,
.fade-up.is-visible {
  opacity: 1;

  transform: translateY(0);
}

.record-item:nth-child(2) {
  transition-delay: 0.03s;
}

.record-item:nth-child(3) {
  transition-delay: 0.06s;
}

.record-item:nth-child(4) {
  transition-delay: 0.09s;
}


/* ========================================
   PC ONLY
======================================== */

.sp-only {
  display: none;
}


/* ========================================
   RESPONSIVE
======================================== */

@media screen and (max-width: 768px) {

  :root {
    --header-height: 68px;
  }

  .header-inner {
    width: calc(100% - 32px);
  }

  /* NAV */

  .nav-toggle {
    display: block;

    position: relative;

    z-index: 1002;
  }

  .global-nav {
    position: fixed;

    top: 0;
    right: -100%;

    width: min(82vw, 330px);
    height: 100vh;

    padding: 110px 38px;

    flex-direction: column;
    align-items: flex-start;

    gap: 30px;

    background: rgba(3, 12, 21, 0.97);

    backdrop-filter: blur(16px);

    transition: right 0.35s ease;
  }

  .global-nav.open {
    right: 0;
  }

  .global-nav a {
    width: 100%;

    padding-bottom: 15px;

    border-bottom: 1px solid rgba(255,255,255,0.08);

    font-size: 13px;
  }


  /* HERO */

  .hero {
    min-height: 680px;
  }

  .hero h1 {
    font-size: clamp(31px, 9vw, 43px);

    line-height: 1.55;

    letter-spacing: 0.06em;
  }

  .hero-label {
    font-size: 8px;

    letter-spacing: 0.32em;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-scroll {
    top: calc(100% + 80px);
  }


  /* SECTION */

  .section {
    padding: 90px 0;
  }

  .section-inner {
    width: calc(100% - 32px);
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .mobile-break {
    display: none;
  }


  /* ABOUT */

  .intro-box {
    padding: 38px 26px;
  }

  .intro-box::before {
    left: 26px;
  }

  .intro-box p {
    font-size: 13px;

    line-height: 2.15;
  }


  /* RECORD */

  .record-item {
    grid-template-columns: 54px 1fr 28px;

    min-height: 98px;

    padding:
      18px
      5px
      18px
      0;
  }

  .record-item:hover {
    padding-left: 4px;
  }

  .record-number {
    font-size: 21px;
  }

  .record-number.complaint {
    font-size: 19px;
  }

  .record-content {
    padding-left: 12px;
  }

  .record-content h3 {
    display: block;

    margin-right: 0;

    font-size: 15px;
  }

  .record-content time {
    display: block;

    margin-top: 4px;

    font-size: 11px;
  }

  .record-label {
    font-size: 7px;
  }

  .record-arrow {
    font-size: 15px;
  }


  /* FOOTER */

  .footer-inner {
    width: calc(100% - 32px);
  }

  .footer-nav {
    flex-direction: column;

    gap: 13px;
  }

  .page-top {
    right: 16px;
    bottom: 16px;

    width: 43px;
    height: 43px;
  }

  .sp-only {
    display: block;
  }

}


@media screen and (max-width: 420px) {

  .hero h1 {
    font-size: 29px;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .record-item {
    grid-template-columns: 48px 1fr 25px;
  }

}