/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    color: #333;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    height: auto;
}

/* 共通スタイル */
.section-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.section-label p {
    font-weight: 700;
    font-size: 18px;
    color: #C8C8C8;
}

.label-line {
    width: 40px;
    height: 2px;
    background-color: #C8C8C8;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #2B7B9B;
    text-align: center;
}

.section-header p {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    text-align: center;
}

.section-header.center h2 {
    color: #fff;
}

/* ヘッダー */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(68, 68, 68, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo img {
    height: 40px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav ul {
    display: flex;
    gap: 40px;
}

.nav ul li a {
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav ul li a:hover {
    color: #61B1D2;
}

.menu-btn {
  display: none;
}

.menu-close-btn {
  display: none;
}

.sp-navigation-menu {
  display: none;
}

.btn-contact {
    display: flex;
    align-items: center;
    background-color: #FA3C3C;
    color: #fff;
    padding: 12px 40px 12px 50px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: #e53535;
}

.arrow-circle {
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
}

.arrow-circle img {
    width: 12px;
    height: 12px;
}

/* モバイル用ボタン（PC版では非表示） */
.mobile-only {
    display: none !important;
}

/* ヒーローセクション */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    /* padding-left: 160px; */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0A1F44;
    background-image: url('../img/bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(97, 177, 210, 0), rgba(0, 25, 40, 0.35));
}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 0 50px;
    z-index: 1;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 70%;
}

.hero-text {
    text-align: left;
    width: 100%;
}

.hero-text .br {
  display: none;
}

.hero-text h1 {
    font-size: 41px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-text h1 div:nth-child(2) {
    margin-left: 55px;
    padding-left: 0;
}

.hero-text p {
    margin-left: 55px;
    font-size: 24px;
    font-weight: 700;
    color: #F6E498;
    line-height: 1.5;
}

/* ヒーロー画像 */
.hero-images {
    display: block;
    width: 60%;
    text-align: right;
    position: relative;
}

.hero-images .pc-engineers-pair {
    width: 110%;
    height: 100%;
    object-fit: contain;
    vertical-align: bottom;
}

.btn-contact-large {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FA3C3C;
    color: #fff;
    padding: 24px 60px 24px 70px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1.44px;
    gap: 24px;
    transition: background-color 0.3s;
    margin-top: 30px;
}

.btn-contact-large:hover {
    background-color: #e53535;
}

.btn-contact-large .arrow-circle {
    width: 32px;
    height: 32px;
}

.hero-images .sp-engineers-pair {
    display: none;
}

/* 問題提起セクション */
.problem {
    background-color: #cfcfcf;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 80px 180px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.problem::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-right: 50px solid transparent;
    border-left: 50px solid transparent;
    border-top: 50px solid #cfcfcf;
    border-bottom: 0;
    position: absolute;
    bottom: -50px;
}

.problem-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.problem-header h2 {
    font-size: 24px;
    font-weight: 500;
    color: #2B7B9B;
    text-align: center;
    line-height: 1;
}

.problem-header .br {
  display: none;
}

.problem-title {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 16px;
}

.title-box {
    padding: 10px;
    border-radius: 8px;
    font-size: 40px;
    font-weight: 600;
    color: #2B7B9B;
    text-align: center;
}

.onayami {
    position: relative;
}

.decoration {
    position: relative;
    display: inline-block;
    font-size: 60px;
}

.decoration::before {
    content: '・';
    position: absolute;
    top: -0.8em;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6em;
    color: #2B7B9B;
}

.dots {
    display: none;
}

.problem-content {
    display: flex;
    width: 100%;
    gap: 40px;
    padding: 16px 0 0;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-radius: 8px;
    padding: 0 40px 48px;
    width: 653px;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.problem-number {
    font-family: sans-serif;
    font-size: 80px;
    font-weight: 600;
    color: #61B1D2;
    line-height: 1;
}

.problem-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.problem-text h3 {
    font-size: 29px;
    font-weight: 700;
    color: #555;
    line-height: 1.2;
}

.problem-text p {
    font-size: 18px;
    font-weight: 500;
    color: #555;
    line-height: 1.2;
}

.problem-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
}

.problem-image img {
    max-width: 100%;
}

/* 解決バナー */
.solution-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-top: 80px;
    padding-bottom: 60px;
    z-index: 10;
}

.solution-banner h2 {
    font-family: sans-serif;
    font-size: 40px;
    font-weight: normal;
    color: #fff;
    line-height: 1;
}

.solution-banner h2>span{
  font-size: 60px;
  font-weight: bold;
}

.solution-banner .line {
    width: 500px;
    height: 6px;
    background-color: #D4AF37;
}

/* 選ばれる理由 */
.strengths {
    background-color: #0A1F44;
    background-image: url('../img/cyaan_back.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.strengths-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 0 160px;
    width: 100%;
}

.strengths-header h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.strengths-header h2 span {
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.strengths-header h2>span:first-child {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.strengths-header h2 .font-gold {
  color: #D4AF37;
}

.strengths-header h2 .font-40 {
  font-size: 40px;
}

.strengths-header h2 .font-60 {
  font-size: 60px;
}

.strengths-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 0 160px;
    width: 100%;
}

.strength-card {
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 0 20px;
    width: 30%;
    min-width: 250px;
}

.strength-icon {
    width: 120px;
    height: 120px;
    background-color: #61B1D2;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.strength-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px;
    width: 100%;
}

.strength-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #2B7B9B;
    text-align: center;
    line-height: 1.2;
}

.strength-content p {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    text-align: justify;
    line-height: 1.5;
    letter-spacing: -0.64px;
}

/* エンジニア紹介 */
.engineers {
    background-color: #fff;
    padding: 128px 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 112px;
}

.engineers-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.engineer-row {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    margin: 30px 0;
}

.engineer-row:nth-child(odd) {
    padding-right: 0;
    padding-left: 40px;
}

.engineer-row:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: 0;
    padding-right: 40px;
}

.engineer-row.reverse {
    flex-direction: row;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 40px;
}

.engineer-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1.6px solid #D4AF37;
    border-radius: 8px;
    padding: 40px;
    width: 509px;
    position: relative;
    z-index: 2;
}

.engineer-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    width: 100%;
}

