* {
    margin: 0 ;
    font-family: Arial, Helvetica, sans-serif;
}
p {
    color: white;
    font-size: 18px;
}
h1 {
    font-size: 42px;
}
h2{
    font-size: 36px;
    margin: 15px auto;
    color: white;
}
h3 {
    color: white;
    padding: 4px 0;
}
a{
    text-decoration: none;
    color: #23365d;
    font-size: 18px;
}
body {
    width: 100%;
    margin: 0 auto;
    animation: opacity ease-in .6s;
}
@keyframes opacity {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.background-color {
    background: linear-gradient(to bottom, #2b7a93 0%, #ffffff 100%);
    width: 90vw;
    max-width: 1440px;
    margin: 0 auto;
}
span {
    color: white;
    font-weight: 700;
}
hr {
    color: white;
    border: solid white 0.5px;
    margin-bottom: 5px;
}
/*fade-in effect*/
.statistics:not(#happy-ending *), 
.module-grid:not(#happy-ending *) {
    -webkit-transform: translateY(50px) rotate(-5deg) translateZ(0);
    transform: translateY(50px) rotate(-5deg) translateZ(0);
    -webkit-transition-delay: .3s;
    -o-transition-delay: .3s;
    transition-delay: .3s;
    -webkit-transition: .4s;
    -o-transition: .4s;
    transition: .4s;
    opacity: 0;
}

#happy-ending .statistics,
#happy-ending .module-grid,
#happy-ending .bottom-right,
#happy-ending .inView {
    -webkit-transform: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}

.bottom-right.inView:not(#happy-ending *) {
    opacity: 1;
    -webkit-transform: translateY(0px) rotate(0deg) translateZ(0);
    transform: translateY(0px) rotate(0deg) translateZ(0);
}

.inView:not(#happy-ending *) {
    opacity: 1;
    -webkit-transform: translateY(0px) rotate(0deg) translateZ(0);
    transform: translateY(0px) rotate(0deg) translateZ(0);
}
/*button style*/
button{
    background-color: #00c2cb;
    padding: 10px 15px;
    border: none;
    border-radius: 45px;
    color: rgb(235, 246, 253);
    box-shadow: 1px 2px #00797f;
}
button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: .5s;
}
button span:after{
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -10px;
  transition: 0.5s;
}
button:hover span {
    padding-right: 15px;
    padding-left: 5px;
  }
  
button:hover span:after {
    opacity: 1;
    right: 0;
  }
button a {
    color: white;
    font-size: 16px;
}
.submit-button {
    cursor: pointer;
}
/*navbar style*/
nav{
    padding: 10px;
    width: auto;
}
.logo{
    height: auto;
    width: 160px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
.navigation {
    background-color: white;
    display: flex;
    justify-content: center;
    padding-left: 25px;
    margin: 0;
}
nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    gap: 30px;
    margin-top: 38px;
    padding: 0;
    align-items: center;
}
nav a{
    padding: 6px;
    font-weight: 700;
    color: #23365d;
    text-decoration: none;
}
.first-btn {
    margin-top: -9px;
}
/*header starts here*/
#container {
    background: url("images/header-img.png") no-repeat center;
    background-size: cover;
    justify-content: center;
    margin: 5px auto;
    width: 90vw;
    max-width: 1440px;
}
header {
    padding: 100px;
    justify-content: center;
}
header h1{
    padding-bottom: 30px;
    color: #23365d;
}
header p{
    padding-bottom: 30px;
    color: #2a7a9f;
}

/*hamburger menu*/
.hamburger{
    display: none;
    cursor: pointer;
}

.bar{
    display: block;
    width: 25px;
    margin: 5px auto;
    height: 3px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #23365d;
}

