* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.1rem;
    background-color: rgba(255, 255, 255, 1); /* 透過させない */
    color: white;
    margin: 0;
}

/* =================
通常ヘッダー用スタイル（横並びのメニュー）
================= */
header {
    background-color: rgba(227, 152, 196, 1);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    display: flex;
    justify-content: center; /* 中央に寄せる */
    align-items: center; /* 上下方向に中央揃え */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    width: auto;
    padding: 0;
}

/* 通常時の横並びメニュー */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center; /* li要素を上下方向に中央揃え */
}

nav ul li {
    text-align: center;
    padding: 0 40px;
}

nav ul li a {
    color: rgba(232, 227, 218, 1);
    text-decoration: none;
    padding: 10px;
    display: block;
}

/* ハンバーガーメニュー用スタイル */
.menu-btn {
    display: none;
    position: fixed;
    right: 0.8rem;
    height: 32px;
    width: 32px;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    z-index: 1001;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
    content: "";
    display: block;
    height: 3px;
    width: 25px;
    background-color: #ffffff;
    position: absolute;
    transition: all 0.3s ease;
}

.menu-btn span::before {
    transform: translateY(-8px);
}

.menu-btn span::after {
    transform: translateY(8px);
}

#menu-btn-check {
    display: none;
}

#menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0);
}

#menu-btn-check:checked ~ .menu-btn span::before {
    transform: rotate(45deg);
}

#menu-btn-check:checked ~ .menu-btn span::after {
    transform: rotate(-45deg);
}

/* ハンバーガーメニューの表示切替 */
nav {
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態でメニューを右に隠す */
    width: 100%;
    height: 100vh;
    background-color: rgba(34, 0, 0, 0.8); /* 透過させる */
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#menu-btn-check:checked ~ nav {
    right: 0; /* ハンバーガーメニューが開かれた時に表示 */
}

nav ul {
    flex-direction: column; /* ハンバーガーメニューのときは縦並び */
    align-items: center; /* li要素を上下方向に中央揃え */
}

nav ul li {
    margin-bottom: 20px;
}

nav ul li a {
    color: white;
    font-size: 1.5rem;
}

/* =================
レスポンシブ対応
================= */
@media (max-width: 768px) {
    nav ul {
        display: none; /* 横並びメニューを非表示 */
    }
    .menu-btn {
        display: flex; /* ハンバーガーボタンを表示 */
    }
    #menu-btn-check:checked ~ nav ul {
        display: flex; /* メニュー項目を表示 */
    }
}

@media (min-width: 769px) {
    .menu-btn {
        display: none; /* ハンバーガーボタンは非表示 */
    }
    nav {
        right: 0; /* 横幅が広い時はメニューを表示 */
        height: auto;
        background-color: transparent; /* 横並び時の背景色を透明に */
    }
    nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center; /* 横方向に中央揃え */
        align-items: center; /* 上下方向に中央揃え */
    }
}


/* ロゴを左上固定 */
.logo {
    position: fixed;
    top: 0px;
    left: 16px;
    width: 88px;
    height: 96px;
    background-image: url('Images/logo.png'); /* ロゴ画像を適用 */
    background-size: contain; /* 画像の比率を保ちながら縮小 */
    z-index: 1001; /* 他の要素よりも前に表示 */
}

/* 下部に半円を追加 */
.logo::after {
    content: ""; /* 疑似要素の内容は空に */
    position: absolute;
    bottom: -18px; /* 少し下に配置 */
    left: 0;
    width: 100%; /* ロゴの幅に合わせる */
    height: 30px; /* 半円の高さ */
    background-color: rgba(227, 152, 196, 1); /* 半円の色を指定 */
    border-radius: 0 0 100% 100%; /* 下部のみ丸みを付けて半円に */
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 60px; /* ヘッダーの高さに合わせて余白を追加 */
}

.main-content {
    position: relative; /* 背景画像と詳細情報を重ねるために relative を設定 */
    width: 98vw; /* 親要素の幅よりやや小さく */
    margin: 0 auto; 
    padding: 56px;
}

.content-background {
    position: absolute; /* 背景画像を他の要素の背面に配置 */
    top: 0;
    left: 0;
    width: 100%; /* 親要素の幅に合わせる */
    height: 100%; /* 高さも親要素に合わせる */
    object-fit: cover; /* 縦横比を維持しつつ表示 */
    z-index: 0; /* 背景として他の要素の後ろに配置 */
    border: 8px solid white; /* 白枠を常に表示 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 影で立体感を出す */
}



/* メニューのスタイル */
.hidden {
    display: none;
}

.staff-menu {
    background-color: rgba(34, 0, 0, 0.8);
    padding: 40px 20px 20px 20px;
    max-height: calc(100vh - 100px); /* 画面全体の高さから適切な余白を引いた値 */
    position: fixed;
    top: 88px;
    left: 0;
    overflow-y: auto; /* 縦方向のスクロールを有効に */
    overflow-x: hidden; /* 横方向のスクロールを無効に */
    z-index: 900;
    transition: transform 0.3s ease; /* トランスフォームでアニメーション */
    transform: translateY(0); /* 初期位置は表示状態 */
}


