/* Hero Section */
.hero {
  position: relative;
  height: 774px;
  overflow: hidden;
}

.hero__background-image {
  position: absolute;
  top: -10.23%;
  left: 0;
  width: 100%;
  height: 110.25%;
  object-fit: cover;
  z-index: -1;
}

.hero__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 223px;
  gap: 48px;
}

.hero__text {
  flex: 0 0 460px;
  color: white;
}

.hero__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 5px;
  line-height: 2;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 24px;
  font-weight: 700;
  line-height: 2;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 16px;
}

.hero__subtitle p {
  margin: 0;
}

.hero__tagline {
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.8);
}

.hero__visual {
  flex: 0 0 330px;
  height: 329px;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Features Section */
.features {
  background: var(--color-section-bg);
  padding: 24px 0;
}

.features__heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 24px;
}

.features__description {
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  margin: 0 auto 56px;
  line-height: 1.8;
  max-width: 840px;
  padding: 18px 32px;
  position: relative;
  color: #475569;
  letter-spacing: 0.02em;
  background: transparent;
}

/* 左上の鉤括弧 */
.features__description::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  pointer-events: none;
  opacity: 0.8;
  background:
    linear-gradient(to bottom, #0969da 0%, #54c7ec 100%) top/100% 2px no-repeat,
    linear-gradient(to right, #0969da 0%, #54c7ec 100%) left/2px 100% no-repeat;
}

/* 右下の鉤括弧 */
.features__description::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  pointer-events: none;
  opacity: 0.8;
  background:
    linear-gradient(to left, #0969da 0%, #54c7ec 100%) bottom/100% 2px no-repeat,
    linear-gradient(to top, #0969da 0%, #54c7ec 100%) right/2px 100% no-repeat;
}

/* アニメーション */
@keyframes corner-glow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

.features__description::before {
  animation: corner-glow 4s ease-in-out infinite;
}

.features__description::after {
  animation: corner-glow 4s ease-in-out infinite;
  animation-delay: 2s;
}

@media (max-width: 640px) {
  .features__description {
    font-size: 15px;
    padding: 24px 32px;
    margin-bottom: 40px;
  }

  .features__description::before,
  .features__description::after {
    width: 40px;
    height: 40px;
  }
}

.feature {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 64px;
  padding: 0;
  gap: 40px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature--1,
.feature--2 {
  /* 左文字・右画像 */
  flex-direction: row;
}

.feature--3,
.feature--4 {
  /* 左画像・右文字 */
  flex-direction: row-reverse;
}

.feature__content {
  flex: 0 1 420px;
}

.feature__header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.feature__number {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}

.feature__title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.feature__label {
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.feature__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.feature__body {
  font-size: 16px;
  line-height: 1.5;
}

.feature__media {
  flex: 0 1 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__image {
  width: 100%;
  max-width: 398px;
  height: 196px;
  object-fit: cover;
  border-radius: 4px;
}

.feature__icon {
  width: 196px;
  height: 199px;
  display: block;
}

/* Partnership Diagram */
.feature__diagram {
  flex: 0 1 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partnership-diagram-image {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

/* Dialog overlay */
.feature__media--with-dialog {
  position: relative;
}

.dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.dialog {
  position: absolute;
}

.dialog--top {
  top: 10px;
  left: 30px;
}

.dialog--bottom {
  bottom: 20px;
  left: 200px;
}

.dialog__bubble {
  position: relative;
  background: white;
  padding: 10px 16px;
  border-radius: 4px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
  font-size: 16px;
  font-weight: 700;
  width: max-content;
  max-width: 255px;
  border: 2px solid #0969DA;
}

.dialog__bubble::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  right: 18px;
  bottom: -7px;
  background: #ffffff;
  border: 2px solid #0969DA;
  border-left: none;
  border-top: none;
  transform: rotate(45deg);
  box-sizing: border-box;
}

/* CTA Sections */
.cta {
  padding: 32px 0;
  text-align: center;
}

.cta--secondary {
  background: var(--color-primary);
}

.cta__heading {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 12px;
  border: 1px solid #0550ae;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
  letter-spacing: 0.05em;
  line-height: 24px;
}

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

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

.btn .material-symbols-rounded {
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

/* Contact Form */
.contact-form {
  background: white;
  border-radius: 8px;
  padding: 32px;
  margin-top: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  text-align: left;
}

.form-label .required {
  color: #dc3545;
  margin-left: 4px;
}

.form-label .optional {
  color: #6c757d;
  font-weight: 400;
  margin-left: 4px;
  font-size: 12px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  background: white;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  transition: border-color 0.15s ease;
  font-family: var(--font-family);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

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

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

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

.radio-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.radio-label input[type="radio"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.radio-label span {
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-label span {
  cursor: pointer;
}

.form-note {
  margin-top: 8px;
  font-size: 12px;
  color: #5f6b7a;
}

.form-submit {
  width: 100%;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  background: var(--color-primary);
  border: 1px solid #0550ae;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 32px;
}

.form-submit:hover {
  background: #0860ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.form-submit:active {
  transform: translateY(0);
}

/* Success Message */
.success-message {
  background: white;
  border-radius: 8px;
  padding: 48px 32px;
  margin-top: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 24px;
}

.success-message h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.success-message p {
  font-size: 16px;
  line-height: 1.6;
  color: #6c757d;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Flow Section */
.flow {
  background: white;
  padding: 64px 0;
}

.flow__heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 42px;
}

.flow__list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.flow__item {
  flex: 1;
  background: var(--color-section-bg);
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  text-align: center;
  max-width: 240px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow__step {
  font-size: 16px;
  font-weight: 700;
}

.flow-step__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin: 0 auto;
}

.flow__item:nth-child(1) .flow-step__icon {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.85), rgba(148, 163, 184, 0.85));
  box-shadow: 0 3px 12px rgba(100, 116, 139, 0.12);
}

.flow__item:nth-child(3) .flow-step__icon {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.85), rgba(203, 213, 225, 0.85));
  box-shadow: 0 3px 12px rgba(100, 116, 139, 0.12);
}

.flow__item:nth-child(5) .flow-step__icon {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.9), rgba(226, 232, 240, 0.9));
  box-shadow: 0 3px 12px rgba(100, 116, 139, 0.12);
}

.flow-step__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flow__arrow {
  width: 64px;
  height: 32px;
  margin-top: 100px;
  transform: rotate(90deg);
}

.flow__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.flow__description {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text);
}

/* Footer */
.site-footer {
  background: #f8f9fa;
  padding: 48px 0 32px;
  border-top: 1px solid #e5e5e5;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer__service-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.footer__info {
  text-align: center;
}

.footer__company {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.footer__company-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__company-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer__copyright {
  font-size: 12px;
  color: #999;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  font-size: 12px;
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: #999;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1280px) {
  :root {
    --container-padding: 60px;
  }

  .hero__content {
    padding: 160px 60px 0;
  }
}

@media (max-width: 960px) {
  :root {
    --container-padding: 40px;
  }

  .hero {
    height: auto;
    padding: 80px 0;
  }

  .hero__content {
    flex-direction: column;
    padding-top: 80px;
  }

  .hero__text {
    max-width: 500px;
  }

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

  .feature--3,
  .feature--4 {
    flex-direction: column;
  }

  .feature__content,
  .feature__media,
  .feature__diagram {
    flex: 1;
    width: 100%;
    max-width: none;
  }

   /* dialog位置の調整 */
  .dialog--top {
    top: 20px;
    left: 100px;  /* 左端から少し離す */
  }

  .dialog--bottom {
    left: 220px;  /* 左端から少し離す */
    bottom: 20px;  /* 下からの距離も調整 */
  }

  .dialog__bubble {
    max-width: 200px;  /* スマートフォンでは幅を狭く */
    font-size: 12px;   /* フォントサイズも小さく */
  }

}


@media (max-width: 640px) {
  :root {
    --container-padding: 20px;
  }

  /* ヒーローエリアの調整 */
  .hero {
    padding: 40px 0;
  }

  .hero__content {
    padding-top: 40px;
    gap: 24px;
  }

  .hero__text {
    flex: 1;
    width: 100%;
    max-width: 100%;
  }

  .hero__title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .hero__subtitle {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .hero__subtitle p {
    word-break: keep-all;
    line-height: 1.8;
  }

  .hero__tagline {
    font-size: 14px;
    line-height: 1.6;
  }

  /* ロゴを正円にする */
  .hero__visual {
    flex: 0 0 200px;
    height: 200px;
  }

  .hero__visual img {
    width: 200px;
    height: 200px;
    object-fit: cover;
  }

  .feature__number {
    font-size: 48px;
  }

  .feature__title {
    font-size: 18px;
  }

  .feature__image {
    width: 100%;
    height: auto;
  }

  .partnership-diagram-image {
    max-width: 320px;
  }

  

  .contact-form {
    padding: 24px 20px;
  }

  .form-submit {
    font-size: 14px;
    padding: 10px 20px;
  }

  .success-message {
    padding: 32px 20px;
  }

  .success-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .success-message h3 {
    font-size: 20px;
  }

  .success-message p {
    font-size: 14px;
  }

  /* サービスの流れ説明部分の調整 */
  .flow__list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .flow__item {
    min-height: 200px;
    padding: 12px;
    gap: 12px;
  }

  .flow__arrow {
    transform: rotate(180deg);
    height: 24px;
    width: 24px;
    margin: 16px auto;
  }

  .flow__step {
    font-size: 14px;
  }

  .flow__title {
    font-size: 14px;
  }

  .flow__description {
    font-size: 11px;
    line-height: 1.4;
  }

  .flow-step__icon {
    width: 48px;
    height: 48px;
    padding: 8px;
  }


  /* フッターのSP版スタイル */
  .site-footer {
    padding: 32px 0 24px;
  }

  .footer__content {
    gap: 24px;
  }

  .footer__logo {
    width: 32px;
    height: 32px;
  }

  .footer__service-name {
    font-size: 16px;
  }

  .footer__company {
    font-size: 12px;
  }

  .footer__copyright {
    font-size: 11px;
  }

  .footer__links {
    gap: 16px;
  }

  .footer__link {
    font-size: 11px;
    color: #ccc;
  }
}
