@charset "utf-8";

*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

/* ******************** */
/* お問い合わせトップページ */
/* ******************** */

.customer-h1 {
  font-size: 32px;
  font-weight: bold;
}
.sp-only {
  display: none;
}
.inner {
  margin: auto;
  max-width: 800px;
  padding: 20px;
}
.intro ul {
  list-style: none;
  padding-left: 0;
}
.intro li {
  font-size: 14px;
  line-height: 1.7;
  padding-left: 1em;
  text-indent: -1em;
}
.intro li::before {
  content: "※";
}
.intro li:first-child::before {
  color: #A20124;
}
.customer-h2 {
  padding: 0 0.7rem;
  margin: 0 0 20px;
  border-left: 5px solid #000;
  font-size: 20px;
  font-weight: bold;
}
.sub {
  font-weight: bold;
  margin: 16px 0;
}
.red-intro {
  color: #A20124;
}

/* ページ内リンク */
.topic {
  display: flex;
  justify-content: space-evenly;
  gap: 30px;
  margin: 30px 0 70px;
  padding: 15px;
  border: 1px solid #B2B2B2;
  border-radius: 7px;
  background-color: #F9F9F9;
}
.topic a {
  text-decoration: none;
  color: #000;
}
.topic p {
  align-items: center;
  display: flex;
  margin: 0;
}
.topic p::after {
  content: "▼";
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  border: 1.5px solid #000;
  border-radius: 50%;
  font-size: 9px;
  color: #000;
}

/* セクション共通 */
.congestion,
.mail,
.phone {
  margin-bottom: 70px;
  scroll-margin-top: 20px;
}

/* ************************ */
/* サポートデスク混雑予想日について */
/* ************************ */
.open {
  text-align: center;
  margin: 30px 0;
}
.hour {
  color: #A20124;
  font-weight: bold;
  font-size: 24px;
  text-decoration: 5px underline #FDBEC1;
  text-underline-offset: 1px;
}
.congestion-box {
  border: 1px solid #000;
  border-top: 3px solid #FDBEC1;
  margin: 20px 0;
  text-align: center;
  padding: 15px 0;
}
.congestion-title {
  background: #F6F4DE;
  text-align: center;
  display: inline-block;
  padding: 5px 20px;
  font-size: 14px;
  min-width: 200px;
  margin: 0 0 15px;
}
.red {
  color: #A20124;
  font-weight: bold;
  font-size: 16px;
}
.weight {
  font-weight: normal;
}
.flex-day {
  display: flex;
  gap: 50px;
  text-align: left;
  justify-content: center;
}
.flex-day p,
.flex-hour p {
  margin: 0 0 10px;
}
.flex-hour {
  display: flex;
  gap: 50px;
  color: #A20124;
  font-weight: bold;
  justify-content: center;
}
.guideline {
  text-align: center;
  margin: 50px auto 30px;
}
.guideline h3 {
  margin-bottom: 0;
  margin-top: 15px;
  font-weight: bold;
  font-size: 18px;
}
.guideline p {
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
}

/* カレンダー・時間帯テーブル */
.calender {
  padding: 20px 0;
}
.calender table {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 7px;
  font-family: "Outfit", sans-serif;
}
th, td {
  height: 30px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  font-size: 24px; /* 日付のテキストサイズ */
  border: 1px solid transparent;
}
thead th {
  background-color: white;
  color: #333;
  font-weight: normal;
  font-size: 16px;
  border: 1px solid #ddd;
  box-shadow: 0 6px 5px -4px rgba(0, 0, 0, 0.2);
}
.prediction thead th {
  font-size: 14px;
}
.empty {
  background: none;
  border: none;
}
.default {
  background-color: #fdfae7;
  border: 1px solid #ddd;
}
.bg-red {
  background-color: #A20124;
  color: white;
}
.bg-pink {
  background-color: #FDBEC1;
  border: 1px solid #A20124;
  color: #A20124;
}
.flex-color {
  display: flex;
  justify-content: center;
  gap: 30px;
}
.flex-color p:first-child::before {
  content: '■';
  color: #FDBEC1;
}
.flex-color p:last-child::before {
  content: '■';
  color: #A20124;
}
.congestion-attention {
  color: #A20124;
  margin-bottom: 50px;
}

