* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-size: 3.6vw!important;
  font-family: "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
}

#HistoryArea {
  display: none;
}

.pc-only {
  display:none;
}

.sp-only {
  display:block;
}

.faq-top-card {
  max-width: 980px;
  margin: 0 auto 80px;
  color: #333;
}
.faq-top-card nav {
  font-size: 2.8vw;
}
.faq-top-card nav p {
  display:inline-block;
}
.faq-top-card nav p + p::before {
  content: "\003E";
  padding: 0 4px;
}

.header-banner {
  background:url(/shopping/img/japanetcard/bg_main_260817.png) no-repeat center top;
  background-size: 150%;
  color: #FFF;
  text-align: center;
  padding: 4vw 2vw;
  font-weight: bold;
  font-size: 5.6vw;
  line-height: 1.4;
  margin: 5vw 0 3vw;
}
.header-banner h1,.header-banner h2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-banner h1 img,.header-banner h2 img {
  width: 22vw;
  margin-right: 5vw;
}

.search-box {
  display: flex;
  margin:0 7vw;
  border: 1px solid #333;
  border-radius: 2vw;
}
.search-input {
  flex: 1;
  border: none;
  padding: 3vw 0 3vw 3vw;
  font-size: 4.2vw;
  outline: none;
  border-radius: 2vw;
}
.search-btn {
  background: #333;
  border: none;
  width: 16vw;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  border-radius:0 1.5vw 1.5vw 0;
}
.search-btn svg {
  width: 6vw;
  height: 6vw;
  fill: currentColor;
}

.section-title {
  text-align: center;
  font-size: 4.2vw;
  font-weight: bold;
  margin: 10vw 0 2vw;
  color: #000;
}

.faq-list {
  margin: 0 4vw;
  border-top:1px solid #333;
}

.faq-item {
  padding:1.5vw;
  border-bottom:1px solid #333;
  position: relative;
}
.faq-item a {
  display: flex !important;
  align-items: stretch !important; /* 高さを揃える */
  justify-content: space-between;
  position: relative;
  text-decoration: none;
  padding: 0 !important; /* aタグ自体の上下paddingをリセット */
  height: auto !important; /* 固定高さを解除 */
  min-height: 10vw; /* 最低限の高さ */
}
.faq-item a:hover {opacity:0.5;}
.faq-item a::before {
  content: "";
  display: inline-block;
  width: 6vw;
  height: auto !important; /* 親の高さに追従 */
  flex-shrink: 0;
  background:url(/shopping/japanetcard/faq/img/faq_q.svg) no-repeat center / 100%;
  position: static !important;
  top: auto !important;
  left:0 !important;
  flex-shrink: 0;
  /* 矢印（>）を中央に配置 */
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* テキストエリア（文字の上下paddingで高さを調整） */
.faq-item a > span:not(.arrow-icon) {
  flex: 1;
  padding: 2vw 0 2vw 4vw!important; /* 上下12pxで程よい高さに */
  line-height: 1.4;
  color: #003399;
  display: flex;
  align-items: center; /* 1行のときは縦中央に */
}

/* 右側のグレー枠（2行になっても全体にぴったりフィット） */
.faq-item .arrow-icon {
  /* 不要な位置指定を完全リセット */
  position: static !important;
  top: auto !important;
  right: auto !important;
  
  /* 幅と高さの設定 */
  width: 5vw !important;
  height: auto !important; /* 親の高さに追従 */
  background: #d1deeb !important;
  flex-shrink: 0;
  
  /* 矢印（>）を中央に配置 */
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* 矢印（>） */
.faq-item .arrow-icon::before {
  content: ">";
  color: #333;
  font-family: monospace;
  font-size: 4vw;
}

.category-container {
  margin:0 3vw;
}

/* カテゴリグループ関連CSS */
.category-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 2px;
  padding: 20px 14px;
  color: #333;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
}
.arrow-circle {
  width: 20px;
  height: 20px;
  background: #888;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.faq-list.category-faq-list {
  display: none;
  list-style: none;
  padding-top: 8px;
  flex-direction: column;
  gap: 8px;
}


.arrow-circle {
  width: 20px;
  height: 20px;
  background: #888;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

/* CSSで三角形を作る */
.arrow-circle::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
}


/* カテゴリボタン（親要素） */
.category-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px 14px;
  color: #333;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
}
.category-toggle.active {
  border-bottom: none;
}
/* 丸アイコン（CSSで矢印を作成） */
.arrow-circle {
  width: 22px;
  height: 22px;
  background: #888;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.arrow-circle::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
  transition: transform 0.2s ease;
}

