/* 基本的なスタイル */
html, body {
    font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


header {
    background-color: #333;
    color: #fff;
    /* padding: 0.5rem; */
    position: sticky; /* ヘッダーを固定 */
    top: 0; /* 上部に固定 */
    width: 100%; /* 全幅に設定 */
    z-index: 98; /* 他の要素より前面に表示 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}



header h1 {
    margin: 0;
    font-size: 2.5rem;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    column-gap: 5px;
    margin: 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    text-align: center;
}


main {
    flex: 1;
    width: 100%;
    position: relative;
    /* padding: 2rem; */
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: #fff;
    left: 0;
    bottom: 0;
}

footer .sns_link {
    text-decoration: none;
    padding: 1rem;
}



/* レスポンシブデザイン対応用メディアクエリ */
@media (max-width: 800px) {
    .header-titles {
        /* flex-direction: column !important; */
        justify-content: left !important;
    }
    .header_container {
        padding: 0.5rem;
        justify-content: space-between !important;
        z-index: 1000;
        background-color: inherit;
    }
    header h1 {
        font-size: 1.5rem;
        z-index: 1001;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }
    .about {
        padding: 0 !important;
    }
    .about_contents {
        flex-direction: column;
    }

    .about_contents .text {
        /* text-align: center; */
        margin-right: 0;
        margin-bottom: 20px; /* テキストと画像の間のスペース */
    }
    .header__nav_for_pc {
        display: none !important;
    }
    .header__nav {
        visibility: visible !important;
        transition: ease .4s !important;
    }
    .hamburger {
        display: block !important;
    }

    .nav__items {
        width: 100%;
        display: flex;
        align-items: stretch;
        height: initial;
        justify-content: center;
        /* position: absolute; */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1rem;
        text-align: left;
    }
    nav ul li a {
        padding: 0.5rem;
    }
    .about_contents {
        flex-direction: column;
    }

    .about_contents .text {
        /* text-align: center; */
        margin-right: 0;
        margin-bottom: 30px; /* テキストと画像の間のスペース */
    }
}
a.logo-link {
    text-decoration: none;
    color: white;
}

.header_container {
    display: flex;
    justify-content: center;
    align-items: center;
}



/* ヘッダータイトルのスタイル */
.header-titles {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* ヒーローセクションのスタイル */
.hero {
    width: 100%;
    position: relative;
    background-image: url('images/mainroom.jpg');
    background-size: cover;
    background-position: center;
    height: 500px; /* 画像の高さを指定 */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white; /* テキストの色を白に */
}
.bedroom {
    width: 100%;
    position: relative;
    background-image: url('images/bed.jpg');
    background-size: cover;
    background-position: center;
    height: 500px; /* 画像の高さを指定 */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white; /* テキストの色を白に */
}

.overlay {
    background-color: rgba(0, 0, 0, 0.5); /* 黒い半透明のオーバーレイ */
    padding: 20px 0;
    width: 100%;
}

.overlay h2,
.overlay p {
    margin: 10px 0;
}

/* ボタンのスタイル */
.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #f39c22; /* ボタンの背景色 */
    color: white; /* ボタンのテキスト色 */
    text-decoration: none; /* テキストの下線を削除 */
    border-radius: 5px; /* ボタンの角を丸くする */
    transition: background-color 0.3s ease; /* ホバー時の背景色の変化をスムーズに */
}

.button:hover {
    background-color: #e67e22; /* ホバー時の背景色 */
}

/* aboutセクションのスタイル */

.about {
    width: 80%;
    max-width: 900px;
    padding: 20px;
    margin: 0 auto;
    text-align: justify;
    position: relative;
    /* display: flex; */
}

.about_contents {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about_contents .text {
    text-align: justify;
    flex: 1;
    margin-right: 20px; /* テキストと画像の間のスペース */
}
.about_contents .images {
    display: flex;
     gap: 20px;
}

.about_contents .image, .about_contents .face_image{
    flex: 1;
    max-width: 200px; /* 画像の最大幅を指定 */
}

.about_contents .image img {
    /* flex: 1; */
    width: 100%;
    height: auto;
    border-radius: 50%;
}


/* ハンバーガーメニュー */

.mobile_nav {
    position: relative;
    width: 100%;
    height: 0;
}
.header__nav {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    /* height: 0; */
    background-color: #333;
    transition: none;
    z-index: 99;
    justify-content: center;
    /* display: none; */
    visibility: hidden;
    overflow: hidden;
    transform: translateY(-100%);
}


.header__nav_for_pc {
    position:relative;
    right: 0;
    left: 0;
    top: inherit;
    width: 100%;
    height: auto; /* メニューの高さを画面全体に設定 */
    /* transform: translateY(0%); */
    background-color: #333;
    transition: ease .4s;
    z-index: 99;
    justify-content: center;
    display: flex;
}

.nav-items__items {
    display: flex;
    justify-content: stretch;
    align-items: center;
    height: 100%;
    width: 100%;
}

.header__hamburger {
    width: 48px;
    height: 100%;
    padding:5px;

}

.hamburger {
    background-color: transparent;
    border-color: transparent;
    z-index: 100;
    display: none;
    position: relative;
    right: 0;
}


.hamburger span {
    width: 100%;
    height: 1px;
    background-color: #fff;
    position: relative;
    transition: ease .4s;
    display: block;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    margin: 8px 0;
}

.hamburger span:nth-child(3) {
    top: 0;
}


/* ハンバーガーメニュークリック後のスタイル */
.header__nav.active {
    /* height: auto; */
    transform: translateY(0%);
}

.hamburger.active span:nth-child(1) {
    top: 5px;
transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;

}

.hamburger.active span:nth-child(3) {
    top: -13px;
    transform: rotate(-45deg);
}