@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&display=swap');

@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInSlideUpMenu {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f9f5f0;
    color: #333;
    margin: 0; /* Reset default margin */
    padding: 0; /* Reset default padding */
    padding-top: 60px; /* Fixed header height */
}

.container {
    background-color: #fff;
    padding: 20px;
    width: 100%;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
}

header {
    background-color: #FFFFFF;
    padding: 5px 0;
    border-radius: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex; /* Add flexbox */
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Space out logo and nav */
}

.header-logo-link {
    margin-left: 20px; /* Add some margin to the left of the logo */
}

.header-logo {
    max-height: 50px; /* Adjust logo height */
    /* margin-right: 10px; */ /* gapで調整するため削除 */
}

.header-logo-group {
    display: flex;
    align-items: center;
    gap: 5px; /* ロゴと追加画像のグループ間の間隔 */
    margin-left: 20px; /* ヘッダー左端からのマージン */
}

.header-extra-images {
    display: flex;
    align-items: center;
    gap: 5px; /* Space between new images */
}

.header-extra-image {
    max-height: 40px; /* Adjust height for new images, slightly smaller than logo */
    width: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Optional: add some border-radius */
    object-fit: contain; /* Ensure image fits within bounds without cropping */
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Center the navigation items */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.main-nav li {
    /* flex: 1; Removed as items should not grow to fill space */
    margin: 0 10px; /* Add some horizontal spacing between items */
}

.hamburger-menu {
    display: block; /* 常に表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.hamburger-menu-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ハンバーガーメニューのアニメーション */
.hamburger-menu.is-open .hamburger-menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.is-open .hamburger-menu-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-open .hamburger-menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: fixed;
    top: 60px;
    right: 0; /* 右端に固定 */
    width: 75%;
    height: calc(100vh - 60px);
    background-color: #FFFFFF;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    transform: translateX(100%); /* 初期状態では右に完全に隠す */
    transition: transform 0.3s ease-out; /* スライドアニメーション */
    overflow-y: auto;
    z-index: 999;
}

.main-nav.is-open ul {
    transform: translateX(0); /* is-openクラスが付与されたら元の位置に戻す */
}


.main-nav li {
    padding: 10px 0; /* 項目ごとの上下の余白 */
    border-bottom: 1px solid #eee; /* 区切り線 */
}

.main-nav li:last-child {
    border-bottom: none; /* 最後の項目には区切り線をつけない */
}

.main-nav li a {
    display: block;
    text-align: left;
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    font-size: 3rem;
    transition: color 0.3s ease; /* Keep color transition */
    white-space: nowrap;
    opacity: 0; /* Initial state: hidden */
    transform: translateX(-20px); /* Initial state: slightly off-left */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out; /* Base transition for opacity and transform */
}

/* Staggered animation when menu is open */
.main-nav.is-open li a {
    opacity: 1;
    transform: translateX(0);
}

.main-nav.is-open li:nth-child(1) a { transition-delay: 0.1s; }
.main-nav.is-open li:nth-child(2) a { transition-delay: 0.15s; }
.main-nav.is-open li:nth-child(3) a { transition-delay: 0.2s; }
.main-nav.is-open li:nth-child(4) a { transition-delay: 0.25s; }
.main-nav.is-open li:nth-child(5) a { transition-delay: 0.3s; }
.main-nav.is-open li:nth-child(6) a { transition-delay: 0.35s; }
.main-nav.is-open li:nth-child(7) a { transition-delay: 0.4s; }


/* Main Visual Section Styles */
.main-visual-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/visual.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.main-visual-content {
    position: relative;
    z-index: 3; /* Adjusted z-index */
    color: #fff; 
}

.main-visual-section h1,
.main-visual-section p {
    color: #fff; 
}

.main-visual-section h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.main-visual-section h1 span {
    opacity: 0;
    display: inline-block; /* Span elements are inline by default, make them block for transform */
}

.main-visual-section h1 .letter-s {
    animation: fadeInFromLeft 0.5s ease-out forwards;
    animation-delay: 0.1s;
}

.main-visual-section h1 .letter-k {
    animation: fadeInFromRight 0.5s ease-out forwards;
    animation-delay: 0.2s;
}

.main-visual-section h1 .letter-i {
    animation: fadeInFromTop 0.5s ease-out forwards;
    animation-delay: 0.3s;
}

.main-visual-section h1 .letter-n {
    animation: fadeInFromBottom 0.5s ease-out forwards;
    animation-delay: 0.4s;
}

.main-visual-section h1 .letter-u {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1.0s; /* Slower tempo for U */
}

.main-visual-section p {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.main-visual-section .site-subtitle {
    font-size: 1.5rem; 
    font-weight: 700; 
}

.main-visual-section .product-intro {
    font-size: 0.9rem; 
}

.btn-start {
    display: block;
    width: 80%;
    max-width: 400px;
    margin: 20px auto 0;
    padding: 18px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(45deg, #8d6e63, #a1887f);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #a1887f, #8d6e63);
}

.btn-start:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-start-fixed {
    position: fixed;
    bottom: 20px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; /* Ensure it's above other content */
    width: 80%; /* Keep original width */
    max-width: 400px; /* Keep original max-width */
    margin: 0; /* Remove margin when fixed */
}

.main-visual-section .diagnosis-header {
    margin-bottom: 0; /* Adjust margin as it's now inside main-visual-section */
}

.main-visual-section .diagnosis-header h2 {
    font-size: 1.8rem;
    color: #6d4c41;
}

/* Global h1 and p styles (if needed outside sections) */
h1 {
    color: #8d6e63;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

p {
    color: #a1887f;
    font-size: 1.1rem;
}

.main-nav li a {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    font-size: clamp(0.75rem, 3.5vw, 1rem);
    padding: 5px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-nav li a:hover {
    color: #333333; /* Darker gray for hover */
}

#question-area {
    margin: 30px 0;
}

.question {
    margin-bottom: 40px; /* Increased margin for better separation */
}

.question p {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}


.options label.option-item {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left; 
}

.options label.option-item:hover {
    border-color: #c5b3a9;
}

.options input[type="radio"] {
    display: none; 
}


.options input[type="radio"]:checked + label.option-item {
    background-color: #8d6e63;
    color: #fff;
    border-color: #8d6e63;
}

.options input[type="radio"]:checked + label.option-item .visual-hint {
    background-color: rgba(255, 255, 255, 0.3); 
}

.options .option-item .visual-hint {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0; 
}

.options .option-item .option-text {
    flex-grow: 1; 
}

button {
    background-color: #8d6e63;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #a1887f;
}

#result-container {
    padding: 20px;
}

main#diagnosis-container {
    padding: 20px;
}

#result-type {
    font-size: 2rem;
    font-weight: 700;
    color: #8d6e63;
    margin-bottom: 10px;
}

#result-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.chart-container {
    width: 90%;
    max-width: 500px;
    margin: 30px auto;
}


