@charset "utf-8";

/*==========================================
 price MV
==========================================*/

/* 共通 */

.lower-inner {
  max-width: var(--max-width);

  margin: 0 auto;

  position: relative;
  padding: 0px 20px 0px;
}

/* 上部タイトル */

.price-mv-head {
  background: #fff0df;

  padding: 45px 0;
}

.price-mv-head h1 {
  font-size: 36px;

  font-weight: 700;
}

/* MV背景 */

.price-mv-bg {
  background-image: url("../img/about-mv-bg.png");

  background-repeat: no-repeat;

  background-position: center;

  background-size: cover;

  height: 300px;
}

.price-mv-area {
  position: relative;

  height: 100%;
}

/* 左側 */

.price-mv-copy {
  position: relative;

  z-index: 2;

  padding-top: 18px;

  padding-left: 80px;
  font-size: clamp(20px, 2vw, 24px);
}

/* パンくずリスト */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;

  margin: 0 auto;

  font-size: 14px;
  padding-top: 10px;
}

/* ホームアイコン */
.breadcrumb-home {
  display: flex;
  align-items: center;
}

.breadcrumb-home img {
  width: 14px;
  height: 14px;
}

/* 矢印 */
.breadcrumb-arrow {
  font-size: 14px;
  color: #333;
}

/* リンク */
.breadcrumb-link {
  color: #000;
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

/* 現在ページ */
.breadcrumb-current {
  color: #000;
}

/* PC画像 */

.price-mv-pc {
  position: absolute;

  right: -20px;

  top: -70px;

  width: 520px;
}

.price-mv-pc img {
  width: 100%;
}

/*メインビジュアル下の文章*/
.price-intro {
  padding: clamp(25px, 5vw, 60px) 0 40px;
}

.price-intro-text {
  text-align: center;

  font-size: 16px;

  line-height: 2;
}

/* -------------------------------------
   左側
------------------------------------- */

.price-mv-content {
  position: relative;
  z-index: 2;

  width: 60%;
}

.price-mv-content h2 {
  margin: 0 0 20px;

  color: #111;
  /*font-size: 27px;*/
  font-weight: 700;
  line-height: 1.55;
}

/* -------------------------------------
   初期費用・月額費用
------------------------------------- */

.price-summary {
  display: flex;
  gap: 15px;

  width: 100%;
  max-width: 690px;
  padding-left: 80px;
}

.price-summary-item {
  width: 205px;

  background: #fff;

  border-radius: 7px;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);

  text-align: center;
  overflow: hidden;
}

.price-summary-title {
  width: calc(100% - 40px);

  margin: 8px auto 0;
  padding: 4px 10px;

  background: #c66d00;
  border-radius: 20px;

  color: #fff;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.price-summary-price {
  padding: 7px 10px 10px;

  color: #111;

  font-size: 20px;
  line-height: 1;
}

.price-summary-price span {
  font-family: "Jost", sans-serif;

  font-size: 45px;

  line-height: 1;
}

/* -------------------------------------
   PC画像
------------------------------------- */

.price-mv-image {
  position: absolute;

  right: -30px;
  bottom: 0;

  width: 48%;
}

.price-mv-image img {
  display: block;

  width: 100%;
  height: auto;
}

/* ========================================
   共通セクション
======================================== */

.price-section {
  padding: 50px 20px 50px;
}

.price-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.price-section-title {
  margin: 0;

  color: var(--color-primary);

  font-size: 32px;

  font-weight: 700;

  line-height: 1.4;
}

.price-section-title-line {
  display: block;

  width: 28px;

  height: 3px;

  background: #000;

  margin: 15px auto 50px;
}

.price-section-text {
  margin: 0 auto;

  max-width: 1000px;

  font-size: 16px;

  line-height: 2;

  text-align: center;
}

/* ========================================
   標準機能 料金表
======================================== */

.price-table-wrap {
  width: 100%;
  margin: 0 auto;
  padding-top: 50px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;

  font-size: 18px;
  line-height: 1.6;
  color: #111;
}

/* -------------------------------------
   PCの列幅
------------------------------------- */
@media (min-width: 769px) {
  .price-table th:nth-child(1),
  .price-table td:nth-child(1) {
    width: 23%;
  }

  .price-table th:nth-child(2),
  .price-table td:nth-child(2) {
    width: 34%;
  }

  .price-table th:nth-child(3),
  .price-table td:nth-child(3) {
    width: 20%;
  }

  .price-table th:nth-child(4),
  .price-table td:nth-child(4) {
    width: 23%;
  }
}
/* -------------------------------------
   ヘッダー
------------------------------------- */

