/* What Section */
.what-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, 
        #ffffff 50%, 
        #f4f7f5 50%, 
        #f4f7f5 55%, 
        #eaf1ec 55%, 
        #eaf1ec 65%, 
        #e0ebe3 65%, 
        #e0ebe3 75%, 
        #dce3dd 75%
    );
}

.what-container {
    background-color: #ffffff;
    border-radius: 10px 10px 0 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.what-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-right: 4px solid #11B981;
    border-bottom: 4px solid #11B981;
    pointer-events: none;
}

.what-header {
    background-color: #11B981;
    padding: 20px 0;
    text-align: center;
}

.what-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.what-content {
    display: grid;
    grid-template-columns: 4.5fr 5.5fr;
    gap: 60px;
    padding: 60px;
    align-items: end;
}

.what-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.what-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.what-text {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.what-subtitle {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subtitle-line1 {
    font-size: 32px;
    font-weight: 600;
    color: #21AEB1;
    margin: 0;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    transition: color 0ms 1200ms;
}

.subtitle-line1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #21AEB1;
    transform: translateY(100%);
}

.subtitle-line2 {
    font-size: 42px;
    font-weight: 700;
    color: #21AEB1;
    margin: 0;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    transition: color 0ms 1500ms;
}

.subtitle-line2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #21AEB1;
    transform: translateY(100%);
}

.subtitle-line1.is-animated {
    color: #21AEB1;
}

.subtitle-line1.is-animated::after {
    animation: mask-bg 1.2s cubic-bezier(0.8, 0, 0.17, 1);
}

.subtitle-line2.is-animated {
    color: #21AEB1;
}

.subtitle-line2.is-animated::after {
    animation: mask-bg 1.2s cubic-bezier(0.8, 0, 0.17, 1);
}

.what-description {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.what-description p {
    font-size: 18px;
    color: #212121;
    margin: 0;
    line-height: 1.7;
    font-weight: 400;
}

.what-description .kyocho {
    color: #21AEB1;
    font-weight: 600;
}

/* Nayami Section */
.nayami-section {
    padding: 80px 0;
    background-color: #d0d9d2;
    text-align: center;
}

.nayami-header {
    position: relative;
    margin-bottom: 60px;
}

.nayami-title {
    font-size: 42px;
    font-weight: 700;
    color: #212121;
    margin: 0 0 20px 0;
    position: relative;
    transform: translateX(-50px);
}

.nayami-image {
    position: absolute;
    top: -54px;
    right: calc(10% + 80px);
    width: 120px;
    height: auto;
    z-index: 10;
}

.nayami-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: relative;
}

.nayami-item {
    background-color: #ffffff;
    border-radius: 9999px;
    padding: 30px 40px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.nayami-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.nayami-item::before,
.nayami-item::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Left side circles */
.nayami-item::before {
    left: -125px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 
        50px 0 0 7.5px rgba(255, 255, 255, 0.75),
        105px 0 0 15px rgba(255, 255, 255, 1);
    animation: floatSmall 3s ease-in-out infinite, floatMedium 3s ease-in-out infinite 0.5s, floatLarge 3s ease-in-out infinite 1s;
}

/* Right side circles */
.nayami-item::after {
    right: -135px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 
        -50px 0 0 7.5px rgba(255, 255, 255, 0.75),
        -105px 0 0 15px rgba(255, 255, 255, 1);
    animation: floatSmallRight 3s ease-in-out infinite 0.3s, floatMediumRight 3s ease-in-out infinite 0.8s, floatLargeRight 3s ease-in-out infinite 1.3s;
}

.nayami-item p {
    font-size: 23px;
    color: #212121;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
    text-align: left;
    margin-left: 80px;
}

.highlight-text {
    font-weight: 700;
    font-size: 1.3em;
    color: #dc2626;
}

/* Kaiketsu Section */
.kaiketsu-section {
    padding: 80px 0 180px 0;
    background-color: #ffffff;
    text-align: center;
}

.kaiketsu-header {
    position: relative;
    margin-bottom: 80px;
}

.kaiketsu-title {
    font-size: 42px;
    font-weight: 700;
    color: #212121;
    margin: 0 0 20px 0;
    position: relative;
    transform: translateX(-50px);
}

.kaiketsu-image {
    position: absolute;
    top: -110px;
    right: calc(10% + 40px);
    width: 150px;
    height: auto;
    z-index: 10;
}

.kaiketsu-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    text-align: left;
}

