/*
Theme Name: My Custom Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A brief description of the theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-custom-theme
*/

@charset "utf-8";

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap");

html {
  scroll-behavior: smooth;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

:root {
  --brand: #0e5974;
  --brand-2: #0d6a86;
  --accent: #1e90ff;
  --ink: #0b1a22;
  --muted: #6b7c86;
  --bg: #f6f9fb;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 25px rgba(13, 33, 61, 0.12);
  --fx-stagger: 34ms;
  --fx-stagger-line: 120ms;
  --fx-accent: #1e90ff;
}

* {
  box-sizing: border-box;
}

:focus-visible {
  outline: 3px solid #1e90ff66;
  outline-offset: 2px;
  border-radius: 8px;
}

[id] {
  scroll-margin-top: 80px;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", system-ui, Segoe UI, Roboto,
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* ---Header--- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #e6edf2;
}

.contactbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 0.5rem 1rem;
}

.contactbar .btn {
  background: var(--brand-2);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.contactbar .tel {
  font-weight: 800;
  color: var(--brand-2);
}

header.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
}

.brand .brand-logo {
  height: 28px;
  width: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
}

nav a {
  color: #3a4b55;
  text-decoration: none;
  font-weight: 600;
  display: block;
  padding: 0.9rem 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 60;
  position: relative;
}

@media (max-width: 900px) {
  nav ul {
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    border-top: 1px solid #e6edf2;
    box-shadow: var(--shadow);
    max-height: 0;
    opacity: 0;
    pointer-events: none;
  }
  nav ul.open {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
  }
  .menu-toggle {
    display: block;
  }
}

/* ==== Fancy Mobile Menu (animation) ==== */
body.no-scroll {
  overflow: hidden;
}
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(2px);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-overlay.show {
  opacity: 1;
}

/* hamburger button */
.menu-toggle {
  display: none; /* デスクトップでは非表示（SPは@mediaで表示） */
  background: none;
  border: none;
  cursor: pointer;
  z-index: 60;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.menu-toggle .bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2px;
  background: #173047;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(0);
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s;
}
.menu-toggle .bar:nth-child(1) {
  transform: translate(-50%, -50%) translateY(-6px);
}
.menu-toggle .bar:nth-child(2) {
  transform: translate(-50%, -50%);
}
.menu-toggle .bar:nth-child(3) {
  transform: translate(-50%, -50%) translateY(6px);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
}

/* mobile menu panel */
@media (max-width: 900px) {
  header.nav {
    position: relative;
  }

  header.nav nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--white);
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    border: 1px solid #e6edf2;
    border-top: 2px solid var(--brand);
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
    z-index: 60;
    overflow-y: auto;
    max-height: 70vh;
    -webkit-overflow-scrolling: touch;
  }

  header.nav nav ul.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 901px) {
  .menu-toggle {
    display: none;
  }
  .nav-overlay {
    display: none;
  }
  nav ul {
    display: flex !important;
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
  }
}

/* ---Hero--- */
.hero {
  background: linear-gradient(180deg, #0e5974, #0f6f8f);
  color: #fff;
  overflow-x: clip;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.2rem 1.25rem;
}

.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
      60% 60% at 10% 10%,
      rgba(255, 255, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(
      40% 40% at 90% 0%,
      rgba(255, 255, 255, 0.08),
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}

.hero-ui {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(14, 89, 116, 0.85);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-1px);
}

.hero-btn:active {
  transform: translateY(0);
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}

.hero-dots button[aria-selected="true"] {
  background: #fff;
  transform: scale(1.2);
}

.hero-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
  z-index: 1;
}

.hero-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
  opacity: 0.9;
  transform-origin: left center;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-progress {
    display: none;
  }
}

@media (min-width: 601px) {
  .hero-image {
    aspect-ratio: 1/1;
  }

  .hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 5s ease;
    will-change: opacity, transform;
    display: block;
  }

  .hero-image img.active {
    opacity: 1;
    transform: scale(1);
  }
}
/* .hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
} */

.hero-image img.active {
  display: block;
}

.catch-card {
  background: rgba(14, 89, 116, 0.85);
  color: #fff;
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(160%) blur(2px);
  max-width: 680px;
}

.catch h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.35;
  margin: 0.2rem 0 0.8rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catch p.kicker {
  line-height: 1.9;
  color: #eaf6fb;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin: 0.25rem 0 1rem;
}

