/***** サービス・料金のご案内　専用 ↓ *****/
main {
    display: grid;
    grid-template:
        "title-left service title-right" 3400px
        / 1fr 860px 1fr ;
}


/***** タイトル部分 ↓ *****/

main .service_price {
    grid-area: service;
    background-color: #EBF0F0;
    width: 100%;
}
.service_price .bigtitle {
    position: relative;
}
.service_price .bigtitle .englishtitle {
    font-size: 70px;
    color: black;
    padding-top: 10px;
    padding-left: 20px;
    padding-bottom: 10px;
}

.service_price .bigtitle .titlespace h1 {
    font-size: 26px;
    color: black;
    display: block;
    width: 400px;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #FCEE21;
    margin-bottom: 20px;
    margin-left: 20px;
}
.service_price .campaign {
  position: absolute;
  right: 10px;
  top: 20px;
  width: 250px;
}

.service_price .bigtitle .pagenav {
   padding-left: 50px;
   padding-bottom: 30px;
}

.service_price .bigtitle .pagenav ul {
    font-size: 16px;
}
.service_price .bigtitle .pagenav li {
    line-height: 200%;
}
.service_price .bigtitle .pagenav li a, .service_price .bigtitle .pagenav li a:link {
    color: black;
}

.service_price .bigtitle .pagenav li a:hover {
    color: #E60013;
}
/* タイトル横の色*/
main .top_slide_left {
    grid-area: title-left;
}
main .top_slide_left .blackbox {
    width: 100%;
    height: 360px;
    background-color: black;
    margin-top: 100px;
}
main .top_slide_right {
    grid-area: title-right;
}
main .top_slide_right .redbox {
    width: 100%;
    height: 360px;
    background-color: red;
}


/***** サービス・料金のご案内メイン部分 ↓ *****/


/* 個室プラン、フリーデスク */
#plan01 , #plan02 {
    display: grid;
    grid-template: 
        " title  readcopy "100px
        " icon   main " auto
        / 220px 640px ;
}
#plan01 h2.plantitle , #plan02 h2.plantitle {
    grid-area: title;
}
#plan01 .plancopy ,#plan02 .plancopy{
    grid-area: readcopy;
}
#plan01 .icon , #plan01 .icon {
    grid-area: icon;
    
}
#plan01 .details , #plan02 .details{
    grid-area: main;
}
#plan04, #plan05 {
    display: grid;
    grid-template: 
        " title  readcopy "100px
        " main   main " auto
        / 200px 660px ; 
     ;
}
#plan04 h2.plantitle , #plan05 h2.plantitle {
    grid-area: title;
}
#plan04 .plancopy ,#plan05 .plancopy{
    grid-area: readcopy;
}
#plan04 .details , #plan05 .details{
    grid-area: main;
}

#plan01 h2 , #plan02 h2 , #plan04 h2, #plan05 h2 {
    font-size: 16px;
    width: 180px;
    height: 25px;
    padding-top: 5px;
    color: white;
    background-color: red;
    margin-left: 10px;
    text-align: center;
}
#plan01 .plancopy , #plan02 .plancopy , #plan04 .plancopy, #plan05 .plancopy {
    font-size: 16px;
    line-height: auto;
    padding-right: 20px;
}
#plan01 .icon img {
    padding-left: 110px;
    width: 80px;
}
#plan02 .icon img {
    padding-left: 70px;
    width: 115px;
}

#plan01 .plancopy , #plan02 .plancopy , #plan04 .plancopy, #plan05 .plancopy {
    padding-right: 40px;
    font-size: 14px;
    line-height: 150%;
}

#plan01 ul , #plan02 ul , #plan04 ul, #plan05 ul {
    font-size: 15px;
    line-height: 175%;
    padding-bottom: 40px;
    list-style: none;
}
.details ul {
    font-size: 15px;
    line-height: 175%;
    padding-bottom: 40px;
    list-style: none;
}
.details ul .price {
    font-size: 28px;
    font-weight: bold;
}
.details ul .month {
    font-size: 18px;
    font-weight: bold;
}
#plan01 .details dl , #plan02 .details dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    row-gap: 0.8em;
    padding-bottom: 50px;
}
#plan01 .details dt , #plan02 .details dt {
    width: 250px;
    height: 20px;
    padding-top: 5px;
    background-color: grey;
    font-size: 15px;
    color: white;
    text-align: center;
}
#plan01 .details dd , #plan02 .details dd {
    font-size: 14px;
    line-height: 150%;
    width: 350px;
    padding-left: 70px;
}

#plan04 .details dl , #plan05 .details dl {
    display: grid;
    grid-template-columns: 220px 200px 1fr;
    padding-bottom: 50px;
}
#plan04 .details .icons , #plan05 .details .icons {
    margin-right: 20px;
    padding-left: 80px;
    margin-top: -20px;
}

#plan04 .details dt , #plan05 .details dt {
    width: 200px;
    height: 20px;
    padding-top: 5px;
    background-color: grey;
    font-size: 15px;
    color: white;
    text-align: center;
}
#plan04 .details dt.sec_line , #plan05 .details dt.sec_line {
    padding-top: 2px;
    height: 40px;
    line-height: 18px;
}
#plan04 .details dd , #plan05 .details dd {
    font-size: 14px;
    line-height: 150%;
    width: 400px;
    padding-left: 20px;
    
}

