/* Color Variables: コーポレートカラーを変数化 */
:root {
  --color-blue: #0057ff;
  --color-yellow: #FFD301;
  --color-lightblue: #C4EBF1;
}

/* Global Base Styles */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}
h1, h2, h3 {
  margin: 0 0 10px;
  color: var(--color-blue);
}
h1.logo {
  margin: 0;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo img {
  display: block;
  height: 72px;
  width: auto;
}
.header-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: bold;
  padding: 8px 24px;
  font-size: 1.15em;
  border-radius: 999px;
  border: 2px solid transparent;
  height: 60px;
}
.header-contact a:hover {
  opacity: 0.85;
}
.header-contact .header-contact-line {
  background: #06c755;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #fff;
  margin-left: 0;
  align-self: center;
}
.header-social-contacts .header-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-width: 2px;
  height: 36px;
  justify-content: flex-start;
  padding: 6px 18px;
  white-space: nowrap;
}
.header-social-contacts .header-contact-line .header-contact-icon {
  width: 24px;
  height: 24px;
}
.header-contact-mail {
  background: #ffffff;
  color: #000;
  border-color: #0b3d91;
  margin-left: 0;
  align-self: center;
}

.header-contact-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}
.header-contact-line .header-contact-icon {
  width: 34px;
  height: 34px;
}
.header-contact-line span {
  display: inline-block;
  margin-left: auto;
  text-align: right;
}
.header-contact-mail span {
  display: inline-block;
  margin-left: auto;
  text-align: right;
}
.hero-logo {
  display: block;
  width: 340px;
  height: auto;
  margin: -10px auto 14px;
  animation: logo-reveal 0.8s ease-out both;
}
@keyframes logo-reveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
a {
  color: var(--color-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header & Navigation */
header {
  background: var(--color-blue);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
}
.header-logo img {
  display: block;
  height: 110px;
  width: auto;
}
.header-logo {
  margin-left: -14px;
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.header-logo-text {
  font-size: 2.8em;
  font-weight: 900;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  letter-spacing: 0.02em;
}
.header-contact {
  order: 3;
  margin-left: 16px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.header-contact .header-contact-phone {
  box-shadow: 0 0 0 2px #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #ff7a00;
  color: #fff;
  font-weight: bold;
  padding: 6px 24px;
  font-size: 1.05em;
  border-radius: 999px;
  border: 2px solid #fff;
  height: 60px;
}
.header-contact-phone-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-contact-phone-number {
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1;
  opacity: 0.9;
}
nav {
  order: 1;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  order: 2;
  margin-left: auto;
}
.header-cta .cta {
  display: inline-block;
  background: var(--color-yellow);
  color: #000;
  padding: 10px 18px;
  font-size: 1.1em;
  border-radius: 999px;
  border: 3px solid #0b3d91;
  font-weight: bold;
  text-decoration: none;
}
.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-social .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
}
.header-social .social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.header-social .social-x {
  background: #111;
}
.header-social .social-facebook {
  background: #1877f2;
  border: 2px solid #ffffff;
}
.header-social img {
  width: 100%;
  height: 100%;
  padding: 4px;
}
.subnav {
  background: #fff;
  border-bottom: 1px solid rgba(0, 87, 255, 0.12);
}
.subnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
}
.subnav .nav-menu a {
  color: #000;
}
.subnav #menu-toggle {
  color: #000;
}
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-menu li {
  margin-left: 16px;
}
.nav-menu li:first-child {
  margin-left: 0;
}
.nav-menu a {
  color: #000;
  font-size: 1em;
  white-space: nowrap;
  font-weight: 600;
}

header .nav-menu a {
  color: #fff;
}
header .nav-menu > li > a:hover,
header .nav-menu > li > a:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.nav-menu > li > a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-menu > li > a:hover,
.nav-menu > li > a:focus {
  background: rgba(0, 87, 255, 0.12);
  border-color: rgba(0, 87, 255, 0.45);
  text-decoration: none;
}
.nav-menu a:hover {
  text-decoration: underline;
}
.nav-item {
  position: relative;
}
.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 16px;
}
.nav-dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 10px 0 0;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(0, 87, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 1001;
}
.nav-dropdown li {
  margin: 0;
}
.nav-dropdown a {
  color: #000;
  display: block;
  padding: 8px 16px;
  font-size: 0.95em;
  text-decoration: none;
}
.nav-dropdown a:hover {
  background: rgba(0, 87, 255, 0.08);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}
