/* ============================================================
   RETAIL DX LLC — Design System & Styles
   retaildx.net
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #00478e;
  --color-primary-dark: #003366;
  --color-accent: #EB8C00;
  --color-accent-dark: #C97800;
  --color-text: #1A1A1A;
  --color-text-light: #555555;
  --color-bg-white: #FFFFFF;
  --color-bg-gray: #F7F8FA;
  --color-bg-dark: #0A1628;
  --color-border: #E0E4E8;

  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;

  --header-height: 72px;
  --container-width: 1120px;
  --section-padding: 100px;
  --section-padding-mobile: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Base --- */
.section {
  padding: var(--section-padding) 0;
}

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

.section-gray {
  background: var(--color-bg-gray);
}

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

.section-heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.3;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin: 16px auto 0;
}

.section-subheading {
  font-size: 16px;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 56px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
  padding: 16px 40px;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  padding: 14px 36px;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #FFFFFF;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

.btn-lg {
  padding: 20px 56px;
  font-size: 18px;
}

/* --- Link Arrow --- */
.link-arrow {
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0, 71, 142, 0.3);
  gap: 6px;
}

.link-arrow::after {
  content: '\2192';
  transition: transform 0.2s ease;
}

.link-arrow:hover {
  color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-accent);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.header-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.header-logo-text {
  font-weight: 400;
  font-size: 14px;
  color: #8A8F96;
  letter-spacing: 0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav-link {
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400;
  position: relative;
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(26, 26, 26, 0.18);
  transition: height 0.15s ease, background 0.15s ease;
}

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

.header-nav-link:hover::after {
  height: 2px;
  background: var(--color-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1100;
  padding: 6px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: rgba(0, 71, 142, 0.06);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  position: absolute;
  left: 6px;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.hamburger span:nth-child(1) { top: 8px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 26px; }

.hamburger.active {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger.active span:nth-child(1) {
  top: 17px;
  transform: rotate(45deg);
  background: #FFFFFF;
}

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

.hamburger.active span:nth-child(3) {
  top: 17px;
  transform: rotate(-45deg);
  background: #FFFFFF;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1050;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
}

/* Close label at top */
.mobile-menu-close {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  letter-spacing: 2px;
  margin-top: calc(var(--header-height) + 24px);
  margin-bottom: 40px;
  cursor: pointer;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-bottom: 60px;
}

.mobile-menu-link {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.mobile-menu-link:hover {
  color: var(--color-accent);
}

.mobile-menu-cta {
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  padding: 12px 40px;
  border-radius: 4px;
  margin-top: 8px;
  font-size: 18px;
}

.mobile-menu-cta:hover {
  background: var(--color-accent);
  color: #FFFFFF;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--color-primary); /* fallback: no image */
  background-image: url('/images/hero.jpg'); /* JPEG fallback */
  background-image: image-set(
    url('/images/hero.avif') type('image/avif'),
    url('/images/hero.webp') type('image/webp'),
    url('/images/hero.jpg')  type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 30, 70, 0.88), rgba(0, 71, 142, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: calc(var(--header-height) + 60px) 24px 60px;
  margin: 0 auto 0 calc((100vw - var(--container-width)) / 2 + 24px);
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.4;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--color-bg-white);
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.trust-bar-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.trust-bar-item {
  text-align: center;
  padding: 0 48px;
  border-right: 1px solid var(--color-border);
}

.trust-bar-item:last-child {
  border-right: none;
}

.trust-bar-number {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.1;
  color: var(--color-primary);
}

.trust-bar-plus {
  font-size: 28px;
}

.trust-bar-label {
  display: block;
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.service-card {
  background: var(--color-bg-white);
  padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 3px solid var(--color-accent);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}

.service-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.service-card-title {
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.service-card-period {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ============================================================
   COMPARISON
   ============================================================ */
.comparison {
  max-width: 900px;
  margin: 0 auto;
}

.comparison-heading {
  font-weight: 700;
  font-size: 28px;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
}

.comparison-col {
  padding: 0;
}

.comparison-col-other {
  background: var(--color-bg-gray);
}

.comparison-col-us {
  background: var(--color-bg-white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

.comparison-col-header {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.comparison-col-header-us {
  color: var(--color-primary);
  background: rgba(0, 71, 142, 0.04);
}

.comparison-row {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
}

.comparison-label {
  display: block;
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.comparison-value {
  font-size: 15px;
  color: var(--color-text-light);
}

.comparison-value-strong {
  color: var(--color-primary);
  font-weight: 700;
}

.comparison-value-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.comparison-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 2px;
}

.comparison-row-price {
  border-bottom: none;
}

/* VS Divider */
.comparison-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 48px;
}

.comparison-vs::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--color-border);
}

.comparison-vs-badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text-light);
}

/* ============================================================
   PHOTO BAND (Section Divider)
   ============================================================ */
.photo-band {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-dark); /* fallback: no image */
}
.photo-band-1 {
  background-image: url('/images/section-divider-1.jpg');
  background-image: image-set(
    url('/images/section-divider-1.avif') type('image/avif'),
    url('/images/section-divider-1.webp') type('image/webp'),
    url('/images/section-divider-1.jpg')  type('image/jpeg')
  );
}

.photo-band-2 {
  background-image: url('/images/section-divider-2.jpg');
  background-image: image-set(
    url('/images/section-divider-2.avif') type('image/avif'),
    url('/images/section-divider-2.webp') type('image/webp'),
    url('/images/section-divider-2.jpg')  type('image/jpeg')
  );
}

.photo-band-k {
  background-image: url('/images/section-divider-k.jpg');
  background-image: image-set(
    url('/images/section-divider-k.avif') type('image/avif'),
    url('/images/section-divider-k.webp') type('image/webp'),
    url('/images/section-divider-k.jpg')  type('image/jpeg')
  );
  /* 講演写真は演者を中央上部に配置することが多いため */
  background-position: center 30%;
}

.photo-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
}

.photo-band-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 28px;
  color: #FFFFFF;
  text-align: center;
  letter-spacing: 2px;
  padding: 0 24px;
}

/* ============================================================
   CASES
   ============================================================ */
.cases-list {
  max-width: 800px;
  margin: 0 auto 56px;
}

.case-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--color-bg-white);
  padding: 32px 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.case-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin-top: 2px;
}

.case-icon svg {
  width: 32px;
  height: 32px;
}

.case-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.case-content {
  flex: 1;
}

.case-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.case-result {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* Testimonial */
.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 120px;
  line-height: 1;
  font-family: var(--font-serif);
  color: var(--color-border);
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.9;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.testimonial-cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-style: normal;
  color: var(--color-text-light);
}

/* ============================================================
   MEDIA CREDIBILITY
   ============================================================ */

/* Logo Ticker */
.logo-ticker {
  overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.logo-ticker-track {
  display: flex;
  align-items: center;
  animation: ticker 20s linear infinite;
  width: max-content;
  pointer-events: none;
}

.logo-ticker-item {
  flex-shrink: 0;
  padding: 0 36px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text-light);
  opacity: 0.45;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

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

/* Media Achievements */
.media-achievements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--color-bg-gray);
  padding: 48px 40px;
  margin-bottom: 48px;
}

.media-achievement {
  text-align: center;
}

.media-achievement-source {
  display: block;
  font-weight: 700;
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.media-achievement-detail {
  display: block;
  font-size: 15px;
  color: var(--color-text-light);
}

/* Slideshow */
.media-slideshow {
  max-width: 800px;
  margin: 0 auto 40px;
}

.slideshow-slides {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-gray);
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slideshow-slide.active {
  opacity: 1;
}

.slideshow-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #FFFFFF;
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  padding: 24px;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.slideshow-dot.active {
  background: var(--color-primary);
}

.media-more {
  text-align: center;
}

/* ============================================================
   PROFILE
   ============================================================ */
.profile-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

.profile-photo-col {
  text-align: center;
}

.profile-photo {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  margin-bottom: 20px;
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* placeholder */
  background: var(--color-bg-gray);
}

.profile-name {
  font-weight: 700;
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.profile-title {
  font-size: 15px;
  color: var(--color-text-light);
}

.profile-bio-col {
  padding-top: 8px;
}

.profile-bio {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 20px;
}

.profile-highlights {
  margin: 24px 0;
  padding-left: 0;
}

.profile-highlights li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
}

.profile-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--color-accent);
}

