/* ===== プロフェッショナルなデザインとアクセシビリティを考慮したmain要素のスタイル ===== */

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクションタイトル */
.section-title {
    position: relative;
    display: inline-block;
    margin: 0 auto 60px;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===== ヒーローセクション ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    text-transform: uppercase;
}

.hero-title-container {
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.typing-text {
    display: inline-block;
    position: relative;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin-bottom: 10px;
}

.scroll-text {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== 事業案内セクション ===== */
.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-card:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.service-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.service-content {
    padding: 30px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 25px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.service-link:hover::before {
    left: 100%;
}

.service-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 62, 94, 0.3);
}

.service-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== 最新情報セクション ===== */
.news-section {
    padding: 100px 0;
    background: var(--background-color);
}

.news-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-button {
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-button:hover::before,
.filter-button.active::before {
    left: 0;
}

.filter-button:hover,
.filter-button.active {
    color: white;
}

.filter-button:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid var(--accent-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.news-card:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.news-category {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: block;
}

.news-summary {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.news-link::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.news-link:hover::after {
    transform: translateX(5px);
}

.news-link:hover {
    color: var(--primary-color);
}

.news-link:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.news-more {
    text-align: left;
}

.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: white;
}

.btn-secondary:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== 企業情報セクション ===== */
.company-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

.company-info {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.company-details {
    margin: 0;
}

.company-item {
    display: flex;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.company-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.company-item dt {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 120px;
    margin-right: 20px;
    font-size: 1.1rem;
}

.company-item dd {
    flex: 1;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

.company-item ul {
    margin: 0;
    padding-left: 20px;
}

.company-item li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.company-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.company-map iframe {
    border-radius: 20px;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.company-map:hover iframe {
    filter: grayscale(0%);
}

.access-info {
    margin-top: 40px;
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.access-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.access-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

/* ===== お問い合わせセクション ===== */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.contact-section .section-title {
    color: white;
}

.contact-section .section-title::after {
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.7));
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-description {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 18px 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.btn-primary:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 1024px) {
    .company-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .services-section,
    .news-section,
    .company-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .news-filter {
        gap: 10px;
    }
    
    .filter-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .company-item {
        flex-direction: column;
    }
    
    .company-item dt {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .company-info {
        padding: 25px;
    }
    
    .access-info {
        padding: 20px;
    }
    
    .contact-description {
        font-size: 1.1rem;
    }
    
    .btn-primary {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .news-card {
        padding: 20px;
    }
    
    .company-info {
        padding: 20px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
}

/* ===== アクセシビリティ強化 ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid var(--primary-color);
    }
    
    .news-card {
        border: 2px solid var(--primary-color);
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* 印刷スタイル */
@media print {
    .hero-video,
    .scroll-indicator,
    .service-icon,
    .btn-primary,
    .btn-secondary,
    .service-link,
    .news-link {
        display: none;
    }
    
    .hero-section {
        height: auto;
        min-height: auto;
        padding: 40px 0;
        background: white;
        color: black;
    }
    
    .contact-section {
        background: white;
        color: black;
    }
    
    .section-title {
        color: black;
    }
}

