p.text{
    text-align: left;
    margin-bottom: 1em;
}
#plan .inner>.warning-mark {
    text-align: left
}

#plan .table {
    width: 100%;
    margin: 0 auto 1em
}

#plan .table strong {
    font-size: 1.2em
}

#plan .table ul.disc {
    padding-bottom: 1em
}

#plan .table ul.disc li {
    text-align: left
}

#plan .table ul.disc li.grey {
    color: #A2A2A2
}

#plan .table .warning-mark {
    margin-bottom: .5em;
    text-align: left;
}

#plan .table .price {
    padding: .6em 0 0
}

#plan .table .price .fb {
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end
}

#plan .table .price strong {
    display: block;
    line-height: 1;
    font-size: 2.6em;
    margin-right: .1em
}

.planlist .with-function {
    background: #036EB8;
    color: #fff;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    padding: 0.5em;
    border-radius: 50%;
    font-size: 0.5em;
}

#plan .with-function:before {
    content: "\f00c";
    display: inline-block;
    vertical-align: middle;
}

#plan .no-function {
    display: inline-block;
    vertical-align: middle;
    color: #9f9c9c;
    line-height: 1;
    width: 1em;
    height: 0.1em;
    background: currentColor;
    border-radius: 0.1em;
    position: relative;
    transform: rotate(45deg);
}

#plan .no-function::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: rotate(90deg);
}

#plan .table .warning-mark {
    text-align: left;
}

#plan .table tr {
    border-bottom: 1px solid #e8eaed;
}

#plan .table tr.bg {
    background: #F2F5F7;
}

#plan .table th {
    padding: .5em;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

#plan .table th span {
    font-size: .7em;
}

#plan .table td {
    padding: .5em;
    text-align: center;
    vertical-align: middle;
}

#plan .table td.bg {
    background: #fff;
}


#plan .table td .quantity {
    display: block;
    line-height: 1;
    font-size: 2.0em;
    margin-right: 0;
}

#plan .table td .text {
    color: #707070;
    padding-bottom: .5em;
}

#plan .table .box_border {
    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
}

#plan .with-function {
    background: #036EB8;
    color: #fff;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    padding: 0.5em;
    border-radius: 50%;
    font-size: 0.5em;
}

#plan .now {
    background: #fff;
    margin: 2em auto 2em;
}

#plan .now .btnred a {
    padding: .5em 1.5em;
    padding-left: 2.5em;
}

#plan .note {
    width: 1200px;
    margin: 1em auto;
    font-size: 14px;
    text-align: left;
}

.planlist {
    width: 100%;
    margin-top: 50px;
}

.planlist th,
.planlist td {
    padding: 0.5em;
    text-align: center;
    border: 1px solid #E8E8E8;
    vertical-align: middle;
    text-align: left;
}

.planlist td:first-child {
    text-align: left;
    position: relative;
    white-space: nowrap;
}

.planlist th {
    background: #F2F5F7;
    font-size: 20px;
    white-space: nowrap;
    text-align: center;
}

@media screen and (max-width: 768px) {
    #plan .inner {
        max-width: 90%;
        overflow-x: auto;
        padding: 0;
    }

    #plan .table {
        display: table;
        margin-bottom: 3em;
        white-space: nowrap;
    }

    #plan .now {
        margin-top: -1.5em;
    }

    .planlist{
        margin-top: 60px;
    }

    #plan .table:last-of-type {
        margin-bottom: 0
    }

    #plan .table.mi769 {
        display: none
    }

    #plan .table>* {
        width: 100%
    }

    .section .inner p {
        text-align: left;
    }
    #plan .note{
        width: 100%;
        margin-top: -60px;
    }
}

