/* Remove the styles that disable scrolling */
body {
    font-family: Roboto, sans-serif;
    margin: 0;
    padding: 10rem 0 0; /* 上の余白を確保 */
    background: linear-gradient(to bottom right, #b0e0e6, #e6e6fa, #b0e0e6, #e6e6fa);
    color: black;
    flex-direction: column;
    min-height: 100vh;
}

.body {
    width: 400px;
    height: 150px;
    background-color: aquamarine;
    overflow: scroll;
    /*IE(Internet Explorer)・Microsoft Edgeへの対応*/
    -ms-overflow-style: none;
    /*Firefoxへの対応*/
    scrollbar-width: none;
}

/*Google Chrome、Safariへの対応*/
.body::-webkit-scrollbar {
    display: none;
}

/* アナウンスのスタイル */
.announcement {
    background-color: #f0f8ff;
    color: #333;
    padding: 10px 35px; /* ボックスのサイズを大きくしました */
    border-radius: 25px;
    text-align: center;
    font-size: 16px; /* フォントサイズを少し大きくしました */
    margin: 20px auto; /* 上下のマージンを広げました */
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer; /* ポインタカーソルを追加 */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* アナウンスの矢印 */
.announcement::after {
    content: '→';
    font-size: 1rem; /* 矢印のサイズを調整 */
    position: absolute;
    right: 15px; /* 右側に配置 */
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #186aff; /* 矢印の色を変更 */
}

.announcement span {
    color: #186aff;
    font-weight: bold;
}

/* ホバー時の矢印の動き */
.announcement:hover::after {
    transform: translateY(-50%) translateX(5px); /* 矢印を右に動かす */
}

/* アナウンス内のリンクのスタイルをリセット */
.announcement a {
    text-decoration: none; /* 下線を消去 */
    color: inherit; /* 親の色を継承 */
    border: none; /* 下線がボーダーとして追加されている場合に備えて */
}

/* 全体のリンクのスタイルをリセット */
a {
    text-decoration: none; /* 下線を消去 */
    color: inherit; /* 親の色を継承 */
}

main {
    flex: 1;
    padding: 2rem 8%; /* 上下と左右の余白を設定 */
}

.home {
    padding: 2rem; /* 必要に応じて調整 */
    margin: 10rem auto; /* 中央揃え */
}

.home_footer {
    margin-top: 8rem;
}

.link_button a {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    background: #333;
    padding: 18px 30px;
    border-radius: 6px;
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: .3s;
}
.link_button a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 3px solid #333;
    border-radius: 6px;
    box-sizing: border-box;
    z-index: -1;
    transform: scale(1.2);
    opacity: 0;
    transition: transform ease .3s, opacity .3s;
}
.link_button a:hover {
    color: #333;
    background: transparent;
}
.link_button a:hover::before {
    transform: scale(1);
    opacity: 1;
}

/* 快適のグラデーション */
.strong-emphasis {
    background: linear-gradient(90deg, #007BFF, #b995fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

/* 簡単のグラデーション */
.simple-emphasis {
    background: linear-gradient(90deg, #55b9ff, #fd7fe7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

main p {
    flex-direction: column;
    align-items: center; /* Center text */
}

main p {
    font-weight: normal;
    margin-bottom: 1.5rem; /* 段落間に余白を追加 */
    text-align: center; /* 段落を左揃えに */
    line-height: 1.6; /* 行間を広げて読みやすく */
}


/* Hide scrollbar and disable scrolling for the entire document */
body {
    overflow: scroll; /* Disable scrolling */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
    scrollbar-width: none; /* For Firefox */}

body::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    transition: top 0.3s;
    z-index: 999; /* ヘッダーを他の要素の上に表示 */
}


@media (max-width: 768px) {
    #error-404 {
        margin-top: 10%;
    }

    footer {
        margin-top: 10%;
    }
}

@media (min-width: 769px) {
    #error-404-footer {
        margin-top: 13%;
    }

    .body-404 {
        overflow: hidden;
    }
}

body.scrolled header {
    top: -100px; /* Adjust this value based on the header height */
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
    width: 100%;
}

nav ul li {
    margin: 0 1rem;
}

/* 基本スタイル */
nav ul li a {
    color: black;
    text-decoration: none;
    padding: 1rem;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

/* 下線のスタイル */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: black;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

/* ホバー時の下線 */
nav ul li a:hover::after {
    visibility: visible;
    transform: scaleX(1);
}

/* 現在のページのリンクに下線を表示 */
.current-page::after {
    visibility: visible;
    transform: scaleX(1);
    transition: all 0s ease-in-out;
}

@media (min-width: 769px) {
    /* フォーカス時のスタイル */
    nav ul li a:focus {
        outline: none;
        color: black; /* フォーカス時の文字色を黒に設定 */
    }

    /* アクティブ時のスタイル */
    nav ul li a:active {
        color: black;  /*アクティブ時の文字色を黒に設定 */
        text-decoration: none; /* アクティブ時に下線が表示されないようにする */
    }
}

@media (max-width: 768px) {
    /* スマホの場合のスタイル */
    nav ul li a {
        text-decoration: none; /* スマホサイズで下線を非表示に設定 */
    }
}


.no-scroll {
    overflow: hidden;
}

/* モバイル表示用のメディアクエリ */
@media (max-width: 768px) {
    body {
        padding-top: 0; /* ヘッダーの固定に合わせて余白をなくす */
    }

    header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000; /* ヘッダーを他の要素の上に表示 */
    }

    main {
        padding-top: 60px; /* ヘッダーの高さに合わせて余白を追加 */
    }

    .hamburger-menu {
        display: flex; /* モバイル表示で表示 */
        flex-direction: column;
        justify-content: space-between;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        width: 30px;
        height: 21px;
        z-index: 1000; /* メニューの上に表示されるように */
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: black;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 8px);
        background-color: white;
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px);
        background-color: white;
    }
}

