/* グローバルリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ボディの基本スタイル */
body, html {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

body.menu-open {
    overflow: hidden; /* メニューが開いているときにスクロールを無効にする */
}

/* ヘッダー */
.header {
    padding: 10px 20px;
    color: #fff;
}

.header__container {
    display: flex;
    flex-direction: column; /* デフォルトは縦並び */
    justify-content: center; /* 中央揃え */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header__logo-image {
    height: 50px;
}

.header__nav {
    margin-top: 20px;
}

.header__nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.header__nav-item {
    margin-left: 20px;
}

.header__nav-item:first-child {
    margin-left: 0;
}

.header__nav-link {
    text-decoration: none;
    color: black;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.header__nav-link:hover {
    color: #f39c12;
}

.header__nav-link.active {
    color: #f39c12;
    font-weight: bold;
}

/* トグルボタンのスタイル */
.header__toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    display: none; /* デフォルトでは非表示 */
    position: relative;
    width: 30px;
    height: 25px;
    z-index: 1100; /* メニューより前面に表示 */
}

.header__toggle-icon {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__toggle-icon:nth-child(1) {
    top: 0;
}

.header__toggle-icon:nth-child(2) {
    top: 11px;
}

.header__toggle-icon:nth-child(3) {
    top: 22px;
}

/* メニューが開いているときのトグルボタンのスタイル */
.header__toggle-button.open .header__toggle-icon:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.header__toggle-button.open .header__toggle-icon:nth-child(2) {
    opacity: 0;
}

.header__toggle-button.open .header__toggle-icon:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

/* メディアクエリでスマホ用のスタイルを設定 */
@media screen and (max-width: 768px) {
    .header__container {
        flex-direction: row; /* 横並びに変更 */
        justify-content: space-between; /* ロゴとトグルボタンを両端に配置 */
        align-items: center;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0; /* 左位置を0に */
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        transition: transform 0.3s ease;
        transform: translateX(-100%); /* 初期状態で画面外に */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000; /* 他の要素より前面に表示 */
    }

    .header__nav.open {
        transform: translateX(0); /* メニューを表示 */
    }

    .header__nav-list {
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .header__nav-item {
        margin: 15px 0;
    }

    .header__nav-link {
        font-size: 1.5rem;
    }

    .header__toggle-button {
        display: block; /* トグルボタンを表示 */
    }
}

    /* PC表示ではナビゲーションを非表示 */
@media screen and (min-width: 769px) {
    .header__nav {
        transform: translateX(0);
    }

    .header__toggle-button {
        display: none;
    }
}

/* メニューが開いているときにオーバーレイを表示（必要に応じて） */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
    z-index: 900; /* メニューの下、他のコンテンツの上に表示 */
    display: none;
}

body.menu-open .overlay {
    display: block;
}



/* フッター */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
    text-align: center;
    padding-bottom: 120px;
    width: 100%;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__copy {
    margin-bottom: 10px;
}

.footer__nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.footer__nav-item {
    margin: 0 15px;
}

.footer__nav-link {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer__nav-link:hover {
    color: #f39c12;
}

/* フローティングリンクのスタイル */
.floating-links {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    vertical-align: middle;
}

/* ボタンを包むコンテナ */
.floating-links__container {
    display: inline-flex;
    border-radius: 20px;
    overflow: hidden; /* 子要素のボーダーがはみ出さないように */
    background-color: #fffdf6;
    text-align: center;
    vertical-align: center;
}

/* ボタンの基本スタイル */
.floating-link {
    padding: 10px 20px;
    background-color: #fffdf6;
    color: #282d27;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    display: inline-block;
    min-width: 160px;
    vertical-align: middle;
}

/* ボタンのホバースタイル */
.floating-link:hover {
    background-color: #e67e22;
}

.floating-link--call:hover {
    background-color: #2980b9;
}

/* スマートフォンやタブレット用にボタンの大きさを調整 */
@media screen and (max-width: 768px) {
    .floating-link {
        padding: 10px 15px;
        font-size: 1rem;
    }
}


/* ボタンのスタイル */
.button {
    padding: 10px 20px;
    background-color: #f39c12;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #e67e22;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .header__nav-list {
        flex-direction: column;
        align-items: center;
    }
}


/* フッターをブラウザ下部に固定するための追加スタイル */
html {
    position: relative;
    min-height: 100%;
  }
  
  body {
    margin: 0;
    padding-bottom: 200px; /* フッターの高さ分の余白を確保 */
    box-sizing: border-box;
  }
  
  .footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px; /* フッターの高さ */
  }
  