/* App側（iOS Dynamic Type / Android Font Scale）から渡される文字倍率。
   ?fontScale= または window.setFontScale() で更新される */
:root {
  --font-scale: 1;
}

/* rem の基準サイズを文字倍率に応じて拡大縮小する */
html {
  font-size: calc(100% * var(--font-scale));
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: #fff;
  color: #191C20;
  font-size: 1rem;
  padding: 1.5rem 1rem 3.25rem 1rem;
  margin: 0;
}

.accordion-container {
  max-width: 600px;
  margin: 0 auto;
}

.accordion-container img {
  width: 100%;
  max-width: 400px;
}

h2 {
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

h2.t24 {
  padding-top: 1.5rem;
}

h2.t52 {
  padding-top: 3.25rem;
}

.accordion-item.bt {
  border-top: 1px solid #dadada;
}

.accordion-item {
  border-bottom: 1px solid #dadada;
}

.accordion-header {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  -webkit-text-size-adjust: 100%;
  -webkit-user-select: text;
  -webkit-touch-callout: none;
}

.accordion-header .text {
  color: #191C20;
  font-weight: normal;
}

.arrow {
  transition: transform 0.3s ease;
  /* 文字倍率に追従させる（1.5em = 基準24px） */
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
}

.accordion-item.active .arrow {
  transform: rotate(180deg);
}

.accordion-content {
  overflow: hidden;
  overflow-anchor: none;  /* レイアウト変化時の自動位置補正を無効化 */
  max-height: 0;
  transition: max-height 0.4s ease;
  font-size: 1rem;
  line-height: 1.5;
  color: #777777;
}

.accordion-content p{
  margin: 0;
  padding-top: 1rem;
}

.accordion-content p a{
  color: #007aff;
  text-decoration: none;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding-bottom: 1rem;
}

.offline-message {
  text-align: center;
  padding: 3rem 1rem;
  color: #777777;
  font-size: 1rem;
  line-height: 1.6;
}

a[href^="tel:"] {
  color: #007aff;
  text-decoration: none;
}
