/* ===========================
   Corporate Site - Base Styles
   Modern & Clean Design
   =========================== */

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

:root {
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent: #0f3460;
  --color-highlight: #4a90d9;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-gray: #f8f9fa;
  --color-border: #e0e0e0;
  --font-main: "Noto Serif JP", "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;
  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

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

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

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

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

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

ul {
  list-style: none;
}

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

.section {
  padding: 100px 0;
}

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

/* ===========================
   Header
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

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

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

.header__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.header__logo a {
  color: inherit;
}

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

.header__nav a {
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
}

.header__nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-highlight);
  transition: width var(--transition);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__nav a:hover {
  color: var(--color-highlight);
}

/* Mobile Menu */
.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition);
}

/* ===========================
   Hero
   =========================== */
.hero {
  display: flex;
  align-items: center;
  min-height: 600px;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #ffffff;
}

.hero__content {
  max-width: 700px;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero__text {
  font-size: 1.125rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero--sub {
  min-height: 320px;
  text-align: center;
}

.hero--sub .hero__content {
  margin: 0 auto;
}

.hero--sub .hero__title {
  font-size: 2.25rem;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.04em;
}

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

.btn--primary:hover {
  background-color: #3a7bc8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 217, 0.4);
}

.btn--outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

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

.btn--dark:hover {
  background-color: var(--color-secondary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-header__subtitle {
  font-size: 0.875rem;
  color: var(--color-highlight);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 600;
}

.section-header__text {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   Cards
   =========================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background-color: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.card__image {
  width: 100%;
  height: 200px;
  background-color: var(--color-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.card__body {
  padding: 28px;
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-highlight);
  background-color: rgba(74, 144, 217, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.card__text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.card__date {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

/* ===========================
   Features / Service List
   =========================== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.feature-item {
  text-align: center;
}

.feature-item__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background-color: rgba(74, 144, 217, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-highlight);
}

.feature-item__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.feature-item__text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===========================
   Company Info Table
   =========================== */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.info-table th,
.info-table td {
  padding: 20px 24px;
  text-align: left;
  font-size: 0.9375rem;
}

.info-table th {
  width: 200px;
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-bg-gray);
}

/* ===========================
   News List
   =========================== */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.news-item__date {
  font-size: 0.875rem;
  color: var(--color-text-light);
  white-space: nowrap;
  min-width: 100px;
}

.news-item__category {
  font-size: 0.75rem;
  color: var(--color-highlight);
  background-color: rgba(74, 144, 217, 0.1);
  padding: 2px 12px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 600;
}

.news-item__title {
  font-size: 0.9375rem;
  color: var(--color-text);
}

.news-item__title:hover {
  color: var(--color-highlight);
}

/* ===========================
   CTA Section
   =========================== */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.cta__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta__text {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

/* ===========================
   Contact Form
   =========================== */
.form {
  max-width: 640px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: 28px;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.form__label .required {
  color: #e74c3c;
  font-size: 0.75rem;
  margin-left: 8px;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: var(--font-main);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg);
  transition: border-color var(--transition);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-highlight);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.form__textarea {
  min-height: 160px;
  resize: vertical;
}

/* ===========================
   Recruit / Job List
   =========================== */
.job-list {
  display: grid;
  gap: 24px;
}

.job-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

.job-card:hover {
  border-color: var(--color-highlight);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.job-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.job-card__meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.job-card__meta span {
  margin-right: 16px;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer__text {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer__heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: #ffffff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  text-align: center;
  font-size: 0.8125rem;
}

/* ===========================
   Breadcrumb
   =========================== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.8125rem;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-highlight);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--color-text-light);
}

/* ===========================
   Service Page - Enhanced Layout
   =========================== */

/* Numbers / Stats Bar */
.stats-bar {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 60px 0;
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats-bar__item {
  position: relative;
}

.stats-bar__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

.stats-bar__number {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-highlight);
  line-height: 1.2;
  margin-bottom: 8px;
}

.stats-bar__number span {
  font-size: 1.25rem;
  font-weight: 400;
}

.stats-bar__label {
  font-size: 0.875rem;
  opacity: 0.8;
  letter-spacing: 0.04em;
}

/* Service Block - Image + Text Side by Side */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}

.service-block--reverse {
  direction: rtl;
}

.service-block--reverse > * {
  direction: ltr;
}

.service-block__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.service-block__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-block__subtitle {
  font-size: 0.8125rem;
  color: var(--color-highlight);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.service-block__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
}

.service-block__text {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.9;
}

.service-block__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-highlight);
  margin-top: 8px;
}

.service-block__link::after {
  content: "\2192";
  transition: transform var(--transition);
}

.service-block__link:hover::after {
  transform: translateX(4px);
}

/* Use Case Grid */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.usecase-item {
  text-align: center;
  transition: transform var(--transition);
}

.usecase-item:hover {
  transform: translateY(-4px);
}

.usecase-item__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-bg-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.8125rem;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.usecase-item__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.usecase-item__text {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* Flow / Process Steps */
.flow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: flow;
}

.flow-item {
  text-align: center;
  position: relative;
  padding: 32px 16px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--color-highlight);
  z-index: 1;
}

.flow-item__number {
  counter-increment: flow;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  background-color: var(--color-highlight);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.flow-item__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.flow-item__text {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Banner Image Placeholder */
.banner-image {
  width: 100%;
  aspect-ratio: 21 / 6;
  background-color: var(--color-bg-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  margin-bottom: 48px;
  overflow: hidden;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
  .stats-bar__item:nth-child(2)::after {
    display: none;
  }
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .flow-item:nth-child(3)::after {
    display: none;
  }
}

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

  .header__nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .header__nav.open {
    display: flex;
  }

  .header__menu-btn {
    display: flex;
  }

  .header__nav .btn {
    width: 100%;
    text-align: center;
  }

  .hero {
    min-height: 440px;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__text {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__buttons .btn {
    text-align: center;
    min-width: 200px;
  }

  .hero--sub {
    min-height: 240px;
  }

  .hero--sub .hero__title {
    font-size: 1.75rem;
  }

  .section {
    padding: 64px 0;
  }

  .cta__title {
    font-size: 1.375rem;
  }

  .cta {
    padding: 56px 0;
  }

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

  .section-header__title {
    font-size: 1.625rem;
  }

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

  .feature-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  .info-table th {
    border-bottom: none;
  }

  .news-item {
    flex-wrap: wrap;
    gap: 8px;
  }

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

  .job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
  .stats-bar__item::after {
    display: none !important;
  }
  .stats-bar__number {
    font-size: 2rem;
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .service-block--reverse {
    direction: ltr;
  }

  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .flow-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .flow-item::after {
    display: none !important;
  }
}
