body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin: 20px;
    background-color: #00E77C;
}

.container {    
    max-width: 1200px; /* 最大幅を800pxから600pxに変更 */
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    width: 98%;
    height: auto;
    fill: #00E77C;
}

.group {
    margin-bottom: 30px; /* グループの終わりに余白を追加 */
}

.logo_02 {
    text-align: center;
    margin-top: 3%; /* 追加する余白 */
    margin-bottom: 5%; /* 追加する余白 */
}

.logo_02 img {
    width: 98%;
    height: auto;
    fill: #00E77C;
}
h2 {
    font-size: 20px;
    color: #333;
    text-align: center;
    margin-bottom: -15px;
}

h3 {
    color: #333;
    margin-bottom: -3px;
    margin-top: 10px; /* 上の余白を詰める */
    text-align: left; /* 左に寄せる */
}

h4 {
    color: #333;
    text-align: center;
    margin-bottom: px;
}

.details {
    text-align: left; /* 左に寄せる */
    margin-top: 5px; /* 上の余白を詰める */
    margin-bottom: 5px; /* 下の余白を詰める */
}

.text-block {
    margin: 0 auto; /* 中央に配置 */
    text-align: left; /* 中のコンテンツを左に合わせる */
    max-width: 80%; /* 最大幅を設定 */
}

/* `toggle-links` ボタンの基本スタイル */
/* フロートメニュー内の矢印ボタン */
.toggle-links {
    background: none !important; /* 背景を透明にする */
    border: none; /* ボーダーを削除 */
    width: 40px; /* ボタンの幅（調整可） */
    height: 40px; /* ボタンの高さ（調整可） */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto; /* 上下に余白をつけて中央配置 */
}

/* ボタン内の矢印画像 */
.toggle-links img {
    width: 100%; /* 画像サイズをボタン内にフィット */
    height: auto;
}




.button-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    gap: 10px;
    justify-content: center;
}

button {
    padding: 8px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    background-color: rgb(38, 0, 255); 
}

button:hover {
    opacity: 0.8;
    background-color: red; /* ホバー時に赤くする */
}

button:disabled {
    background-color: #ccc; /* 無効化されたボタンの色 */
    cursor: not-allowed; /* 無効化されたボタンのカーソル */
}

button:first-child {
    color: white;
}

button:last-child {
    background: #8a8a8a;
    color: white;
}

.order-form button {
    background-color: #ff4800; /* ダウンロードボタンの初期色 */
    color: white;
}

.order-form button:hover {
    background-color: rgb(25, 0, 255); /* ホバー時に赤くする */
}

.item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    overflow: hidden;
    background: #fafafa;
    padding: 20px;
    padding-bottom: 30px;
    border-radius: 5px;
    transition: 0.3s;
    max-width: 100%;
    width: auto;
    text-align: center;
    cursor: pointer; /* クリック可能にするためのカーソル */
}

.item input[type="checkbox"] {
    margin-top: 10px;
}

.item img {
    max-width: 100%;
    height: auto;
}

.preview {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: white;
    border-radius: 10px;
}

.preview img {
    max-width: 100%;
    height: auto;
}

.total {
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
    color: #333;
}

.order-form {
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

.floating-menu {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: rgb(255, 206, 0);
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
    border-radius: 10px;
    width: 150px; /* 固定幅を設定 */
    cursor: move; /* ドラッグ可能にするためのカーソル */
}

.floating-menu .link-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    display: none; /* 初期状態で非表示 */
}

.floating-menu a {
    display: block;
    width: 45%; /* 幅を調整 */
    margin-bottom: 5px;
    color: rgb(0, 60, 255);
    text-decoration: none;
    text-align: center; /* 中央揃えに変更 */
}

.floating-menu a:hover {
    text-decoration: underline;
}

.floating-menu a:active {
    color: white;
}

.floating-price {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap; /* テキストの折り返しを防止 */
}

.total-price {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgb(255, 255, 255);
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
    border-radius: 10px;
}



.modal {
    display: none; /* 初期状態で非表示 */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* 背景を暗くする */
    align-items: center; /* 中央揃えにする */
    justify-content: center; /* 中央揃えにする */
}

.modal-content {
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
}

.modal-content img {
    width: 100%;
    height: auto;
}

.close {
    color: white;
    float: right;
    font-size: 20px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


footer {
    margin: auto;
    max-width: 1240px;
    background-color: #003cff;
    color: white;
    padding: 10px 0;
    text-align: center;
    bottom: 0;
    width: 100%; /* 最大幅を設定 */
    border-radius: 10px; /* 角丸を適用 */
  }
  
  .footer-content {
    display: flex;
    max-width: 1200px;

    justify-content: space-between; /* 左右に配置 */
    align-items: center; /* 高さを揃える */
    padding: 10px 20px; /* 余白を適度に調整 */
    width: 100%;
    margin: auto; /* 中央配置 */
  }
  
  .footer-left {
    display: flex;
    align-items: center;
  }
  
  
  .footer-left img {
    width: auto; /* 幅を自動調整 */
    height: 40px; /* 適切な高さを指定（調整可） */
    max-width: 200px; /* 最大幅を設定して極端に小さくならないようにする */
  }
  
  .footer-right {
    display: flex;
    align-items: center;
    gap: 15px; /* アイコンの間隔 */
  }
  
  /* アイコンのサイズ調整 */
  .footer-icon {
    width: 24px;
    height: 24px;
  }
  
  .top-link {
    font-size: 14px;
    color: white;
    text-decoration: none;
    margin-right: 10px; /* TOPの右側に余白 */
  }
  
  .top-link:hover {
    text-decoration: underline;
  }




  @media (max-width: 767px) {

    body {
        font-family: Arial, sans-serif;
        font-size: 3.2vw;
        margin: 8px;
        background-color: #00E77C;
    }

    .floating-menu {
        width: 100px; /* スマホでの幅を小さくする */
        padding: 5px; /* パディングを小さくする */
        font-size: 12px; /* フォントサイズを小さくする */
    }
    .floating-menu h2 {
        font-size: 14px; /* 見出しのフォントサイズを小さくする */
    }
    .floating-menu a {
        font-size: 12px; /* リンクのフォントサイズを小さくする */
    }
    .floating-menu .button-container button {
        font-size: 12px; /* ボタンのフォントサイズを小さくする */
        padding: 5px; /* ボタンのパディングを小さくする */
    }
    .floating-price {
        font-size: 12px; /* 価格表示のフォントサイズを小さくする */
    }


    .text-block {
        margin: 0 auto; /* 中央に配置 */
        text-align: left; /* 中のコンテンツを左に合わせる */
        max-width: 95%; /* 最大幅を設定 */
    }

.toggle-links {
    background: none !important; /* 背景を透明にする */
    border: none; /* ボーダーを削除 */
    width: 40px; /* ボタンの幅（調整可） */
    height: 40px; /* ボタンの高さ（調整可） */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto; /* 上下に余白をつけて中央配置 */
}

/* ボタン内の矢印画像 */
.toggle-links img {
    width: 100%; /* 画像サイズをボタン内にフィット */
    height: auto;
}


    .footer-left img {
        width: auto; /* 幅を自動調整 */
        height: 40px; /* 適切な高さを指定（調整可） */
        max-width: 150px; /* 最大幅を設定して極端に小さくならないようにする */
      }
  
}