/* ===== 改善されたcall.css ===== */

/* ベースレイアウト */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*--------------------------------
ヒーローセクション
--------------------------------*/
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #003E5E 0%, #005A9E 50%, #80C0FF 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 80px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/call.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s forwards 0.2s;
}

.hero h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    margin: 0 0 30px 0;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s forwards 0.4s;
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s forwards 0.6s;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    max-width: 500px;
}

/* テクノロジー要素 */
.tech-element {
    position: absolute;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    will-change: transform;
    transform-origin: center center;
}

.tech-element:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.tech-1 {
    top: 50px;
    left: 50px;
    width: 120px;
    height: 120px;
    font-size: 3rem;
}

.tech-2 {
    top: 80px;
    right: 80px;
    width: 100px;
    height: 100px;
    font-size: 2.8rem;
}

.tech-3 {
    top: 200px;
    left: 20px;
    width: 110px;
    height: 110px;
    font-size: 2.9rem;
}

.tech-4 {
    bottom: 100px;
    right: 50px;
    width: 95px;
    height: 95px;
    font-size: 2.6rem;
}

.tech-5 {
    top: calc(50% - 60px);
    left: calc(50% - 60px);
    width: 120px;
    height: 120px;
    font-size: 3.2rem;
    background: rgba(255, 255, 255, 0.2);
}

/* アニメーション */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-description::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #003E5E, #80C0FF);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ===== アニメーション ===== */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #003E5E;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
    border-radius: 2px;
}

/* ===== 特長セクション ===== */
.features {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.features h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #003E5E;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
    border-radius: 2px;
}

.features {
    margin: 60px 30px;
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 62, 94, 0.1);
    border: 1px solid rgba(0, 90, 158, 0.1);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
}

.features p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    text-align: left;
}

/* ===== 支援実績・対応領域セクション ===== */
.track-record {
    padding: 5rem 0;
    background: #ffffff;
}

.track-record h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #003E5E;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.track-record h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
    border-radius: 2px;
}

.track-record {
    margin: 60px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 62, 94, 0.1);
    border: 1px solid rgba(0, 90, 158, 0.1);
    position: relative;
    overflow: hidden;
}

.track-record::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
}

.track-record p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 2rem;
    text-align: center;
}

.track-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.track-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 62, 94, 0.08);
    border: 1px solid rgba(0, 90, 158, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.track-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.track-item:hover::before {
    transform: scaleX(1);
}

.track-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 62, 94, 0.15);
}

.track-item h3 {
    font-size: 1.4rem;
    color: #003E5E;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.track-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 90, 158, 0.1);
    font-size: 1rem;
    line-height: 1.6;
    color: #666666;
    position: relative;
    padding-left: 1.5rem;
}

.track-item li:last-child {
    border-bottom: none;
}

.track-item li::before {
    content: '•';
    color: #005A9E;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ===== サポート体制・運営方針セクション ===== */
.support-system {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.support-system h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #003E5E;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.support-system h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
    border-radius: 2px;
}

.support-system {
    margin: 60px 30px;
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 62, 94, 0.1);
    border: 1px solid rgba(0, 90, 158, 0.1);
    position: relative;
    overflow: hidden;
}

.support-system::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
}

.support-system ol {
    counter-reset: step;
    margin: 0;
    padding: 0;
    list-style: none;
}

.support-system li {
    position: relative;
    margin: 2rem 0;
    padding: 2rem;
    padding-left: 5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    font-size: 1rem;
    line-height: 1.8;
    color: #333333;
    transition: all 0.3s ease;
}

.support-system li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 62, 94, 0.1);
}

.support-system li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: linear-gradient(135deg, #005A9E, #80C0FF);
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 90, 158, 0.3);
}

.support-system strong {
    color: #003E5E;
    font-weight: 600;
}

/* ===== さらに詳しく知りたい方へセクション ===== */
.more-info {
    padding: 5rem 0;
    background: #ffffff;
}

.more-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #003E5E;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.more-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
    border-radius: 2px;
}

.more-info {
    margin: 60px 30px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 62, 94, 0.1);
    border: 1px solid rgba(0, 90, 158, 0.1);
    position: relative;
    overflow: hidden;
}

.more-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
}

.more-info p {
    text-align: left;
    padding-left: 25%;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 2rem;
}

.more-info-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #005A9E, #80C0FF);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 90, 158, 0.3);
}

.more-info-link a::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.6s ease;
}

.more-info-link a:hover::before {
    left: 100%;
}

.more-info-link a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 90, 158, 0.4);
}

/* ===== 暮らしの窓口事業セクション ===== */
.living-support {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.living-support h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #003E5E;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.living-support h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
    border-radius: 2px;
}

.living-support {
    margin: 60px 30px;
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 62, 94, 0.1);
    border: 1px solid rgba(0, 90, 158, 0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.living-support::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005A9E, #80C0FF);
}

.living-support p {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 2rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.image-grid img {
    width: 50%;
    border-radius: 15px;
    margin: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 62, 94, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-grid img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 62, 94, 0.2);
}

/* ===== アニメーション ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== フェードインエフェクト ===== */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: left;
        padding: 60px 20px;
        min-height: 80vh;
    }

    .hero::before {
        background-attachment: scroll;
    }

    .hero-content {
        flex-direction: column;
        max-width: 100%;
        gap: 40px;
        align-items: center;
        padding: 20px;
    }

    .hero-text {
        order: 1;
        max-width: 100%;
        margin-bottom: 0;
        padding: 0 10px;
    }

    .hero-visual {
        order: 2;
        max-width: 100%;
        height: auto;
        min-height: 200px;
        margin-top: 20px;
        position: relative;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .tech-element {
        position: static;
        margin: 10px auto;
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .tech-1, .tech-2, .tech-3, .tech-4, .tech-5 {
        position: static;
        margin: 10px auto;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .call-center-visualization {
        width: 300px;
        height: 300px;
    }

    .call-element {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .element-1 {
        margin-left: -30px; /* width/2 */
    }

    .element-2 {
        margin-top: -30px; /* height/2 */
    }

    .element-3 {
        margin-top: -30px; /* height/2 */
    }

    .element-4 {
        margin-left: -30px; /* width/2 */
    }

    .element-5 {
        margin-right: -30px; /* width/2 */
    }

    .track-record-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features,
    .track-record,
    .support-system,
    .more-info,
    .living-support {
        margin: 40px 20px;
        padding: 2rem;
    }

    .support-system li {
        padding-left: 4rem;
    }

    .support-system li::before {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1rem;
        left: 1rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

    .features,
    .track-record,
    .support-system,
    .more-info,
    .living-support {
        margin: 30px 15px;
        padding: 1.5rem;
    }

    .support-system li {
        padding: 1.5rem;
        padding-left: 3.5rem;
    }

    .support-system li::before {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
        left: 0.8rem;
    }
}

/* ===== アクセシビリティ改善 ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* フォーカス表示を無効化 */
.btn:focus,
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .hero {
        background: #000000;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-description {
        color: #ffffff;
    }
    
    .section-title {
        color: #000000;
    }
    
    .track-item,
    .features,
    .support-system,
    .more-info,
    .living-support {
        border: 2px solid #000000;
    }
}

@media (max-width: 768px) {
    .hero h1,
    .hero h2,
    .hero p {
        opacity: 1;
        transform: none;
        animation: none;
    }
}