.sensitive-result-display {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f4f8;
    border-radius: 10px;
    text-align: left;
}

.sensitive-result-display h3 {
    color: #8d6e63;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.sensitive-result-display p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}


.product-recommendations {
    margin-top: 30px;
    text-align: left;
}

.product-set {
    margin-bottom: 20px;
}

.product-set h4 {
    font-size: 1.1rem;
    color: #8d6e63;
    margin-bottom: 10px;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-item {
    display: flex;
    gap: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    align-items: center; /* Align items to the center */
}

.product-item img {
    width: 100px; 
    height: 100px;
    border-radius: 8px;
    object-fit: cover; 
    flex-shrink: 0;
}

.product-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    height: 100px; /* Ensure product-details takes full height of product-item */
}

.product-details p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
    flex-grow: 1; /* Allow description to take available space */
}

.buy-button {
    display: block; /* Make it a block element */
    width: 120px; /* Unified width */
    height: 35px; /* Unified width */
    background-color: #8d6e63;
    color: white;
    padding: 0; /* Remove padding as height is fixed */
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8rem;
    line-height: 35px; /* Vertically center text */
    margin-top: auto; /* Push to the bottom */
    margin-left: auto; /* Push to the right */
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: #a1887f;
}

.hidden {
    display: none;
}


