/* リセット・基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.nowrap {
    white-space: nowrap;
}

/* SECTION 1: ヒーローセクション */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('images/digital-workplace.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 40px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(32px, 8vw, 56px);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title .highlight {
    color: #ff6b35;
    background: white;
    padding: 5px 20px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.hero-subtitle {
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-note {
    font-size: clamp(12px, 3vw, 14px);
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.cta-button:hover {
    background: #ff5520;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

/* SECTION 2: 制作実績 */
.portfolio {
    padding: 80px 20px;
    background: white;
}

.section-title {
    text-align: center;
    font-size: clamp(24px, 6vw, 36px);
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.portfolio-description {
    text-align: center;
    font-size: clamp(14px, 3.5vw, 18px);
    color: #666;
    margin-bottom: 10px;
}

.section-note {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 50px;
}

/* メイングリッド（3列×2行） */
.portfolio-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.portfolio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .card-photo {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-category {
    color: white;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    background: rgba(255, 107, 53, 0.6);
    border-radius: 8px;
}

/* オプション機能一覧 */
.options-section {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
}

.options-title {
    text-align: center;
    font-size: clamp(18px, 4.5vw, 24px);
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.option-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.option-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.option-text {
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 600;
    color: #333;
}

/* PDF埋め込みセクション */
.pdf-embed-section {
    margin-top: 60px;
    text-align: center;
}

.pdf-embed-title {
    font-size: clamp(18px, 4.5vw, 24px);
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.pdf-embed-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.pdf-embed-frame {
    width: 100%;
    height: 600px;
    border: none;
}

/* モバイル用PDF表示切り替え */
.pdf-mobile {
    display: none;
}

.pdf-view-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.pdf-view-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* SECTION 3: 無料の仕組み */
.reason {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.reason::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/cost-calculation.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.reason .container {
    position: relative;
    z-index: 1;
}

.reason-content {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-size: clamp(14px, 3.5vw, 18px);
    line-height: 1.8;
}

.reason-content p {
    margin-bottom: 20px;
}

.reason-highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a3 100%);
    border-left: 5px solid #ff6b35;
    padding: 25px 30px;
    margin: 30px 0;
    font-weight: 700;
    font-size: clamp(15px, 3.8vw, 18px);
    border-radius: 8px;
    line-height: 2;
}

/* 提携サービスロゴ */
.partner-section {
    margin-top: 50px;
    text-align: center;
}

.partner-title {
    font-size: clamp(14px, 3.5vw, 16px);
    color: #666;
    margin-bottom: 25px;
    font-weight: 600;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.partner-logo {
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.partner-logo img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.reason-cta {
    margin-top: 50px;
    text-align: center;
}

.reason-cta .cta-button {
    display: inline-block;
}

/* SECTION 4: よくある質問 */
.faq-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: clamp(15px, 3.8vw, 17px);
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.faq-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: #667eea;
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: clamp(14px, 3.5vw, 15px);
    color: #555;
    line-height: 1.8;
}

.faq-a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: #ff6b35;
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

/* SECTION 5: フォーム */
.form-section {
    padding: 80px 20px;
    background: white;
}

.diagnostic-form {
    max-width: 700px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.question-label {
    display: block;
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-label {
    flex: 1;
    min-width: 120px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-label:hover {
    border-color: #ff6b35;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 700;
}

.radio-label input[type="radio"] {
    accent-color: #ff6b35;
}

/* チェックボックスグループ */
.checkbox-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.checkbox-label {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-label:hover {
    border-color: #ff6b35;
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 700;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #ff6b35;
}

.checkbox-none {
    background: #f5f5f5;
}

.other-input {
    margin-top: 15px;
}

.other-input input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.other-input input:focus {
    outline: none;
    border-color: #ff6b35;
}

/* 診断結果ボックス */
.result-box {
    margin: 30px 0;
    padding: 30px;
    background: white;
    border-radius: 12px;
    border: 3px solid #ff6b35;
    animation: fadeIn 0.5s ease;
}

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

.result-content h3 {
    font-size: clamp(20px, 5vw, 26px);
    color: #ff6b35;
    margin-bottom: 15px;
}

.result-content p {
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: 1.7;
    color: #555;
}

/* 入力フォーム */
.input-section {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

.form-subtitle {
    font-size: clamp(18px, 4.5vw, 22px);
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    font-size: clamp(14px, 3.5vw, 16px);
}

.required {
    color: #ff6b35;
    font-size: 12px;
    margin-left: 5px;
}

.optional {
    color: #888;
    font-size: 12px;
    margin-left: 5px;
}

.same-as-checkbox {
    margin-bottom: 10px;
}

.same-as-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.same-as-label input[type="checkbox"] {
    width: auto;
    accent-color: #ff6b35;
}

.form-hint {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    font-weight: 400;
}

.datetime-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.datetime-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.datetime-label {
    font-size: 14px;
    color: #666;
    min-width: 60px;
    font-weight: 600;
}

.datetime-row input[type="date"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.datetime-row input[type="date"]:focus {
    outline: none;
    border-color: #ff6b35;
}

.datetime-row select {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    min-width: 120px;
    cursor: pointer;
}

.datetime-row select:focus {
    outline: none;
    border-color: #ff6b35;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
}

.submit-button {
    width: 100%;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 20px;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-button:hover {
    background: #ff5520;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    margin: 20px;
    text-align: center;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    font-size: clamp(20px, 5vw, 28px);
    color: #ff6b35;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: 1.7;
    margin-bottom: 30px;
    color: #555;
}

.modal-button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background: #ff5520;
    transform: translateY(-2px);
}

/* LINE QRコードセクション */
.line-qr-section {
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.line-qr-text {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.line-qr-container {
    display: inline-block;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #06C755;
}

.line-qr-image {
    width: 200px;
    height: 200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.line-qr-note {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* 画像が未配置の場合のフォールバック */
.portfolio-photo,
.extra-photo {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 80px 15px;
    }

    .hero-title {
        font-size: clamp(26px, 7vw, 40px);
        margin-bottom: 15px;
    }

    .hero-title .highlight {
        padding: 4px 15px;
        font-size: clamp(28px, 8vw, 44px);
    }

    .hero-subtitle {
        font-size: clamp(16px, 4vw, 20px);
        margin-bottom: 10px;
    }

    .hero-note {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .cta-button {
        padding: 18px 35px;
        font-size: 16px;
        width: 100%;
        max-width: 320px;
    }

    .portfolio {
        padding: 50px 15px;
    }

    .section-title {
        font-size: clamp(20px, 5.5vw, 28px);
        margin-bottom: 10px;
    }

    .section-note {
        margin-bottom: 30px;
    }

    .portfolio-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .portfolio-card-image {
        height: 140px;
    }

    .card-category {
        font-size: 14px;
        padding: 6px 12px;
    }

    .options-section {
        margin-top: 35px;
        padding: 25px 18px;
    }

    .options-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .option-item {
        padding: 12px 14px;
    }

    .option-icon {
        font-size: 18px;
    }

    .option-text {
        font-size: 12px;
    }

    .pdf-embed-section {
        margin-top: 40px;
    }

    .pdf-embed-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    /* モバイルではiframeを非表示、ボタンを表示 */
    .pdf-desktop {
        display: none;
    }

    .pdf-mobile {
        display: block;
    }

    .pdf-view-button {
        padding: 16px 35px;
        font-size: 15px;
    }

    .reason {
        padding: 50px 15px;
    }

    .reason-content {
        padding: 25px 20px;
    }

    .reason-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .reason-highlight {
        padding: 20px;
        margin: 20px 0;
        font-size: 14px;
        line-height: 1.8;
    }

    .partner-section {
        margin-top: 35px;
    }

    .partner-title {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .partner-logos {
        gap: 15px;
    }

    .partner-logo {
        padding: 12px 18px;
    }

    .partner-logo img {
        height: 30px;
        max-width: 90px;
    }

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

    .faq-item {
        padding: 20px;
        margin-bottom: 12px;
    }

    .faq-question {
        font-size: 15px;
        gap: 10px;
        margin-bottom: 12px;
    }

    .faq-q,
    .faq-a {
        min-width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .faq-answer {
        font-size: 14px;
        gap: 10px;
    }

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

    .diagnostic-form {
        padding: 25px 18px;
        border-radius: 12px;
    }

    .question-group {
        margin-bottom: 25px;
    }

    .question-label {
        font-size: 15px;
        margin-bottom: 12px;
    }

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

    .radio-label {
        min-width: 100%;
        padding: 14px 18px;
        font-size: 15px;
    }

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

    .checkbox-label {
        width: 100%;
        padding: 14px 18px;
        font-size: 15px;
    }

    .result-box {
        padding: 20px;
        margin: 25px 0;
    }

    .result-content h3 {
        font-size: 20px;
    }

    .input-section {
        margin-top: 30px;
    }

    .form-subtitle {
        font-size: 18px;
        margin-bottom: 25px;
    }

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

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

    .form-group input {
        padding: 14px;
        font-size: 16px;
    }

    .same-as-label {
        font-size: 13px;
    }

    .form-hint {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .datetime-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .datetime-label {
        min-width: auto;
    }

    .datetime-row input[type="date"] {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

    .datetime-row select {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

    .submit-button {
        padding: 18px;
        font-size: 16px;
        margin-top: 15px;
    }

    .modal-content {
        padding: 30px 25px;
        margin: 15px;
    }

    .modal-content h3 {
        font-size: 22px;
    }

    .modal-button {
        padding: 14px 35px;
        font-size: 16px;
        width: 100%;
    }

    .line-qr-section {
        padding: 25px 18px;
        margin-top: 40px;
    }

    .line-qr-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .line-qr-container {
        padding: 15px;
    }

    .line-qr-image {
        width: 160px;
        height: 160px;
    }

    .line-qr-note {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 25px 12px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-title .highlight {
        font-size: 28px;
        padding: 3px 12px;
    }

    .cta-button {
        padding: 16px 30px;
        font-size: 15px;
    }

    .portfolio-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .portfolio-card-image {
        height: 120px;
    }

    .card-category {
        font-size: 12px;
        padding: 5px 10px;
    }

    .options-section {
        padding: 20px 15px;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .option-item {
        padding: 10px 12px;
    }

    .option-icon {
        font-size: 16px;
    }

    .option-text {
        font-size: 11px;
    }

    .reason-content {
        padding: 20px 15px;
    }

    .diagnostic-form {
        padding: 20px 15px;
    }

    .line-qr-image {
        width: 140px;
        height: 140px;
    }
}

