@charset "UTF-8";

.popup {
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  overflow: visible !important;
}

.popup.on {
  opacity: 1;
  pointer-events: auto;
}

.popup_bg {
  background: rgba(104, 104, 106, 0.8);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.popup_content {
  position: fixed;
  top: 1%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 90%;
  max-width: 400px;
  background: #fff;
  z-index: 10000;
}

.popup_content div {
  width: 90%;
  margin: 0 auto;
  padding: 15px 0;
  position: relative;
}

.popup_content .batu {
  position: absolute;
  z-index: 3;
  top: -45px;
  color: #fff;
  right: 0;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.popup_content iframe {
  width: 100%;
  height: 40vw;
}

.pop-map {
  width: 13px !important;
  margin: 0 !important;
}

.popup_content h2 {
  margin: 0 0 15px;
  line-height: 1;
  padding: 0 0 8px !important;
  border-bottom: 3px solid #05418a;
  font-size: 24px !important;
  text-align: left;
}

.popup_content table {
  border: 1px solid #d9d9d9 !important;
  box-sizing: border-box;
  border-collapse: collapse;
  margin: 10px 0;
  width: 100%;
}

.popup_content table th {
  width: 25% !important;
  background: #ac9a49;
  text-align: center;
  color: #fff;
  font-size: 12px !important;
  position: relative !important;
  left: 0;
  right: 0;
  padding: 10px 0;
}
.popup_content table th,
.popup_content table td {
  border: 1px solid #d9d9d9 !important;
}

.popup_content table td {
  font-size: 10px;
  line-height: 1.6;
  padding: 14px 10px;
  font-weight: bold;
  color: #8c8c8c;
  text-align: left;
}

.popup_content p {
  text-align: right !important;
  display: inline-block;
  padding: 0;
  margin: 0;
  display: block;
}

.popup_content p a {
  font-weight: bold;
  color: #05418a;
  font-size: 14px;
}

.store-map {
  width: 100% !important;
  padding: 5px 0 10px !important;
}

.map-button {
  cursor: pointer;
}

.store_name_pop {
  font-size: 16px;
}

@media screen and (min-width: 700px) {
  .popup_content iframe {
    width: 100%;
    height: 200px;
  }
  .popup_content table td {
    font-size: 12px;
    padding: 15px 10px;
  }
  .popup_content p a {
    font-size: 16px;
  }
  .popup_content {
    max-width: 500px;
  }
  .popup_content {
    top: 0%;
    transform: translate(0%, 0%);
    -webkit-transform: translate(0%, 0%);
    -ms-transform: translate(0%, 0%);
  }
  .store_name_pop {
    font-size: 1em !important;
  }
}
/* ==============================================
   モーダル（デザイン合わせ）
   既存 .popup/.popup_content を上書き
   ============================================== */

/* オーバーレイ兼コンテナ */
.accodion .popup{
  display:none;
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  background:rgba(0,0,0,0.6);
  justify-content:center;
  align-items:center;
  padding:20px;
  z-index:9999;
  opacity:1;           /* 既存のfade挙動を無効化 */
  pointer-events:auto; /* 既存の無効化を解除 */
}
.accodion .popup.on{
  display:flex;
}

/* 背景レイヤー（残してもOK） */
.accodion .popup_bg{
  background:transparent; /* 背景は .popup で付与するため透明化 */
}

/* コンテンツ */
.accodion .popup_content{
  background:#fff;
  width:90%;
  max-width:520px;
  border-radius:8px;
  padding:20px;
  position:relative;
}

/* 閉じるボタン */
.accodion .popup_content .batu{
  position:absolute;
  right:12px;
  top:12px;
  background:none;
  border:none;
  font-size:22px;
  cursor:pointer;
  color:#333;
}

/* タイトル */
.accodion .popup_content h2{
  font-size:18px !important;
  margin-bottom:12px;
  font-weight:bold;
  border:none;
  padding:0 !important;
}

/* Map iframe サイズ調整（レスポンシブ） */
.accodion .popup_content iframe{
  width:100%;
}

/* テーブル */
.accodion .popup_content table{
  width:100%;
  border-collapse:collapse;
  margin:12px 0;
  border:1px solid #cecece !important;
}
.accodion .popup_content table th{
  position:inherit !important;
  width:90px !important;
  background:#7792ad;
  color:#fff;
  padding:10px;
  font-size:12px !important;
  border:1px solid #ffffff !important;
  vertical-align:top;
  text-align:center;
}
.accodion .popup_content table td{
  padding:10px;
  font-size:13px;
  border:1px solid #cecece !important;
  color:#333;
  font-weight:normal;
  word-break: break-word;
  white-space: normal !important;
}

/* CTAボタン */
.accodion .store_link_pop{
  display:block;
  text-align:center;
  background:#0ab32e !important;
  color:#fff !important;
  padding:12px 0;
  border-radius:6px;
  margin-top:18px;
  font-size:15px !important;
  font-weight:bold;
  box-shadow:0 5px 0 #068a22 !important;
}
.accodion .store_link_pop::after{
  content:"▶";
  font-size:14px;
  margin-left:6px;
  display:inline-block;
  font-family:sans-serif;
}

/* スマホ調整 */
@media (max-width: 768px){
  .accodion .popup{
    display:none;
    position:fixed;
    top:0; left:0;
    width:100%; height:100%;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
    padding:20px;
    z-index:9999;
  }
  .accodion .popup.on{
    display:flex;
  }
  .accodion .popup_content{
    width:95%;
    max-height:90vh;
    overflow-y:auto;
    padding:14px;
    border-radius:8px;
  }
  .accodion .popup_content h2{
    font-size:16px !important;
    margin-bottom:10px;
    text-align:center;
    line-height:1.4;
  }
  .accodion .popup_content iframe{
    width:100%;
    height:220px;
  }
  .accodion .popup_content table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
    margin:10px 0;
  }
  .accodion .popup_content table th{
    width:28% !important;
    padding:10px 6px;
    font-size:12px !important;
    line-height:1.2;
    white-space:nowrap;
    text-align:center;
  }
  .accodion .popup_content table td{
    width:72%;
    padding:10px 8px;
    font-size:12px;
    line-height:1.5;
    word-break:break-word;
  }
  .accodion .popup_content table tr{
    vertical-align:middle;
  }
  .accodion .store_link_pop{
    width:100%;
    font-size:14px !important;
    margin-top:12px;
    padding:12px 0;
  }
  .accodion .popup_content .batu{
    font-size:26px;
    right: -10px;
    top: -10px;
  }
}