/* PC表示用のメディアクエリ */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none; /* PC表示で非表示 */
    }
}



/* ハンバーガーメニューの表示 */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
    }

    nav ul.show {
        right: 0;
    }

    nav ul li {
        margin: 1.5rem 0;
    }

    nav ul li a {
        padding: 0.5rem 1rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    nav ul li a {
        color: white !important; /* モバイルの場合の文字色を白に設定 */
    }
}

/* ハンバーガーメニューが開いた状態のスタイル */
.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 7.5px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7.5px);
}

/* トランスフォームの調整で均等な×を実現 */
.hamburger-menu.active .bar:nth-child(1),
.hamburger-menu.active .bar:nth-child(3) {
    width: 100%;
    transform-origin: center;
}

.hamburger-menu.active {
    color: white;
}

/* css/styles.css */
section ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    gap: 2rem; /* Increased gap between items */
}

section p {
    text-align: center;
    margin-bottom: 2rem;
}

section ul li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 50px 40px; /* Increased horizontal padding */
    background-color: #fff;
    border-radius: 10px;
    width: 300px; /* Increased width from 220px to 300px */
    height: auto;
    box-sizing: border-box;
    z-index: 1;
}

/* Style the image to have rounded corners */
section ul li img {
    border-radius: 50%;
    width: 120px; /* Slightly increased image size */
    height: 120px;
    margin-bottom: 1.5rem; /* Increased space between image and text */
}

/* Align the name and details below the role */
section ul li .details {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Ensure details take full width of the box */
}

section ul li .details .role {
    font-weight: normal;
    color: #888;
    margin-bottom: 0.5rem;
}

section ul li .details .name {
    font-weight: bold;
    margin-bottom: 0.75rem; /* Increased space below the name */
    font-size: 1.1em; /* Slightly larger font for the name */
}

section ul li .details .description {
    text-align: center;
    width: 100%; /* Ensure description takes full width */
}

/* Styles to adjust spacing in description */
section ul li .details .description p {
    margin: 0;
    padding: 0;
}

section ul li .details .description p + p {
    margin-top: 0.75rem; /* Increased space between paragraphs */
}

/* Add space after <br> tags */
section ul li .details .description br {
    display: block;
    content: "";
    margin-top: 0.75rem;
}

/* Media query for responsive design */
@media (max-width: 768px) {
    section ul li {
        width: 90%; /* Full width on smaller screens */
        max-width: 300px; /* But not wider than 300px */
    }
}

h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    padding-top: 3px; /* Add padding to the top of the heading to avoid overlap with fixed header */
}

main {
    text-align: center;
}