/* CTA link in nav (お申込みボタン) */
.nav-menu .cta {
  background: var(--color-yellow);
  color: #000;
  padding: 10px 18px;
  font-size: 1.1em;
  border-radius: 999px;
  border: 3px solid #0b3d91;
  font-weight: bold;
  text-decoration: none;
  margin-left: -12px;
}
.nav-menu .cta:hover {
  opacity: 0.8;
}
.nav-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-social .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
}
.nav-social .social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.nav-social .social-x {
  background: #111;
}
.nav-social .social-facebook {
  background: #1877f2;
  border: 2px solid #ffffff;
}
.nav-social img {
  width: 100%;
  height: 100%;
  padding: 4px;
}
.nav-menu .nav-social-contacts {
  display: none;
}
.header-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.header-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
}
.header-social-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.social-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95em;
  border: 2px solid transparent;
  color: #000;
  background: #fff;
}
.social-contact-line {
  background: #06c755;
  color: #fff;
  border-color: #ffffff;
}
.social-contact-phone {
  background: #0b3d91;
  color: #fff;
  border-color: #ffffff;
}
.social-contact-mail {
  background: #fff;
  color: #000;
  border-color: rgba(0, 0, 0, 0.2);
}
.social-contact-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* Hamburger button (小画面用メニュー切替ボタン) */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
}

/* Sections and content */
section {
  padding: 40px 0;
}
main {
  padding-top: 40px;
}
.service-flow .flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.service-flow .flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 16px 16px 16px 12px;
  background: #f5f9ff;
  border-radius: 12px;
  align-items: center;
}
.service-flow .flow-item::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 56px;
  width: 2px;
  height: calc(100% - 56px);
  background: rgba(20, 108, 246, 0.2);
}
.service-flow .flow-item:last-child::before {
  display: none;
}
.service-flow .flow-step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
}
.service-flow .flow-content h4 {
  margin: 0 0 6px;
  color: var(--color-blue);
}
.cta-row .container {
  display: block;
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cta-row .note {
  grid-column: 1 / -1;
}
.cta-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  background: rgba(20, 108, 246, 0.15);
  color: #0b3d91;
  text-decoration: none;
  border: 2px solid rgba(20, 108, 246, 0.15);
}
.cta-card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(20, 108, 246, 0.15);
  flex-shrink: 0;
}
.cta-card-icon img {
  width: 22px;
  height: 22px;
  display: block;
}
.cta-card h4 {
  margin: 0 0 6px;
  font-size: 1.1em;
}
.cta-card p {
  margin: 0;
}
.cta-card-line {
  border-color: rgba(6, 199, 85, 0.28);
  background: rgba(6, 199, 85, 0.28);
}
.cta-card-line .cta-card-icon {
  border-color: rgba(6, 199, 85, 0.28);
  background: #eafff1;
}
.cta-card-diagnosis {
  border-color: rgba(255, 200, 0, 0.35);
  background: rgba(255, 200, 0, 0.35);
}
.cta-card-diagnosis .cta-card-icon {
  border-color: rgba(255, 200, 0, 0.35);
  background: #fff5c4;
}
.cta-card-apply .cta-card-icon {
  background: #eaf2ff;
}
}
main {
  padding-top: 0;
}
@media (max-width: 900px) {
  main {
    padding-top: 0;
  }
}
.hero {
  background: var(--color-lightblue);
  text-align: center;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-slide 20s infinite;
}
.hero-slider img:nth-child(1) {
  animation-delay: 0s;
}
.hero-slider img:nth-child(2) {
  animation-delay: 5s;
}
.hero-slider img:nth-child(3) {
  animation-delay: 10s;
}
.hero-slider img:nth-child(4) {
  animation-delay: 15s;
}
@keyframes hero-slide {
  0%,
  20% {
    opacity: 1;
  }
  25%,
  95% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.hero h2 {
  font-size: 2.16em;
  margin-bottom: 20px;
}
.hero p {
  font-size: 2em;
}

.intro-image {
  padding: 20px 0 10px;
}
.intro-image .container {
  display: flex;
  justify-content: center;
}
.intro-image-img {
  max-width: 100%;
  height: auto;
  display: block;
}
.features {
  /* Use CSS grid for features layout */
}
.features .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f3f7ff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 180px;
  transform: none;
  opacity: 1;
  transition: transform 1.6s ease, opacity 1.6s ease;
  will-change: transform, opacity;
}
.feature-card.in-view {
  transform: translateX(0);
  opacity: 1;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
}
.feature-1::before,
.feature-2::before,
.feature-3::before {
  background: rgba(255, 255, 255, 0.78);
}
.feature-1 {
  background-image: url("../images/feauture4.jpg");
}
.feature-2 {
  background-image: url("../images/feature-2.jpg");
}
.feature-3 {
  background-image: url("../images/feature-3.jpg");
}
.feature-body {
  position: relative;
  padding: 24px;
}
.feature-body p {
  margin-top: 18px;
}
.feature-body h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}
.feature-1 .feature-body h3,
.feature-2 .feature-body h3,
.feature-3 .feature-body h3 {
  font-size: 1.45em;
}
.feature-1 .feature-body p,
.feature-2 .feature-body p,
.feature-3 .feature-body p {
  font-size: 1.05em;
  line-height: 1.8;
}
.feature-3 .feature-body p {
  color: #000;
}