.price-table th {
  padding: 8px 12px;

  background: #e8e8e8;

  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
  border-right: 1px solid #111;

  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.price-table th:last-child {
  border-right: none;
}

/* -------------------------------------
   セル
------------------------------------- */

.price-table td {
  padding: 20px 16px;

  border-bottom: 1px solid #111;
  border-right: 1px solid #111;

  vertical-align: middle;
}

.price-table td.price-amount,
.price-table td.price-manager {
  border-right: none;
}

/* -------------------------------------
   サービス名
------------------------------------- */

.price-service {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
}

.price-service-main {
  color: var(--color-primary);
}

.price-service small {
  display: block;

  color: #111;
  font-size: 16px;
  font-weight: 400;
}

.price-service-note {
  font-size: 16px;
}

/* -------------------------------------
   内容
------------------------------------- */

.price-table td:nth-child(2) {
  text-align: left;
}

/* -------------------------------------
   課金単位
------------------------------------- */

.price-unit {
  text-align: center;

  font-size: 21px;
  font-weight: 500;
}

/* -------------------------------------
   年額費用
------------------------------------- */

.price-amount {
  color: var(--color-primary);

  text-align: center;
  white-space: nowrap;

  font-size: 20px;
}

.price-amount span {
  font-family: "Jost", sans-serif;

  font-size: 45px;

  line-height: 1;
}

.price-monthly {
  display: block;

  color: #111;

  font-size: 20px;
}

/* -------------------------------------
   マネージャー料金
------------------------------------- */

.price-manager {
  text-align: center;

  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
}

/* -------------------------------------
   注記
------------------------------------- */

.price-note {
  display: inline-block;

  margin-top: 8px;

  font-size: 16px;
  line-height: 1.5;
}

.price-tax-note {
  margin: 12px 0 0;

  text-align: right;

  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
}

/* -------------------------------------
   条件
------------------------------------- */

.conditions-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.conditions-list li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.conditions-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}

/*==========================================
 768px以下
==========================================*/