/* スマホ用のスタイル */
/* ★ スマホ用（768px以下）差し替えパッチ */
@media only screen and (max-width: 768px) {

  /* mainはdisplay:contents;にしない方が安全（area指定が効かなくなるため） */
  main {
    display: grid;
    grid-template:
      "service" auto
      / 1fr;
    gap: 16px;
  }

  /* サイドの色ボックスは非表示 or 下に回す（非表示にする例） */
  main .top_slide_left,
  main .top_slide_right {
    display: none;
  }

  /* serviceエリアのみ表示させる */
  main .service_price {
    grid-area: service;
    display: grid;
    grid-template:
      "title"  auto
      "plan01" auto
      "plan02" auto
      "plan03" auto
      "plan04" auto
      "plan05" auto
      / 1fr;
    background-color: #EBF0F0;
    margin-top: 20px;
    width: 100%;
  }

  /* ↑ grid-area を割り当て（HTMLで .service_price 直下に #plan0x がある前提） */
  .service_price .bigtitle { grid-area: title; width: 100%; }
  #plan01 { grid-area: plan01; }
  #plan02 { grid-area: plan02; }
  #plan03 { grid-area: plan03; } /* ある場合だけ有効 */
  #plan04 { grid-area: plan04; }
  #plan05 { grid-area: plan05; }

  /* 見出し周りの固定幅/サイズをリセット */
  .service_price .bigtitle .englishtitle {
    font-size: clamp(24px, 8vw, 40px);
  }
  .service_price .bigtitle .titlespace h1 {
    font-size: clamp(18px, 5vw, 22px);
    width: auto;            /* ← 400px を無効化 */
    text-align: left;
    max-width: 100%;
    margin-left: 16px;
    margin-bottom: 24px;
  }
  .service_price .campaign {
  position: absolute;
  right: -20px;
  top: 90px;
  width: 160px;
}

  /* ページ内ナビは通常フローに */
  .service_price .bigtitle .pagenav {
    position: static;
    margin-left: 0px;
    margin-top: 10px;
    padding-left: 20px;
  }
  .service_price .bigtitle .pagenav ul { padding-bottom: 24px; }
  .service_price .bigtitle .pagenav li { font-size: 18px; line-height: 1.8; }

  /* ★ 各プランのグリッドを 1 カラム化（固定幅カラムを打ち消し） */
  #plan01, #plan02, #plan04, #plan05 {
    display: grid;
    grid-template:
      "title"    auto
      "readcopy" auto
      "icon"     auto
      "main"     auto
      / 1fr;
    row-gap: 12px;
  }

  #plan01 h2.plantitle, #plan02 h2.plantitle,
  #plan04 h2.plantitle, #plan05 h2.plantitle { grid-area: title; }

  #plan01 .plancopy, #plan02 .plancopy,
  #plan04 .plancopy, #plan05 .plancopy { grid-area: readcopy; padding-right: 0; }

  #plan01 .icon, #plan02 .icon {
    padding-left: 130px;
  }

  #plan01 .icon, #plan02 .icon,
  #plan04 .icon, #plan05 .icon { grid-area: icon; }

  #plan01 .details, #plan02 .details,
  #plan04 .details, #plan05 .details { grid-area: main; }

  /* プラン見出しの固定幅を解除 */
  #plan01 h2, #plan02 h2, #plan04 h2, #plan05 h2 {
    width: auto;            /* ← 180px を無効化 */
    height: auto;
    margin-left: 0;
    font-size: 19px;
    padding: 6px 10px;
    text-align: center;
  }

  /* コピー文の余白とサイズ調整 */
  #plan01 .plancopy, #plan02 .plancopy, #plan04 .plancopy, #plan05 .plancopy {
    font-size: 16px;
    line-height: 1.6;
    padding-right: 0;
    padding-left: 20px;
  }

  /* アイコン画像は横幅に追従 */
  #plan01 .icon img, #plan02 .icon img {
    padding-left: 20px;      /* ← 110px/70px を無効化 */
    width: 40vw;            /* 端末幅に応じて */
    max-width: 130px;
    height: auto;
  }

  /* リスト */
  #plan01 ul, #plan02 ul, #plan04 ul, #plan05 ul,
  .details ul {
    font-size: 17px;
    line-height: 1.7;
    padding-bottom: 24px;
    list-style: none;
    padding-left: 20px;
    margin: 0;
  }

  .details ul .price { font-size: 22px; }
  .details ul .month { font-size: 16px; }

  /* ★ 詳細の定義リストを 1～2 カラムに簡易化し、固定幅解除 */
  #plan01 .details dl, #plan02 .details dl,
  #plan04 .details dl, #plan05 .details dl {
    display: grid;
    grid-template-columns: 1fr; /* まずは1カラム（必要なら 140px 1fr に） */
    row-gap: 8px;
    padding-bottom: 24px;
  }

  #plan01 .details dt, #plan02 .details dt,
  #plan04 .details dt, #plan05 .details dt {
    width: auto;            /* ← 200px を無効化 */
    height: auto;
    padding: 6px 20px;
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
  }

  #plan04 .details dt.sec_line, #plan05 .details dt.sec_line {
    padding-top: 6px;
    height: auto;
    line-height: 1.4;
  }

  #plan01 .details dd, #plan02 .details dd {
    width: auto;            /* ← 400px を無効化 */
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 8px;
  }
   #plan04 .details dd , #plan05 .details dd {
    width: auto;            /* ← 400px を無効化 */
    padding-top: 0px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 8px;
  }

  /* アイコンの位置調整リセット */
  #plan04 .details .icons, #plan05 .details .icons {
    margin: 0px 0 0;
    padding-top: 50px;
    padding-right: 40px;
    text-align: right;
    margin-bottom: -280px;
    z-index: 10;
  }

  /* はみ出し対策の共通リセット */
  .service_price, .service_price * {
    box-sizing: border-box;
    min-width: 0;
  }
  img, video { max-width: 100%; height: auto; }



}
