/* ========== CSS Variables ========== */
:root {
  --primary: #1B2D4F;
  --primary-light: #2A4270;
  --secondary: #3A5A8C;
  --accent: #C8985E;
  --accent-light: #D4AC78;
  --light-bg: #F7F8FA;
  --gray-bg: #EEF0F4;
  --text: #2D2D2D;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --dark-bg: #111827;
  --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en: 'Inter', 'Helvetica Neue', sans-serif;
  --header-height: 72px;
  --container-width: 1100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ja);
  color: var(--text);
  line-height: 1.8;
  background: var(--white);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

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

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

.sp-only {
  display: none;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-family: var(--font-ja);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn--white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn--lg {
  padding: 18px 48px;
  font-size: 1rem;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition);
  background: transparent;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

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

.header__logo-img {
  height: 36px;
  width: auto;
}

.header__nav-list {
  display: flex;
  gap: 32px;
}

.header__nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  position: relative;
}

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

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

.header--scrolled .header__nav-link {
  color: var(--text);
}

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

.header__cta {
  padding: 10px 24px;
  font-size: 0.8rem;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.header--scrolled .header__hamburger span {
  background: var(--text);
}

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

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

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

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27,45,79,0.75) 0%, rgba(27,45,79,0.5) 50%, rgba(27,45,79,0.3) 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px 60px;
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
}

.hero__sub {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__sub::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero__title-accent {
  color: var(--accent-light);
}

.hero__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 2;
  margin-bottom: 40px;
}

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



/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
}

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

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

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

.section--cta {
  background: linear-gradient(135deg, #1B2D4F, #2A4270);
  padding: 80px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section__label--light {
  color: var(--accent-light);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.section__title--light {
  color: var(--white);
}

.section__subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 12px;
}

/* ========== ABOUT ========== */
.about__text {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.about__text p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--light-bg);
  border-radius: 8px;
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card__number {
  display: block;
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.stat-card__label {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== SERVICES ========== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  border-radius: 12px;
  color: var(--primary);
  margin-bottom: 24px;
}

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

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

/* ========== STRENGTHS ========== */
.strengths__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.strength-item {
  position: relative;
  padding-left: 0;
}

.strength-item__num {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-bg);
  line-height: 1;
  margin-bottom: 16px;
}

.strength-item__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.strength-item__desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.9;
}

/* ========== CATEGORIES ========== */
.categories__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.category-tag {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  transition: all var(--transition);
}

.category-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-light);
  color: var(--white);
}

.categories__note {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}

/* ========== FLOW ========== */
.flow__timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.flow__timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-bg);
}

.flow-step {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}

.flow-step:last-child {
  margin-bottom: 0;
}

.flow-step__marker {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.flow-step__content {
  padding-top: 8px;
}

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

.flow-step__desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========== OVERSEAS ========== */
.overseas__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.overseas__text-ja {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 2;
}

.overseas__text-en {
  font-family: var(--font-en);
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 32px;
}

.overseas__actions {
  margin-top: 8px;
}

/* ========== COMPANY ========== */
.company__table {
  max-width: 720px;
  margin: 0 auto;
}

.company__table table {
  border-top: 1px solid var(--gray-bg);
}

.company__table tr {
  border-bottom: 1px solid var(--gray-bg);
}

.company__table th {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  padding: 20px 24px;
  width: 160px;
  text-align: left;
  vertical-align: top;
  background: var(--light-bg);
}

.company__table td {
  font-size: 0.9rem;
  color: var(--text);
  padding: 20px 24px;
}

/* ========== CTA ========== */
.cta__content {
  text-align: center;
}

.cta__title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark-bg);
  padding-top: 60px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  height: 32px;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.footer__nav a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__bottom {
  padding: 20px 0;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* ========== Animations ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger animation for grids */
.services__grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.services__grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.strengths__grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.strengths__grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.about__stats .stat-card:nth-child(2) { transition-delay: 0.1s; }
.about__stats .stat-card:nth-child(3) { transition-delay: 0.2s; }

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

/* Tablet */
@media (max-width: 900px) {
  .services__grid,
  .strengths__grid,
  .about__stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .header__nav-list {
    gap: 20px;
  }

  .header__cta {
    display: none;
  }

  .hero__content {
    width: 100%;
    padding-left: 24px;
  }
}

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

  .sp-only {
    display: inline;
  }

  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  .header__nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .header__hamburger.active span {
    background: var(--white) !important;
  }

  .header__inner {
    padding: 0 16px;
  }

  .hero {
    min-height: 85vh;
  }

  .hero__content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 100px 20px 48px !important;
  }

  .hero__title {
    font-size: 1.6rem;
  }

  .hero__desc {
    font-size: 0.9rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
  }


  .section {
    padding: 64px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

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

  .stat-card {
    padding: 28px 20px;
  }

  .stat-card__number {
    font-size: 2rem;
  }

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

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

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

  .flow__timeline::before {
    left: 20px;
  }

  .flow-step {
    gap: 20px;
  }

  .flow-step__marker {
    width: 42px;
    height: 42px;
    font-size: 0.8rem;
  }

  .company__table th {
    display: block;
    width: 100%;
    padding: 14px 16px 4px;
  }

  .company__table td {
    display: block;
    padding: 4px 16px 14px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer__nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .cta__title {
    font-size: 1.3rem;
  }

  .page-header {
    padding: 100px 0 40px;
  }

  .page-header__title {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 32px 20px;
  }
}

/* ========== PAGE HEADER (Sub pages) ========== */
.page-header {
  background: linear-gradient(135deg, #0f1729 0%, #1B2D4F 40%, #2A4270 100%);
  padding: 140px 0 60px;
  text-align: center;
}

.page-header__label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.page-header__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* ========== CONTACT FORM ========== */
.contact-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 8px;
  padding: 48px 40px;
}

.contact-form__intro {
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 2;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

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

.required {
  color: #e53e3e;
  font-size: 0.8rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: var(--font-ja);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(58, 90, 140, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.form-privacy {
  text-align: center;
}

.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-checkbox a {
  color: var(--secondary);
  text-decoration: underline;
}

.form-checkbox a:hover {
  color: var(--primary);
}

.form-submit {
  text-align: center;
  margin-top: 8px;
}

/* ========== PRIVACY PAGE ========== */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
}

.privacy-content__intro {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 2;
}

.privacy-section {
  margin-bottom: 32px;
}

.privacy-section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-bg);
}

.privacy-section p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.9;
}

.privacy-section ul {
  margin-top: 8px;
  padding-left: 20px;
  list-style: disc;
}

.privacy-section li {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 2;
}

.privacy-section a {
  color: var(--secondary);
  text-decoration: underline;
}

.privacy-date {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: right;
}