/* Highlight text styles */
.highlight {
  font-weight: bold;
  color: var(--color-blue);
}
.strike {
  text-decoration: line-through;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--color-yellow);
  color: #000;
  text-decoration: none;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.btn:hover {
  opacity: 0.8;
}
.btn-secondary {
  background: #e6e6e6;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-wide {
  min-width: 260px;
  text-align: center;
  margin-top: 12px;
}
.benefits-highlight {
  background: #f5f9ff;
}
.benefits-highlight .container {
  padding: 24px;
  border-radius: 16px;
  border: 2px solid rgba(20, 108, 246, 0.15);
  background: #ffffff;
}
.benefits-highlight .note {
  margin-top: 16px;
}

/* LINE button (緑色のLINE追加ボタン) */
.btn-line {
  display: inline-block;
  background: #06C755;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 4px;
}
.btn-line:hover {
  opacity: 0.9;
}

.line-cta {
  margin: 24px 0 8px;
  text-align: center;
}

/* Images */
.qr-code {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 20px 0;
}

/* Form Styles */
form {
  width: 100%;
}

#apply-form {
  scroll-margin-top: 140px;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}
.form-group .error-message {
  display: block;
  margin-top: 6px;
  color: #e53935;
  font-size: 0.9em;
  font-weight: 600;
}

.apply-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .apply-inline {
    grid-template-columns: 1fr;
  }
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}
.form-group label input[type=checkbox],
.form-group label input[type=radio] {
  margin-right: 6px;
}
.form-group label + label {
  margin-top: 8px;
}
.form-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 87, 255, 0.12);
  color: #0b3d91;
  font-size: 0.75em;
  font-weight: 700;
}
.form-group .label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}
.form-group .required {
  color: red;
}
input[type=text],
input[type=email],
input[type=tel],
input[type=number],
input[type=date],
select,
textarea {
  width: 100%;
  padding: 8px;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
}
textarea {
  resize: vertical;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}
.error {
  border-color: red !important;
  background: #ffecec;
}

