/*
Theme Name: TRASER Child
Theme URI: https://www.traser.co.jp/
Description: Child theme for Lightning used on traser.co.jp
Author: Transfer Service Co., Ltd.
Template: lightning
Version: 0.2.0
Text Domain: traser-child
*/

:root {
  --traser-text: #1f2528;
  --traser-muted: #667177;
  --traser-bg: #ffffff;
  --traser-bg-soft: #f4f7f7;
  --traser-bg-dark: #172227;
  --traser-border: #dde4e6;
  --traser-accent: #2f6f7e;
  --traser-accent-dark: #245866;
  --traser-container: 1180px;
  --traser-radius: 6px;
  --traser-shadow: 0 18px 50px rgba(20, 41, 48, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--traser-text);
  background: var(--traser-bg);
}

.home .breadcrumb,
.home .page-header {
  display: none;
}

.traser-home,
.traser-home * {
  box-sizing: border-box;
}

.traser-home {
  overflow: hidden;
  color: var(--traser-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
}

.traser-home h1,
.traser-home h2,
.traser-home h3,
.traser-home p {
  margin-top: 0;
}

.traser-home h1,
.traser-home h2,
.traser-home h3 {
  color: var(--traser-text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.traser-home h2 {
  margin-bottom: 28px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.35;
}

.traser-home a {
  text-decoration: none;
}

.traser-container {
  width: min(calc(100% - 48px), var(--traser-container));
  margin-inline: auto;
}

.traser-narrow {
  max-width: 860px;
}

.traser-section {
  padding: 112px 0;
}

.traser-section-label,
.traser-eyebrow {
  margin-bottom: 18px;
  color: var(--traser-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.traser-center {
  margin-top: 44px;
  text-align: center;
}

/* Hero */
.traser-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(47, 111, 126, 0.07), transparent 46%),
    linear-gradient(180deg, #ffffff 0%, #f7f9f9 100%);
}

.traser-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(47, 111, 126, 0.16);
  border-radius: 50%;
}

.traser-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 72px;
  align-items: center;
}

.traser-hero h1 {
  margin-bottom: 28px;
  font-size: clamp(48px, 6.3vw, 80px);
  line-height: 1.17;
  letter-spacing: -0.03em;
}

.traser-hero__lead {
  margin-bottom: 38px;
  max-width: 720px;
  color: var(--traser-muted);
  font-size: 17px;
  line-height: 2;
}

.traser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.traser-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.traser-button:hover {
  transform: translateY(-2px);
}

.traser-button--primary {
  background: var(--traser-accent);
  color: #fff !important;
}

.traser-button--primary:hover {
  background: var(--traser-accent-dark);
}

.traser-button--ghost {
  border-color: #b8c6ca;
  background: rgba(255, 255, 255, 0.72);
  color: var(--traser-text) !important;
}

.traser-button--dark {
  background: var(--traser-bg-dark);
  color: #fff !important;
}

.traser-button--light {
  background: #fff;
  color: var(--traser-bg-dark) !important;
}

.traser-hero__visual {
  position: relative;
}

.traser-hero__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--traser-border);
  border-left: 1px solid var(--traser-border);
  box-shadow: var(--traser-shadow);
}

.traser-hero__grid span {
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  border-right: 1px solid var(--traser-border);
  border-bottom: 1px solid var(--traser-border);
  background: rgba(255, 255, 255, 0.84);
  color: var(--traser-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.traser-hero__grid span:first-child {
  grid-row: span 2;
  min-height: 264px;
  align-items: center;
  justify-content: center;
  background: var(--traser-accent);
  color: #fff;
  font-size: 17px;
  writing-mode: vertical-rl;
}

/* Intro */
.traser-intro {
  background: #fff;
}

.traser-intro__text {
  margin-bottom: 18px;
  color: #4f5b60;
  font-size: 17px;
  line-height: 2.05;
}

.traser-intro__text strong {
  color: var(--traser-text);
  font-weight: 700;
}

.traser-text-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--traser-text);
  color: var(--traser-text) !important;
  font-size: 14px;
  font-weight: 700;
}

/* Services */
.traser-services {
  background: var(--traser-bg-soft);
}

.traser-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: end;
  margin-bottom: 52px;
}

.traser-section-heading h2 {
  margin-bottom: 0;
}

.traser-section-heading > p {
  max-width: 420px;
  margin-bottom: 8px;
  color: var(--traser-muted);
}

.traser-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.traser-service-card {
  position: relative;
  min-height: 330px;
  padding: 36px;
  border: 1px solid var(--traser-border);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.traser-service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--traser-shadow);
}

.traser-service-card--wide {
  grid-column: 1 / -1;
  min-height: 260px;
}

.traser-service-card__no {
  margin-bottom: 42px;
  color: var(--traser-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.traser-service-card h3 {
  margin-bottom: 18px;
  font-size: 26px;
  line-height: 1.45;
}

.traser-service-card__lead {
  margin-bottom: 14px;
  color: var(--traser-text) !important;
  font-size: 16px;
  font-weight: 700;
}

.traser-service-card p:last-child {
  margin-bottom: 0;
  max-width: 760px;
  color: var(--traser-muted);
}

/* Flow */
.traser-flow {
  background: #fff;
}

.traser-flow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--traser-border);
  border-bottom: 1px solid var(--traser-border);
}

