.support-sidebar {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
    margin-top: 0;
}

.support-sidebar h3 {
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 1.5rem;
}

.support-profile {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.support-profile:hover {
    transform: translateY(-2px);
}

.support-profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.support-profile h4 {
    margin: 0;
    color: #2d3748;
    font-size: 18px;
}

.support-profile .title {
    color: #718096;
    font-size: 14px;
    margin: 5px 0 10px;
}

.support-profile p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.contact-info h4 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-info ul li {
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 14px;
}

.contact-info i {
    color: #00A0FF;
    margin-right: 8px;
    width: 20px;
}

@media (max-width: 768px) {
    .support-sidebar {
        margin-top: 30px;
        position: static;
    }
}

.form-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 0!important;
    max-width: 100%!important;
}

.form-container {
    padding: 30px 30px 0 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
}

.required-badge {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 12px;
}

.optional-badge {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 12px;
}

.form-control {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #00A0FF;
    box-shadow: 0 0 0 3px rgba(0, 160, 255, 0.1);
}

.btn-primary {
    background: #00A0FF;
    border: none;
    padding: 18px 48px!important;
    font-size: 17px !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px!important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 160, 255, 0.3)!important;
}

#Submit1 {
    display: block !important;
    margin: 2rem auto !important;
    min-width: 240px !important;
    text-align: center !important;
}

.btn-primary:hover {
    background: #0090ea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 160, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 160, 255, 0.2);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: translateX(-100%);
    transition: 0.6s;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.text-danger {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-size: cover;
    margin-bottom: 3rem;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
}

.hero-banner-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero-banner-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

@media screen and (max-width: 768px) {
    .hero-banner {
        height: 200px;
    }

    .hero-banner-title {
        font-size: 1.8rem;
    }

    .hero-banner-subtitle {
        font-size: 1rem;
    }
}

.form-group.text-right {
    text-align: center !important;
    margin-top: 2rem;
}

/* Radio buttons styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.radio-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.radio-item input[type="radio"]:checked {
    border-color: #00A0FF;
}

.radio-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.75rem;
    height: 0.75rem;
    background: #00A0FF;
    border-radius: 50%;
    animation: radioCheck 0.2s ease;
}

.radio-item label {
    font-size: 0.95rem;
    color: #2d3748;
    cursor: pointer;
    user-select: none;
    font-weight: 500!important;
    margin-bottom: 0!important;

}


@keyframes radioCheck {
    from { transform: translate(-50%, -50%) scale(0); }
    to { transform: translate(-50%, -50%) scale(1); }
}

.message-examples {
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    font-size: 1rem;
    border-bottom: 2px solid rgba(0, 160, 255, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
}

.example-list {
    list-style: none;
    padding-left: 0.5rem;
    margin: 0.75rem 0 0;
}

.example-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    color: #4A5568;
}

.example-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: #00A0FF;
}

.form-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    position: relative;
}

.form-header h1 {
    color: #2D3748;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.form-header p {
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 0;
}

.form-header a {
    color: #00A0FF;
    text-decoration: none;
    font-weight: 500;
}

.form-header a:hover {
    text-decoration: underline;
}

/* Disclaimer 用スタイル */
.disclaimer {
    margin-bottom: 1rem;
    text-align: left;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Popular Resources Section */
.resources-section {
    padding: 4rem 0;
    background: #F8FAFC;
    width: 100%;
}

#popular-resources {
    display: flex;
    justify-content: center;
}

.resources-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

#popular-resources .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Row container for resource tiles */
.resources-section .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

/* Column container for resource tiles */
.resources-section .col-sm-4 {
    flex: 0 0 calc(33.333% - 20px);
    display: flex;
    padding-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 768px) {
    .resources-section .col-sm-4 {
        flex: 0 0 100%;
        margin-bottom: 0;
    }

    .resources-section .row {
        gap: 20px;
    }

    .resources-section .container {
        padding: 0 15px;
    }
}

.resources-section .resource-tile {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.resources-section .resource-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.resources-section .resource-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.resources-section .resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.resources-section .resource-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #00A0FF;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1;
}

.resources-section .resource-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resources-section .resource-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2D3748;
    /* タイトルの高さを2行に制限 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    line-height: 1.4;
}

.resources-section .resource-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4A5568;
    margin-bottom: 1rem;
    /* 説明文の高さを3行に制限 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.resources-section .resource-link {
    margin-top: auto;
    font-weight: 600;
    color: #00A0FF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
