
:root {
  --panel-gap: 0;
  --panel-radius: 0;
  --accent: #1fb6ff;
  --soft-bg: #f7f9ff;
  --panel-bg: #ffffff;
  --text-dark: #0b1220;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #F1F7FE;
  font-family: "Helvetica Neue", system-ui, sans-serif;
  color: var(--text-dark);
  width: 100%;
}

main {
  font-family: "IBM Plex Sans JP", sans-serif !important;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--panel-gap);
}

.panel {
  min-height: 90vh;
  padding: clamp(64px, 6vw, 110px) 0;
  border-radius: var(--panel-radius);
  background: #fff;
  color: inherit;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel.hero {
  background: #eef4ff;
  color: var(--text-dark);
  padding: 0;
  position: relative;
}

.hero-animation-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-overlay {
  width: 100%;
  position: absolute;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero.animation-complete .hero-overlay {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.panel.service {
  background: #eef4ff;
  box-shadow: none;
}

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}

.panel-inner {
  width: min(1400px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2vw, 36px);
  padding: 0 12px;
}

.feature-panel {
  --feature-expand: 0;
  --feature-small-width: min(1400px, calc(100vw - 6vw));
  --feature-offset: 80px;
  --feature-radius: 80px;
  --feature-radius-progress: 0;
  --strength-progress: 0;
  --feature-vertical-progress: 0;
  --feature-pad: clamp(60px, 6vw, 100px);
  --feature-base-offset: clamp(100px, 8vw, 160px);
  width: calc(var(--feature-small-width) + (100vw - var(--feature-small-width)) * var(--feature-expand));
  max-width: 100%;
  border-radius: calc(var(--feature-radius) * (1 - var(--feature-radius-progress)));
  padding-top: calc(var(--feature-pad) + var(--feature-vertical-progress) * 80px);
  padding-bottom: var(--feature-pad);
  min-height: 110vh;
  background: #3B649B;
  transition:
    width 0.3s ease,
    border-radius 0.2s ease,
    transform 0.2s ease,
    padding-top 0.2s ease,
    margin-top 0.2s ease;
  transform-origin: top center;
  transform:
    scale(calc(0.99 + 0.01 * var(--feature-expand)));
  margin: calc(var(--feature-base-offset) * (1 - var(--feature-vertical-progress))) auto 0;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .panel:not(.hero) {
    min-height: 60vh;
  }

  .feature-panel {
    --feature-base-offset: 50px;
    padding-top: calc(var(--feature-pad) * 0.35 + var(--feature-vertical-progress) * 50px);
    min-height: 60vh;
  }

  .panel.news-panel,
  .about-panel {
    min-height: 0;
    padding-top: clamp(32px, 2.5vw, 70px);
    padding-bottom: clamp(32px, 2.5vw, 70px);
  }
}

.feature-panel .panel-inner {
  width: min(900px, 88vw);
  transition: width 0.2s ease;
  color: #fff;
  position: relative;
  z-index: 1;
}

.about-panel {
  width: 100%;
  background: #3B649B;
  border-radius: 80px 80px 0 0;
  color: #fff;
  padding: clamp(64px, 4vw, 120px) 0;
  margin: 0;
  box-shadow: none;
  display: grid;
  justify-items: center;
}

.about-panel .panel-inner {
  width: min(1400px, 92vw);
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
  align-items: flex-start;
}

.about-columns {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.case-copy {
  grid-column: 1;
  text-align: left;
}

.about-map {
  grid-column: 2;
  width: 100%;
  max-width: none;
}

.hero-copy h1 {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(6rem, 13vw, 10rem);
  margin: 0;
  line-height: 1.1;
  position: relative;
  display: block;
  color: #345B8E;
  padding-top: 6rem;
}

.hero-line {
  display: block;
  color: #345B8E;
  clip-path: inset(0 calc(100% - var(--line-progress, 0%)) 0 0);
}

.panel.hero .hero-copy p {
  color: rgba(11, 18, 32, 0.85);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.8;
}

.hero-highlight {
  color: #fdd835;
}

.panel-inner h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  letter-spacing: 0.02em;
}

.panel-inner p {
  font-size: 1.2rem;
  line-height: 1.7;
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: min(900px, 88vw);
  margin: 0 auto;
}

.feature-card {
  padding: 0;
  border: none;
  margin: 0;
  background: transparent;
  position: relative;
  --card-order: 0;
  --card-threshold: calc(var(--card-order) * 0.25);
  --card-strength: clamp((var(--strength-progress) - var(--card-threshold)) * 4, 0, 1);
  color: rgba(255, 255, 255, 0.95);
  opacity: var(--card-strength);
  transition: opacity 0.3s ease;
}

.feature-card h3,
.feature-card p {
  color: inherit;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.feature-card p {
  margin: 0;
  font-size: 1.2rem;
}

.feature-line,
.feature-h3-line {
  display: block;
  transition: opacity 0.3s ease, color 0.5s ease;
  color: rgba(255, 255, 255, var(--line-opacity, 0.35));
}

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

.news-item {
  padding: 0;
  border: none;
  background: none;
}

.news-item strong {
  font-size: 1rem;
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 12px;
  color: rgba(11, 18, 32, 0.4);
}

.news-item p {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.6;
  color: rgba(11, 18, 32, 0.75);
}

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

.service-banners {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 18px;
}

@media (max-width: 950px) {
  .service-banners {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .service-card img {
    height: auto;
  }
}

@media (max-width: 480px) {
  .service-banners {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 0;
  }
}

.service-card {
  border-radius: 18px;
  overflow: hidden;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: transform 0.4s ease;
  display: block;
}

.service-card:hover img {
  transform: scale(1.12);
}

.service-info {
  padding: 0 12px 12px;
  color: #345B8E;
}

.service-info h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.service-info p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #345B8E;
}

.service-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.company-logo {
  margin-bottom: 12px;
  width: 60%;
}

.company-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.service-tags span {
  background: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #3b649b;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(59, 100, 155, 0.2);
}

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

.case-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.2rem;
}

.case-copy li::before {
  content: "• ";
  color: var(--accent);
}

.panel.cta {
  min-height: 80vh;
  border-radius: 12px;
  background: linear-gradient(120deg, #93cfff, #d6e6ff);
  color: var(--text-dark);
  text-align: center;
  padding: clamp(64px, 6vw, 100px) 0;
  box-shadow: 0 25px 60px rgba(9, 48, 104, 0.12);
}

.panel.cta button {
  background: #0f1325;
  color: #fff;
}

.primary-btn {
  background: #3B649B;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 100, 155, 0.3);
}

.about-btn.primary-btn {
  background: #fff;
  color: #3B649B;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.about-btn.primary-btn:hover {
  background: #fff;
  color: #3B649B;
  box-shadow: none;
}

.about-btn {
  width: 220px;
  height: 48px;
  border-radius: 18px;
  font-size: 1rem;
  margin-top: 24px;
  border: none;
  font-weight: 700;
  background: #fff;
  color: #3B649B;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.about-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: none;
  border-radius: 18px;
  display: block;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .panel-inner {
    padding: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

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

  .panel {
    align-items: flex-start;
  }

  .company-logo {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    overflow-x: hidden;
  }

  .hero {
    gap: 16px;
  }

  .hero-animation-wrapper,
  .hero-overlay,
  .panel-inner {
    padding: 0 8px;
  }

  .hero-overlay {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(5rem, 13vw, 10rem);
    padding-top: 20rem;
  }

  #svg-animation {
    width: min(420px, calc(100vw - 16px));
  }

  .panel-inner {
    padding: 0 6px;
  }

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

  .case-copy,
  .about-map {
    grid-column: 1;
  }
}

#svg-animation .st0-mask,
#svg-animation .st0-draw {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 10;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
}

#svg-animation {
  width: min(900px, 90vw);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
  max-height: 100vh;
  transition: filter 3s ease;
  filter: brightness(1) saturate(1);
}

.hero.animation-complete #svg-animation {
  filter: brightness(20) saturate(0);
}

.hero #svg-animation .st0-mask {
  stroke: #F1F7FE;
  stroke-opacity: 1;
}

.hero.animation-complete #svg-animation .st0-mask {
  animation: maskFadeToWhite 2.2s forwards;
}

@keyframes maskFadeToWhite {
  0% {
    stroke: #F1F7FE;
    stroke-opacity: 1;
  }

  30% {
    stroke: #F1F7FE;
    stroke-opacity: 0.85;
  }

  55% {
    stroke: #F1F7FE;
    stroke-opacity: 0.4;
  }

  70% {
    stroke: #F1F7FE;
    stroke-opacity: 0;
  }

  78% {
    stroke: #fff;
    stroke-opacity: 0;
  }

  94% {
    stroke: #fff;
    stroke-opacity: 0.25;
  }

  100% {
    stroke: #fff;
    stroke-opacity: 1;
  }
}