/* ===== 基準 ===== */
.arrowsTel{ position: static; }
.arrowsTel__modal{ display: none; }

@media screen and (max-width: 1024px){
  .arrowsTel{ z-index: 100; }
}

@media screen and (max-width: 599px){
  
  .arrowsTel__ttl{
    margin-left: 0px;
  }
  .fix-list li:first-of-type a span {
        left: 0px;
        position: relative;
        margin-left: 0px;
    }
  

  /* モーダル本体：下部バー直上に固定 */
  .arrowsTel__modal{
    display: block;
    position: fixed;
    left: 50%;
    bottom: 92px;               /* 下部バーの高さぶん上げる。ズレたらここだけ調整 */
    z-index: 9999;
    width: calc(100% - 24px);
    max-width: 380px;
    padding: 20px 16px 20px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateX(-50%) translateY(8px);
    transform: translateX(-50%) translateY(8px);
    -webkit-transition: opacity .25s ease, -webkit-transform .25s ease, visibility .25s;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .arrowsTel.is-open .arrowsTel__modal{
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateX(-50%) translateY(0);
    transform: translateX(-50%) translateY(0);
  }

  /* 内部要素の継承リセット */
  .arrowsTel__modal, .arrowsTel__modal *{ box-sizing: border-box; }

  /* リスト：横並び2カラム */
  .arrowsTel__list{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .arrowsTel__list li{
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0;
    flex: 1 1 0 !important;
    min-width: 0 !important;              /* flex内の折り返し許可 */
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }
  /* 縦の区切り線 */
  .arrowsTel__list li + li{
    margin: 0 !important;
    padding: 0 !important;
    border-top: none !important;
    border-left: 1px solid #e5e5e5 !important;
  }
  .arrowsTel__list a{
    display: block !important;
    padding: 4px 8px !important;
    background: none !important;          /* 赤い箱を消す */
    color: inherit !important;
    text-decoration: none !important;
    text-align: center !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
    border: none !important;
    min-height: 0 !important;
  }
  .arrowsTel__list a::before,
  .arrowsTel__list a::after{ content: none !important; }

  /* 見出し */
  .arrowsTel__ttl{
    display: block;
    margin: 0 0 12px;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
    line-height: 1.4;
  }

  /* 塾名：幅が狭いので改行許容・高さそろえ */
  .arrowsTel__name{
    display: block;
    margin-bottom: 4px;
    min-height: 2.6em;
    color: #3371b2;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .02em;
  }

  /* 電話番号：横並びで1行に収める */
  .arrowsTel__num{
    display: block !important;
    color: #c8103e !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -.02em !important;
    white-space: nowrap !important;
  }

  /* 注釈 */
  .arrowsTel__note{
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 16px 0 0 !important;
    padding-top: 12px !important;
    border-top: 1px solid #eee !important;
    color: #888 !important;
    font-size: 12px !important;
    text-align: center !important;
    clear: both !important;
    float: none !important;
  }

  /* ✕ボタン */
  .arrowsTel__close{
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    background: #c8103e;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    z-index: 1;
  }
  .arrowsTel__close::before,
  .arrowsTel__close::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #fff;
  }
  .arrowsTel__close::before{ -webkit-transform: translate(-50%,-50%) rotate(45deg); transform: translate(-50%,-50%) rotate(45deg); }
  .arrowsTel__close::after{ -webkit-transform: translate(-50%,-50%) rotate(-45deg); transform: translate(-50%,-50%) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce){
  .arrowsTel__modal{ transition: none; }
}

@media screen and (max-width: 599px){

  /* お問い合わせモーダル */
  .arrowsCon{ position: static; }
  .arrowsCon__modal{
    display: block;
    position: fixed;
    left: 50%;
    bottom: 92px;
    z-index: 9999;
    width: calc(100% - 24px);
    max-width: 380px;
    padding: 20px 16px 14px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateX(-50%) translateY(8px);
    transform: translateX(-50%) translateY(8px);
    -webkit-transition: opacity .25s ease, -webkit-transform .25s ease, visibility .25s;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .arrowsCon.is-open .arrowsCon__modal{
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateX(-50%) translateY(0);
    transform: translateX(-50%) translateY(0);
  }
  .arrowsCon__modal, .arrowsCon__modal *{ box-sizing: border-box; }

  .arrowsCon__ttl{
    display: block;
    margin: 0 0 14px;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
    line-height: 1.4;
  }

  .arrowsCon__list{
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .arrowsCon__list li{
    flex: 1 1 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }
  .arrowsCon__list li + li{
    border-left: 1px solid #e5e5e5 !important;
  }
  .arrowsCon__list a{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 64px !important;
    padding: 8px 10px !important;
    background: none !important;
    color: #c8103e !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
  }
  .arrowsCon__list a::before,
  .arrowsCon__list a::after{ content: none !important; }
  .arrowsCon__name{ display: block; }

  /* ×ボタン（電話側と同じ） */
  .arrowsCon__close{
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    background: #c8103e;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    z-index: 1;
  }
  .arrowsCon__close::before,
  .arrowsCon__close::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #fff;
  }
  .arrowsCon__close::before{ -webkit-transform: translate(-50%,-50%) rotate(45deg); transform: translate(-50%,-50%) rotate(45deg); }
  .arrowsCon__close::after{ -webkit-transform: translate(-50%,-50%) rotate(-45deg); transform: translate(-50%,-50%) rotate(-45deg); }
}

.arrowsCon__modal{ display: none; }
@media screen and (max-width: 1024px){ .arrowsCon{ z-index: 100; } }

@media screen and (max-width:599px) {
.arrowsCon.is-open .arrowsCon__modal{
    display: block !important;
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateX(-50%) translateY(0);
    transform: translateX(-50%) translateY(0);
  } 
  
  .fix-list li:last-of-type span.arrowsTel__name{
    color: rgb(38 131 96);
  }
  
    .fix-list li:first-of-type span.arrowsTel__name{
    color: rgba(0, 78, 162, 255);
  }
  
  .arrowsCon__list li:first-of-type a span{
    color: #004ea2;
  }
  
    .arrowsCon__list li:last-of-type a span{
    color: rgb(38 131 96);
  }
  
  
}

