/* リセットとベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* コンテナ */
.container {
    width: 100%;
    max-width: 500px;  /* 390px → 500px */
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 画像セクション */
.image-section {
    width: 100%;
    max-width: 500px;  /* 390px → 500px */
    margin-bottom: 0;
    overflow: hidden;
}

.image-section img {
    width: 100%;
    max-width: 500px;  /* 390px → 500px */
    height: auto;
    display: block;
    vertical-align: bottom;
    object-fit: cover;
}

.cta-link {
    display: block;
    transition: opacity 0.3s;
    max-width: 500px;  /* 390px → 500px */
}

.cta-link img {
    width: 100%;
    max-width: 500px;  /* 390px → 500px */
    height: auto;
    object-fit: cover;
}

.cta-link:hover {
    opacity: 0.8;
}

/* ステップスライダー */
.steps-slider {
    width: 100%;
    max-width: 500px;  /* 390px → 500px */
    padding: 20px 0;
    background: #ffffff;
    position: relative;
}

.swiper-container {
    width: 100%;
    max-width: 500px;  /* 390px → 500px */
    padding: 20px 35px;
}

.step-slide {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: auto; /* JavaScriptで高さを調整するために設定 */
}

.step-number {
    background: #2854B0;
    color: white;
    padding-top: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

.step-header {
    background: #2854B0;
    color: white;
    padding-bottom: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.step-content {
    padding: 16px; /* paddingを16pxに変更 */
    text-align: center; /* テキストやインライン要素を中央揃え */
}

.step-content > div {
    margin: 0 auto; /* ブロック要素を中央揃え */
    display: block; /* 必要に応じて明示的にブロック要素化 */
}

.step-content p{
    text-align: left;
}

.step-content img {
    width: auto;
    max-height: 120px;
    margin-bottom: 15px;
    object-fit: cover;
}

.step-content p {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* スワイパーナビゲーション */
.swiper-button-next,
.swiper-button-prev {
    width: 30px;
    height: 30px;
    margin-top: -15px;
    background: #2854B0;
    border-radius: 50%;
    color: white;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    opacity: 0.35;
}

.swiper-pagination {
    position: relative;
    margin-top: 15px;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 4px;
}

.swiper-pagination-bullet-active {
    background: #2854B0;
}

/* FAQセクション */
.faq-section {
    width: 100%;
    max-width: 500px;  /* 390px → 500px */
    padding: 20px;
    background: #ffffff;
}

.faq-item {
    margin-bottom: 10px;
}

.faq-question { 
    background: #2854B0;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between; /* 子要素を両端に配置 */
    align-items: center;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.faq-question::before {
    content: "Q.";
    margin-right: 10px;
    font-weight: bold;
}

.faq-question .toggle {
    color: white;
    font-size: 24px;
    line-height: 1;
    transition: transform 0.3s ease;
    margin-left: auto; /* トグルボタンを右端に固定 */
}

.faq-question.active .toggle {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 15px 20px;
    background: #f5f5f5;
    font-weight: 300;
    color: #2D3748;
    margin-top: 1px;
    border-radius: 0 0 5px 5px;
}

.faq-question.active + .faq-answer {
    display: block;
}

/* フローティングCTA */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;  /* 390px → 500px */
    height: 85px;
    z-index: 1000;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.floating-cta a {
    display: block;
    width: 100%;
    height: 100%;
}

.floating-cta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 500px) {  /* 390px → 500px */
    .floating-cta {
        width: 100%;
    }
}