.kaiketsu-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.kaiketsu-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.kaiketsu-item.reverse {
    direction: rtl;
}

.kaiketsu-item.reverse > * {
    direction: ltr;
}

.kaiketsu-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kaiketsu-subtitle {
    font-size: 36px;
    font-weight: 700;
    color: #2EB09D;
    margin: 0;
    line-height: 1.3;
}

.kaiketsu-description {
    font-size: 20px;
    color: #212121;
    margin: 0;
    line-height: 1.7;
    font-weight: 400;
}

.kaiketsu-img {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.kaiketsu-item.reverse .kaiketsu-img {
    justify-content: flex-end;
}

.kaiketsu-img img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Why LINE Section */
.why-line-section {
    padding: 80px 0;
    position: relative;
    background-image: url('img/light_02.png');
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
}

.why-line-header {
    text-align: center;
    margin-bottom: 120px;
    margin-top: -110px;
}

.why-line-title-bubble {
    display: inline-block;
    background-color: #11B981;
    border-radius: 20px;
    padding: 15px 30px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.why-line-title-bubble.bounce-in {
    opacity: 1;
    transform: translateY(0);
    animation: bounceSlideIn 1.2s ease-out;
}

.why-line-title-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #11B981;
}

.why-line-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.why-line-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-top: -60px;
}

.why-line-subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.why-line-subtitle-wrapper {
    position: relative;
    display: inline-block;
}

.why-line-subtitle {
    font-size: 36px;
    font-weight: 700;
    color: #212121;
    margin: 0;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.why-line-subtitle-marker {
    position: absolute;
    bottom: -8px;
    left: -50px;
    right: -75px;
    height: 20px;
    background-color: #ffe35b;
    z-index: 1;
}

.why-line-subtitle-image {
    width: 51px;
    height: auto;
    flex-shrink: 0;
    position: relative;
    transform: translateX(-22px) translateY(-10px);
    z-index: 3;
}

.why-line-subtitle-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.why-line-description {
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.why-line-description p {
    font-size: 20px;
    color: #212121;
    margin: 0;
    line-height: 1.7;
    font-weight: 400;
}

.why-line-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.why-line-image-placeholder {
    width: 560px;
    height: 380px;
    background-color: rgba(255, 255, 255, 0.0);
    border: 2px dashed rgba(255, 255, 255, 0.0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.why-line-image-placeholder.fade-in {
    opacity: 1;
    transform: translateY(0);
}

img.why-image {
    width: 100%;
}

/* Service Content Section */
.service-content-section {
    padding: 120px 0 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.service-content-header {
    position: relative;
    margin-bottom: 80px;
}

.service-content-title {
    font-size: 42px;
    font-weight: 700;
    color: #212121;
    margin: 0 0 20px 0;
    position: relative;
    transform: translateX(-50px);
}

.service-content-image {
    position: absolute;
    top: -60px;
    right: calc(10% + 90px);
    width: 119px;
    height: auto;
    z-index: 10;
}

.service-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    text-align: left;
}

.service-content-item {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
    margin-top: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-content-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.service-content-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-right: 4px solid #11B981;
    border-bottom: 4px solid #11B981;
    pointer-events: none;
}

.service-content-number {
    position: absolute;
    top: -63px;
    left: 20px;
    font-size: 54px;
    font-weight: 700;
    color: #11B981;
    z-index: 10;
}

.service-content-subtitle {
    background-color: #11B981;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    padding: 20px 20px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    border-radius: 15px 15px 0 0;
}

.service-content-body {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.service-content-icon {
    max-width: 300px;
    display: flex;
    padding-bottom: 30px;
    align-items: center;
    justify-content: center;
}

.service-content-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.service-content-description {
    font-size: 16px;
    color: #212121;
    line-height: 1.7;
    text-align: center;
    margin: 0;
}