/* メニューが非表示のときに上へ移動 */
.menu-hidden .staff-menu {
    transform: translateY(-120%); /* 上に完全に隠す */
}

/* アイコンのスタイル */
#maid-icon {
    position: fixed;
    bottom: 20px; /* 画面下部に固定 */
    left: 20px;
    width:64px;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease; /* 表示非表示のアニメーション */
    opacity: 1;
    transform: translateY(0); /* 初期位置は表示状態 */
}


.staff-menu ul {
    list-style-type: none;
    padding: 0;
}

.staff-menu ul li {
    position: relative; /* 親要素を相対位置に設定 */
    margin-bottom: 20px; /* 各リストアイテムの下に少しスペースを追加 */
}

.staff-menu ul li a img {
    width: 100%; /* 横幅を100%に設定 */
    height: 128px; /* 高さを128pxに設定 */
    object-fit: cover; /* 画像の比率を保ちながら表示 */
    border-radius: 10px; /* 角を丸くする */
}

.staff-name {
    position: absolute; /* 名前を絶対位置で配置 */
    bottom: 0; /* 画像の下部に配置 */
    left: 0;
    width: 100%;
    text-align: center; /* 名前を中央に配置 */
    background-color: rgba(0, 0, 0, 0.5); /* 背景を半透明にする */
    color: white; /* 文字の色を白に設定 */
    padding: 5px 0; /* 少しパディングを追加 */
    font-size: 14px; /* 文字サイズを調整 */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px; /* 画像の角に合わせて丸くする */
}

.staff-details {
    position: relative; /* 背景画像の上に重なるように relative を設定 */
    z-index: 1; /* 背景画像の上に表示されるように z-index を設定 */
    background-color: rgba(34, 0, 0, 0.8); /* 半透明の背景色を付けて読みやすくする */
    padding: 20px;
    margin-left: auto;
    width: 24%; /* 固定の幅設定 */
    color: white; /* テキストの色を白に設定 */
}

.staff-details h2 {
    border-bottom: 2px solid #fff; /* 白い下線を追加 */
    padding-bottom: 5px; /* テキストと下線の間に余白を追加 */
}
.staff-details h1 {
    padding-bottom: 7px; /* h1 と下線の間の余白 */
    margin-top: 20px; /* 各項目の間隔を調整 */
    font-size: 1.2rem;
}

.staff-details p {
    margin-top: -8px; /* h1 と密接しすぎないように */
    margin-bottom: 8px; /* 各 p の下の余白 */
    text-indent: 0.8em; /* 段落の最初の文字をインデント */
    line-height: 1.5; /* 読みやすいように行間を調整 */
}


.staff-details img {
    width: 100%; /* 指定した横幅 */
    height: 60px; /* 指定した縦幅 */
    object-fit: cover; /* 画像の一部を切り取って表示 */
    object-position: center; /* 画像の中央を基準に表示 */
    display: block;
    border-radius: 10px; /* 角を丸くする */
    margin-bottom: 10px;
    cursor: pointer; /* クリック可能に */
}


.staff-details a {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto; /* 中央に配置 */
}

.staff-details a img {
    width: 100%; /* リンクの大きさに合わせる */
    height: 100%;
    object-fit: cover; /* 画像の大きさに合わせてカバー */
}

.background-copyright {
    position: absolute; /* 常に画面の同じ位置に表示 */
    bottom: 22px; /* 画面下からの位置 */
    right: 60px; /* 画面右からの位置 */
    color: rgba(255, 255, 255, 0.7); /* テキスト色と透過度 */
    border-radius: 4px; /* 角を少し丸く */
    font-size: 1rem;
    z-index: 800; /* 他の要素より前面に表示 */
}

/*menuページの対応*/
.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #e0e0e0;
  padding: 60px 0;
  width: 100%;
}

.section__head {
  text-align: center;
  margin-bottom: 2rem;
}

.section__head__title {
  font-weight: 600;
  font-size: 2.5rem;
  color: #333;
}

.section__body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* カード間の隙間を追加 */
}

.subsection__title{
  padding-top: 18px;
  color: #333;
}
/* box内のcardを横並びにする */
.box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px; /* カード間のスペース */
}

/* cardのスタイル */
/* box内のcardを横並びにする */
.box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px; /* カード間のスペース */
  box-sizing: border-box; /* パディングを含めたサイズ調整 */
}

/* cardのスタイル */
.card {
  background-color: #f5f5f5;
  color: #424242;
  width: calc(33.33% - 32px); /* 3列表示 */
  margin: 16px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  box-sizing: border-box; /* パディングとマージンのサイズ調整 */
}

