body {
    font-family: "Noto Sans JP", sans-serif;
    color: #323538;
}

/*ヘッダー*/

/* ==========================
   ヘッダー
========================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgb(255, 150, 0,0.9);
    color: white;
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 28px;
    font-weight: 600;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: rgb(255, 150, 0);
}

@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-top: 10px;
    }
}
/*フッター*/
footer {
    background-color: #f9f9f9;
    text-align: center;
    font-size: 10px;
    padding: 16px 0;
}

/*共通*/
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

.en {
    font-size: 40px;
    font-weight: 500;
    color: rgb(255, 150, 0);
    margin-bottom: 30px;
}

.text {
    font-size: 14px;
    line-height: 2;
}

.button {
    display: inline-block;
    border: solid 3px #eeeeee;
    background-color: white;
    padding: 16px 40px;
    font-size: 13px;
    font-weight: 500;
    transition: .3s;
}

.button:hover {
    border-color: rgb(255, 150, 0);
}

.row {
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 767px) {
    .section {
        padding: 30px 0;
    }

    .en {
        font-size: 30px;
    }

    .row {
        flex-wrap: wrap;
    }

    .col {
        width: 100% !important;
    }
}

/*main visual*/
/* メインビジュアルの調整 */
#main-visual {
    position: relative;
    width: 100%;
    height: 80vh; /* 高さを適切に調整 */
    min-height: 600px; /* PCでの最低高さを設定 */
    max-height: 900px; /* 高解像度画面での調整 */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow: hidden;
}

/* スライドショーの画像 */
#slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を適切にトリミング */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* 最初のスライドを表示 */
#slideshow img.active {
    opacity: 1;
    z-index: 1;
}

/* メインビジュアルのテキスト調整 */
#main-visual .box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.3); /* 背景を半透明にして見やすく */
    padding: 20px;
    border-radius: 10px;
    z-index: 2; /* 画像よりも上に表示 */
}

#main-visual .heading {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 10px;
}

#main-visual h1 {
    font-size: 54px;
    font-weight: 700;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
    #main-visual {
        height: 70vh;
    }
}

@media screen and (max-width: 767px) {
    #main-visual {
        height: 50vh;
        min-height: 300px;
    }

    #main-visual .heading {
        font-size: 20px;
    }

    #main-visual h1 {
        font-size: 32px;
    }
}


/* Aboutセクション */
#top-about {
    position: relative;
    overflow: hidden;
}

#top-about::before {
    content: 'WALFARE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-size: 260px;
    letter-spacing: -6px;
    color: #f9f9f9;
    font-weight: 900;
    z-index: -1;
}

#top-about h2 {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 40px;
}

#top-about .text {
    margin-bottom: 40px;
}

@media screen and (max-width: 767px) {
    #top-about::before {
        font-size: 80px;
    }

    #top-about h2 {
        font-size: 18px;
    }
}

/* サービスセクション */
#top-service {
    background-color: rgb(255, 150, 0);
    border-radius: 20px;
    color: white;
}

#top-service h2 {
    color: white;
}

#top-service .text {
    margin-bottom: 60px;
    font-size: 20px;
}

#top-service .row {
    margin-bottom: 30px;
}

#top-service .col {
    width: 32%;
    background-color: rgb(255, 150, 0);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
}

#top-service img {
    height: 80px;
    margin-bottom: 20px;
}

#top-service h3 {
    font-weight: 500;
    margin-bottom: 16px;
}

#top-service .text2 {
    font-size: 13px;
    text-align: left;
    line-height: 1.6;
}

#top-service .button_box {
    text-align: center;
    color: #323538;
}

@media screen and (max-width: 767px) {
    #top-service .row {
        gap: 20px 0;
    }
}

/* Contactセクション */
#top-contact h2 {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 40px;
}

#top-contact .text {
    font-size: 13px;
    margin-bottom: 40px;
}

#top-contact .row {
    align-items: center;
}

#top-contact .col {
    width: 48%;
}

#top-contact img {
    border-radius: 16px;
}

@media screen and (max-width: 767px) {
    #top-contact h2 {
        font-size: 20px;
    }

    #top-contact .row {
        gap: 30px 0;
        flex-direction: column-reverse;
    }
}

/* ニュースセクション */
#top-news h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: left;
    color: #323538;
   
}

.news-table {
    width: 200%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;

}

.news-table thead {
    background-color: rgb(255, 150, 0);
    color: white;
}

.news-table th, .news-table td {
    padding: 18px 30px;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
}

.news-table th {
    font-weight: 700;
}

.news-table tbody tr {
    line-height: 2.0;
    border-bottom: 2px solid #eee;
}

.news-table tbody tr:hover {
    background-color: #f1f1f1;
}

.news-table td a {
    color: rgb(255, 150, 0);
    text-decoration: none;
    transition: color 0.3s;
}

.news-table td a:hover {
    color: #ff8c00;
}

/* ==========================
   スマホ用 レスポンシブ対応
========================== */
@media screen and (max-width: 767px) {
    /* 📌 ヘッダーと動画が重ならないように調整 */
    body {
        padding-top: 80px; /* ヘッダーの高さ分の余白を確保 */
    }

    #main-visual {
        margin-top: 80px; /* ヘッダーの下に配置 */
        height: auto;
        min-height: 50vh; /* スマホ時に適切な高さを確保 */
        position: relative;
    }


    /* 📌 メインビジュアルのテキスト位置調整 */
    #main-visual .box {
        position: absolute; /* ヘッダーの影響を受けないように */
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%;
        max-width: 600px;
        color: white;
        z-index: 2; /* 動画の上に表示 */
    }

    #main-visual .heading {
        font-size: 20px;
        margin-bottom: 10px;
    }

    #main-visual h1 {
        font-size: 28px;
    }

    /* 📌 サービスセクションの画像サイズ調整 */
    #top-service img {
        width: 100%;
        max-width: 150px; /* 画像が大きすぎないように制限 */
        height: auto;
        object-fit: contain;
    }

    /* 📌 お問い合わせセクションの画像とテキストを縦並びに */
    #top-contact .row {
        flex-direction: column-reverse;
        text-align: center;
    }

    #top-contact .col {
        width: 100%;
    }

    #top-contact img {
        width: 100%;
        height: auto;
        max-width: 300px;
        margin: 0 auto;
        object-fit: cover;
    }

    /* 📌 ニューステーブルのサイズ調整 */
    .news-table {
        width: 100%;
        display: block;
        overflow-x: auto;
    }

    .news-table th,
    .news-table td {
        padding: 12px;
        font-size: 14px;
        word-break: break-word;
    }
}