/* Misc */
.note {
  color: #555;
  font-size: 0.9em;
}
blockquote {
  margin: 0;
  font-style: italic;
}
.testimonial blockquote {
  background: var(--color-lightblue);
  padding: 15px;
  border-radius: 5px;
}
.testimonial h3 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 30px;
}
.testimonial cite {
  font-style: normal;
  font-weight: bold;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.testimonial-slider {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 52px;
}
.testimonial-viewport {
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.45s ease;
}
.testimonial-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
}
.testimonial-slide .testimonial-card {
  width: 100%;
  max-width: 520px;
  opacity: 1;
  transform: none;
}
.testimonial-slider .testimonial-icon img,
.testimonial-slider .testimonial-text {
  opacity: 1;
  transform: none;
}
.testimonial-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  border: none;
  background: transparent;
  color: var(--color-blue);
  width: 44px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}
.testimonial-nav span {
  color: #000;
  font-size: 36px;
  line-height: 1;
}
.testimonial-prev {
  left: 8px;
}
.testimonial-next {
  right: 8px;
}
.testimonial-nav:hover {
  background: rgba(214, 230, 255, 0.85);
  transform: translateY(-52%);
}
.testimonial-nav:active {
  transform: translateY(-50%);
}
@media (max-width: 720px) {
  .testimonial-slider {
    padding: 0 40px;
  }
  .testimonial-nav {
    width: 36px;
    height: 52px;
  }
  .testimonial-nav span {
    font-size: 30px;
  }
}
.testimonial-card {
  background: #f5f9ff;
  border-radius: 16px;
  padding: 20px;
  min-height: 350px;
  opacity: 0;
  transform: translateX(-50px);
  transition: transform 1.2s ease, opacity 1.2s ease;
  box-shadow: 0 10px 24px rgba(20, 108, 246, 0.08);
}
.testimonial-logistics {
  background-image: url("../images/unso.png");
  background-size: cover;
  background-position: center;
  position: relative;
  color: #111;
}
.testimonial-logistics::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(5px);
  border-radius: 16px;
}
.testimonial-logistics .testimonial-icon,
.testimonial-logistics .testimonial-text {
  position: relative;
  z-index: 1;
}

.testimonial-manufacturing {
  background-image: url("../images/seizo.png");
  background-size: cover;
  background-position: center;
  position: relative;
  color: #111;
}
.testimonial-manufacturing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(5px);
  border-radius: 16px;
}
.testimonial-manufacturing .testimonial-icon,
.testimonial-manufacturing .testimonial-text {
  position: relative;
  z-index: 1;
}

.testimonial-construction {
  background-image: url("../images/ken.png");
  background-size: cover;
  background-position: center;
  position: relative;
  color: #111;
}
.testimonial-construction::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(5px);
  border-radius: 16px;
}
.testimonial-construction .testimonial-icon,
.testimonial-construction .testimonial-text {
  position: relative;
  z-index: 1;
}

.testimonial-card.in-view {
  opacity: 1;
  transform: translateX(0);
}
.testimonial-card:nth-child(1) {
  transition-delay: 0.1s;
}
.testimonial-card:nth-child(2) {
  transition-delay: 0.25s;
}
.testimonial-card:nth-child(3) {
  transition-delay: 0.4s;
}
.testimonial-icon {
  width: 80px;
  height: 80px;
  margin: 0 0 12px;
}
.testimonial-icon img {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transform: translateY(-12px) scale(0.9);
  transition: transform 0.8s ease, opacity 0.8s ease;
}
.testimonial-card.in-view .testimonial-icon img {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.testimonial-text {
  opacity: 0;
  transform: translateY(8px);
  transition: transform 0.9s ease, opacity 0.9s ease;
  transition-delay: 0.2s;
}
.testimonial-card.in-view .testimonial-text {
  opacity: 1;
  transform: translateY(0);
}
.testimonial-text h4 {
  margin: 0 0 8px;
  color: var(--color-blue);
  font-size: 1.4em;
}
.testimonial-text p {
  font-size: 1em;
}

.columns {
  background: #fff;
  padding: 40px 0;
}
.column-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.column-card {
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 87, 255, 0.12);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.faq-columns .column-grid {
  grid-template-columns: 1fr;
}
.faq-columns .column-card {
  padding: 0;
}
.faq-search {
  display: flex;
  justify-content: center;
  margin: 38px 0 52px;
}
.faq-search-input {
  width: min(560px, 100%);
  padding: 12px 16px;
  border: 1px solid rgba(0, 87, 255, 0.25);
  border-radius: 999px;
  font-size: 1em;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}
.faq-search-input:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.2);
}
.faq-columns .accordion-toggle {
  width: 100%;
  border: 0;
  background: none;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--color-blue);
  cursor: pointer;
}
.faq-columns .accordion-icon {
  font-size: 1.2em;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-columns .accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.faq-columns .accordion-content p {
  margin: 0 0 16px;
}
.faq-columns .faq-accordion-item.is-open .accordion-content {
  padding-bottom: 18px;
}
.faq-columns .faq-accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
}