/* 開いたときの矢印回転（必要に応じて） */
.category-toggle.active .arrow-circle::after {
  transform: rotate(180deg);
  top: 7px;
}

/* トグルで出てくる質問リスト（子要素グループ） */
.category-faq-list {
gap: 0px;
}

.category-group .category-faq-list {
  padding-top: 0;
  grid-template-columns: repeat(1, 1fr); /* 2列分割 */
  border: 1px solid #ccc;
  border-radius: 0 0 10px 10px;
  border-top: none;
  padding: 8px;
  margin: 0;
}

.category-group .faq-item {
  font-size:13px;
  border-bottom: 1px dotted #333;
  border-right:none;
  border-top:none;
  padding:2px;
  box-sizing: border-box;
  display: flex;
}
.category-group .faq-item a {
  min-height: 30px; /* 最低限の高さ */
  display: flex !important;
  align-items: stretch !important; /* 子要素（テキストと矢印）の高さを上下いっぱいに伸ばす */
  width: 100%;
  text-decoration: none;
}
.category-group .faq-item a::before {
  width: 20px;
}
.category-group .faq-item:last-child {
  border-bottom: none;
}

/* テキストエリア（文字の上下paddingで高さを調整） */
.category-group .faq-item a > span:not(.arrow-icon) {
  padding: 5px 0 6px 5px!important; /* 上下12pxで程よい高さに */
}
.category-group .faq-item .arrow-icon {
  width: 16px !important;
}


.card-information {
  display: flex;
  padding:15px 18px;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border-radius:8px;
  border: 2px solid #C5E5E0;
  background: #FAFFFE;
  margin:20px 0 50px;
}

.card-information h4 {
  color: #00856D;
  font-size: 15px;
  font-weight: 600;
  margin-bottom:5px;
}
ul.column {
  display: flex;
  justify-content: space-around;
  gap: 30px;
}
ul.column li img {
  width: 100%;
}

@media (min-width: 768px) {
  body {
  font-size: 15px!important;
  }
 .header-banner {
    background-size: 100%;
    padding: 16px 10px;
    font-size: 18px;
    margin:20px 0 10px;
  }
  .header-banner h1,.header-banner h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size:32px;
  }
  .header-banner h1 br,.header-banner h2 br {
    display: none;
  }
  .header-banner h1 img,.header-banner h2 img {
    width: 120px;
    margin-right: 20px;
  }
  .faq-top-card nav {
  font-size: 11px;
}
.search-box {
  margin:0 150px;
  border-radius: 5px;
}
.search-input {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 5px;
}
.search-btn {
  width: 50px;
  border-radius:0 5px 5px 0;
}
.search-btn svg {
  width: 20px;
  height: 20px;
}
.section-title {
  font-size: 18px;
  margin: 50px 0 10px;
}
.faq-list {
  margin: 0 5px;
  display: grid;
  flex-wrap: wrap;
  justify-content: flex-start;
  grid-template-columns: repeat(2, 1fr); /* 2列分割 */
  align-items: stretch;
}
.faq-item {
  padding:4px;
  border-right: 1px solid #363;
  box-sizing: border-box;
  display: flex;
}
.faq-item:nth-child(even),.faq-item:last-child {
  border-right: none;
}


.faq-item a {
  min-height: 30px; /* 最低限の高さ */
  display: flex !important;
  align-items: stretch !important; /* 子要素（テキストと矢印）の高さを上下いっぱいに伸ばす */
  width: 100%;
  text-decoration: none;
}
.faq-item a::before {
  width: 30px;
}

/* テキストエリア（文字の上下paddingで高さを調整） */
.faq-item a > span:not(.arrow-icon) {
  padding: 12px 0 12px 10px!important; /* 上下12pxで程よい高さに */
}
.faq-item .arrow-icon {
  width: 20px !important;
}

/* 矢印（>） */
.faq-item .arrow-icon::before {
  font-size: 18px;
}