.traser-flow-list li {
  position: relative;
  min-height: 270px;
  padding: 30px 24px;
  border-right: 1px solid var(--traser-border);
}

.traser-flow-list li:first-child {
  border-left: 1px solid var(--traser-border);
}

.traser-flow-list li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--traser-accent);
  font-size: 14px;
  transform: translateY(-50%);
}

.traser-flow-list span {
  display: block;
  margin-bottom: 42px;
  color: var(--traser-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.traser-flow-list strong {
  display: block;
  margin-bottom: 14px;
  font-size: 19px;
}

.traser-flow-list p {
  margin-bottom: 0;
  color: var(--traser-muted);
  font-size: 14px;
  line-height: 1.8;
}

.traser-flow-message {
  margin-top: 42px;
  padding: 30px 36px;
  background: var(--traser-bg-soft);
  text-align: center;
}

.traser-flow-message p {
  margin-bottom: 0;
  font-size: clamp(20px, 3vw, 30px);
}

/* Principles */
.traser-principles {
  background: var(--traser-bg-dark);
  color: #dbe4e7;
}

.traser-principles h2 {
  color: #fff;
}

.traser-principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.13);
}

.traser-principle-grid article {
  min-height: 300px;
  padding: 36px;
  background: var(--traser-bg-dark);
}

.traser-principle-grid span {
  display: block;
  margin-bottom: 52px;
  color: #75a8b4;
  font-size: 12px;
  font-weight: 700;
}

.traser-principle-grid h3 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 23px;
}

.traser-principle-grid p {
  margin-bottom: 0;
  color: #b8c5c9;
}

/* Message */
.traser-message {
  background: #fff;
}

.traser-message__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 90px;
}

.traser-message__body {
  padding-top: 38px;
}

.traser-message__body p {
  margin-bottom: 20px;
  color: var(--traser-muted);
  font-size: 16px;
  line-height: 2;
}

.traser-message__body strong {
  color: var(--traser-text);
}

/* Contact CTA */
.traser-contact-cta {
  padding: 80px 0;
  background: var(--traser-accent);
  color: #eaf3f5;
}

.traser-contact-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.traser-contact-cta .traser-section-label {
  color: #c8e0e5;
}

.traser-contact-cta h2 {
  margin-bottom: 18px;
  color: #fff;
}

.traser-contact-cta p {
  margin-bottom: 0;
  color: #e4eff1;
}

@media (max-width: 980px) {
  .traser-section {
    padding: 88px 0;
  }

  .traser-hero {
    min-height: auto;
    padding: 86px 0;
  }

  .traser-hero__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .traser-hero__visual {
    max-width: 620px;
  }

  .traser-flow-list {
    grid-template-columns: 1fr;
  }

  .traser-flow-list li,
  .traser-flow-list li:first-child {
    min-height: auto;
    border-left: 1px solid var(--traser-border);
    border-right: 1px solid var(--traser-border);
    border-bottom: 1px solid var(--traser-border);
  }

  .traser-flow-list li:last-child {
    border-bottom: 0;
  }

  .traser-flow-list li:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: -13px;
    transform: translateX(50%);
  }

  .traser-flow-list span {
    margin-bottom: 22px;
  }

  .traser-message__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .traser-message__body {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .traser-container {
    width: min(calc(100% - 32px), var(--traser-container));
  }

  .traser-section {
    padding: 70px 0;
  }

  .traser-home h2 {
    margin-bottom: 22px;
    font-size: 31px;
  }

  .traser-pc-only {
    display: none;
  }

  .traser-hero {
    padding: 64px 0 70px;
  }

  .traser-hero h1 {
    font-size: 44px;
  }

  .traser-hero__lead {
    font-size: 15px;
  }

  .traser-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .traser-button {
    width: 100%;
  }

  .traser-hero__grid span {
    min-height: 94px;
    padding: 16px;
    font-size: 10px;
  }

  .traser-hero__grid span:first-child {
    min-height: 188px;
  }

  .traser-section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .traser-section-heading > p {
    margin-top: 14px;
  }

  .traser-service-grid {
    grid-template-columns: 1fr;
  }

  .traser-service-card,
  .traser-service-card--wide {
    grid-column: auto;
    min-height: auto;
    padding: 28px 24px;
  }

  .traser-service-card__no {
    margin-bottom: 26px;
  }

  .traser-service-card h3 {
    font-size: 22px;
  }

  .traser-principle-grid {
    grid-template-columns: 1fr;
  }

  .traser-principle-grid article {
    min-height: auto;
    padding: 30px 24px;
  }

  .traser-principle-grid span {
    margin-bottom: 24px;
  }

  .traser-contact-cta {
    padding: 64px 0;
  }

  .traser-contact-cta__inner {
    display: block;
  }

  .traser-contact-cta .traser-button {
    margin-top: 30px;
  }
}