.faq-diagnosis-cta {
  margin-top: 48px;
  display: inline-block;
}
.diagram-full {
  grid-column: 1 / -1;
}
.column-card-wide {
  margin-bottom: 18px;
}
.section-heading-xl {
  font-size: 3em;
}
.section-heading-md {
  font-size: 1.6em;
}
.step-bar {
  display: flex;
  gap: 10px;
  margin: 12px 0 20px;
}
.step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid rgba(0, 87, 255, 0.25);
  color: #0b3d91;
  background: #ffffff;
}
.step.active {
  background: #0b3d91;
  color: #ffffff;
  border-color: #0b3d91;
}
.company-overview {
  background: #f5f9ff;
  border: 2px solid rgba(20, 108, 246, 0.2);
  border-radius: 18px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px 20px;
}
.company-overview dt {
  margin: 0;
  font-weight: 700;
  color: #0b3d91;
}
.company-overview dd {
  margin: 0;
}
.company-overview ul {
  margin: 0;
  padding-left: 18px;
}
.thanks-section {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: #f5f9ff;
}
.thanks-section h3 {
  margin: 0 0 8px;
  color: #0b3d91;
}
.thanks-section ul {
  margin: 0;
  padding-left: 18px;
}
.step-label {
  margin: 0 0 8px;
  font-weight: 700;
  color: #0b3d91;
  font-size: 1.15rem;
}
.thanks-1 {
  background: rgba(20, 108, 246, 0.08);
  border-color: rgba(20, 108, 246, 0.2);
}
.thanks-2 {
  background: rgba(6, 199, 85, 0.1);
  border-color: rgba(6, 199, 85, 0.25);
}
.thanks-3 {
  background: rgba(255, 211, 1, 0.18);
  border-color: rgba(255, 211, 1, 0.35);
}
.thanks-4 {
  background: rgba(255, 167, 38, 0.16);
  border-color: rgba(255, 167, 38, 0.35);
}
.thanks-5 {
  background: transparent;
  border-color: transparent;
  padding: 0;
}
.thanks-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.thanks-text {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(20, 108, 246, 0.18);
  border-radius: 12px;
  background: #ffffff;
}
.thanks-text p {
  margin: 0 0 8px;
  font-weight: 600;
  color: #0b3d91;
}
.thanks-text ul {
  margin: 0;
  padding-left: 18px;
}
.thanks-6 {
  background: transparent;
  border-color: transparent;
}
.diagnosis-result-card {
  margin-top: 12px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 2px solid rgba(20, 108, 246, 0.15);
  background: #f5f9ff;
}
.diagnosis-result-three {
  background: url("../images/sindan2.png") 70% center / cover no-repeat;
  min-height: 200px;
}
.diagnosis-result-three h3,
.diagnosis-result-three .btn {
  position: relative;
  z-index: 1;
}
.diagnosis-result-two {
  background: url("../images/sindan3.png") 70% center / cover no-repeat;
  min-height: 200px;
}
.diagnosis-result-two h3,
.diagnosis-result-two .btn {
  position: relative;
  z-index: 1;
}
.diagnosis-result-card h3 {
  margin: 0 0 12px;
  color: #0b3d91;
  font-size: 1.2em;
}
.pros-cons {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  grid-template-columns: 1fr;
}
.pros-card,
.cons-card {
  border-radius: 16px;
  padding: 18px 20px;
  border: 2px solid transparent;
  background: #ffffff;
}
.pros-card {
  border-color: rgba(16, 140, 70, 0.35);
  background: rgba(16, 140, 70, 0.06);
}
.cons-card {
  border-color: rgba(200, 70, 70, 0.35);
  background: rgba(200, 70, 70, 0.06);
}
.pros-card h4 {
  margin: 0 0 10px;
  color: #108c46;
}
.cons-card h4 {
  margin: 0 0 10px;
  color: #c84646;
}
.cons-title {
  display: block;
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 6px;
  color: #c84646;
}
.required-docs-card {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #f7fbff;
  border: 2px solid rgba(0, 87, 255, 0.2);
}
.required-docs-card h4 {
  margin: 0 0 10px;
  color: #0b3d91;
}
.required-docs-card ul {
  margin: 0;
  padding-left: 18px;
}
.required-docs-note {
  margin: 12px 0 0;
  color: #0b3d91;
  font-weight: 600;
}
.pricing-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 87, 255, 0.08);
  color: #000;
  font-size: 1.02em;
  line-height: 1.7;
}
.pricing-note-lead {
  display: block;
  font-size: 1.12em;
  font-weight: 700;
  margin-bottom: 4px;
}
.pricing-emphasis {
  display: inline-block;
  font-size: 1.35em;
  font-weight: 700;
  color: #0b3d91;
}
.pros-card ul,
.cons-card ul {
  margin: 0;
  padding-left: 18px;
}
.pros-title {
  display: block;
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 6px;
  color: #108c46;
}
.slide-in {
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.8s ease, opacity 0.8s ease;
}
.slide-in-left {
  transform: translateX(-40px);
}
.slide-in-right {
  transform: translateX(40px);
}
.slide-in.in-view {
  opacity: 1;
  transform: translateX(0);
}
.column-meta {
  margin: 0 0 8px;
  font-size: 0.85em;
  color: #6b6b6b;
}
.column-card h4 {
  margin: 0 0 8px;
  color: var(--color-blue);
}
.column-eyecatch {
  width: 100%;
  height: auto;
  display: block;
  margin: 12px 0 18px;
  border-radius: 14px;
}
.section-title-center {
  text-align: center;
  margin-bottom: 8px;
}
.section-lead-center {
  text-align: center;
  margin-bottom: 24px;
  color: #6b6b6b;
}
.flow-section {
  background: #fff;
  padding: 40px 0;
}
.flow-section .section-title-center {
  font-size: 32px;
}
.flow-steps {
  display: grid;
  gap: 20px;
}
.flow-step {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: 16px;
  background: #f6f9ff;
  border: 1px solid rgba(20, 108, 246, 0.12);
}
.flow-media img {
  width: 100%;
  height: auto;
  display: block;
}
.flow-step-label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: 0.04em;
}
.flow-step h4 {
  margin: 0 0 8px;
  color: #0b3d91;
}