@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .question p {
        font-size: 1rem;
    }

    .options label.option-item {
        padding: 10px;
    }

    .options .option-item .visual-hint {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
        margin-right: 10px;
    }

    button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .product-images {
        flex-direction: column; 
        align-items: center; 
    }

    .nav-container {
        width: 100%; /* Full width for the container */
        display: flex;
        justify-content: flex-end; /* Align hamburger to the right */
    }

    .main-nav {
        width: 100%; /* Full width for the nav */
    }

    .main-nav li {
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav li a {
        padding: 8px; /* 項目間の余白を減らす */
        display: block;
        font-size: 1.1rem; /* スマホ表示用のフォントサイズを小さくする */
    }

    .hamburger-menu {
        display: block; /* Show the hamburger menu */
    }
}

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

    header h1 {
        font-size: 1.8rem;
    }

    .question p {
        font-size: 0.9rem;
    }

    .options label.option-item {
        flex-direction: column; 
        align-items: flex-start; 
    }

    .options .option-item .visual-hint {
        margin-bottom: 5px;
        margin-right: 0;
    }

    .cooperation-content {
        flex-direction: column;
    }
}
.diagnosis-header {
    margin-bottom: 20px;
}

.diagnosis-header h2 {
    font-size: 1.8rem;
    color: #6d4c41;
}

#validation-message {
    color: red;
    margin-top: 10px;
    visibility: hidden; /* Initially hidden */
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
}

#validation-message.show {
    visibility: visible;
    opacity: 1;
}




/* Chat Section Styles */
.chat-section {
    padding: 10px 0 40px;
    background-color: #f9f5f0; /* 背景色をボディと合わせる */
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #8d6e63;
    margin-bottom: 30px;
}

.chat-subtitle {
    text-align: center;
    color: #555;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: -15px;
    margin-bottom: 20px;
}

.chat-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #e0e5eb; /* LINE風の背景色 */
    border-radius: 15px;
    position: relative;
}

.chat-message {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.chat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
}

.chat-bubble-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 左寄せを追加 */
}

.chat-name {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 5px;
}

.chat-bubble {
    background-color: #fff;
    border-radius: 15px;
    padding: 12px 15px;
    max-width: 100%;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent #fff transparent transparent;
}

/* Styles for own messages (right side) */
.chat-message.own-message {
    flex-direction: row-reverse;
}

.chat-message.own-message .chat-icon {
    margin-right: 0;
    margin-left: 15px;
}

.chat-message.own-message .chat-bubble-wrapper {
    align-items: flex-end;
}

.chat-message.own-message .chat-bubble {
    background-color: #a8e989; /* LINE's green for own messages */
}

.chat-message.own-message .chat-bubble::before {
    left: auto;
    right: -8px;
    border-color: transparent transparent transparent #a8e989;
    border-width: 8px 0 8px 8px;
}

/* Collapsible Chat Section */
#chat-toggle {
    cursor: pointer;
    position: relative;
    display: inline-block; /* To keep it centered with text-align */
}

#chat-toggle .toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

#chat-toggle.open .toggle-icon {
    transform: rotate(180deg);
}

#chat-container {
    max-height: 350px; /* 初期状態の高さ */
    overflow: hidden;
    transition: max-height 0.7s ease-in-out;
    position: relative; /* グラデーションとボタンの配置基準 */
}

#chat-container.open {
    /* JSで高さを設定するため、固定値を削除 */
    overflow-y: auto; /* コンテンツが多い場合にスクロールを許可 */
    padding-bottom: 80px; /* 「閉じる」ボタンのスペースを確保 */
}

/* 折りたたみ時のグラデーション */
#chat-container:not(.open)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgb(224, 229, 235) 50%, rgba(224, 229, 235, 0));
    pointer-events: none; /* グラデーション越しにクリックさせない */
    z-index: 1;
}

/* 続きを読むボタン */
.read-more-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 10px 25px;
    border-radius: 20px;
    background-color: #8d6e63;
    color: white;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#chat-container.open .read-more-btn {
    opacity: 0;
    visibility: hidden;
}