@media (max-width: 960px){
    .nav-container {
        padding: 0 20px;
    }
    .hamburger{
        display: block;   
    }
    .hamburger.active .bar:nth-child(2){
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-links{
        position: absolute;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        transition: 0.5s;
        height: 0px;
        z-index: 0;
        margin-left: -20px;
        top: 0;
        left: 0;
        overflow: hidden;
        margin-top: 50px;
    }
    .nav-links li {
        text-align: center;
        margin-bottom: 18px;
        margin-top: 5px;
    }
    .first-btn {
        width: 180px;
        height: 35px;
        padding: 0;
        margin: 5px auto;
    }
    .first-btn a {
        font-size: 14px;
        padding-bottom: 5px;
    }
    .nav-links a{
        padding: 10px 20px;
    }
    .nav-links a:hover {
        border-color: #23365d;
        color: #00c2cb;
    }
    .nav-links.active {
        top: 4vh;
        min-height: 200px;
    }
    nav{
        margin-top: 26px;
        padding: 13px;
        justify-content: space-between;
    }
    nav.active {
        height: max-content;
    }  
    .navigation {
        justify-content: space-between;
    }
}
/*about the software starts*/
.intro-img {
    padding: 50px 0;
}
.introduction{
    padding: 20px 50px 0 100px;
    line-height: 30px;
}
.couple-img {
    margin-top: 60px;
    background: url("images/couple-img.jpeg") no-repeat center;
    background-size: cover;
    width: 90vw;
    height: 35vh;
    opacity: .6;
}

.icon-txt{
    display: flex;
    gap: 20px;
    margin-left: 0;
    line-height: 30px;
}
.introduction img {
    margin: 20px auto;
    justify-content: center;
}
/*Grid and collapsible text*/
.modules {
    margin: 10px 0 80px;
    justify-content: center;
}
.collapsible {
    background-color: #23365d;
    box-shadow: none;
    border: none;
    font-size: 30px;
    height: fit-content;
    cursor: pointer;
    padding: 12px;
    border: none;
    outline: none;
}
.active, .collapsible:hover {
    color: #00c2cb;
}
.content {
    padding: 12px 18px 20px;
    transition: max-height 0.2s ease-out;
    grid-column: 1/-1;
    line-height: 30px;
    background-color: #23365d;
}
.close-btn {
    margin-top: 10px;
    margin-bottom: 15px;
    border-radius: 50%;
    box-shadow: none;
    padding: 10px 14px;
    cursor: pointer;
}
.is-hidden {
    display: none;
}
.module-txt {
    padding: 20px 50px 0 100px;
}
.module-txt p{
    line-height: 25px;
    padding-bottom: 15px;
}
.module-grid {
    display: grid;
    gap: 15px;
    padding: 30px 70px 0px 70px;
    grid-template-columns: repeat(auto-fit, 18rem);
    justify-content: center;
    grid-auto-flow: dense;
}
.grid-item {
    min-height: 170px;
    padding: 10px;
    background-color: #23365d;
    text-align: center;
}
.grid-item img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin-top: 10px;
}
#icon-style {
    margin-top: 30px;
}
@media (max-width: 1416px) {
    .module-grid {
        padding-left: 60px;
    }
    header {
        padding-left: 50px;
    }
    .introduction {
        padding-left: 50px;
    }
    .module-txt {
        padding-left: 50px;
    }
}

@media (max-width: 430px) {

    h1 {
        font-size: 36px;
    }
    body {
        width: 100vw;
        font-size: 14px;
    }
    h2 {
        font-size: 30px;
    }
    .couple-img {
        width: 100vw;
    }
}
/*data style*/
.statistics {
    margin-bottom: 100px;
    padding: 50px 30px;
}
.statistics h2 {
    color: #23365d;
    text-align: center;
}
.statistics p {
    color: #23365d;
}
.babe-data {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 80px;
    justify-content: center;
}
.clinic-data, .country-data {
    display: flex;
    gap: 50px;
    width: 500px;
}
.number {
    font-size: 60px;
    width: 70px;
    line-height: 18px;
    color: #00c2cb;
    text-shadow: .5px 1px #00797f;
}
.data-txt {
    font-size: 15px;
    font-style: italic;
    justify-content: center;
    margin-left: 10px;
    color: #00c2cb;
}
.babe-data p {
    margin-top: -15px;
}
/*couple image background*/
#happy-ending {
    background: url("images/happy-couple.jpg") no-repeat center;
    background-size: cover;
    
}
#happy-ending h2 {
    color: #23365d;
}
.layer{
    background: rgba(255, 255, 255, 0.6);
    padding: 30px;
    justify-content: space-between;
}
.col2 {
    width: 40vw;
    margin: 10px auto;
}
.col1 {
    text-align: center;
}
/*contact*/
.all-contact {
    background-color: #23365d;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: space-between;
    padding: 40px 150px;
    line-height: 30px;
}
.all-contact a {
    color: white;
}
.all-contact a:hover {
    color: #00c2cb;
}
.contact-title {
    font-weight: 700;
}
/*contact form*/
.form-field{
    display: block;
    width: calc(100% - 15px);
    height: 32px;
    margin-top: 15px;
    padding: 8px;
    padding-left: 15px;
    justify-content: center;
    border: none;
    border-radius: 6px;
}
.form-field::placeholder{
    font-size: 13px;
}
textarea{
    min-height: 60px;
    font-family: inherit;
    resize: vertical;
    max-height: 300px;
    margin-bottom: 15px;
}
.success, .fail{
    font-style: italic;
    display: none;
    padding-top: 7px;
    transition: .2s;
    animation: buttonclick .2s linear; 
    position: absolute;
    font-size: 12px;
}
.success{
    color: green;
}
.fail {
    color: red;
}
@keyframes buttonclick {
    0%{
        transform: scale(0.1);
    }
    50%{
        transform: scale(0.5);
    }
    100%{
        transform: scale(1);
    }
}