@media screen and (max-width: 479px) {
    #plan .plan-box>ul>li {
        display: none;
        width: 100%;
        border: 1px solid #707070;
        border-bottom: none;
        margin-right: 0;
    }

    #plan .plan-box>ul>li:first-child {
        display: block;
        margin: 0;
    }

    #plan .sp-plan-ser {
        width: 100%;
        margin: 0 auto;
        font-size: 8px;
        display: -webkit-flex;
        display: flex;
        -webkit-justify-content: space-evenly;
        justify-content: space-evenly;
        -webkit-align-items: center;
        align-items: center;
        position: relative;
    }

    #plan .sp-plan-ser li {
        padding: 2em 0;
        border: 1px solid #E8E8E8;
        background: #F2F5F7;
        width: 34%;
        margin: 0;
        opacity: 0.6;
        position: relative;
    }

    #plan .sp-plan-ser li:nth-child(1):after,
    #plan .sp-plan-ser li:nth-child(2):after {
        display: block;
        color: #2B2D42;
        position: absolute;
        top: 0px;
        left: 50%;
        transform: translate(-50%, -65%);
        padding: 0.5em;
        background: #ffce06;
        border-radius: 5px;
        width: 80%;
    }

    #plan .sp-plan-ser li:nth-child(1):after {
        content: "1番人気！";
    }

    #plan .sp-plan-ser li:nth-child(2):after {
        content: "コスパ最高！";
    }

    #plan .sp-plan-ser li.active {
        border: 1px solid #666666;
        border-bottom: none;
        background: #E8E8E8;
        opacity: 1.0;
    }

    #plan .sp-plan-ser svg {
        width: 28px;
        height: 28px;
        display: inline-block;
        vertical-align: middle;
    }

    #plan .sp-plan-ser p {
        display: inline-block;
        vertical-align: middle;
    }

    #plan .plan-teble th.hide,
    #plan .plan-teble td.hide {
        display: none;
    }

    #plan .plan-teble {
        margin-top: 0;
        border: 1px solid #707070;
    }

    #plan .plan-box .subtitle {
        font-size: 12px;
        margin: 2em auto 1em;
    }

    #plan .plan-teble th,
    #plan .plan-teble td {
        font-size: 1.0em;
        border-bottom: none;
    }

    #plan .plan-teble td {
        width: 40%;
        border-right: 1px solid #707070;
    }

    #plan .plan-teble td:first-child {
        width: 60%;
        border-right: none;
    }
}


.underline{
    font-weight:bold;
    background: linear-gradient(transparent 60%, rgba(246, 255, 95, 0.8) 60%);
    font-weight:bold;
}



.planlist2 {
    border-collapse: collapse;
    width: 100%;
    font-family: sans-serif;
  }
  .planlist2 th{
    border: 1px solid #E8E8E8; 
    padding: 8px;
    vertical-align: top;
  }

  .planlist2 td {
    border: 1px solid #E8E8E8; 
    padding: 20px 40px;
    vertical-align: top;
  }

  @media screen and (max-width: 768px) {
    .planlist2 td {
        padding: 10px 6px;
    }
  }

  .planlist2 th {
    background: #f2f2f2;
    text-align: center;
  }

  /* 固定ヘッダーの高さに合わせて調整（例：80px） */
:root { --header-h: 60px; }

/* アンカー先になる要素に付与 */
#planlist,
[id] { /* 必要なら見出し全体に適用 */
  scroll-margin-top: var(--header-h);
}

 
.attention{
    text-align: right;
    width: 100%;
    margin: 0 auto 1em;
  }
  @media screen and (max-width: 768px) {
    .attention{
      padding-top: 15px;
    }
  }

  #plan .table td{
        font-size:1rem;
  }



/* 料金早見表 */

.attention{
    text-align: right;
    width: 100%;
    margin: 0 auto 1em;
  }
  @media screen and (max-width: 768px) {
    .attention{
      padding-top: 15px;
    }
  }
  
  .attention p{
    font-size:15px;
  }
  
  .image-container {
    position: relative;
    display: inline-block;
    display: flex;
    width:40%;
    cursor: pointer;
  }
  
  @media screen and (max-width: 768px) {
    .image-container{
      width:100%;
    }
  }
  
  .tc_flex{
    display: flex;
    padding-left: 25px;
  }
  
  .image-container img{
    /* width: 230px;  */
    width:70px;  
  }
  
  @media screen and (max-width:768px) {
    .image-container img{
      max-width: none;
      width: 24px; /* 必要なサイズに */
      height: auto;
      margin-left: 0px;
    }
    
  }
  
  .note{
    text-align: left;
    max-width:1150px;
    padding-top: 40px;
    margin: 0 auto;
    width: 90%;
  }
  
  @media screen and (max-width: 768px) {
    .note{
      padding-top: 40px;
    }
    #plan .table th {
      position: relative;
     }
  
  /* スマホ（タップ時）：クラスがあると表示 */
  .image-container.active .tooltip-text {
    opacity: 1;
    visibility: visible;
  }
  }
  
  .tooltip-text {
    visibility: hidden;
    font-size:14px;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    position: absolute;
    bottom: 100%; /* 画像の上に表示 */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
  }
  @media (max-width: 768px) {
    .tooltip-text {
      visibility: hidden;
      font-size:12px;
      height:70px;
      text-align: left;
      background-color: rgba(0, 0, 0, 0.75);
      color: #fff;
      padding: 5px 10px;
      border-radius: 4px;
      position: absolute;
      bottom: 100%; /* 画像の上に表示 */
      left: 50%;
      top:20px;
      transform: translateX(-50%);
      white-space: nowrap;
      z-index: 10;
      opacity: 0;
      transition: opacity 0.3s;
    }
  }
  
  .image-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }
  
/* 料金早見表 */