/* Adjust the .cta-button to be positioned relative to the bottom of the li element */
section ul li {
    position: relative; /* Make the li element the reference point for absolute positioning */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center content horizontally */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow effect */
    padding: 50px 30px; /* Add 20px vertical and 10px horizontal padding */
    background-color: #fff; /* Ensure background is white */
    border-radius: 10px; /* Add rounded corners */
    width: 220px; /* Increase width */
    height: auto; /* Allow height to adjust based on content */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.description {
    margin-bottom: 2rem; /* Ensure a certain distance from the .cta-button class */
}

.cta-button {
    background-color: #61dafb;
    color: black;
    padding: 1rem 1rem; /* Increase horizontal padding to make the button wider */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    display: inline-block;
    transition: background 0.3s ease;
    position: absolute; /* Position the button absolutely */
    bottom: 1rem; /* Position it 1rem from the bottom of the li element */
    left: 50%; /* Center the button horizontally */
    transform: translateX(-50%); /* Adjust for the button's width */
}

.cta-button:hover {
    background-color: #4fa3c5;
}

section {
    padding: 2rem;
}

details {
    margin-bottom: 1rem;
}

summary {
    font-weight: bold;
    cursor: pointer;
}

details[open] summary {
    color: #4fa3c5;
}

details p {
    margin: 0.5rem 0 0 1rem;
}

h2 {
    text-align: center;
}

.role-button {
    background-color: #4fa3c5; /* Button background color */
    color: white; /* Button text color */
    border: none; /* Remove default border */
    padding: 0.5rem 1rem; /* Add padding */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    margin-top: 0.5rem; /* Space above the button */
    transition: background-color 0.3s ease; /* Smooth background color transition */
}

.role-button:hover {
    background-color: #3a8ca1; /* Darker background color on hover */
}


#faq {
    border-radius: 12px;
}

.faq-item {
    background-color: #fff; /* 背景色を白に設定 */
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.faq-item:hover {
    background-color: #f0f0f0; /* ホバー時の色を自然に調整 */
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    border-radius: 10px;
}

.arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.faq-item.open .arrow {
    transform: rotate(180deg); /* 矢印の回転 */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 15px;
    color: #555;
}

.faq-item.open .faq-answer {
    padding-top: 15px;
    padding-bottom: 15px;
}




/* jobセクションのデザイン */
#job {
    padding: 2rem;
    border-radius: 10px; /* 角を丸くする */
    text-align: center; /* 中央揃え */
}

#job h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333; /* ダークグレーの文字色 */
}

#job p {
    font-size: 1.2rem;
    color: #666; /* 明るいグレーの文字色 */
    margin-bottom: 2rem;
}

#job ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* 中央揃え */
}

#job ul li {
    position: relative;
    background: #fff; /* 白い背景 */
    border-radius: 10px; /* 角を丸くする */
    padding: 1.5rem 2rem;
    margin: 0 1rem;
    width: 250px; /* 固定幅 */
    text-align: center;
}

#job ul li .name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.3rem; /* 名前と説明の間隔を狭める */
    color: #333; /* ダークグレーの文字色 */
}

#job ul li .description {
    font-size: 1rem;
    color: #666; /* 明るいグレーの文字色 */
    margin-bottom: 0.2rem; /* ボタンとの間隔をさらに狭める */
}

#job ul li .cta-button {
    background-color: #4fa3c5; /* ボタンの背景色 */
    color: white;
    padding: 0.8rem 1.2rem; /* ボタンのパディング */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    display: inline-block;
    transition: background 0.3s ease;
}

#job ul li .cta-button:hover {
    background-color: #3a8ca1; /* ホバー時の背景色 */
}

/* モバイル表示用 */
@media (max-width: 768px) {
    #job ul {
        flex-direction: column;
    }

    #job ul li {
        margin: 1rem 0; /* 垂直方向のマージン */
        width: auto; /* 幅を自動にする */
    }
}

.about_msg {
    padding: 2rem;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    text-align: center;
}

.about_msg h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.about_msg p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

/* フッターのスタイル */
footer {
    color: black;
    text-align: center;
    padding: 1rem;
    position: relative;
    display: flex;
    justify-content: space-between; /* Evenly distribute the sections */
    flex-wrap: wrap;
    margin-top: auto; /* フッターを画面の下部に固定 */
}

.footer-section {
    flex: 1; /* Allow sections to grow and take up available space */
    margin-top: 6.5rem;
    text-align: center; /* Center text within each section */
}

.footer-section h3 {
    margin: 1rem 0; /* 各h3の上下の間隔を同じに設定 */
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: black;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

footer p {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    main {
        padding: 2rem 5%; /* モバイルでの左右の余白を調整 */
        margin-bottom: 4rem; /* モバイル表示でのフッターとのマージン */
    }

    footer {
        flex-direction: column; /* フッターを縦に配置 */
        align-items: center; /* 中央揃え */
    }

    .footer-section {
        margin-top: 2rem; /* 各セクションの間隔を調整 */
    }
}