.about-worry {
    position: relative;
    background-color: #f2f1ee;
    z-index: 20;
}

.about-divider-bg {
    position: absolute;
    top: -30px;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f2f1ee;
    z-index: 1;
    transform: skewY(-4deg);
    transform-origin: top left;
}

.about-worry-content {
    position: relative;
    z-index: 1;
    max-width: 950px;
    margin: 0 auto;
    padding: 80px 20px 180px;
    text-align: center;
}

.about-worry-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.about-worry-header.show {
    opacity: 1;
    transform: translateY(0);
}

.about-worry-header h2 {
    font-size: 2.2em;
    font-weight: 900;
    color: #333;
    margin: 0;
    margin-bottom: 30px;
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
}

.header-icon {
    flex: 0.8;
    display: flex;
    align-items: flex-end;
}

.header-icon.left {
    justify-content: flex-start;
}

.header-icon.right {
    justify-content: flex-end;
}

.header-icon img {
    height: 120px;
    max-width: 100%;
}

.animated-worry {
    display: inline-block;
    position: relative;
}

/* 各文字（お悩み） */
.worry-char {
    display: inline-block;
    position: relative;
    font-size: 1em;
    letter-spacing: normal;
}

/* 各文字の強調点（ドット） */
.worry-char::before {
    content: '';
    position: absolute;
    top: -0.5em;
    left: 50%;
    transform: translateX(-50%);
    width: 0.3em;
    height: 0.3em;
    border-radius: 50%;
    background-color: #5e94ff;
    opacity: 0;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.worry-char.show-dot::before {
    opacity: 1;
    visibility: visible;
}

/* 疑問符 */
.question-mark {
    display: inline-block;
    font-size: 1.8em;
    font-weight: bold;
    color: #5e94ff;
    line-height: 1;
    margin-left: 4px;
    user-select: none;
    vertical-align: -0.1em;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s ease-out;
}

.question-mark.animate-question {
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        visibility: hidden;
    }

    to {
        opacity: 1;
        visibility: visible;
    }
}

/* 疑問符を回転させる */
.question-mark.rotate-question {
    transform: rotate(15deg);
}

.about-worry-list-container {
    background-color: #f9f9f9;
    padding: 70px;
    border-radius: 18px;
    box-shadow: 6px 6px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(20px);
}

/* リストコンテナが表示される */
.about-worry-list-container.show-list-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.about-worry-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-worry-list li {
    position: relative;
    padding-left: 32px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* チェックボックス風の枠 */
.about-worry-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 20px;
    height: 20px;
    border: 2px solid #333333;
    background-color: #fff;
    box-sizing: border-box;
    border-radius: 4px;
    z-index: 1;
}

/* チェックマーク（✔） */
.about-worry-list li::after {
    content: "✔";
    position: absolute;
    left: 3px;
    top: 0em;
    font-size: 18px;
    color: #333333;
    z-index: 1;
}

.list-text-content {
    display: inline-block;
    position: relative;
    vertical-align: top;
    background-color: #f9f9f9;
}

/* マスク効果のための擬似要素 */
.list-text-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    transform-origin: top;
    transform: scaleY(1);
    transition: transform 0.0s linear;
    z-index: 2;
}

.list-text-content.reveal-mask::before {
    transform: scaleY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* リスト項目が表示される */
.about-worry-list li.show-list-item {
    opacity: 1;
    transform: translateY(0);
}

.list-bottom-icon {
    display: none;
}

@media screen and (max-width: 1024px) {
    .about-worry-content {
        padding: 60px 50px 120px;
        max-width: 900px;
    }

    .about-worry-header {
        max-width: 800px;
        padding: 0 50px;
        display: flex;
        justify-content: center;
    }

    .about-worry-header h2 {
        font-size: 2.0em;
        margin-bottom: 25px;
    }

    .header-icon img {
        height: 100px;
    }

    .about-worry-list-container {
        padding: 50px;
        max-width: 800px;
    }

    .about-worry-list li {
        font-size: 1.05em;
        margin-bottom: 12px;
    }

    .about-worry-list li::before {
        width: 18px;
        height: 18px;
        top: 0.2em;
    }

    .about-worry-list li::after {
        font-size: 16px;
        left: 3px;
        top: 0em;
    }
}

@media screen and (max-width: 768px) {
    .about-worry-content {
        padding: 50px 15px 100px;
        max-width: 100%;
    }

    .about-worry-header h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
        white-space: normal;
    }

    .header-icon {
        flex: none;
    }

    .header-icon.left {
        justify-content: center;
    }

    .header-icon.right {
        justify-content: center;
    }

    .header-icon img {
        height: 80px;
    }

    .question-mark {
        font-size: 1.6em;
    }

    .about-worry-list-container {
        padding: 40px 30px;
        max-width: 700px;
        border-radius: 12px;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
    }

    .about-worry-list li {
        font-size: 1em;
        padding-left: 28px;
        margin-bottom: 10px;
    }

    .about-worry-list li::before {
        width: 16px;
        height: 16px;
        top: 0.2em;
    }

    .about-worry-list li::after {
        font-size: 14px;
        left: 2px;
        top: 0em;
    }
}

@media screen and (max-width: 480px) {
    .about-worry-content {
        padding: 40px 20px 30px;
    }

    .about-worry-header {
        padding: 0 10px;
    }

    .about-worry-header h2 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    .header-icon img {
        height: 50px;
    }

    .question-mark {
        font-size: 1.4em;
    }

    .about-worry-list-container {
        padding: 30px 20px;
        border-radius: 8px;
    }

    .about-worry-list li {
        font-size: 0.95em;
        padding-left: 25px;
        margin-bottom: 8px;
    }

    .about-worry-list li::before {
        width: 14px;
        height: 14px;
        top: 0.2em;
        border-width: 1.5px;
    }

    .about-worry-list li::after {
        font-size: 12px;
        left: 2px;
        top: 0em;
    }
}

@media screen and (max-width: 380px) {
    .about-worry-header {
        padding: 0 20px;
    }

    .about-worry-header h2 {
        font-size: 1.1em;
    }

    .header-icon {
        display: none;
    }

    .list-bottom-icon {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-end;
        position: absolute;
        right: 10px;
        bottom: -30px;
        z-index: 3;
    }

    .list-bottom-icon img {
        height: 70px;
        width: auto;
    }
}