.engineer-text h3 {
    font-size: 32px;
    font-weight: 700;
    color: #555;
    text-align: center;
    line-height: 1.3;
    width: 100%;
}

.engineer-text p {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    text-align: justify;
    line-height: 1.5;
    width: 100%;
}

.engineer-image {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0A1F44;
    background-image: url('../img/cyaan_back.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    margin-left: -40px;
    width: 45%;
    z-index: 1;
}

.engineer-row:nth-child(odd) .engineer-image {
    margin-left: -40px;
    margin-right: 0;
}

.engineer-row:nth-child(even) .engineer-image {
    margin-right: -40px;
    margin-left: 0;
}

.engineer-image img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    display: block;
}

.engineer-row:nth-child(even) .engineer-image img {
    clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 15% 100%);
}

/* お申し込みの流れ */
.flow {
    background-color: #0A1F44;
    background-image: url('../img/cyaan_back.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 128px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.flow-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 0;
    width: 100%;
    max-width: 1200px;
}

.flow-step {
    background-color: #fff;
    border: 2px solid #D4AF37;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 16px;
    width: 28%;
    min-width: 200px;
    max-width: 330px;
    flex-grow: 0;
}

.step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.step-badge {
    display: flex;
    gap: 4px;
}

.step-badge span {
    font-family: sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #D4AF37;
    line-height: 0.8;
}

.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-icon img {
    width: 64px;
    height: 64px;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.step-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #2B7B9B;
    text-align: center;
    line-height: 1.5;
}

.step-content p {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    text-align: center;
    line-height: 1.25;
}

.step-arrow {
    width: 0;
    height: 0;
    border-left: 15px solid #fff;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin: 0 5px;
    align-self: center;
}

/* 実績 */
.achievements {
    background-color: #0A1F44;
    background-image: url('../img/cyaan_back.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 80px 160px 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.achievements .section-header h2>span {
  font-size: 38px;
}

.achievements-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    padding: 24px 0;
    width: 100%;
}

.achievement-card {
    background-color: #fff;
    border: 2px solid #D4AF37;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 56px 16px;
    width: 45%;
    min-width: 250px;
}

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

.achievement-label {
    font-size: 24px;
    font-weight: 700;
    color: #D4AF37;
    text-align: center;
    line-height: 1.2;
}

.achievement-value {
    font-size: 40px;
    font-weight: 700;
    color: #2B7B9B;
    text-align: center;
    line-height: 1.2;
}

.achievement-value span {
  font-size: 22px;
}

.achievement-card p {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    text-align: center;
    line-height: 1.25;
}

/* よくある質問 */
.faq {
    background-color: #0A1F44;
    background-image: url('../img/cyaan_back.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 80px 120px 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.faq .section-header h2 {
  color: #FFFFFF;
}

.faq .section-header p:last-child {
  color: #FFFFFF;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 240px;
    width: 100%;
    max-width: 1200px;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    width: 100%;
    box-shadow: 0px 4px 4px -4px rgba(12, 12, 13, 0.05), 0px 16px 32px -4px rgba(12, 12, 13, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px 0 0;
    cursor: pointer;
    position: relative;
}

.q-mark {
    font-family: sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #2B7B9B;
    line-height: 1.2;
    padding: 0 16px;
}

.question-text {
    font-size: 16px;
    font-weight: 700;
    color: #2B7B9B;
    line-height: 1.5;
    padding: 12px 0;
    flex: 1;
}

.toggle-icon {
    position: absolute;
    right: 0;
    width: 20px;
    height: 20px;
}

.toggle-icon::before, .toggle-icon::after {
    content: '';
    position: absolute;
    background-color: #2B7B9B;
    transition: transform 0.3s;
}

.toggle-icon::before {
    width: 2px;
    height: 20px;
    left: 9px;
    top: 0;
}

.toggle-icon::after {
    width: 20px;
    height: 2px;
    left: 0;
    top: 9px;
}

.faq-item.active .toggle-icon::before {
    transform: rotate(90deg);
}

.faq-answer {
    display: flex;
    padding: 0 16px;
    display: none;
}

.faq-item.active .faq-answer {
    display: flex;
}

.a-mark {
    font-family: sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #D4AF37;
    line-height: 1.2;
    padding: 0 16px;
}

.answer-text {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    line-height: 1.5;
}

/* お問い合わせフォーム */
.contact {
    background-color: #0A1F44;
    background-image: url('../img/cyaan_back.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 160px 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 160px;
}

.contact-container {
    background: linear-gradient(to bottom, #FFFFFF, rgba(255, 255, 255, 0.9));
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 52px;
    padding: 64px;
    width: 100%;
    box-shadow: 0px 4px 4px -4px rgba(12, 12, 13, 0.05), 0px 16px 32px -4px rgba(12, 12, 13, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.form-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.form-group.wide {
    width: 100%;
}

.label-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    width: 180px;
    flex-shrink: 0;
    margin-right: 50px;
}

.label-container label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.input-wrapper {
    flex: 1;
}

input, select, textarea {
    background-color: #F0F0F5;
    border: 1px solid #DCDCDC;
    border-radius: 4px;
    padding: 16px;
    font-size: 14px;
    font-weight: 300;
    width: 95%;
}

input::placeholder,
textarea::placeholder {
  color: #bbbbbb;
}

select {
  width: 62%;
}

.name-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 70%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    width: 100%;
}

.sublabel {
    font-size: 13px;
    font-weight: 300;
    color: #333;
    line-height: 1;
}

.required, .optional {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    padding: 2px 8px;
    border-radius: 3px;
}

.required {
    background-color: #D4AF37;
}

.optional {
    background-color: #2B7B9B;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #61B1D2;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.checkbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    width: 100%;
}

.checkbox-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.checkbox-container .checkbox-group label a {
  color: #61B1D2;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    line-height: 1.57;
    cursor: pointer;
}

.submit-btn {
    background-color: #FA3C3C;
    color: #fff;
    border: none;
    border-radius: 45px;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1.6px;
    margin-top: 40px;
    cursor: pointer;
    box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
    width: 300px;
    text-align: center;
    display: inline-block;
}

.submit-btn:hover {
    background-color: #e53535;
}

/* フッター */
.footer {
    background-color: #28323C;
    background-image: url('../img/black-back-50.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer .footer-image {
  background-image: url('../img/cyaan_back.png');
  width: 100%;
}

.footer .footer-image .pc-footer-image {
  vertical-align: bottom;
  width: 100%
}

.footer .sp-footer-image {
    display: none;
}

.footer-logo img {
    width: 210px;
    height: 100px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.footer-links::before {
    content: '';
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-nav {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.copyright {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
    opacity: 0.8;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {
    .strengths, .engineers, .achievements, .testimonials, .faq, .contact {
        padding-left: 80px;
        padding-right: 80px;
    }

    .flow {
        padding: 128px 40px;
    }

    .problem {
        padding-left: 80px;
        padding-right: 80px;
    }

    .faq-list {
        padding: 0 120px;
    }

    .strengths-cards {
        padding: 0 40px;
    }

    .achievement-card {
        width: calc(50% - 20px);
    }

    .hero {
        padding-left: 80px;
    }

    .menu-btn {
      display: none;
    }

    .menu-close-btn {
      display: none;
    }

    .sp-navigation-menu {
      display: none;
    }
}

@media screen and (max-width: 992px) {
    .header {
        padding: 12px 20px;
    }

    .nav {
        gap: 20px;
    }

    .nav ul {
        gap: 20px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-text p {
        font-size: 20px;
    }

    .problem-content {
        flex-direction: column;
        align-items: center;
    }

    .problem-list {
        width: 100%;
    }

    .strengths-cards {
        padding: 0 20px;
    }

    .strength-card {
        width: 45%;
    }

    .engineer-row,
    .engineer-row:nth-child(odd),
    .engineer-row:nth-child(even),
    .engineer-row.reverse {
        flex-direction: column;
        padding: 0;
        margin: 40px 0;
    }

    .engineer-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .engineer-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto !important;
        padding: 0;
    }

    .engineer-image img {
        clip-path: polygon(10% 0%, 90% 0%, 90% 100%, 10% 100%);
    }

    .engineer-row:nth-child(even) .engineer-image img {
        clip-path: polygon(10% 0%, 90% 0%, 90% 100%, 10% 100%);
    }

    .flow-steps {
        justify-content: center;
        gap: 20px;
    }

    .flow-step {
        width: 28%;
        min-width: 180px;
        padding: 30px 12px;
    }

    .step-arrow {
        margin: 0 5px;
    }

    .achievement-card {
        width: 100%;
    }

    .testimonial-card {
        width: 100%;
    }

    .faq-list {
        padding: 0;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .label-container {
        width: 100%;
        padding-bottom: 5px;
    }

    .input-wrapper {
        width: 100%;
    }

    .flow {
        padding: 100px 20px;
    }
}

@media screen and (max-width: 768px) {
    /* ヘッダー */
    .header {
        padding: 14px 24px;
        position: fixed;
        box-shadow: 0px 4px 8px rgba(68, 68, 68, 0.2);
    }

    .logo img {
        height: 40px;
    }

    .nav ul {
        display: none;
    }

    .btn-contact {
        display: none;
    }

    /* ハンバーガーメニューを表示 */
    .menu-btn {
      display: block;
    }

    .menu-close-btn {
      display: none;
    }

    .show {
      display: block;
    }

    .sp-navigation-menu {
        max-width: 100%;
        font-family: sans-serif;
        font-size: 18px;
        color: #000000;
        font-weight: 700;
        white-space: nowrap;
        text-align: center;
        line-height: 2;
        z-index: 11;
        position: fixed;
        top: 64px;
        left: 0;
    }

    .sp-navigation-container {
        background-color: rgba(255, 255, 255, 0.85);
        display: flex;
        width: 100vw;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: rgb(255 255 255 / 94%);
        padding: 20px;
        position: relative;
        z-index: 5;
        border-bottom: 1px solid #d5c8c8;
    }

    .sp-navigation-links {
        display: flex;
        width: 50%;
        max-width: 388px;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        margin-top: 20px;
    }

    .sp-navigation-links ul li:not(:last-child) {
      margin-bottom: 32px;
    }

    .sp-navigation-links ul li a {
        font-size: 18px;
        margin: 0;
        font-weight: bold;
        color: #000;
    }

    .sp-success-record {
        margin-top: 32px;
    }

    .sp-usage-flow {
        align-self: stretch;
        margin-top: 32px;
    }

    /* ヒーローセクション */
    .hero {
        height: 93vh;
        min-height: initial;
        padding: 115px 20px 0;
        justify-content: center;
        align-items: center;
    }

    .hero-content {
        align-items: center;
        text-align: center;
        gap: 0;
        padding: 0;
        position: relative;
        flex-direction: column;
        justify-content: space-between;
        max-width: 100%;
        height: 100%;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-text h1 {
        font-size: 23px;
        margin-bottom: 16px;
        line-height: 1.3;
    }
    .hero-text h1 div {
      text-align: left;
    }

    .hero-text h1 div:first-child {
      font-size: 28px;
    }

    .hero-text h1 div:nth-child(2) {
      margin-left: 0;
    }

    .hero-text h1>div span {
      font-size: 40px;
      font-weight: bold;
    }

    .hero-text p {
        margin-left: 0;
        font-size: 14px;
        line-height: 1.4;
    }

    .hero-text .br {
      display: block;
    }

    /* MVの画像用スタイル */
    .hero-images {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        text-align: center;
        position: relative;
    }

    .hero-images .pc-engineers-pair {
        display: none;
    }

    .hero-images .sp-engineers-pair {
        display: block;
        position: relative;
        max-width: 100%;
        height: 100%;
        object-fit: contain;
        margin: 0 auto;
    }

    /* PCボタンを非表示にし、モバイルボタンを表示 */
    .hero-left .btn-contact-large {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
        position: absolute;
        top: 80%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        width: 80%;
        max-width: 320px;
        justify-content: flex-end;
    }

    .btn-contact-large {
        padding: 16px 24px;
        font-size: 16px;
    }


    .btn-contact-large .arrow-circle {
        width: 24px;
        height: 24px;
    }

    /* 問題提起セクション */
    .problem {
        padding: 64px 20px 0;
        background-image: url('../img/problem-man.png');
        background-size: 36%;
        background-position: 223px bottom;
    }

    .problem::after {
        border-right: 40px solid transparent;
        border-left: 40px solid transparent;
        border-top: 40px solid #cfcfcf;
        bottom: -40px;
    }

    .problem-header {
        margin-bottom: 20px;
    }

    .problem-header h2 {
        font-size: 15px;
    }

    .problem-header .br {
      display: block;
    }

    .title-box {
        font-size: 20px;
        padding: 0;
    }

    .decoration {
      font-size: 45px;
    }

    .problem-list {
        padding: 0 20px 48px;
        width: 100%;
    }

    .problem-item {
        gap: 12px;
    }

    .problem-number {
        font-size: 43px;
    }

    .problem-text h3 {
        font-size: 14px;
    }

    .problem-text p {
        font-size: 9px;
    }

    .problem-image {
        display: none;
        width: 100%;
        max-width: 335px;
        margin: 0 auto;
    }

    /* 解決バナー */
    .solution-banner {
        padding: 60px 20px;
    }

    .solution-banner h2 {
        text-align: center;
        font-size: 43px;
    }

    .solution-banner .line {
        width: 300px;
        height: 6px;
    }

    /* 選ばれる理由 */
    .strengths {
        padding: 0 20px 64px;
    }

    .strengths-header {
        padding: 0;
        gap: 24px;
    }

    .strengths-cards {
        padding: 0;
        gap: 40px;
    }

    .strength-card {
        width: 100%;
        padding: 32px 0 16px;
    }

    .strength-icon {
        width: 120px;
        height: 120px;
    }

    .strength-content {
        padding: 24px 16px;
    }

    .strength-content h3 {
        font-size: 24px;
    }

    /* エンジニア紹介 */
    .engineers {
        padding: 40px 0 64px;
        gap: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .engineers .section-header {
        padding: 0 20px;
    }

    .engineers .section-header h2 {
        font-size: 42px;
    }

    .engineers-showcase {
        gap: 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .engineer-row {
        display: flex;
        flex-direction: column;
        margin: 0 0 40px;
        background-image: url('../img/cyaan_back.png');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        left: 0;
        right: 0;
        margin-left: -20px;
        margin-right: -20px;
        padding: 0 20px;
    }

    /* すべての行で画像を上に配置 */
    .engineers .section-header p:last-child {
      font-size: 15.5px;
    }

    .engineer-image {
        width: calc(100% + 40px);
        height: auto;
        margin: 0 -20px !important;
        border-radius: 0;
        background: transparent;
        padding-top: 24px;
        order: 1;
        overflow: hidden;
    }

    .engineer-card {
        width: 100%;
        padding: 24px 20px;
        margin: 0;
        background: transparent;
        border: none;
        box-sizing: border-box;
        order: 2;
    }

    .engineer-text {
        padding: 15px;
        align-items: center;
        background-color: #ffffff;
        border: 2px solid #D4AF37;
    }

    .engineer-text h3 {
        font-size: 24px;
        text-align: center;
        color: #333333;
        margin-bottom: 16px;
    }

    .engineer-text p {
        font-size: 14px;
        color: #333333;
        text-align: center;
    }

    .engineer-image img {
        clip-path: none;
        width: 100%;
        display: block;
    }

    .engineer-image .front,
    .engineer-image .infra {
      padding: 0 34px;
    }

    .engineer-image .backend {
      width: 415px;
    }

    /* お申し込みの流れ */
    .flow .section-header h2 {
      font-size: 44px;
    }

    .flow {
        padding: 64px 10px 40px;
    }

    .flow-steps {
        padding: 24px 0;
        gap: 70px;
        flex-direction: row;
    }

    .flow-step {
        width: calc(50% - 20px);
        min-width: 0;
        padding: 30px 16px;
        position: relative;
    }

    .flow-step:not(:last-child):after {
      content: '';
      width: 0;
      height: 0;
      border-style: solid;
      border-right: 20px solid transparent;
      border-left: 20px solid transparent;
      border-top: 20px solid #ffffff;
      border-bottom: 0;
      position:absolute;
      bottom: -48px;
    }

    .step-arrow {
        display: none;
    }

    .step-badge span {
        font-size: 24px;
    }

    .step-content h3 {
        font-size: 24px;
    }

    .step-content p {
        font-size: 14px;
    }

    /* 実績 */
    .achievements {
        padding: 40px 20px;
    }

    .achievements .section-header h2 {
      font-size: 41px;
    }

    .achievements-grid {
        gap: 32px;
    }

    .achievement-card {
        width: 100%;
        padding: 32px 16px;
    }

    .achievement-header {
        gap: 8px;
    }

    .achievement-label {
        font-size: 24px;
    }

    .achievement-value {
        font-size: 40px;
    }

    /* よくある質問 */
    .faq {
        padding: 40px 20px 0;
        gap: 40px;
    }

    .faq .section-header p:last-child {
      font-size: 15.5px;
    }

    .faq-list {
        gap: 40px;
        padding: 0;
    }

    .faq-item {
        padding: 24px;
    }

    .q-mark {
        font-size: 40px;
        padding: 0 16px 0 0;
    }

    .question-text {
        font-size: 16px;
        padding: 12px 0;
    }

    .a-mark {
        font-size: 40px;
        padding: 0 16px 0 0;
    }

    .answer-text {
        font-size: 16px;
    }

    /* お問い合わせフォーム */
    .contact {
        padding: 64px 20px 80px;
        gap: 64px;
    }

    .contact .section-header .contact-notice {
      font-size: 16px;
    }

    .contact-container {
        padding: 64px 20px;
        gap: 52px;
    }

    .form-row {
        padding: 8px 0;
    }

    .form-group {
        gap: 8px;
    }

    .label-container {
        width: 100%;
        justify-content: flex-start;
    }

    .name-inputs {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .input-group {
        width: 100%;
    }

    .checkbox-container {
        margin-top: 24px;
    }

    .submit-btn {
        margin-top: 24px;
        padding: 14px 0;
        font-size: 16px;
        width: 100%;
        max-width: 100%;
        height: auto;
        text-align: center;
        white-space: nowrap;
    }

    input, select, textarea {
      width: 100%;
    }

    /* フッター */
    .footer .footer-image .pc-footer-image {
        display: none;
    }

    .footer .footer-image .sp-footer-image  {
      display: block;
      width: 100%;
    }

    .footer-nav {
        flex-direction: column;
        gap: 40px;
    }
}

@media screen and (max-width: 480px) {
    .flow-step {
        width: 100%;
        max-width: 100%;
        padding: 40px 16px;
    }
}