/* Company Info */
.company-info {
  background: var(--color-bg-white);
  padding: 48px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.company-info-heading {
  font-weight: 700;
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 32px;
}

.company-info-list {
  display: grid;
  gap: 0;
}

.company-info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.company-info-row:last-child {
  border-bottom: none;
}

.company-info-row dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-light);
}

.company-info-row dd {
  font-size: 15px;
  color: var(--color-text);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
#cta {
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, #0D1F35 100%);
  position: relative;
}

.cta-container {
  text-align: center;
  max-width: 700px;
  padding-top: 0;
  padding-bottom: 0;
}

.cta-heading {
  font-weight: 700;
  font-size: 32px;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.cta-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin: 20px auto 0;
}

.cta-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 40px;
}

.cta-sub {
  margin-top: 24px;
}

.cta-sub-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cta-sub-link:hover {
  color: #FFFFFF;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #EAECF0;
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.footer-logo:hover {
  color: var(--color-primary);
}

.footer-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.footer-links {
  padding-top: 4px;
}

.footer-links li {
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-light);
  text-decoration: none;
  display: inline-block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.18);
  transition: color 0.15s ease, border-color 0.15s ease, border-width 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.footer-social a {
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--color-primary);
}

.footer-social svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #999999;
}

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .hero-title {
    font-size: 40px;
  }

  .trust-bar-number {
    font-size: 44px;
  }

  .trust-bar-plus {
    font-size: 22px;
  }

  .profile-grid {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --header-height: 60px;
  }

  /* Header */
  .header-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: 70vh;
  }

  .hero-content {
    margin: 0;
    padding: calc(var(--header-height) + 40px) 24px 40px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .hero-br {
    display: none;
  }

  /* Trust Bar */
  .trust-bar-grid {
    flex-direction: column;
    gap: 24px;
  }

  .trust-bar-item {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
  }

  .trust-bar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .trust-bar-number {
    font-size: 40px;
  }

  .trust-bar-plus {
    font-size: 20px;
  }

  /* Section Headings */
  .section-heading {
    font-size: 28px;
  }

  .section-subheading {
    margin-bottom: 40px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
  }

  .service-card {
    padding: 32px 24px;
  }

  /* Comparison */
  .comparison-heading {
    font-size: 22px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .comparison-vs {
    width: 100%;
    height: 48px;
    justify-content: center;
  }

  .comparison-vs::before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
  }

  .comparison-value-price {
    font-size: 20px;
  }

  /* Photo Band: モバイルでは背景画像を非ロードにして高さを縮小 */
  .photo-band {
    height: 100px;
    background-attachment: scroll;
    background-image: none !important; /* 画像非ロードでパフォーマンス改善 */
    background-color: var(--color-primary-dark);
  }

  .photo-band-text {
    font-size: 18px;
  }

  /* Cases */
  .case-card {
    padding: 24px;
    flex-direction: column;
    gap: 16px;
  }

  /* Media */
  .media-achievements {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 24px;
  }

  .media-achievement-source {
    font-size: 18px;
  }

  .slideshow-placeholder {
    font-size: 18px;
  }

  /* Profile */
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profile-photo img {
    max-width: 280px;
    margin: 0 auto;
  }

  .company-info {
    padding: 32px 24px;
  }

  .company-info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  /* CTA */
  .cta-heading {
    font-size: 26px;
  }

  .cta-text br {
    display: none;
  }

  .btn-lg {
    padding: 16px 40px;
    font-size: 16px;
  }

  /* Footer — mobile tap targets */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links a {
    font-size: 15px;
    padding: 12px 16px;
    display: block;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    margin: 0 -16px;
    padding-left: 16px;
  }

  .footer-links a:hover,
  .footer-links a:active {
    background: rgba(0, 71, 142, 0.06);
  }

  .footer-links li:last-child a {
    border-bottom: none;
  }

  /* Global mobile tap enhancement */
  .link-arrow {
    padding: 6px 0;
  }

  .media-more .link-arrow {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    font-size: 15px;
  }

  /* --- Mobile "押せる感" UIUX --- */

  /* All buttons: tap feedback */
  .btn:active {
    transform: translateY(1px) !important;
    box-shadow: none !important;
    opacity: 0.9;
  }

  /* Footer links: right chevron for tappability */
  .footer-links a {
    position: relative;
    padding-right: 32px;
  }
  .footer-links a::after {
    content: '›';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--color-text-light);
    opacity: 0.5;
  }

  /* Service cards: tap feedback */
  .service-card:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08) !important;
  }

  /* Case cards: tap highlight */
  .case-card:active {
    background: #F7F8FA;
  }

  /* link-arrow: active state */
  .link-arrow:active {
    opacity: 0.7;
  }

  /* Company info link: larger tap target */
  .company-info-row a.link-arrow {
    padding: 8px 12px;
    margin: -8px -12px;
    border-radius: 4px;
  }
  .company-info-row a.link-arrow:active {
    background: rgba(0, 71, 142, 0.06);
  }

  /* Trust bar items: subtle tap presence */
  .trust-bar-item {
    padding: 16px 0;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,
  .hamburger,
  .mobile-menu,
  .photo-band,
  .logo-ticker,
  .media-slideshow,
  .btn {
    display: none;
  }

  .hero {
    min-height: auto;
    background: none;
    color: var(--color-text);
  }

  .hero-overlay {
    display: none;
  }

  .hero-title,
  .hero-text,
  .hero-subtitle {
    color: var(--color-text);
  }

  .section {
    padding: 32px 0;
  }

  body {
    font-size: 12pt;
  }
}