.card:hover {
  transform: translateY(-10px); /* ホバー時のアニメーション */
}

.card__head {
  background-color: #ba9b68;
  color: white;
  padding: 16px;
  font-size: 1.5rem;
  text-align: center;
}

.card__body {
  padding: 16px;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* スマホ対応でカードを縦並びにする */
@media screen and (max-width: 768px) {
    .box {
    flex-direction: column;
    align-items: center;
  }
  
  .card {
    width: 96%; /* スマホサイズでは横幅100%にする */
    margin: 8px 0; /* 上下の余白だけを設定し、左右の余白をなくす */
  }
}
/*メニュー*/
/*ルール*/
/* Content section layout */
.content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background-color: #ffe4e4; /* 背景色を他のデザインと合わせる */
    min-height: 70vh;
}

/* Left text area */
.rules-text {
    width: 60%;
    padding: 20px;
    margin: 40px;
    font-size: 1.2rem;
    color: #333;
}

.rules-text h2 {
    font-size: 2rem;
    color: #c93059; /* タイトルカラー */
    margin-bottom: 20px;
}

.rules-text ul {
    list-style-type: decimal; /* ナンバリングを表示 */
    padding-left: 20px; /* 左に余白をつけて読みやすく */
}


.rules-text li {
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 400;
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px; /* 各リストアイテムの間に余白を追加 */
}

.rules-text li::before {
    position: absolute;
    left: 0;
    color: #ba9b68;
    font-size: 1.5rem;
}

/* Right image area */
.rules-image {
    width: 35%;
    display: flex;
    justify-content: center;
}

.rules-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Reverse layout for index page */
.reverse-layout {
    flex-direction: row-reverse;
}

/* Mobile view: stack image on top of text */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .rules-text {
        width: 100%;
        padding: 10px;
        text-align: center;
    }

    .rules-image {
        width: 100%;
        margin-bottom: 20px;
    }

    .rules-image img {
        width: 100%;
    }
    /* Override reverse layout on mobile */
    .reverse-layout {
        flex-direction: column;
    }
}

/*ルール〆*/
/*サービス*/
/* Content section layout */
.service-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #e0e0e0; /* 背景色を他のデザインと合わせる */
    min-height: 50vh;
    margin-bottom: 20px;
}

.service-text {
    width: 60%;
    padding: 20px;
    font-size: 1.2rem;
    color: #333;
}

.service-text h2 {
    font-size: 2rem;
    color: #ba9b68; /* タイトルカラー */
    margin-bottom: 15px;
}

.service-image {
    width: 35%;
    display: flex;
    justify-content: center;
}

.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Reverse layout for alternating sections */
.reverse {
    flex-direction: row-reverse;
}

/* Mobile view: stack image on top of text */
@media (max-width: 768px) {
    .service-section {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .service-text {
        width: 100%;
        padding: 10px;
        text-align: center;
    }

    .service-image {
        width: 100%;
        margin-bottom: 20px;
    }

    .service-image img {
        width: 100%;
    }

    /* Override reverse layout on mobile */
    .reverse {
        flex-direction: column;
    }
}

/*サービス〆*/
footer {
    color:rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 10px;
    position: relative;
    background-color: rgba(227, 152, 196, 1); /* 透過させない */
    margin-top: auto; /* フッターがコンテンツの最後に表示されるようにする */
}
.special-footer {
    color:rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 10px;
    position: relative;
    background-color: rgba(227, 152, 196, 1); /* 透過させない */
    margin-top: auto; /* フッターがコンテンツの最後に表示されるようにする */
}

/* スマホ対応時 */
@media (max-width: 768px) {
    .main-content {
        display: flex;
        flex-direction: column; /* 縦方向に要素を並べる */
        align-items: center; /* コンテンツを中央に配置 */
        padding: 0; /* パディングを調整 */
    }

    .staff-details {
        position: relative; /* positionをabsoluteではなくrelativeに変更 */
        width: 90%; /* 幅を画面に合わせて調整 */
        top:220px;
        margin: 20px auto; /* 上下に適度なスペースを持たせて中央に配置 */
        padding: 10px;
        background-color: rgba(34, 0, 0, 0.8); /* 背景を半透明にして読みやすくする */
        color: white; /* テキストの色を白に設定 */
        border-radius: 10px; /* 角を丸くする */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 影を付ける */
    }
    
    /* 必要に応じてメインコンテンツ全体の幅を調整 */
    .content-background {
        width: 100%; /* 背景画像の幅も100%に */
        height: auto; /* 高さは自動調整 */
        margin-bottom: 20px; /* 下にスペースを確保 */
        border: 4px solid white; /* 白枠を常に表示 */

    }

    .special-footer {
        margin-top: 20px;
        width: 100%;
        top:200px;
        text-align: center;
    }

    .background-copyright {
        text-align: center;
        top:190px;
        right:20px;
        font-size: 0.8rem;
    }
}