/* style.css */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
}

/* メインビジュアル・コンテンツセクション */
.main-visual,
.content-section {
    width: 100%;
}

/* カルーセルセクション */
.carousel-section {
    width: 100%;
    padding: 60px 0;
    background-color: #f5f5f5;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-item {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    padding: 0;
    box-sizing: border-box;
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

/* PC/SP出し分け */
.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

/* カルーセルドット */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: #131836;
}

/* フォームセクション */
.form-section {
    width: 100%;
    padding: 80px 20px;
    background-color: #fff;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.required-badge {
    display: inline-block;
    background-color: #e60012;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: bold;
}

.optional-badge {
    display: inline-block;
    background-color: #888;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #131836;
}

.form-group input::placeholder {
    color: #999;
}

.form-note {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* プライバシーポリシー */
.form-privacy {
    margin: 30px 0;
    font-size: 14px;
    line-height: 1.8;
}

.privacy-text {
    margin-bottom: 10px;
}

.privacy-link {
    color: #0066cc;
    text-decoration: underline;
}

.underline {
    text-decoration: underline;
}

/* 送信ボタン */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.submit-button {
    background-color: #131836;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 18px 60px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(19, 24, 54, 0.3);
}

.submit-button:hover {
    background-color: #0f1229;
    transform: translateY(-2px);
}

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

.cta-color-note {
    margin-top: 15px;
    font-size: 14px;
    color: #e60012;
    font-weight: bold;
}

.color-code {
    font-family: monospace;
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
}

.color-sample {
    display: inline-block;
    width: 50px;
    height: 20px;
    background-color: #131836;
    margin-left: 10px;
    vertical-align: middle;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* 追従CTAボタン用CSS (style.cssの最後に追加してください) */

/* 追従CTAボタン */
.fixed-cta-button {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1;
}

/* フォームセクションに到達したら非表示 */
.fixed-cta-button.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.fixed-cta-button a {
    display: block;
    width: 100%;
    text-decoration: none;
    cursor: pointer;
}

.fixed-cta-button img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 100px;
    object-fit: cover;
}

/* PC版のスタイル */
@media (min-width: 769px) {
    .fixed-cta-button {
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    }

    .fixed-cta-button img {
        max-height: 100%;
    }

    .fixed-cta-button a:hover {
        opacity: 0.9;
    }
}

/* SP版のスタイル */
@media (max-width: 768px) {
    .fixed-cta-button {
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    }

    .fixed-cta-button img {
        max-height: 70px;
    }
}

/* フォームセクションに余白を追加（追従ボタンに隠れないように） */
.form-section {
    margin-bottom: 100px;
}

@media (max-width: 768px) {
    .form-section {
        margin-bottom: 80px;
    }
}

/* レスポンシブ対応 (タブレット・スマホ) */
@media (max-width: 768px) {
    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    .carousel-section {
        padding: 40px 0;
    }

    .form-container {
        padding: 25px 20px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group select {
        font-size: 14px;
        padding: 10px 12px;
    }

    .submit-button {
        font-size: 16px;
        padding: 15px 40px;
        width: 100%;
    }

    .form-section {
        padding: 50px 15px;
    }
}

@media (max-width: 480px) {
    .form-group label {
        font-size: 13px;
    }

    .required-badge,
    .optional-badge {
        font-size: 11px;
        padding: 2px 8px;
    }
}