.comparison-table {
  background: #fff;
  padding: 48px 0;
}
.comparison-card {
  background: #f8fbff;
  border-radius: 20px;
  border: 1px solid rgba(20, 108, 246, 0.12);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
}
.comparison-title {
  font-size: 36px;
  letter-spacing: 0.04em;
}
.comparison {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.comparison th,
.comparison td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(20, 108, 246, 0.1);
  vertical-align: top;
}
.comparison thead th {
  background: #fff;
  font-size: 1.05em;
  color: #111;
  text-align: center;
  line-height: 1.3;
  vertical-align: middle;
}
.comparison tbody th {
  font-weight: 700;
  width: 26%;
  white-space: nowrap;
}
.comparison td {
  color: #2b2b2b;
}
.comparison .col-item {
  background: #f2f2f2;
  color: #2d2d2d;
  border-right: 2px solid #111;
}
.comparison thead .col-item {
  background: #efefef;
}
.comparison .col-bank {
  background: #fff;
  color: #111;
  border-right: 2px solid #111;
}
.comparison thead .col-bank {
  background: #111;
  color: #fff;
}
.comparison .col-trustpay {
  background: #fff;
  color: #0b3d91;
  font-weight: 700;
}
.comparison thead .col-trustpay {
  background: var(--color-lightblue);
  color: #0b3d91;
  font-weight: 700;
}
.comparison-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}
.comparison-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.comparison tbody tr:last-child th,
.comparison tbody tr:last-child td {
  border-bottom: none;
}