/*radio selection*/
.radio-selection {
    margin: 20px 0;
    padding: 0;
    background: transparent;
    width: 100%;

}

.radio-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #23365c !important;
    margin-bottom: 10px;
    padding: 0;
}

.radio-options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.radio-option {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-input {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.radio-option label {
    cursor: pointer;
    color: #23365c !important;
    font-size: 16px;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.radio-input:checked + label {
    color: #00c2cb;
    font-weight: bold;
}

.radio-input:focus + label {
    outline: 2px solid #00c2cb;
    outline-offset: 2px;
}

/* フォーム要素のスタイルを強制的に適用 */
#happy-ending .radio-selection {
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
    margin: 20px 0 !important;
}

#happy-ending .radio-options-container {
    margin: 0 !important;
    padding: 0 !important;
}

#happy-ending .radio-option {
    margin: 10px 0 !important;
    display: flex !important;
    align-items: center !important;
}

#happy-ending .radio-input + label {
    margin-left: 10px !important;
}

/* フォームフィールドのスタイル */
.form-field {
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    margin-top: 15px;
    width: calc(100% - 30px);
}

@media (max-width: 768px) {
    .col2 {
        width: auto;
    }
}
/*footer style*/
footer {
    background-color: #23365d;
}
.copyright{
    max-height: none;
    padding: 20px 150px;
    font-style: italic;
    color: white;
    text-align: center;
}
.copyright p {
    margin: 0;
    font-size: 16px;
}
@media (max-width: 846px) {
    .all-contact {
        padding: 40px 20px;
        gap: 30px;
    }
    .copyright {
        padding: 0px 20px 20px;
    }
    .copyright p {
        font-size: 14px;
    }

}
/*Video play*/
#containerV {
    /*margin: 20px auto;
    text-align: center;*/
    max-width: 800px;
    margin: 0 auto;
}
video {
    width: 100%;
    height: auto;
    display: block;
    max-width: 800px;
    margin: 0 auto;
}
/* Header section questionnaire page*/
#container1 {
    background: url("images/header-img.png") no-repeat center;
    text-align: center;
    margin: 50px auto;
    padding: 20px;
}

.container-txt h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.container-txt p a {
    color: #007BFF;
    text-decoration: none;
    font-size: 18px;
}

.container-txt p a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    position: relative;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 15px;
    border-radius: 4px;
}

.fail-message {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 15px;
    border-radius: 4px;
}

.email-icon {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: white;
}

.email-icon i {
    margin-right: 8px;
    font-size: 18px;
}

.message-box {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
}

/* 通常時のラベル色 */
.radio-label {
  color: #888; /* 例: グレー */
  font-weight: normal;
}

/* 選択時のラベル色 */
input[type="radio"]:checked + .radio-label {
  color: #2ed8e6; /* 水色 */
  font-weight: bold;
}

/* 言語切り替えアイコンのスタイル */
.language-switch {
    margin-left: 15px;
    display: flex;
    align-items: center;
    height: 100%;
}

.language-switch a {
    display: inline-block;
    line-height: 0;
}

.language-switch img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    transition: transform 0.2s ease;
    object-fit: cover;
    display: block;
}

.language-switch img:hover {
    transform: scale(1.1);
}

/* モバイル対応 */
@media (max-width: 960px) {
    .language-switch {
        margin: 10px auto;
    }
}



