/* ============================================
   Cloud Production Co., Ltd. - Corporate Site
   ============================================ */

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

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

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

.logo-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2744;
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.65rem;
  color: #6b7a8d;
  letter-spacing: 0.1em;
}

/* --- Navigation --- */
.nav-list {
  display: flex;
  gap: 32px;
}

.nav-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a2744;
  position: relative;
  padding: 4px 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #2a5298;
  transition: width 0.3s ease;
}

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

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a2744;
  transition: all 0.3s ease;
}

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

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

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2744 0%, #2a5298 50%, #1e3a6e 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(42, 82, 152, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(26, 39, 68, 0.4) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 120px 20px 80px;
}

.hero-lead {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.8;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.85;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid #fff;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: #fff;
  color: #1a2744;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-gray {
  background: #f7f8fa;
}

.section-dark {
  background: linear-gradient(135deg, #1a2744, #2a5298);
  color: #fff;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a2744;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #2a5298;
}

.section-title-light {
  color: #fff;
}

.section-title-light::after {
  background: rgba(255, 255, 255, 0.6);
}

/* --- About Table --- */
.about-table-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table tr {
  border-bottom: 1px solid #e8eaf0;
}

.about-table th,
.about-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.95rem;
}

.about-table th {
  width: 140px;
  font-weight: 500;
  color: #1a2744;
  background: #f7f8fa;
  white-space: nowrap;
}

.about-table .en {
  font-size: 0.8rem;
  color: #6b7a8d;
}

.tel-link {
  color: #2a5298;
  font-weight: 500;
  font-size: 1.1rem;
}

.tel-link:hover {
  color: #1a2744;
}

/* --- Philosophy --- */
.philosophy-main {
  text-align: center;
  margin-bottom: 48px;
}

.philosophy-heading {
  font-size: 1.5rem;
  color: #1a2744;
  margin-bottom: 20px;
}

.philosophy-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: #555;
  line-height: 2;
}

.philosophy-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-card h4 {
  font-size: 1rem;
  color: #1a2744;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
}

/* --- Business --- */
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.business-card {
  padding: 36px 28px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.business-icon {
  color: #2a5298;
  margin-bottom: 16px;
}

.business-card h3 {
  font-size: 1.15rem;
  color: #1a2744;
  margin-bottom: 12px;
}

.business-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
}

/* --- History / Timeline --- */
.history-timeline {
  max-width: 700px;
  margin: 0 auto 48px;
  position: relative;
  padding-left: 100px;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d0d5dd;
}

.timeline-item {
  position: relative;
  padding: 0 0 32px 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2a5298;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #2a5298;
}

.timeline-year {
  position: absolute;
  left: -100px;
  top: 0;
  width: 70px;
  text-align: right;
  font-size: 1rem;
  font-weight: 700;
  color: #2a5298;
}

.timeline-content h4 {
  font-size: 1rem;
  color: #1a2744;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: #555;
}

/* --- Clients --- */
.clients-section {
  text-align: center;
}

.clients-title {
  font-size: 1.1rem;
  color: #1a2744;
  margin-bottom: 16px;
}

.clients-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.client-badge {
  display: inline-block;
  padding: 8px 24px;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a2744;
}

/* --- Notice --- */
.notice-content {
  max-width: 800px;
  margin: 0 auto;
}

.notice-card {
  padding: 36px 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.notice-important {
  border-left: 4px solid #c0392b;
}

.notice-card h3 {
  font-size: 1.15rem;
  color: #1a2744;
  margin-bottom: 8px;
}

.notice-date {
  font-size: 0.8rem;
  color: #6b7a8d;
  margin-bottom: 24px;
}

.notice-body p {
  font-size: 0.95rem;
  color: #444;
  line-height: 2;
  margin-bottom: 16px;
}

.notice-body h4 {
  font-size: 1rem;
  color: #1a2744;
  margin-top: 24px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e8eaf0;
}

.notice-body strong {
  color: #c0392b;
}

/* --- Contact --- */
.contact-lead {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.contact-info-single {
  grid-template-columns: 1fr;
  max-width: 400px;
}

.contact-card {
  text-align: center;
  padding: 36px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.contact-icon {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 12px;
  opacity: 0.8;
}

.contact-tel {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.contact-tel:hover {
  opacity: 0.8;
}

.contact-web {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

.contact-web:hover {
  opacity: 0.8;
}

.contact-note {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- Footer --- */
.footer {
  background: #111a2e;
  color: #aab3c2;
  padding: 40px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-name {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

.footer-en {
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.footer-tel a {
  color: #aab3c2;
  font-size: 0.9rem;
}

.footer-tel a:hover {
  color: #fff;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: #aab3c2;
}

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

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.75rem;
}

/* --- Utility --- */
.sp-only {
  display: none;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  /* Mobile menu */
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 80px 24px 40px;
  }

  .nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
  }

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

  .hero-content {
    padding: 100px 20px 60px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .sp-only {
    display: inline;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 36px;
  }

  /* About */
  .about-table th,
  .about-table td {
    display: block;
    width: 100%;
    padding: 8px 16px;
  }

  .about-table th {
    padding-bottom: 0;
    font-size: 0.8rem;
  }

  .about-table td {
    padding-top: 4px;
  }

  /* Philosophy */
  .philosophy-values {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Business */
  .business-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .history-timeline {
    padding-left: 80px;
  }

  .history-timeline::before {
    left: 60px;
  }

  .timeline-year {
    left: -80px;
    width: 50px;
    font-size: 0.9rem;
  }

  /* Notice */
  .notice-card {
    padding: 24px 20px;
  }

  /* Contact */
  .contact-info {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-lead {
    font-size: 0.75rem;
  }

  .business-card {
    padding: 24px 20px;
  }
}