.category-container {
  margin: 0 5px;
  display: grid;
  justify-content: space-evenly;
  align-content: center;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr); /* 1fr(1等分)を3つ繰り返す */
}

/* 矢印（>） */
.category-group .faq-item .arrow-icon::before {
  font-size: 12px;
}
}


/*-------------------------------------------------
　各質問の個別ページ
-------------------------------------------------*/

/* 2カラムレイアウト */
    .detail-layout {
      display: flex;
      flex-direction: column;
      gap: 30px;
    }
    @media (min-width: 769px) {
      .detail-layout {
        flex-direction: row;
        align-items: flex-start;
        margin-top:30px;
      }
    }



.detail-container{
  max-width: 980px;
  margin: 0 auto;
  color: #333;
}
.detail-container nav {
  font-size: 2.8vw;
  margin-bottom:5vw;
}
.detail-container nav p {
  display:inline-block;
}
.detail-container nav p + p::before {
  content: "\003E";
  padding: 0 4px;
}
.detail-container nav p br {
  display:none;
}


/* 2カラムレイアウト */
.detail-layout {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* --------------------------------------
    左カラム（サイドナビ）
-------------------------------------- */
.side-nav {
  width: 94%;
  order:2;
  margin: 0 auto;
}
.side-nav h2 {
  background: url(/shopping/img/japanetcard/bg_main_260817.png) no-repeat center top;
  background-size: 100%;
  display: flex;
  align-items: center;
  justify-items: center;
  line-height: 1.2;
  color: #FFF;
  text-align: center;
  padding: 4vw 2vw;
  margin: 5vw 0 3vw;
  font-weight: bold;
  font-size: 5.6vw;
}
.side-nav h2 img {
  width:15vw;
}
.side-nav h2 a {
  color:#FFF;
  display:block;
}
.side-nav h2 a:hover {
  text-decoration:none;
}
.nav-sec-title {
  font-size: 15px;
  font-weight: bold;
  color: #555;
  margin:20px 0 10px;
  text-align: center;
}

.category-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 25px;
}

.category-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 13.5px;
  font-weight: bold;
  transition: background-color 0.2s;
}
.category-nav-item a:hover {
  background-color: #f5f5f5;
}
.category-nav-item .nav-arrow {
  color: #d32f2f;
  font-weight: bold;
  font-size: 14px;
}

/* サイド検索ボックス */
.side-search-box {
  margin-bottom: 25px;
}
.search-input-group {
  display: flex;
  gap: 0;
}
.side-search-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 13px;
  outline: none;
}
.side-search-btn {
  background: #d32f2f;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

/* 戻るボタン */
.back-to-top-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
  border: 1px solid #bbb;
  border-radius: 6px;
  color: #333;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.back-to-top-btn:hover {
  background: #e0e0e0;
}

/* --------------------------------------
    右カラム（メインコンテンツ）
-------------------------------------- */
.main-content {
  order: 1;
  background: #fff;
  border-radius: 4px;
  padding: 0;
  line-height:1.6;
}

