/* ============================================
   Corporate Minimalism Design System
   ============================================ */

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

:root {
  --primary-color: #1B5E3F;
  --primary-light: #2d7a52;
  --primary-dark: #0f3d28;
  --brand-color: #2558b8;
  --brand-light: #2558b8;
  --brand-dark: #1a3f96;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-height: 88px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

[id] {
  scroll-margin-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--bg-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 2rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-white {
  color: #ffffff;
}

.text-gray-400 {
  color: rgba(255, 255, 255, 0.75);
}

.text-xs {
  font-size: 0.85rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-3 {
  gap: 0.75rem;
}

.justify-center {
  justify-content: center;
}

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

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.hero-button,
.hero-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.85rem;
}

.hero-button {
  background-color: var(--brand-color);
  color: var(--bg-white);
}

.hero-button:hover {
  background-color: var(--brand-dark);
}

.hero-button-secondary {
  background-color: rgba(37,88,184,0.14);
  color: var(--bg-white);
  border: 1px solid rgba(37,88,184,0.32);
}

.hero-button-secondary:hover {
  background-color: rgba(37,88,184,0.22);
}

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

/* ============================================
   Header & Navigation
   ============================================ */

.sticky-header {
  position: sticky;
  top: 0;
  background-image: url(../images/header-bg.png);
  background-size: cover;
  background-position: left center;
  background-color: #071226;
  box-shadow: none;
  z-index: 1000;
  border-bottom: none;
  color: rgba(255,255,255,0.95);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-container > * {
  position: relative; /* ensure elements sit above the decorative stripe */
  z-index: 5;
}

@media (min-width: 768px) {
  .header-container {
    padding: 1rem 2rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 900;
}

.logo-text {
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: inline;
  }
}

/* ロゴ画像 */

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0.75rem;
}

.logo-wordmark {
  height: 30px;
  display: block;
}

.logo-sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-top: -12px;
  margin-left: 10px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  width: 32px;
  height: auto;
  object-fit: contain;
}

.footer-logo-wordmark {
  height: 18px;
}


.nav-desktop {
  display: none;
  gap: 2rem;
  align-items: center;
  flex: 1;
  margin-left: 3rem;
}

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

/* ナビをピル型ボタン風に */
.nav-desktop {
  justify-content: center;
  gap: 1rem;
}

.nav-desktop .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0;
  background: linear-gradient(180deg, var(--brand-light), var(--brand-color));
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(52,144,255,0.18);
  font-weight: 700;
  width: 92px; /* もっとコンパクト */
  font-size: 0.6rem; /* 3分の2より少し控えめ */
  text-align: center;
  white-space: nowrap;
}

.nav-desktop .nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(52,144,255,0.22);
}

@media (min-width: 1200px) {
  .nav-desktop .nav-link { width: 100px; font-size: 0.68rem; }
}

