/* ========================================================
   ESCOT, Inc. - Clean Modern Static Stylesheet
   ======================================================== */

:root {
  --primary-color: #337ab7;
  --primary-hover: #23527c;
  --text-color: #333333;
  --text-muted: #666666;
  --bg-light: #f8f9fa;
  --border-color: #e5e7eb;
  --white: #ffffff;
  --font-base: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Segoe UI", Roboto, sans-serif;
  --max-width: 1140px;
  --header-height: 80px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-base);
  color: var(--text-color);
  line-height: 1.8;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================
   Header & Navigation
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-weight: 700;
  font-size: 1.05rem;
  color: #444444;
  padding: 8px 4px;
  position: relative;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  text-decoration: none;
}

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

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

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #333333;
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

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

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

/* ========================================================
   Hero Carousel (Top Page)
   ======================================================== */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #222222;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 520px;
}

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

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

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

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: var(--max-width);
  z-index: 2;
  color: #ffffff;
}

.carousel-caption h2 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.carousel-caption.caption-dark h2,
.carousel-caption.caption-dark p {
  color: #111111;
  text-shadow: 0 0 4px #ffffff, 0 0 10px #ffffff;
}

.carousel-btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-indicator.active {
  background-color: var(--primary-color);
  width: 28px;
  border-radius: 6px;
}

/* Controls */
.carousel-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 3;
  transition: var(--transition);
}

.carousel-ctrl:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.carousel-ctrl.prev { left: 20px; }
.carousel-ctrl.next { right: 20px; }

/* ========================================================
   Page Header (Subpages)
   ======================================================== */
.page-header {
  background-color: #2e3a47;
  background-image: linear-gradient(135deg, #1f2a36 0%, #34495e 100%);
  color: #ffffff;
  padding: 50px 0;
  margin-bottom: 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 8px;
}

/* ========================================================
   Common Sections & Layout
   ======================================================== */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222222;
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Top Message Box */
.message-box {
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  margin-bottom: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.message-box p {
  font-size: 1.15rem;
  line-height: 2.2;
  color: #333333;
}

/* PR Blocks Grid */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.pr-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}

.pr-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
  text-decoration: none;
}

.pr-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.pr-icon-wrapper svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.pr-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #222222;
}

.pr-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Two Column Media-Text Block */
.media-text-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.media-text-block.reversed {
  direction: rtl;
}

.media-text-block.reversed > * {
  direction: ltr;
}

.media-text-block.columns-45-auto {
  grid-template-columns: 45% 1fr;
}

.media-text-block.columns-38-auto {
  grid-template-columns: 38% 1fr;
}

.media-text-block.columns-auto-40 {
  grid-template-columns: 1fr 40%;
}

.media-thumb {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.media-thumb img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.media-thumb:hover img {
  transform: scale(1.02);
}

.media-content h3,
.media-content .catch {
  font-size: 1.4rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.media-content h3::after,
.media-content .catch::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.media-content p {
  margin-bottom: 16px;
  line-height: 1.9;
}

/* Button & Action */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
}

.btn-center-wrap {
  text-align: center;
  margin: 30px 0 60px;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, #337ab7 0%, #1d5987 100%);
  color: #ffffff;
  border-radius: 8px;
  padding: 48px 30px;
  text-align: center;
  margin: 50px 0;
}

.cta-banner h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  opacity: 0.95;
}

.cta-banner .btn {
  background-color: #ffffff;
  color: var(--primary-color);
  font-weight: 700;
  padding: 14px 40px;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn:hover {
  background-color: #f1f5f9;
  color: var(--primary-hover);
}

/* Profile Block (About Page) */
.profile-card {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0;
}

.profile-avatar {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.profile-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222222;
}

.profile-info p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444444;
}

/* Gallery Grid (Images / YouTube) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.gallery-grid.videos {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  background-color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Timeline / History Table */
.timeline-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.timeline-table th,
.timeline-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.timeline-table th {
  width: 140px;
  background-color: var(--bg-light);
  font-weight: 700;
  color: #333333;
  text-align: left;
}

/* Content Box (About, Services) */
.content-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 36px;
  margin-bottom: 40px;
}

.content-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
}

.content-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 12px;
  color: #222222;
}

.content-box p {
  margin-bottom: 16px;
  line-height: 1.9;
}

/* Contact Form */
.form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333333;
}

.form-required {
  color: #e53e3e;
  font-size: 0.85rem;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  transition: var(--transition);
  background-color: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.2);
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

.form-status {
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Map Frame */
.map-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========================================================
   Footer
   ======================================================== */
.site-footer {
  background-color: #1e293b;
  color: #94a3b8;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #cbd5e1;
  font-weight: 500;
  text-decoration: none;
}

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

.footer-copyright {
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #334155;
  padding-top: 24px;
  color: #64748b;
}

/* Page Top Floating Button */
.page-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background-color: rgba(30, 41, 59, 0.8);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
}

.page-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.page-top-btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.page-top-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ========================================================
   Responsive Media Queries
   ======================================================== */
@media (max-width: 992px) {
  .pr-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-inner {
    height: 420px;
  }

  .carousel-caption h2 {
    font-size: 2.2rem;
  }

  .media-text-block,
  .media-text-block.columns-45-auto,
  .media-text-block.columns-38-auto,
  .media-text-block.columns-auto-40 {
    grid-template-columns: 1fr;
  }

  .media-text-block.reversed {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .site-nav.open {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
  }

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

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

  .carousel-inner {
    height: 320px;
  }

  .carousel-caption h2 {
    font-size: 1.6rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .form-wrapper {
    padding: 24px 16px;
  }
}