.fee-simulator {
  background: #f2f6ff;
  padding: 48px 0;
}
.simulator-card {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(20, 108, 246, 0.15);
}
.simulator-header h3 {
  margin: 0 0 6px;
  color: var(--color-blue);
  font-size: 28px;
}
.simulator-header p {
  margin: 0 0 22px;
  color: #4b4b4b;
}
.simulator-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px 20px;
  margin-bottom: 20px;
}
.simulator-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #0b3d91;
}
.simulator-field select,
#sim-amount-input {
  width: 100%;
  border: 1px solid rgba(0, 87, 255, 0.25);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 1em;
  height: 60px;
  line-height: 60px;
}
.simulator-amount {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.simulator-amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
}
.simulator-range {
  width: 100%;
}
#sim-amount {
  width: 100%;
  height: 28px;
  cursor: pointer;
}

#sim-amount-input {
  flex: 1 1 240px;
  height: 60px;
  line-height: 60px;
}
.simulator-unit {
  flex: 0 0 auto;
  line-height: 60px;
}
.simulator-unit {
  font-weight: 700;
  color: #0b3d91;
}
.simulator-hint {
  font-size: 0.85em;
  color: #6b6b6b;
  margin-top: 6px;
}
.simulator-result {
  background: #f6f9ff;
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(20, 108, 246, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.simulator-solution {
  margin-top: 16px;
  background: #e9f7ff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(20, 108, 246, 0.15);
}
.simulator-solution h4 {
  margin: 0 0 8px;
  color: #0b3d91;
  font-size: 1.05em;
}
.solution-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.solution-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d7f3e3;
  color: #0b6b4f;
  border-radius: 12px;
  font-size: 22px;
  flex: 0 0 40px;
}
.solution-text {
  margin: 0;
  color: #0b3d91;
  font-weight: 600;
}
.result-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.result-label {
  font-weight: 700;
  color: #0b3d91;
}
.result-value {
  font-size: 1.6em;
  font-weight: 800;
  color: var(--color-blue);
}
.result-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.result-chip {
  background: #0b3d91;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9em;
}
.result-note {
  color: #0b3d91;
  font-weight: 600;
}
.simulator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.simulator-note {
  margin-top: 12px;
  font-size: 0.85em;
  color: #6b6b6b;
  text-align: center;
}
.simulator-cta {
  flex: 1 1 240px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.2;
}

#sim-cta-apply {
  color: #fff;
}

.simulator-line-icon {
  width: 40px;
  height: 40px;
  margin-right: 8px;
  vertical-align: middle;
}
@media (max-width: 720px) {
  .comparison {
    min-width: 640px;
  }
  .comparison th,
  .comparison td {
    padding: 14px 16px;
  }
  .simulator-card {
    padding: 24px;
  }
  .simulator-amount {
    grid-template-columns: 1fr;
  }
  .simulator-unit {
    justify-self: end;
  }
  .result-value {
    font-size: 1.3em;
  }
}
.column-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: bold;
}
.factoring-diagram {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
  margin: 8px 0 32px;
}
.diagram-row {
  margin-bottom: 18px;
}
.column-card ul {
  padding-left: 18px;
  margin: 8px 0 0;
}