/* 質問タイトル領域 */
.question-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #eef4fc;
  padding: 14px 18px;
  border-radius: 4px 4px 0 0;
  margin-bottom:10px;
}
.q-icon {
  width: 28px;
  height: 28px;
  background-color: #8fa7c4;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}
.question-title {
  font-size: 16px;
  font-weight: bold;
  color: #1a365d;
}

/* 回答本文領域 */
.answer {
  padding: 24px 20px 0;
}
.answer h3,.step-title h3 {
  font-size: 16px;
  font-weight: bold;
  color:#FFF;
  border-radius: 6px;
  padding: 4px 10px;
  margin-top: 20px;
  background: repeating-linear-gradient(
    -45deg,          /* 斜線の角度（-45deg または 135deg） */
    #555555,         /* ベースのグレー */
    #555555 1px,     /* ベースグレーの幅（5pxまで） */
    #666666 2px,     /* 線（少し明るいグレー）の開始 */
    #666666 4px     /* 線（少し明るいグレー）の終了（10pxまで） */
  );
}
.answer h3:first-child {
  margin-top: 0;
}
.answer p {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
}
.answer p.notice {
  font-size: 11px;
  color: #666;
  margin-top: 8px;
}
.answer a {
  color: #0066cc;
  word-break: break-all;
}
.answer ul.notice {
  font-size: 13px;
  color: #666;
  margin: 20px auto;
}
.answer ul.notice li {
  margin: 3px 0;
}
/* ステップ表示 */
.step-box {
  /*border: 1px solid #e0e0e0;*/
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fcfcfc;
}
.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.step-number {
  display:none;
  background: #d32f2f;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 3px;
}
.step-title {
  font-size: 16px;
  font-weight: bold;
  color: #222;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
  margin-top: 20px;
  margin-bottom: 10px;
  width:100%;
}
.step-text {
  font-size: 14px;
  line-height:1.5;
  color: #444;
  margin-bottom: 10px;
}
.step-image img {
  max-width: 100%;
  height: auto;
}

.btn_link {
  margin:30px 0;
  border-bottom:1px solid #36C;
  width:fit-content;
}
.btn_link a {
  text-decoration: none;
  color:#36C;
}
.btn_link a:after {
  content:">";
  margin-left:5px;
  color:#36C;
}

.btn_link_faq {
  margin:30px 0;
  border-bottom:1px solid #36C;
  width:fit-content;
}
.btn_link_faq a {
  text-decoration: none;
  color:#36C;
}
.btn_link_faq a:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 15px;
  background: url(/shopping/japanetcard/faq/img/faq_q.svg) no-repeat center / auto 100%;
}
.btn_link_faq a:after {
  content:">";
  margin-left:5px;
  color:#36C;
}


.pageback {
  display: block;
  width: fit-content;
  margin: 80px auto;
  text-align: center;
  padding: 10px 15px;
  background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
  border: 1px solid #bbb;
  border-radius: 6px;
  color: #333;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.pageback:hover {
  background: #e0e0e0;
}

@media (min-width: 769px) {
  .detail-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .side-nav {
    width: 280px;
    flex-shrink: 0;
    order: initial;
    margin:0;
  }
  .side-nav h2 {
    background:url(/shopping/img/japanetcard/bg_main_260817.png) no-repeat center top;
    background-size: 100%;
    padding: 4px 30px;
    font-weight: bold;
    font-size: 16px;
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    justify-items: center;
    line-height: 1.2;
  }
  .side-nav h2 img {
    width:40px;
    margin-right:30px;
  }
  .detail-container nav {
    font-size: 11px;
    margin-bottom:10px;
  }
  .main-content {
  order: initial;
  flex: 1;
  }
  .pc-only {
    display:block;
  }
  .sp-only {
    display:none;
  }

}
/* 検索ボタンのタップ感（フィードバック） */
.search-btn {
  transition: transform 0.1s ease, background-color 0.1s ease;
  cursor: pointer;
}

/* 押した瞬間小さく凹み、背景色が濃くなる */
.search-btn:active {
  transform: scale(0.92);
  background-color: #333;
}

/* ==================================================
   ご用件から探す アイコン設定（SVG）
================================================== */

/* アイコン共通スタイル */
.category-toggle .cat-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* ==================================================
   ご用件から探す アイコン設定（SVG）
================================================== */

/* タイトルをアイコンと横並びにするレイアウト設定 */
.category-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* アイコン共通スタイル（::before 疑似要素で描画） */
.category-title-wrap::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* 各カテゴリごとのSVG画像切り替え */
.category-group.cat_before .category-title-wrap::before {
  background-image: url('/shopping/japanetcard/faq/img/icon/icon_cat_before.svg');
}

.category-group.cat_point .category-title-wrap::before {
  background-image: url('/shopping/japanetcard/faq/img/icon/icon_cat_point.svg');
}

.category-group.cat_vpass .category-title-wrap::before {
  background-image: url('/shopping/japanetcard/faq/img/icon/icon_cat_vpass.svg');
}

.category-group.cat_payment .category-title-wrap::before {
  background-image: url('/shopping/japanetcard/faq/img/icon/icon_cat_payment.svg');
}

.category-group.cat_lost .category-title-wrap::before {
  background-image: url('/shopping/japanetcard/faq/img/icon/icon_cat_lost.svg');
}

.category-group.cat_info .category-title-wrap::before {
  background-image: url('/shopping/japanetcard/faq/img/icon/icon_cat_info.svg');
}