/* --- 開いた状態の閉じるボタンとグラデーション --- */
.close-chat-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 10px 25px;
    border-radius: 20px;
    background-color: #555;
    color: white;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#chat-container.open .close-chat-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#chat-container.open::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgb(224, 229, 235) 50%, rgba(224, 229, 235, 0));
    pointer-events: none;
    z-index: 2;
}

.cooperation-section {
    padding: 40px 20px;
    background-color: #f9f5f0;
}

.cooperation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto 30px;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.cooperation-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    width: 100%;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin: 0;
}

.cooperation-body {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.cooperation-image-container {
    flex: 0 0 120px;
}

.cooperation-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.cooperation-text-container p {
    margin: 0;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cooperation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.cooperation-btn, .interview-btn {
    flex-grow: 1;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background-color: #8d6e63;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cooperation-btn:hover {
    background-color: #a1887f;
}

.interview-btn {
    background-color: #555;
}

.interview-btn:hover {
    background-color: #777;
}

@media (max-width: 480px) {
    .cooperation-content {
        flex-direction: column;
    }
}



.btn-learn-more {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background-color: #8d6e63;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 20px;
}

.btn-learn-more:hover {
    background-color: #a1887f;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mission-section,
.about-site-details-section,
.future-vision-section {
    padding: 40px 20px;
    background-color: #f9f5f0;
    margin-bottom: 30px;
}

.mission-content,
.about-site-details-content,
.future-vision-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left;
}

.mission-content p,
.about-site-details-content p,
.future-vision-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-site-details-content p strong {
    color: #333;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 960px;
    margin: 0 auto;
}

.footer-nav,
.footer-collaboration,
.footer-copyright {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer-nav h3,
.footer-collaboration h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #fff;
}

.footer-collaboration p {
    color: #ccc;
    line-height: 1.6;
}

.footer-copyright {
    flex-basis: 100%; /* Take full width on smaller screens */
    margin-top: 20px;
    border-top: 1px solid #555;
    padding-top: 20px;
    color: #aaa;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav,
    .footer-collaboration,
    .footer-copyright {
        min-width: unset;
        width: 100%;
        margin: 10px 0;
    }

    .footer-nav ul {
        text-align: center;
    }
}

.mission-statement {
    text-align: center;
    text-transform: uppercase;
    font-size: 1.2rem; /* Adjust as needed for better visual */
    font-weight: bold;
    color: #8d6e63; /* Match other section titles */
}

.policy-images {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between images */
    margin-top: 30px;
}

.policy-image {
    max-width: 50%; /* 画像を縮小 */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.policy-left {
    align-self: flex-start; /* Align to the left */
}

.policy-right {
    align-self: flex-end; /* Align to the right */
}

/* Responsive adjustments for smaller screens if needed */
@media (max-width: 480px) {
    .policy-images {
        gap: 15px;
    }
}

.policy-item {
    display: flex;
    flex-direction: column; /* 縦積みに変更 */
    align-items: center; /* 中央揃え */
    width: 100%;
    margin-bottom: 30px; /* 各項目の間隔 */
}

/* これらのクラスは方向付けには不要になったが、他の目的で使われる可能性を考慮し残す */


.policy-item .policy-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 250px; /* 画像の最大幅 */
    margin: 0 0 15px 0; /* 画像の下にマージンを追加 */
}

.policy-item .policy-description {
    flex-grow: 1;
    text-align: center; /* テキストを中央揃えに */
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    font-weight: bold;
}

/* Responsive adjustments */

/* テキストを右の画像に寄せるためのスタイル */
.policy-item-left-text .policy-description {
    text-align: right;
    font-weight: bold;
    font-size: 1.2rem; /* 文字を少し大きく */
}

/* policy1とpolicy3のテキストを太字にするスタイル */
.policy-item-right-text .policy-description {
    font-weight: bold;
}

@media (max-width: 768px) {
    .main-visual-section {
        height: 100vh;
        border-radius: 0;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-sizing: border-box; /* paddingを含めた高さ計算にする */
    }

    .main-visual-section .btn-start {
        margin-top: 200px; /* 上の要素との間隔を広げる */
    }
}