@media (max-width: 768px) {
  /*==========================================
 MV
==========================================*/

  .price-section {
    padding: 30px 0px 50px;
  }

  .price-mv-bg {
    height: 350px;
  }
  .price-mv-content {
    width: 100%;
  }

  .price-summary {
    max-width: 100%;
    padding-left: 0px;
    padding-bottom: 5vw;
  }

  .price-summary-item {
    width: 410px;
  }
  .price-mv {
    /*padding: 0px 0 60px;*/
    min-height: clamp(550px, 80vw, 650px);
  }
  .lower-inner {
    padding: 0px 15px 0px;
  }
  .price-mv-head {
    padding: 10px 0;
  }

  .price-mv-head h1 {
    font-size: clamp(18px, 2vw, 36px);
  }

  .price-mv-inner {
    display: block;
  }

  .price-mv-text {
    width: 100%;
  }

  .price-mv-copy {
    position: relative;
    z-index: 2;
    padding-top: 18px;
    padding-left: 0px;
    font-size: clamp(16px, 2vw, 24px);
  }
  .price-mv-text h1 {
    font-size: clamp(20px, 2vw, 40px);

    margin-bottom: 25px;
  }

  .price-mv-text h2 {
    font-size: clamp(15px, 3vw, 20px);
  }

  .price-mv-image {
    width: 100%;

    margin-top: 40px;
  }

  .price-mv-pc {
    position: absolute;
    right: 0;
    top: -200px;
    width: 100%;
  }

  .price-intro-text {
    text-align: left;
    font-size: clamp(15px, 2vw, 16px);
    line-height: 2;
  }

  .price-mv-pc {
    position: static;
    width: clamp(280px, 72vw, 500px);
    /* ここで少し上へ */
    margin: clamp(-5px, -4vw, -15px) auto 0;

    z-index: 2;
  }

  .price-mv-pc img {
    width: 100%;
    height: auto;
  }

  /*==========================================
 breadcrumb
==========================================*/

  .breadcrumb {
    margin-bottom: 0;
  }

  .breadcrumb ul {
    font-size: 12px;
  }

  .price-table-wrap {
    overflow: visible;
  }

  .price-option-section .price-table-wrap {
    padding-top: 10px;
  }

  .price-section-title-line {
    margin: 15px auto 20px;
  }

  .price-table {
    display: block;
    width: 100%;
    border: none;
  }

  /* 見出し行はSPでは視覚的に隠す（読み上げには残す） */
  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .price-table tbody {
    display: flex;
    flex-direction: column;
  }

  .price-table tr {
    display: contents; /* trの箱を消し、tdをtbodyの直下に展開 */
  }

  .price-table td {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px 4px;
  }

  /* ---- 列位置(nth-child)ごとにラベルを付与 ---- */
  .price-table td:nth-child(1)::before {
    content: "サービス・機能";
  }
  .price-table td:nth-child(2)::before {
    content: "内容";
  }
  .price-table td:nth-child(3)::before {
    content: "課金単位";
  }
  .price-table td:nth-child(4)::before {
    content: "年額費用";
  }
  .price-table td::before {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #c66d00;
    margin-bottom: 4px;
  }

  /* ==========================================================
       標準機能テーブル（1グループ目が rowspan=3）
    ========================================================== */
  /* グループ1: エージェント / ゴーストドライブ / Storage Shutter */
  .price-section:not(.price-option-section)
    .price-table
    tbody
    tr:nth-child(1)
    td:nth-child(1) {
    order: 1;
  }
  .price-section:not(.price-option-section)
    .price-table
    tbody
    tr:nth-child(1)
    td:nth-child(2) {
    order: 2;
  }
  .price-section:not(.price-option-section)
    .price-table
    tbody
    tr:nth-child(2)
    td:nth-child(1) {
    order: 3;
  }
  .price-section:not(.price-option-section)
    .price-table
    tbody
    tr:nth-child(2)
    td:nth-child(2) {
    order: 4;
  }
  .price-section:not(.price-option-section)
    .price-table
    tbody
    tr:nth-child(3)
    td:nth-child(1) {
    order: 5;
  }
  .price-section:not(.price-option-section)
    .price-table
    tbody
    tr:nth-child(3)
    td:nth-child(2) {
    order: 6;
  }
  .price-section:not(.price-option-section)
    .price-table
    tbody
    tr:nth-child(1)
    td:nth-child(3) {
    order: 7;
  } /* rowspanだった課金単位 */
  .price-section:not(.price-option-section)
    .price-table
    tbody
    tr:nth-child(1)
    td:nth-child(4) {
    order: 8;
  } /* rowspanだった年額費用 */

  /* グループ2: マネージャー（rowspanなし） */
  .price-section:not(.price-option-section)
    .price-table
    tbody
    tr:nth-child(4)
    td:nth-child(1) {
    order: 9;
  }
  .price-section:not(.price-option-section)
    .price-table
    tbody
    tr:nth-child(4)
    td:nth-child(2) {
    order: 10;
  }
  .price-section:not(.price-option-section)
    .price-table
    tbody
    tr:nth-child(4)
    td:nth-child(3) {
    order: 11;
  }
  .price-section:not(.price-option-section)
    .price-table
    tbody
    tr:nth-child(4)
    td:nth-child(4) {
    order: 12;
  }

  /* グループ境界線 */
  .price-section:not(.price-option-section)
    .price-table
    tbody
    tr:nth-child(4)
    td:nth-child(1) {
    border-top: 2px solid #ccc;
    margin-top: 16px;
    padding-top: 16px;
  }

  /* ==========================================================
       オプション機能テーブル（1・3グループ目が rowspan=2）
       tr1=Log Analyzer(rowspan2) / tr2=IT資産管理 / tr3=Web Filtering / tr4=ログ保管
    ========================================================== */
  .price-option-section .price-table tbody tr:nth-child(1) td:nth-child(1) {
    order: 1;
  }
  .price-option-section .price-table tbody tr:nth-child(1) td:nth-child(2) {
    order: 2;
  }
  .price-option-section .price-table tbody tr:nth-child(2) td:nth-child(1) {
    order: 3;
  }
  .price-option-section .price-table tbody tr:nth-child(2) td:nth-child(2) {
    order: 4;
  }
  .price-option-section .price-table tbody tr:nth-child(1) td:nth-child(3) {
    order: 5;
  } /* rowspanだった課金単位 */
  .price-option-section .price-table tbody tr:nth-child(1) td:nth-child(4) {
    order: 6;
  } /* rowspanだった年額費用 */

  .price-option-section .price-table tbody tr:nth-child(3) td:nth-child(1) {
    order: 7;
  }
  .price-option-section .price-table tbody tr:nth-child(3) td:nth-child(2) {
    order: 8;
  }
  .price-option-section .price-table tbody tr:nth-child(3) td:nth-child(3) {
    order: 9;
  }
  .price-option-section .price-table tbody tr:nth-child(3) td:nth-child(4) {
    order: 10;
  }

  .price-option-section .price-table tbody tr:nth-child(4) td:nth-child(1) {
    order: 11;
  }
  .price-option-section .price-table tbody tr:nth-child(4) td:nth-child(2) {
    order: 12;
  }
  .price-option-section .price-table tbody tr:nth-child(4) td:nth-child(3) {
    order: 13;
  }
  .price-option-section .price-table tbody tr:nth-child(4) td:nth-child(4) {
    order: 14;
  }

  .price-option-section .price-table tbody tr:nth-child(3) td:nth-child(1),
  .price-option-section .price-table tbody tr:nth-child(4) td:nth-child(1) {
    border-top: 2px solid #ccc;
    margin-top: 16px;
    padding-top: 16px;
  }

  /* rowspanだった単価セルは合計値として少し強調 */
  .price-table td.price-unit,
  .price-table td.price-amount,
  .price-table td.price-manager {
    background: #f2f2f2;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px 12px;
    margin-top: 4px;
  }
}

/* PC用税別注記 */
.price-tax-note {
  display: block;
}

@media screen and (max-width: 767px) {
  .price-tax-note {
    display: none;
  }
}

/* SP用税別注記 */
.price-tax-note-sp {
  display: none;
}

@media screen and (max-width: 767px) {
  .price-tax-note-sp {
    display: block;
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.6;
  }
}