.contact-btn {
  background-color: var(--brand-color);
  color: #ffffff;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.contact-btn {
  display: none;
  background-color: var(--brand-color);
  color: var(--bg-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

@media (min-width: 768px) {
  .contact-btn {
    display: inline-block;
  }
}

.contact-btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

.nav-mobile.active {
  display: flex;
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }
}


/* ============================================
   Hero Section & Slider
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: #000;
}

@media (min-width: 768px) {
  .hero {
    height: 500px;
  }
}

@media (min-width: 1024px) {
  .hero {
    height: 600px;
  }
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

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

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.slide-overlay h1,
.slide-overlay .slide-heading {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--bg-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  animation: slideInDown 1.4s ease-out;
}

.slide-overlay p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  animation: slideInUp 1.4s ease-out 0.3s both;
}

@media (min-width: 768px) {
  .slide-overlay h1,
  .slide-overlay .slide-heading {
    font-size: 2.5rem;
  }

  .slide-overlay p {
    font-size: 1.1rem;
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.slider-btn:hover {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
}

.slider-btn.prev {
  left: 1rem;
}

.slider-btn.next {
  right: 1rem;
}

.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--bg-white);
  transform: scale(1.3);
}

/* ============================================
   News Section
   ============================================ */

.news-section {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.news-section h2 {
  margin-bottom: 2rem;
}

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

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

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

@media (min-width: 1280px) {
  .news-grid--4col {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .news-grid--5 {
    grid-template-columns: repeat(6, 1fr);
  }
  .news-grid--5 .news-card:nth-child(-n+3) {
    grid-column: span 2;
  }
  .news-grid--5 .news-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .news-grid--5 .news-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.news-card {
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--brand-color);
}

.news-card time {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.news-card h3 {
  color: var(--text-dark);
  font-size: 1rem;
  transition: var(--transition);
}

.news-card:hover h3 {
  color: var(--brand-color);
}

/* ============================================
   Gallery Section
   ============================================ */

.gallery-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.gallery-section h2 {
  margin-bottom: 0.75rem;
}

.gallery-lead {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

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

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

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gallery-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.gallery-caption {
  padding: 1.25rem 1.5rem;
}

.gallery-caption h3 {
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.gallery-caption p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.7;
}

.gallery-demo-cta {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-demo-cta {
    flex-direction: row;
    justify-content: center;
  }
}

.gallery-demo-btn {
  white-space: nowrap;
}

.gallery-demo-cta .hero-button-secondary {
  background-color: rgba(37, 88, 184, 0.12);
  color: var(--brand-color);
  border: 1.5px solid var(--brand-color);
}

.gallery-demo-cta .hero-button-secondary:hover {
  background-color: var(--brand-color);
  color: #ffffff;
}

/* ============================================
   Business Section
   ============================================ */

.business-section {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.business-section h2 {
  margin-bottom: 2rem;
}



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

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

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

@media (min-width: 1280px) {
  .business-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 640px) {
  .business-grid--3col {
    grid-template-columns: repeat(3, 1fr);
  }
  .business-grid--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .business-grid--3col {
    grid-template-columns: repeat(3, 1fr);
  }
  .business-grid--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 5枚 3+2 中央揃えレイアウト */
@media (min-width: 1280px) {
  .business-grid--5 {
    grid-template-columns: repeat(6, 1fr);
  }
  .business-grid--5 .business-card:nth-child(-n+3) {
    grid-column: span 2;
  }
  .business-grid--5 .business-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .business-grid--5 .business-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* ============================================
   Service Detail Sections
   ============================================ */

.service-detail {
  padding: 5rem 0;
}

.service-detail:nth-of-type(even) {
  background-color: var(--bg-light);
}

.service-lead {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin: 0 auto 2.5rem;
  max-width: 760px;
}

.service-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.service-content-block h3 {
  font-size: 1rem;
  color: var(--brand-color);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.service-list,
.service-trouble {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-list li,
.service-trouble li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-color);
  font-weight: 700;
}

.service-trouble li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--brand-color);
}

.service-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.service-content-block .service-buttons {
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.service-buttons .hero-button-secondary {
  background-color: rgba(37, 88, 184, 0.12);
  color: var(--brand-color);
  border: 1.5px solid var(--brand-color);
}

.service-buttons .hero-button-secondary:hover {
  background-color: var(--brand-color);
  color: #ffffff;
}

.service-note {
  font-size: 0.9rem;
  color: var(--text-light);
  background-color: var(--bg-light);
  border-left: 3px solid var(--brand-color);
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  border-radius: 0 8px 8px 0;
}

.service-detail:nth-of-type(even) .service-note {
  background-color: var(--bg-white);
}

.business-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.business-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.business-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.business-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: var(--brand-color);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.business-card h3 {
  color: var(--text-dark);
  margin: 0;
  transition: var(--transition);
}

.business-card:hover h3 {
  color: var(--brand-color);
}

.business-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
  flex-grow: 1;
}

.more-link {
  color: var(--brand-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.more-link:hover {
  gap: 0.75rem;
}

/* ============================================
   Privacy Policy Section
   ============================================ */

.privacy-section {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.privacy-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
}


.privacy-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.privacy-block h3 {
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.privacy-block p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.75;
}

.privacy-block a {
  color: var(--brand-color);
}

/* ============================================
   Works CTA Banner
   ============================================ */

.works-cta {
  padding: 5rem 0;
  background-color: var(--text-dark);
  text-align: center;
}

.works-cta h2 {
  color: #ffffff;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.works-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.works-cta .hero-button {
  border-color: #ffffff;
  color: #ffffff;
}

.works-cta .hero-button:hover {
  background-color: #ffffff;
  color: var(--text-dark);
}

/* ============================================
   Callouts
   ============================================ */

.recruit-section,
.contact-section {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.recruit-section {
  background-color: #f3faf6;
}

.recruit-section h2,
.contact-section h2 {
  font-size: 2rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1rem;
}

.recruit-section p,
.contact-section p {
  max-width: 780px;
  margin: 0 auto 1rem;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background-image: url(../images/footer-bg.png);
  background-size: cover;
  background-position: center;
  background-color: var(--text-dark);
  color: var(--bg-white);
  padding: 1rem 0 0.5rem;
}


.footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.footer-brand {
  flex-shrink: 0;
  text-align: center;
}

.footer-company-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 639px) {
  .footer-brand {
    text-align: left;
  }
}

.footer-nav-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.footer-pill-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.footer-pill-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 118px;
  padding: 0.55rem 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  transition: var(--transition);
}

.footer-pill-nav a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Utilities
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.label-required,
.label-optional {
  display: inline-block;
  width: fit-content;
  white-space: nowrap;
  justify-self: start;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.1rem 0.18rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.label-required {
  background: #e0473e;
  color: #ffffff;
}

.label-optional {
  background: var(--border-color);
  color: var(--text-light);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-dark);
  background-color: #ffffff;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(37, 88, 184, 0.15);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #e0473e;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.field-error {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e0473e;
}

.field-error.is-visible {
  display: block;
}

.form-step {
  display: grid;
  gap: 1.25rem;
}

.form-step[hidden] {
  display: none;
}

.contact-form .hero-button {
  border: none;
  cursor: pointer;
  justify-self: center;
}

.confirm-list {
  display: grid;
  gap: 1.25rem;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  margin: 0;
}

.confirm-list dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.confirm-list dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
  white-space: pre-wrap;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.button-outline-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  background-color: #ffffff;
  color: var(--brand-color);
  border: 1px solid var(--brand-color);
  cursor: pointer;
  transition: var(--transition);
}

.button-outline-brand:hover {
  background-color: rgba(37, 88, 184, 0.08);
}

.form-message {
  max-width: 700px;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
}

.form-message.success {
  background-color: #e6f4ea;
  border: 1px solid #9addb3;
  color: #165f33;
}

.form-message.error {
  background-color: #fde8e8;
  border: 1px solid #f2b8b8;
  color: #7d2121;
}

/* ============================================
   Demo Page
   ============================================ */

.demo-list-grid {
  display: grid;
  gap: 20px;
}

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

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

.demo-item-card {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.demo-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.demo-item-card__screen {
  background: #0f2040;
  padding: 14px;
}

.demo-item-card__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.demo-item-card__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.demo-item-card__bar em {
  font-style: normal;
  margin-left: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
}

.demo-item-card__preview {
  background: #1a3060;
  border-radius: 8px;
  padding: 14px;
  min-height: 90px;
}

.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.demo-label        { color: rgba(255,255,255,0.85); font-size: 0.78rem; }
.demo-label--muted { color: rgba(255,255,255,0.45); font-size: 0.76rem; }

.demo-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(0,174,239,0.3);
  color: #7bbcff;
  font-size: 0.7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.demo-badge { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.demo-badge--green { color: #6ee7b7; }
.demo-badge--red   { color: #fca5a5; }
.demo-badge--blue  { color: #7bbcff; }

.demo-bar-wrap { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; margin-top: 6px; }
.demo-bar      { height: 100%; border-radius: 2px; }
.demo-bar--green  { background: #6ee7b7; }
.demo-bar--red    { background: #ef4444; }
.demo-bar--yellow { background: #fde047; }
.demo-bar--w80 { width: 80%; }
.demo-bar--w60 { width: 60%; }
.demo-bar--w16 { width: 16%; }

.demo-row--mt    { margin-top: 10px; }
.demo-row--mt-sm { margin-top: 8px; }

.demo-preview__tags  { display: flex; gap: 6px; margin-top: 10px; }
.demo-preview__note  { margin-top: 10px; font-size: 0.72rem; }
.demo-preview__alert { color: #FF5F00; font-weight: 700; }

.demo-clock__status { color: #fde047; font-size: 0.78rem; font-weight: 700; }
.demo-clock__time   { font-weight: 700; }

.demo-tag { display: inline-block; font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.demo-tag--green  { background: rgba(34,197,94,0.25);  color: #86efac; }
.demo-tag--yellow { background: rgba(251,191,36,0.25); color: #fbbf24; }
.demo-tag--orange { background: rgba(249,115,22,0.25); color: #fb923c; }
.demo-tag--blue   { background: rgba(59,130,246,0.25); color: #93c5fd; }
.demo-tag--red    { background: rgba(239,68,68,0.25);  color: #fca5a5; }
.demo-tag--gray   { background: rgba(148,163,184,0.25);color: #cbd5e1; }

.demo-item-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.demo-item-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.demo-item-card__head h3 { margin: 0; font-size: 1rem; }

.demo-live-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.demo-item-card__body p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

.demo-item-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.demo-item-card__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--brand-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.demo-item-card__btn:hover { background: var(--brand-dark); color: #fff; }

.demo-qr-wrap { position: relative; flex-shrink: 0; }

.demo-qr-btn {
  width: 44px; height: 44px;
  border: 2px solid var(--brand-color);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-color);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  padding: 0;
}

.demo-qr-btn:hover,
.demo-qr-btn.is-open { background: var(--brand-color); color: #fff; }

.demo-qr-popup {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  z-index: 200;
  white-space: nowrap;
}

.demo-qr-popup[hidden] { display: none; }

.demo-qr-popup::after {
  content: '';
  position: absolute;
  bottom: -7px; right: 14px;
  width: 12px; height: 12px;
  background: #fff;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transform: rotate(45deg);
}

.demo-qr-popup__label { display: block; margin-top: 10px; font-size: 0.72rem; color: var(--text-light); font-weight: 600; }
.demo-qr-popup__url   { display: block; margin-top: 4px; font-size: 0.65rem; color: #a0aec0; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.demo-list-note { margin-top: 28px; text-align: center; color: var(--text-light); font-size: 0.88rem; }

/* カスタム開発メリット */
.section-custom-merit {
  padding: 4rem 0;
  background: linear-gradient(135deg, #071a2f 0%, #0d2d52 60%, #071a2f 100%);
  position: relative;
  overflow: hidden;
}

.section-custom-merit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 20px);
  pointer-events: none;
}

.section-custom-merit h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-custom-merit .section-kicker-demo {
  color: #c9a227;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.demo-section-desc {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.demo-merit-desc {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}

.custom-flow-desc {
  color: var(--text-light);
  margin-top: 1rem;
}

.highlight-word {
  font-style: normal;
  font-weight: 700;
  color: var(--brand-color);
}

.consult-examples {
  margin: 0.75rem 0 0.5rem 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.consult-examples li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding-left: 1.1em;
  position: relative;
  line-height: 1.6;
}

.consult-examples li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--brand-color);
}

.consult-note {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-color);
  margin-top: 0.5rem;
}

.custom-merit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (min-width: 1024px) {
  .custom-merit-grid { grid-template-columns: repeat(4, 1fr); }
}

.custom-merit-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px 20px;
  transition: background 0.2s;
}

.custom-merit-card:hover { background: rgba(255,255,255,0.11); }

.custom-merit-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(201,162,39,0.2);
  color: #c9a227;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

.custom-merit-card h3 { margin: 0 0 8px; font-size: 0.92rem; color: #fff; line-height: 1.5; }
.custom-merit-card p  { margin: 0; font-size: 0.84rem; color: rgba(255,255,255,0.6); line-height: 1.8; }

.custom-merit-examples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .custom-merit-examples {
    grid-template-columns: repeat(3, 1fr);
  }
}

.custom-merit-example {
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.3);
  border-left: 4px solid #c9a227;
  border-radius: 12px;
  padding: 22px 26px;
}

.custom-merit-example__kicker { margin: 0 0 10px; font-weight: 700; font-size: 0.9rem; color: #c9a227; }
.custom-merit-example__flow   { margin: 0 0 8px; font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.8; }
.custom-merit-example__note   { margin: 0; font-size: 0.84rem; color: rgba(255,255,255,0.55); }

.custom-merit-catchall {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.9;
}

/* 開発フロー */
.section-custom-flow { padding: 4rem 0; background: var(--bg-white); }
.section-custom-flow h2 { text-align: left; }

.custom-layout {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .custom-layout { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

.custom-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.custom-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-light);
  align-items: start;
}

.custom-list__num { color: var(--brand-color); font-weight: 800; font-size: 1rem; }
.custom-list__item strong { display: block; font-size: 1rem; margin-bottom: 6px; color: var(--text-dark); }
.custom-list__item p { margin: 0; color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* ============================================
   Statements Section（会社概要）
   ============================================ */

.statements-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #071a2f 0%, #0d2d52 60%, #071a2f 100%);
  position: relative;
  overflow: hidden;
}

.statements-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 20px);
  pointer-events: none;
}

.statements-title {
  margin-bottom: 0.5rem;
  position: relative;
  text-align: center;
}

.statements-stagger {
  display: inline-flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  margin-left: -14em;
}

.stagger-line {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.stagger-line--1 { padding-left: 0; }
.stagger-line--2 { padding-left: 4.5em; }
.stagger-line--3 { padding-left: 7em; color: rgba(255,255,255,0.92); }

.statements-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4.5rem;
  position: relative;
}

.statements-grid {
  display: grid;
  gap: 1.5rem;
  position: relative;
}

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

.statement-card {
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7);
  border-top: 3px solid var(--brand-light);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.statement-card:nth-child(2) {
  border-top-color: #2558b8;
}

.statement-card:nth-child(3) {
  border-top-color: #2558b8;
}

.statement-card:hover {
  background: rgba(255,255,255,0.98);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.statement-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 0.75rem;
}

.statement-card:nth-child(2) .statement-label {
  color: #2558b8;
}

.statement-card:nth-child(3) .statement-label {
  color: #2558b8;
}

.statement-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.statement-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.9;
  margin: 0;
}

/* ============================================
   Company Page
   ============================================ */

.company-table-wrap {
  overflow-x: auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.company-table th,
.company-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}

.company-table th {
  width: 160px;
  min-width: 130px;
  color: var(--brand-color);
  font-weight: 700;
  white-space: nowrap;
  background: var(--bg-white);
}

.company-table td {
  color: var(--text-light);
  background: var(--bg-light);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.message-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .message-layout {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 3rem;
  }
}

.message-content {
  display: grid;
  gap: 1rem;
}

.message-content p {
  color: var(--text-light);
  line-height: 1.9;
  margin: 0;
}

.message-sign {
  color: var(--text-dark) !important;
  font-size: 1rem;
  padding-top: 0.5rem;
}

.message-portrait img {
  width: 200px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: block;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .message-portrait img {
    margin: 0;
  }
}

.access-address {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.map-embed {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
}

.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* ページトップへ戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-color);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(47,105,195,0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;
  z-index: 300;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--brand-dark); }

/* Print Styles */
@media print {
  .sticky-header,
  .slider-btn,
  .contact-btn {
    display: none !important;
  }

  body {
    background-color: var(--bg-white);
  }
}
