/* Google FontsのZen Maru Gothicをインポート */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500&display=swap');

/* 共通カラーを定義 */
:root {
    --blue: #004684;
    --gold: #BAA13A;
    --gold-light: #E8CE63;
    --beige: #E9DFC6;
    --beige-light: #FAF0D7;
    --brown: #4C4029;
    --brown-light: #9D875E;
    --white: #ffffff;
    --error: #f44336;
    --font-regular: 400;
    --font-medium: 500;
    --font-body01: 20px 'Zen Maru Gothic', sans-serif;
    --font-body02: 22px 'Zen Maru Gothic', sans-serif;
    --font-label: 24px 'Zen Maru Gothic', sans-serif;
    --font-caption: 20px 'Zen Maru Gothic', sans-serif;
    --font-button01: 26px 'Zen Maru Gothic', sans-serif;
    --font-button02: 20px 'Zen Maru Gothic', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-width: 820px; /* 最小幅を設定 */
    overflow-x: auto; /* 横スクロールを許可 */
    font: var(--font-body01);
    font-weight: var(--font-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.container {
    position: relative;
    width: 100%;
    max-width: 1024px;
    max-height: 768px;
    margin: 0 auto;
}
.frame {
    position: relative;
    width: 1024px;
    height: 768px;
}
.gold-button{
    background-color: var(--gold);
    border: none;
    cursor: pointer;
    position: relative;
    font: var(--font-button01);
    font-weight: var(--font-medium);
    color: var(--brown);
    border-radius: 2px;
}
.gold-button span.c-left, .gold-button span.c-right {
    position: absolute;
    top: calc(50% - 30px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--gold);
    z-index: 0;
}
.gold-button span.c-left {
    left: -18px;
}
.gold-button span.c-right {
    right: -18px;
}
.gold-button::before, .beide-button::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid var(--brown); /* 内側の線の色と太さ */
    border-radius: 1px;
    pointer-events: none; /* この要素がクリックイベントを妨げないようにする */
    z-index: 1;
}
.gold-button span.c-left::before,.gold-button span.c-right::before  {
    position: absolute;
    content: '';
    top: calc(50% - 26px);
    width: 52px;
    height: 52px;
    border-top: 1px solid var(--brown);
    border-bottom: 1px solid var(--brown);
    pointer-events: none;
}
.gold-button span.c-left::before {
    left: 4px;
    border-left: 1px solid var(--brown);
    border-radius: 50vw 0 0 50vw;
}
.gold-button span.c-right::before {
    right: 4px;
    border-right: 1px solid var(--brown);
    border-radius: 0 50vw 50vw 0;
}
.large-button::after {
    position: absolute;
    content: '';
    top: calc(50% - 26px);
    left: 4px;
    width: 261px;
    height: 43px;
    border: 6px solid var(--gold);
    pointer-events: none;
    z-index: 2;
}
.beide-button::before {
    border-radius: 30px;
}
/* ホバー時のスタイル */
.gold-button:hover, .gold-button:active {
    background-color: var(--gold-light); /* 背景色を少し明るく */
}
.gold-button:hover span.c-left, .gold-button:active span.c-left, .gold-button:hover span.c-right, .gold-button:active span.c-right {
    background-color: var(--gold-light);
}
.large-button:hover::after, .large-button:active::after {
    border-color: var(--gold-light);
}

.beide-button {
    background-color: var(--beige);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font: var(--font-button02);
    font-weight: var(--font-medium);
    color: var(--brown);
}
/* ホバー時のスタイル */
.beide-button:hover, .beide-button:active {
    background-color: var(--beige-light); /* 背景色を少し明るく */
}
/* 押下時のスタイル */
.beide-button:active, .gold-button:active {
    transform: scale(0.98); /* ボタンを少し縮小 */
}
/* 無効化されたボタンのスタイル */
.gold-button.disabled, .beide-button.disabled {
    opacity: 0.7; /* 透明度を30%に設定 */
    pointer-events: none; /* ホバーやクリックを無効化 */
    cursor: default; /* 通常のカーソルに戻す */
}
.displaynone{
    display:none !important;
}

/* モーダルダイアログ */
#modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
  }
  
  #modal .modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 400px;
    text-align: center;
  }
  
  #modal .modal-content h2 {
    color: #333;
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 15px;
  }
  
  #modal .modal-content p {
    color: #666;
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 1em;
    line-height: 1.4;
  }
  
  #modal .button-group {
    display: flex;
    justify-content: space-around;
  }
  
  #modal .button-group button {
    width: 45%;
    padding: 10px 0;
    font-size: 16px;
  }