/* Floating AI chat teaser */
.chat-widget {
  position: fixed;
  right: 0;
  bottom: 16px;
  z-index: 999;
  font-family: "Helvetica Neue", Arial, sans-serif;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.chat-widget.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.chat-fab {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #0b3d91, #146cf6);
  color: #fff;
  font-size: 1.05em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20, 108, 246, 0.3);
}
.chat-widget:not(.is-open) .chat-fab {
  min-width: 160px;
  padding: 10px 14px;
  font-size: 0.95em;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.chat-panel {
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 45, 80, 0.2);
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.chat-brand {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #0b3d91;
  color: #fff;
  font-size: 0.7em;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.chat-widget.is-open .chat-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-blue);
  color: #fff;
  font-weight: bold;
}
.chat-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.2em;
  cursor: pointer;
}
.chat-panel-body {
  padding: 16px;
  background: #f6f9ff;
}
.chat-questions {
  display: grid;
  gap: 10px;
}
.chat-question {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 45, 80, 0.15);
  background: #fff;
  font-size: 1.05em;
  font-weight: 700;
  cursor: pointer;
}
.chat-bubble {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(20, 108, 246, 0.15);
  font-size: 0.9em;
}
.chat-bubble.is-user {
  margin-left: auto;
  background: var(--color-yellow);
  border-color: rgba(11, 61, 145, 0.15);
}
.chat-answer {
  display: none;
}
.chat-answer.is-visible {
  display: block;
}
.chat-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.chat-action {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(20, 108, 246, 0.2);
  color: #0b3d91;
  font-weight: bold;
  background: #fff;
}
.chat-action.primary {
  background: var(--color-blue);
  color: #fff;
  border-color: transparent;
}
.chat-action-line {
  background: #1bbd38;
  color: #fff;
  border-color: transparent;
}

/* Responsive: Mobile (スマートフォン向けスタイル) */
@media (max-width: 1024px) {
  .cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .column-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .flow-step {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .flow-media img {
    max-width: 220px;
    margin: 0 auto;
  }
  .column-grid {
    grid-template-columns: 1fr;
  }
  header .container {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  #menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    width: 100%;
  }
  .nav-menu.open {
    display: block;
    margin-top: 10px;
  }
  .nav-menu.open li {
    margin: 10px 0;
  }
  .nav-menu.open a {
    display: block;
    padding: 10px 0;
    width: 100%;
    text-align: left;
  }
  .nav-menu.open .nav-dropdown {
    position: static;
    display: block;
    margin: 6px 0 0;
    box-shadow: none;
    border-radius: 8px;
  }
  .nav-menu.open .nav-dropdown a {
    padding: 6px 12px;
  }
  .chat-widget {
    right: 0;
    bottom: 12px;
  }
  .chat-panel {
    width: min(86vw, 320px);
  }
}

footer {
  background: #111;
  color: #fff;
  padding: 28px 0 32px;
}
footer a {
  color: #fff;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px 28px;
  margin: 0 0 20px;
}
.footer-group h4 {
  margin: 0 0 10px;
  font-size: 1.05em;
}
.footer-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-group li {
  margin: 0 0 8px;
  position: relative;
  padding-left: 14px;
}
.footer-group li::before {
  content: '-';
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  opacity: 0.7;
}
.footer-group a {
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
}
.footer-group a:hover {
  opacity: 1;
}
@media (max-width: 720px) {
  .footer-nav {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px 20px;
    font-size: 0.95em;
  }
}

.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 18px;
}
.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.footer-social-link img {
  width: 22px;
  height: 22px;
}
.footer-social-instagram {
  background: radial-gradient(circle at 30% 30%, #feda75, #fa7e1e 35%, #d62976 60%, #962fbf 80%, #4f5bd5);
}
.footer-social-line {
  background: #00c300;
}
.footer-social-x {
  background: #000;
}
.footer-social-facebook {
  background: #1877f2;
}

.diagnosis-result-btn {
  font-size: 1.1em;
}

.is-hidden {
  display: none;
}
