@charset "UTF-8";

/* ==========================================================================
   テンプレート共通スタイル（base.css）
   - 1. 土台：Bootstrap 3.3.6 のうち、このテンプレートが依存している部分だけを移植
            （style1.css は rem 単位や box-sizing をこの土台前提で書いているため）
   - 2. 部品：モーダル、アコーディオンなど、jQuery/Bootstrap から置き換えた部品
   ※ style1.css より前に読み込むこと（style1.css 側の指定を優先させるため）
   ※ CSP でページ内 <style> が使えないため、外部ファイルにしている
   ※ 共通ファイルのため、キャンペーンごとの調整は style1.css で行うこと
   ========================================================================== */

/* ---------- 1. 土台（Bootstrap 3.3.6 / normalize.css 3.0.3 より） ---------- */
html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-size: 10px; /* style1.css の rem はこの値が基準（2rem = 20px） */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  background-color: #fff;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary {
  display: block;
}
[hidden],
template {
  display: none;
}

/* リンク */
a {
  color: #337ab7;
  text-decoration: none;
  background-color: transparent;
}
a:hover,
a:focus {
  color: #23527c;
  text-decoration: underline;
}
a:focus {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}
a:active,
a:hover {
  outline: 0;
}

/* テキスト */
p {
  margin: 0 0 10px;
}
b,
strong {
  font-weight: bold;
}
ul,
ol {
  margin-top: 0;
  margin-bottom: 10px;
}
ul ul, ol ul, ul ol, ol ol {
  margin-bottom: 0;
}
dl {
  margin-top: 0;
  margin-bottom: 20px;
}
dt,
dd {
  line-height: 1.42857143;
}
dt {
  font-weight: bold;
}
dd {
  margin-left: 0;
}
hr {
  height: 0;
  box-sizing: content-box;
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #eee;
}
img {
  border: 0;
  vertical-align: middle;
}
[role="button"] {
  cursor: pointer;
}

/* フォーム部品 */
button,
input,
optgroup,
select,
textarea {
  margin: 0;
  font: inherit;
  color: inherit;
}
button {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}
button[disabled],
html input[disabled] {
  cursor: default;
}
input {
  line-height: normal;
}
/* ↓ Bootstrap と同じく、上の line-height: normal をこちらで上書きする（順序に注意） */
input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
  margin: 4px 0 0;
  line-height: normal;
}
input[type="file"] {
  display: block;
}
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}
textarea {
  overflow: auto;
}
label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: bold;
}
.dropdown {
  position: relative;
}

/* 表（履歴・ポイントページの .table） */
table {
  border-spacing: 0;
  border-collapse: collapse;
  background-color: transparent;
}
td,
th {
  padding: 0;
}
th {
  text-align: left;
}
.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  padding: 8px;
  line-height: 1.42857143;
  vertical-align: top;
  border-top: 1px solid #ddd;
}
.table > thead > tr > th {
  vertical-align: bottom;
  border-bottom: 2px solid #ddd;
}
.table > thead:first-child > tr:first-child > th,
.table > thead:first-child > tr:first-child > td {
  border-top: 0;
}
.table > tbody + tbody {
  border-top: 2px solid #ddd;
}

/* ---------- 2. 部品 ---------- */

/* スムーススクロール（ページ内リンク・ページトップへ戻る） */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* モーダル（<dialog class="cp-modal">）
   見た目は Bootstrap 3 のモーダルを再現。開く処理は common_js.html */
.cp-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow-x: hidden;
  overflow-y: auto;
}
.cp-modal:focus {
  outline: 0;
}
.cp-modal::backdrop {
  background-color: rgba(0, 0, 0, .5);
}
.cp-modal[open]::backdrop {
  animation: cp-modal-fade .15s linear;
}
.cp-modal[open] .modal-dialog {
  animation: cp-modal-slide .3s ease-out;
}
@keyframes cp-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cp-modal-slide {
  from { transform: translate(0, -25%); }
  to   { transform: translate(0, 0); }
}
html:has(.cp-modal[open]) {
  overflow: hidden; /* モーダル表示中は背面をスクロールさせない */
}
.cp-modal .modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
}
.cp-modal .modal-content {
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 6px;
  outline: 0;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}
.cp-modal .modal-body {
  position: relative;
  padding: 15px;
}
.cp-modal .modal-footer {
  padding: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}
.cp-modal .modal-footer::before,
.cp-modal .modal-footer::after {
  content: " ";
  display: table;
}
.cp-modal .modal-footer::after {
  clear: both;
}
.cp-modal .modal-footer form {
  margin: 0;
}
.cp-modal .modal-col {
  display: block;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
.cp-modal .modal-close {
  float: right;
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-appearance: none;
  font-size: 21px;
  font-weight: bold;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: .2;
  cursor: pointer;
}
.cp-modal .modal-close:hover,
.cp-modal .modal-close:focus {
  opacity: .5;
}
@media (min-width: 768px) {
  .cp-modal .modal-dialog {
    width: 600px;
    margin: 30px auto;
  }
  .cp-modal .modal-content {
    box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
  }
}

/* アコーディオン（<details> / <summary>） */
.accordionbox > details > summary {
  display: block;
  list-style: none;
}
.accordionbox > details > summary::-webkit-details-marker {
  display: none;
}
.accordionbox > details:not(:last-of-type) > summary {
  margin-bottom: 12px;
}
.accordionbox > details[open] > .child {
  display: block;
}
.accordionbox > details:not(:last-of-type) > .child {
  padding-top: 0;
}
.accordionbox > details:not([open]) .accordion_icon .fa-minus-circle,
.accordionbox > details[open] .accordion_icon .fa-plus-circle {
  display: none;
}
/* 開閉アニメーション（対応ブラウザのみ。非対応ブラウザ・動きを減らす設定では即時に開閉） */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .accordionbox > details {
      interpolate-size: allow-keywords;
    }
    .accordionbox > details::details-content {
      block-size: 0;
      overflow: hidden;
      transition: block-size .4s, content-visibility .4s allow-discrete;
    }
    .accordionbox > details[open]::details-content {
      block-size: auto;
    }
  }
}

/* ページ送り（includes/paginate.html。履歴ページで使用） */
.Pagination {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  padding: 0;
}
.Pagination-Item-Link {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  overflow: hidden;
  background: #fff;
  border: solid 1px #111;
  font-size: 12px;
  color: #111;
  font-weight: bold;
  transition: all 0.15s linear;
}
.Pagination-Item-Link-Icon {
  width: 16px;
}
.Pagination-Item-Link.isActive {
  background: #111;
  color: #fff;
  pointer-events: none;
}
.Pagination-Item-Link:not(.isActive):hover {
  background: #111;
  color: #fff;
}
.Pagination > * + * {
  margin-left: 8px;
}