/* ********************** */
/* メールでのお問い合わせ */
/* ********************** */
.mail-attention {
  border: 1px solid #A20124;
  border-radius: 7px;
  text-align: justify;
  color: #A20124;
  padding: 0 20px;
  margin: 20px 0;
  font-size: 14px;
}
.ma-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  font-size: 18px;
  justify-content: center;
  margin: 16px 0;
}
ul.ma-list {
  list-style: none;
  margin: 0;
  padding: 0 0 15px;
}
.ma-list li {
  padding-left: 1em;
  text-indent: -1em;
}
.ma-list li::before {
  content: "・";
}
/* メール側の注意書きは中央寄せ */
.mail .ma-list {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}
.mail .ma-list li {
  padding-left: 0;
  text-indent: 0;
}
.mail-attention .ma-list li {
  line-height: 1.7;
}
.mail-attention .ma-list li:last-child {
  margin-bottom: 0;
}
.warning-icon {
  flex-shrink: 0;
}
.fl-desc {
  margin: 30px 0 20px;
  text-align: center;
  font-size: 14px;
}

/* ************************ */
/* アコーディオン（JS制御） */
/* ************************ */
.fl {
  margin: 0 0 20px;
  border: 1px solid #E0E0E0;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.fl-head {
  margin: 0;
  font-size: inherit;
}
.fl-btn {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 18px 56px;
  border: 0;
  background: #F2F2F2;
  color: #000;
  text-align: center;
  font: inherit;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
}
.fl-btn:focus-visible {
  outline: 2px solid #A20124;
  outline-offset: -4px;
}
.fl-btn::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid #000;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}
.fl.is-open .fl-btn::after {
  content: "−";
}

/* 開閉パネル（JSが有効なときだけ畳む。JS無効時は常時表示） */
.fl-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s;
}
.fl.is-open .fl-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.3s ease, visibility 0s linear 0s;
}
.fl-inner {
  min-height: 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .fl-panel,
  .fl.is-open .fl-panel {
    transition: none;
  }
}

/* メールのリンク一覧 */
.fl-list {
  column-count: 2;
  column-gap: 40px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 30px 12px;
  list-style: none;
  font-size: 14px;
}
.fl-list li {
  break-inside: avoid;
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 1em;
  text-indent: -1em;
}
.fl-list li::before {
  content: "・";
}
.fl-list a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ********************** */
/* 電話でのお問い合わせ */
/* ********************** */
.fl-body {
  padding: 20px 30px 30px;
  font-size: 14px;
}
.fl-body > p {
  margin: 0 0 20px;
}
.p-btn {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}
.p-btn .btn {
  min-width: 250px;
  padding: 8px 24px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}
.p-time {
  margin: 0;
  text-align: center;
  font-size: 12px;
}
.p-num {
  margin-bottom: 20px;
  text-align: center;
}
.p-tel {
  margin: 0 0 4px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}
.p-tel a {
  color: #000;
  text-decoration: none;
}
.favor {
  margin-top: 30px;
}
.favor-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  white-space: nowrap;
}
.favor-title::before,
.favor-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #000;
}
.favor-desc {
  margin: 0;
  color: #666;
  font-size: 12px;
}

/* ******************** */
/* レスポンシブ（スマホ） */
/* ******************** */
@media (max-width: 600px) {
  .sp-only {
    display: inline;
  }
  .inner {
    padding: 16px;
  }
  .customer-h1 {
    font-size: 22px;
  }
  .customer-h2 {
    font-size: 18px;
  }
  .intro .en {
    display: block;
  }

  /* ページ内リンク */
  .topic {
    display: grid;
    grid-template-columns: max-content;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    padding: 16px 20px;
  }
  .topic p {
    gap: 12px;
  }
  .topic p::after {
    margin-left: auto;
  }

  /* 混雑予想 */
  .open {
    font-size: 14px;
  }
  .hour {
    font-size: 20px;
  }
  .flex-day,
  .flex-hour {
    flex-direction: column;
    gap: 0;
    width: fit-content;
    margin: 0 auto;
    font-size: 14px;
  }
  .red {
    font-size: 14px;
  }
  .calender table {
    border-spacing: 3px;
  }
  th, td {
    height: 26px;
    font-size: 14px;
  }
  thead th {
    font-size: 12px;
  }
  .prediction thead th {
    font-size: 11px;
  }
  .flex-color {
    gap: 20px;
    font-size: 14px;
  }
  .congestion-attention {
    font-size: 13px;
    margin-bottom: 40px;
  }

  /* メール */
  .mail-attention {
    padding: 0 14px;
    font-size: 13px;
    text-align: left;
  }
  .fl-btn {
    padding: 16px 48px 16px 16px;
    font-size: 16px;
  }
  .fl-btn::after {
    right: 12px;
  }
  .fl-list {
    column-count: 1;
    width: auto;
    margin: 0;
    padding: 16px 16px 4px;
  }

  /* 電話 */
  .fl-body {
    padding: 16px 16px 24px;
  }
  .p-btn {
    flex-direction: column;
    gap: 12px;
  }
  .p-btn .btn {
    min-width: 0;
    width: 100%;
  }
  .p-tel {
    font-size: 20px;
  }
}