@media (max-width: 600px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 16px;
    align-items: start;
  }

  .hero-image {
    aspect-ratio: auto;
    border-radius: 12px;
  }

  .hero-image img {
    position: static !important;
    width: 100%;
    height: auto;
    display: none;
  }

  .hero-image img.active {
    display: block;
  }

  .hero-ui {
    position: static;
    transform: none;
    margin-top: 0.5rem;
    justify-content: center;
  }

  .hero-progress {
    position: static;
    margin: 0.35rem 0 0;
  }

  .catch {
    order: 2;
  }

  .catch-card {
    background: rgba(0, 0, 0, 0.45);
    padding: 1rem 1.1rem;
    max-width: none;
  }

  .catch h1 {
    white-space: normal; /* テキストが折り返されるように設定 */
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero-tilt {
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
  }
}

/* ------ */
.fx-title {
  position: relative;
  font-weight: 900;
  line-height: 1.28;
  background: linear-gradient(90deg, #fff 0%, #cfefff 40%, #fff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: title-shimmer 10s linear infinite;
  animation-play-state: paused;
}

.fx-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--fx-accent), #78c8ff);
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

@keyframes title-shimmer {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.fx-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

.fx-em {
  background: linear-gradient(
    120deg,
    transparent,
    rgba(30, 144, 255, 0.28) 35%,
    transparent 70%
  );
  background-size: 200% 100%;
  border-radius: 6px;
  padding: 0 0.15em;
  animation: em-sheen 3.6s ease-in-out infinite;
}

@keyframes em-sheen {
  0% {
    background-position: 120% 0;
  }
  50% {
    background-position: -20% 0;
  }
  100% {
    background-position: -20% 0;
  }
}

.catch-animated.ready .fx-title {
  animation-play-state: running;
}
.catch-animated.ready .fx-title::after {
  width: 86%;
}
.catch-animated.ready .fx-line {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fx-title {
    animation: none;
  }
  .fx-title::after {
    transition: none;
    width: 86%;
  }
  .fx-em {
    animation: none;
  }
  .fx-line {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .fx-title {
    margin-bottom: 0.5rem;
  }
  .fx-title::after {
    bottom: -4px;
    height: 3px;
  }
}
/*--- clients ---*/
.clients {
  background: var(--white);
  padding: 1.25rem;
  border-top: 1px solid #e6edf2;
  border-bottom: 1px solid #e6edf2;
  overflow: hidden;
}

.clients-track {
  display: flex;
  gap: 2rem;
  animation: slide 20s linear infinite;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo {
  flex: 0 0 auto;
  width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f2f7fa;
  border: 1px solid #e6edf2;
  overflow: hidden;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ---news--- */
.news {
  background: linear-gradient(180deg, #0f3a5f, #0e5974);
  color: #fff;
  padding: 3rem 1rem;
}

.news-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.news h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.news p.lead {
  color: #cce8f5;
  margin-bottom: 2rem;
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: #fff;
  color: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card-body {
  padding: 1rem;
}

.news-card-body .date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .news-cards {
    grid-template-columns: 1fr;
  }
}

/* ---products--- */
.products {
  background: #f3f5f8;
  padding: 3.5rem 1rem 4rem;
  border-top: 1px solid #e6edf2;
}

.products-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.prod-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.products h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.5;
  margin: 0 0 0.25rem;
  font-weight: 900;
  color: #1b2a36;
}

.products h2 .em,
.solutions h2 .em {
  border-bottom: 6px solid #0e5974;
}

.products .sub {
  color: #6b86a0;
  margin: 0.25rem 0 1rem;
  font-weight: 700;
}

.products .desc {
  color: #33424d;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.prod-card {
  border: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.prod-card .thumb img {
  width: 100%;
}

.prod-card .caption {
  background: #143a5a;
  color: #fff;
  padding: 1rem 1.25rem;
}

.prod-card .caption .lead {
  opacity: 0.9;
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.prod-card .caption h3 {
  margin: 0;
  font-size: 1.2rem;
}

.prod-videos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.video .ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .prod-head {
    grid-template-columns: 1fr;
  }

  .prod-grid {
    grid-template-columns: 1fr;
  }

  .prod-videos {
    grid-template-columns: 1fr;
  }
}

/* ---solutions--- */
.solutions {
  background: #d9d9d9;
  padding: 3rem 1rem;
}

.solutions-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}

.solutions h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: #111;
}

.solutions img {
  max-width: 100%;
  border-radius: 12px;
}

.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sol-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  background-color: #f9f9f9;
  border-radius: 8px;
  height: 100%;
}

.sol-card .icon {
  margin-bottom: 10px;
}

.sol-card img {
  max-height: 80px;
  object-fit: contain;
}

.sol-card p {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .solutions-inner {
    grid-template-columns: 1fr;
  }

  .sol-grid {
    grid-template-columns: 1fr;
  }
}

/* ---features1--- */
.features {
  background: #fff;
  padding: 3rem 1rem;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.feat-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.feat-text h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #123;
  margin: 0.2rem 0 0.6rem;
}

.feat-text .num {
  color: var(--brand);
  font-weight: 900;
  margin-right: 0.4rem;
}

.feat-text p {
  color: #334;
  line-height: 1.8;
}

div .logo-inline {
  display: inline-block;
  line-height: 1;
  margin-right: 0.25em;
  vertical-align: -0.08em;
}

div .logo-inline img {
  height: 20px;
  width: auto;
  display: block;
}

/* @supports (height: 1cap) {
  div .logo-inline {
    vertical-align: 0;
  }

  div .logo-inline img {
    height: 1cap;
  }
} */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f5f6f7;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.feat-card .icon {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  margin: 0 auto;
}

.feat-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.feat-card h5 {
  margin: 0.2rem 0 0.25rem;
  font-size: 1.05rem;
  text-align: center;
}

.feat-card .lead {
  color: #fff;
  font-weight: 700;
  margin: 0 0 0.35rem;
  background-color: var(--brand);
  text-align: center;
  padding: 0.2rem 0.5rem;
}

.feat-card p:last-of-type {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 900px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
}

/* ---features2--- */
.feat-hero.reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .feat-hero.reverse {
    grid-template-columns: 1fr;
  }
}

/* ---works--- */
.works {
  background: #f5f8fb;
  padding: 3rem 1rem;
}

.works-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.works-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.works-text .sub {
  color: #336;
  letter-spacing: 1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.works-text h2 {
  font-size: 2rem;
  font-weight: 900;
  color: #123;
  margin: 0.25rem 0;
}

.works-text .num {
  color: #0e5974;
  font-size: 2.2rem;
}

.works-text p.lead {
  color: #285a88;
  font-weight: 700;
  margin: 0.5rem 0;
}

.works-scroller {
  position: relative;
}

.works-cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem;
  scroll-behavior: smooth;
  scroll-padding-left: 0.5rem;
}

.works-cards::-webkit-scrollbar {
  height: 10px;
}

.works-cards::-webkit-scrollbar-thumb {
  background: #c9d6e2;
  border-radius: 6px;
}

.work-card {
  flex: 0 0 auto;
  width: clamp(260px, 80vw, 320px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.work-card img {
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.work-card .meta {
  padding: 1rem;
}

.work-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.work-card .place {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 0.5rem;
}

.work-card .tag {
  display: inline-block;
  background: #0e5974;
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.works-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.works-dots .dot {
  width: 8px;
  border-radius: 50%;
  background: #b9c7d6;
  display: inline-block;
}

.works-dots .dot:focus-visible {
  outline: 2px solid #1e90ff66;
  outline-offset: 2px;
  border-radius: 999px;
}

.works-dots .dot[aria-current="true"],
.works-dots .dot:hover {
  background: #0e5974;
}

.tv {
  margin-top: 2.5rem;
}

.tv-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #123;
}

.tv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tv-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tv-card img {
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: saturate(0.95);
}

.tv-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 80;
}

.lightbox:target {
  display: flex;
}

.lightbox .panel {
  position: relative;
  background: #fff;
  border-radius: 14px;
  max-width: min(960px, 92vw);
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  padding: 1rem;
}

.lightbox .panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.lightbox .panel .info {
  overflow: auto;
}

.lightbox .panel .info h4 {
  margin: 0.25rem 0;
  font-size: 1.3rem;
}

.lightbox .panel .info .date {
  color: #6b7c86;
  font-weight: 700;
  margin: 0.25rem 0;
}

.lightbox .close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0e5974;
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

@media (max-width: 900px) {
  .works-head {
    grid-template-columns: 1fr;
  }
  .tv-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .tv-grid {
    grid-template-columns: 1fr;
  }
  .lightbox .panel {
    grid-template-columns: 1fr;
    max-height: 88vh;
  }
}

/* ---compare--- */
:root {
  --cmp-bg: var(--panel, #0f1320);
  --cmp-ink: var(--ink, #e8eefc);
  --cmp-muted: var(--muted, #9fb2d0);
  --cmp-line: color-mix(in oklab, currentColor 14%, transparent);
  --cmp-brand: var(--brand, #3772ff);
  --cmp-good: #2bd67b;
  --cmp-fast: #9be5ff;
}

.section--compare {
  padding: 3rem 1rem;
}

.section--compare .container {
  max-width: 1100px;
  margin: 0 auto;
}

.sec-title {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: clamp(22px, 2.4vw, 32px);
  margin: 0 0 18px;
}

.sec-kicker {
  display: inline-block;
  margin-right: 10px;
  padding: 0.35em 0.7em;
  border: 1px solid color-mix(in oklab, var(--cmp-brand) 55%, transparent);
  color: color-mix(in oklab, var(--cmp-brand) 85%, white);
  border-radius: 999px;
  font-size: 0.7em;
  font-weight: 700;
}

.table-shell {
  background: var(--cmp-bg);
  border: 1px solid var(--cmp-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.table-shell:has(.scroll-x) {
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 24px,
    black calc(100% - 24px),
    transparent 100%
  );
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 860px;
}

.cmp-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: color-mix(in oklab, var(--cmp-bg) 94%, white 6%);
  color: var(--cmp-muted);
  text-transform: uppercase;
  font: 700 0.8rem/1.2 var(--font, system-ui);
  letter-spacing: 0.08em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--cmp-line);
  text-align: center;
}

.cmp-table tbody th,
.cmp-table tbody td {
  padding: 16px 16px;
  border-bottom: 1px solid var(--cmp-line);
  text-align: center;
  vertical-align: middle;
  font-size: clamp(14px, 1.6vw, 16px);
}

.cmp-table tbody th {
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cmp-table .mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.cmp-table .muted {
  color: color-mix(in oklab, var(--cmp-muted) 92%, transparent);
}

.cmp-table .good {
  color: var(--cmp-good);
  font-weight: 800;
}

.cmp-table .fast {
  color: var(--cmp-fast);
  font-weight: 800;
}

.cmp-table tbody tr {
  transition: background 0.25s ease;
}

.cmp-table tbody tr:hover {
  background: color-mix(in oklab, var(--cmp-brand) 10%, transparent);
}

.cmp-table .is-featured {
  background: radial-gradient(
    800px 120px at 20% 0%,
    color-mix(in oklab, var(--cmp-brand) 14%, transparent) 0,
    transparent 70%
  );
}

.cmp-table .is-featured th,
.cmp-table .is-featured td {
  border-top: 1px solid color-mix(in oklab, var(--cmp-brand) 40%, transparent);
  border-bottom: 1px solid
    color-mix(in oklab, var(--cmp-brand) 28%, transparent);
}

.cmp-table .w-name {
  width: 26%;
}

.cmp-table .w-price,
.cmp-table .w-acc,
.cmp-table .w-spd,
.cmp-table .w-cap {
  width: 18.5%;
}

.cmp-note {
  color: var(--cmp-muted);
  padding: 12px 16px 18px;
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.9;
}

@media (max-width: 920px) {
  .table-shell {
    overflow: auto;
  }
  .cmp-table {
    min-width: 720px;
  }
}
@media (max-width: 640px) {
  .cmp-table thead {
    display: none;
  }

  .cmp-table colgroup {
    display: none;
  }

  .cmp-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 14px 14px;
  }

  .cmp-table tbody th {
    grid-column: 1/-1;
    border: none;
    padding-bottom: 4px;
    font-size: 16px;
  }

  .cmp-table tbody td {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    border: none;
    padding: 6px 0;
  }

  .cmp-table tbody td::before {
    content: attr(data-label);
    color: var(--cmp-muted);
    text-align: left;
  }

  .cmp-table tbody td:nth-child(2) {
    --label: "価格";
  }

  .cmp-table tbody td:nth-child(3) {
    --label: "認証率";
  }

  .cmp-table tbody td:nth-child(4) {
    --label: "認証速度";
  }

  .cmp-table tbody td:nth-child(5) {
    --label: "登録人数";
  }

  .cmp-table tbody td::before {
    content: var(--label);
  }

  .cmp-table tbody tr {
    border-bottom: 1px solid var(--cmp-line);
  }
}

@media (prefers-color-scheme: light) {
  .table-shell {
    background: #fff;
  }

  .cmp-table tbody tr:hover {
    background: color-mix(in oklab, var(--cmp-brand) 8%, white);
  }
}

/* ---contact--- */
.contact {
  padding: 3rem 1rem;
}

.contact-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-hero {
  box-shadow: var(--shadow, 0 10px 25px rgba(13, 33, 61, 0.12));
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 1.5rem;
}

.contact-hero .hero-bar {
  background: #173b67;
  color: #fff;
  position: relative;
  padding: 1rem 1.5rem 3.5rem;
}

.contact-hero .hero-bar h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.contact-hero .hero-model {
  position: absolute;
  right: 16px;
  top: -24px;
  width: 140px;
  height: auto;
}

.contact-hero .summary {
  background: #f2f3f5;
  padding: 1.25rem 1.25rem;
}

.contact-hero .summary h2 {
  text-align: center;
  margin: 0;
  font-size: 1.6rem;
  color: #123;
}

.contact-hero .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.contact-hero .col {
  background: #fff;
  border: 1px solid #e6edf2;
  border-radius: 12px;
  padding: 1rem 0.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 120px;
}

.contact-hero .col.tel .label {
  color: #6b7c86;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
}

.contact-hero .col.tel .number {
  margin: 0.25rem 0 0.25rem;
  line-height: 1;
}

.contact-hero .col.tel .number a {
  color: inherit;
  text-decoration: none;
}

.contact-hero .col.tel .number strong {
  font-size: clamp(1.3rem, 3.2vw, 1.8rem);
  color: var(--brand-2, #0d6a86);
  letter-spacing: 0.02em;
}

.contact-hero .col.tel .time {
  color: #6b7c86;
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}

.contact-hero .col.line p {
  margin: 0.2rem 0 0.6rem;
  color: #33424d;
  font-weight: 600;
}

.btn-line {
  display: inline-block;
  border: 2px solid #133a78;
  color: #133a78;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  background: #fff;
  transition: transform 0.8s ease, background 0.2s ease, color 0.2s ease;
}

.btn-line:hover {
  background: #133a78;
  color: #fff;
}

.btn-line:active {
  transform: translateY(1px);
}

/* from */
.form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow, 0 10px 25px rgba(13, 33, 61, 0.12));
  padding: 1.25rem;
}
.contact-form .form-group {
  margin-bottom: 1rem;
}
.contact-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.contact-form legend {
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.contact-form label {
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}
.contact-form .req {
  display: inline-block;
  background: #d32f2f;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  margin-left: 0.4rem;
}

.contact-form .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}
.contact-form .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form .grid .full {
  grid-column: 1/-1;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d7e0e8;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9aa8b3;
}

.contact-form .hint {
  margin: 0.25rem 0 2rem;
  color: #d32f2f;
  font-size: 1.125rem;
  font-weight: bold;
}

.legal-box,
.terms-box {
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: 8px;
  padding: 0.75rem;
  overflow: auto;
  max-height: 240px;
}

.consent-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}
.recaptcha {
  margin: 0.25rem 0 1rem;
}
.contact-form .form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.contact-form button {
  background: #173b67;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(23, 59, 103, 0.25);
  cursor: pointer;
}
.contact-form button:hover {
  opacity: 0.95;
}

/* 追加 */
.contact-form .grid.survey-dates {
  grid-template-columns: 1fr;
}
/* ---- */

.contact-form .grid.install-dates {
  grid-template-columns: 1fr;
}

.contact :focus-visible {
  outline: 3px solid #1e90ff66;
  outline-offset: 2px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .contact-hero .cols {
    grid-template-columns: 1fr;
  }
  .contact-form .grid {
    grid-template-columns: 1fr;
  }
}

.contact-hero .col.mail .label {
  color: #6b7c86;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-hero .col.mail .ico-mail {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--brand-2, #0d6a86);
}

.contact-hero .col.mail .address {
  margin: 0.25rem 0 0.25rem;
  line-height: 1;
}

.contact-hero .col.mail .address a {
  color: inherit;
  text-decoration: none;
}

.contact-hero .col.mail .address strong {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--brand-2, #0d6a86);
  letter-spacing: 0.02em;
}

.contact-hero .col.mail .time {
  color: #6b7c86;
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}

/* ------------------------------0907 */
@media (max-width: 768px) {
  .contact-hero .col.mail .label {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .contact-hero .col.mail .ico-mail {
    flex-shrink: 0;
  }

  .contact-hero .col.mail .address strong {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
    text-align: center;
  }

  .contact-hero .col.mail {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ------------------------------0918 */
.fx-line {
  display: block;
}

@media screen and (max-width: 768px) {
  .fx-line {
    display: inline;
  }
}

/* -----------------------------0920 */
.legal-box {
  --border: #e5e7eb;
  --ink: #111827;
  --muted: #6b7280;
  --link: #2563eb;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  color: var(--ink);
  line-height: 1.8;
}

.legal-box:focus {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.legal-box h3 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.legal-list {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.legal-list dt {
  margin: 0;
  font-weight: 600;
  color: #374151;
}

.legal-list dd {
  margin: 0;
}

.legal-ul {
  margin: 0;
  padding-left: 1.1rem;
}

.legal-ul li {
  margin: 0.15rem 0;
}

.legal-box a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.details-section details {
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.details-section summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.details-section summary::-webkit-details-marker {
  display: none;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 12px 0;
}

.legal-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* スクロール領域（必要に応じて） */
.optional-scroll {
  max-height: 520px;
  overflow: auto;
  scrollbar-gutter: stable;
}

/* モバイル最適化 */
@media (max-width: 640px) {
  .legal-list {
    grid-template-columns: 1fr;
    gap: 6px 0;
  }
  .legal-list dt {
    color: var(--muted);
  }
}

.terms-box {
  --border: #e5e7eb;
  --ink: #111827;
  --muted: #6b7280;
  --link: #2563eb;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  color: var(--ink);
  line-height: 1.85;
}

.terms-box:focus {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.terms-box h3 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.terms-intro {
  margin: 0 0 12px;
  color: #374151;
}

.terms-toc {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.terms-toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 0;
  padding-left: 1rem;
}

.terms-toc a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-articles details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
  padding: 12px 14px;
  margin: 10px 0;
}

.terms-articles summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
}

.terms-articles summary span {
  position: relative;
  padding-left: 22px;
}

.terms-articles summary span::before {
  content: "▶";
  font-size: 0.8rem;
  position: absolute;
  left: 0;
  top: 2px;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.terms-articles details[open] summary span::before {
  transform: rotate(90deg);
}

.terms-articles .content {
  margin-top: 8px;
}

.terms-articles ol,
.terms-articles ul {
  margin: 0;
  padding-left: 1.2rem;
}

.terms-articles li {
  margin: 0.25rem 0;
}

.terms-articles .note {
  color: var(--muted);
  font-size: 0.95rem;
}

.optional-scroll {
  max-height: 520px;
  overflow: auto;
  scrollbar-gutter: stable;
}

/* モバイル最適化 */
@media (max-width: 640px) {
  .terms-toc ul {
    grid-template-columns: 1fr;
  }
}

.legal-box,
.terms-box {
  margin-block: 20px;
}

.legal-box + .terms-box {
  margin-top: 32px;
}

.terms-toc {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.terms-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.terms-toc li {
  flex: 1 1 240px;
}

@media (min-width: 1024px) {
  .terms-toc li {
    flex-basis: 300px;
  }
}

.terms-toc a {
  display: block;
  padding: 8px 10px;
  background: #eef2ff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #111827;
  text-decoration: none;
  text-underline-offset: 2px;
  line-height: 1.3;
  white-space: nowrap;
}

.terms-toc a:hover {
  background: #e0e7ff;
  border-color: #c7d2fe;
}

@media (max-width: 480px) {
  .terms-toc ul {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    scrollbar-gutter: stable;
  }
  .terms-toc li {
    flex: 0 0 auto;
  }
}

.terms-box h3,
.legal-box h3 {
  margin-bottom: 12px;
}

.optional-scroll {
  max-height: 520px;
  overflow: auto;
  scrollbar-gutter: stable;
  padding-bottom: 8px;
}

/* ---footer 0925--- */
:root {
  --brand: #0e5974;
}
.footer-companies {
  padding-block: clamp(24px, 4vw, 38px);
  background: linear-gradient(180deg, #f7fbff, #eef3f7);
  border-top: 1px solid #e5e9f0;
}
.footer-companies .fc-wrap {
  max-width: min(1100px, 92vw);
  margin-inline: auto;
  padding-inline: clamp(8px, 2vw, 16px);
}

.fc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .fc-list {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.fc-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: clamp(16px, 2.2vw, 22px);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 1px rgba(16, 24, 40, 0.03);
}

.fc-name {
  margin: 0 0 10px;
  color: var(--brand);
  font-weight: 800;
  font-size: clamp(16px, 1.9vw, 18px);
  letter-spacing: 0.02em;
}

.fc-meta {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.fc-row {
  display: contents;
}

.fc-meta dt {
  color: #475569;
  font-weight: 600;
}

.fc-meta dd {
  color: #0f172a;
  font-weight: 700;
  margin: 0;
}

:root {
  --brand: #0e5974;
  --ink: #0f172a;
  --muted: #64748b;
  --panel: #ffffff;
  --line: #e5e9f0;
}

.cmp {
  padding-block: clamp(32px, 5vw, 56px);
}

.cmp__wrap {
  max-width: min(1100px, 92vw);
  margin-inline: auto;
}

.cmp__title {
  font: 800 clamp(20px, 2.6vw, 28px) / 1.2 system-ui, -apple-system,
    "Noto Sans JP";
  margin: 0 0 12px;
  color: var(--ink);
}

.cmp__tableWrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.cmp__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 860px;
}

.cmp__table thead th {
  position: sticky;
  top: 0;
  background: #f7fbff;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font: 700 12px/1.2 system-ui;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.cmp__table tbody th,
.cmp__table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  font-size: 15px;
  color: var(--ink);
}

.cmp__table tbody th {
  text-align: left;
  font-weight: 700;
}

.cmp__table .w-name {
  width: 26%;
}

.cmp__table .w-price,
.cmp__table .w-acc,
.cmp__table .w-spd,
.cmp__table .w-cap {
  width: 18.5%;
}

.cmp__table .mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.cmp__table .muted {
  color: #94a3b8;
}

.cmp__table .good {
  color: #059669;
  font-weight: 800;
}

.cmp__table .fast {
  color: #0284c7;
  font-weight: 800;
}

.cmp__table tbody tr:hover {
  background: #f6fafe;
}

.cmp__table .is-featured {
  background: #f0f8fb;
}

.cmp__table .is-featured th,
.cmp__table .is-featured td {
  border-top: 1px solid #dbe9f2;
  border-bottom: 1px solid #e3eff6;
}

.cmp__note {
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
  padding: 10px 16px 14px;
  background: #fbfdff;
}

@media (max-width: 640px) {
  .cmp__table {
    min-width: 0;
  }

  .cmp__table thead {
    display: none;
  }

  .cmp__table colgroup {
    display: none;
  }

  .cmp__table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .cmp__table tbody th {
    grid-column: 1/-1;
    border: none;
    padding: 0;
    font-size: 16px;
  }

  .cmp__table tbody td {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    border: none;
    padding: 0;
  }

  .cmp__table tbody td::before {
    content: attr(data-label);
    color: #64748b;
    text-align: left;
  }
}

:root {
  --brand: #0e5974;
  --ink: #0f172a;
  --bg-soft: #f5f7fa;
}
/* ========= A: CTAバンド ========= */
.ctaBandV2 {
  background: var(--bg-soft);
  border-block: 1px solid #e5e9f0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.ctaBandV2[hidden] {
  display: none;
}

.ctaBandV2.isVisible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ctaBandV2 {
    transition: none;
    transform: none;
  }
}

.ctaBandV2__wrap {
  max-width: min(1100px, 92vw);
  margin: auto;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.ctaBandV2__lead {
  margin: 0;
  color: var(--ink);
  font: 700 clamp(13px, 1.8vw, 15px) / 1.5 system-ui, "Noto Sans JP";
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctaBandV2__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(14, 89, 116, 0.25);
  white-space: nowrap;
}

.ctaBandV2__btn:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 30%, #ffffff 70%);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 380px) {
  /* 超狭幅では2行レイアウトにして可読性を優先 */
  .ctaBandV2__wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .ctaBandV2__lead {
    text-align: center;
    white-space: normal;
  }

  .ctaBandV2__btn {
    justify-content: center;
    width: 100%;
  }
}
@media (max-width: 420px) {
  .ctaBandV2__wrap {
    padding: 10px 12px;
    gap: 8px;
  }
}

.ctaBandV2__lead {
  margin: 0;
  color: var(--ink);
  font: 700 clamp(13px, 3.5vw, 15px) / 1.4 system-ui, "Noto Sans JP";
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

.ctaBandV2__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(14, 89, 116, 0.25);
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .ctaBandV2__btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

.ctaBandV2__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ========= B: フローティング ========= */
.contactFabV2 {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 28px rgba(14, 89, 116, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.contactFabV2:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(14, 89, 116, 0.38);
}

.contactFabV2.isHidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
}

/* ========= C: サイドレール（PCのみ表示） ========= */
.contactRailV2 {
  position: fixed;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: #fff;
  color: var(--brand);
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  padding: 10px 8px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: none;
}

@media (min-width: 1024px) {
  .contactRailV2 {
    display: block;
    z-index: 999;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contactFabV2 {
    transition: none;
  }
}

.point {
  text-align: center;
}

/* ---251001--- */
#contact .contact-fieldset {
  margin-block: 20px;
  padding: 16px;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
}

#contact .contact-grid {
  display: grid;
  gap: 12px;
}

#contact .contact-grid--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  #contact .contact-grid--2 {
    grid-template-columns: 1fr;
  }
}

#contact .contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#contact .contact-label {
  font-weight: 700;
  color: #0f172a;
}

#contact .contact-select,
#contact .contact-field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8dee9;
  border-radius: 10px;
  font: inherit;
}

#contact .contact-help {
  color: #64748b;
  font-size: 12px;
}

#contact .is-hidden {
  display: none !important;
}

/* ---251003--- */
.ctaBandV2--inline {
  position: static;
  inset: auto;
  opacity: 1;
  transform: none;
  transition: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  margin: 28px auto;
  max-width: min(1100px, 92vw);
  border-radius: 12px;
}

.ctaBandV2--inline .ctaBandV2__wrap {
  padding: 18px 20px;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  background: var(--bg-soft);
  box-shadow: 0 6px 24px rgba(12, 64, 84, 0.06);
}

.ctaBandV2[hidden] {
  display: none;
}

.news-cards { display:grid; gap:24px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.news-thumb { width:100%; height:auto; border-radius:12px; display:block; object-fit:cover; }
.news-title { margin:.4rem 0 0; font-size:1rem; line-height:1.4; }
.news-more a { display:inline-block; margin-top:12px; }

/* ==== News cards ==== */
.news { padding: 48px 0; }
.news-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.news-cards {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-card a {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 6px 24px rgba(2, 8, 23, .08);
  text-decoration: none;          
  color: inherit;                
  transition: transform .2s, box-shadow .2s;
}

.news-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 8, 23, .14);
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  margin-bottom: 8px;
}

.news-card time { 
  display: block; 
  color: #64748b; 
  font-size: .9rem; 
}

.news-title { 
  margin-top: 4px; 
  font-size: 1rem; 
  font-weight: 700; 
  line-height: 1.4; 
}

.news-more a { 
  display: inline-block; 
  margin-top: 12px; 
  color: #0ea5e9; 
  text-decoration: none; 
}
.news-more a:hover { text-decoration: underline; }

/* ---- Single（記事ページ）の整え ---- */
.single .container{max-width:960px;margin:0 auto;padding:0 20px;}
.single article{max-width:760px;margin:56px auto 72px;}
.single .post-date{display:block;color:#64748b;margin:.25rem 0 1rem;font-size:.95rem;}

.single .post-hero{
  width:100%;
  max-height:440px;         
  object-fit:cover;          
  border-radius:16px;
  display:block;
  box-shadow:0 10px 28px rgba(2,8,23,.08);
  margin:12px 0 24px;
}


.single .content{font-size:1.05rem;line-height:1.9;color:#0f172a;}
.single .content p{margin:1em 0;}
.single .content img{
  max-width:100%;height:auto;display:block;margin:16px auto;border-radius:12px;
  box-shadow:0 6px 20px rgba(2,8,23,.06);
}



