body { font-family: sans-serif; margin: 0; padding: 0; background: #f9f9f9; color: #333; }
section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h2 { margin: 0; padding: 0.5em; background: #62b53c; color: white; text-align: center; letter-spacing: 0; position: relative; }
footer {
  margin: 0;
  padding: 0.5em;
  background: #62b53c;
  color: white;
  text-align: center;
  letter-spacing: 0;
  position: relative;
  margin-top: auto;
}
ul {
  margin: 0;
  padding: 0 0 0 1.5em;
}
[dir="rtl"] ul {
  padding: 0 1.5em 0 0;
}
li {
  text-indent: -1em;
  padding-left: 0.5em;
  line-height: 1.8;
}
[dir="rtl"] li {
  text-indent: -1em;
  padding-left: 0;
  padding-right: 0.5em;
}
li + li {
  margin-top: 0.5em;
}
.accordion {
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  padding: 0.8em 1.7em 0.8em 1em;
  color: #3c6f25;
  position: relative;
  user-select: none;
}
[dir="rtl"] .accordion {
  padding: 0.8em 1em 0.8em 1.7em;
}
.accordion-indicator {
  position: absolute;
  right: 0.3em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  pointer-events: none;
  transition: transform 0.2s;
}
[dir="rtl"] .accordion-indicator {
  right: auto;
  left: 0.3em;
}
.ltr {
  direction: ltr;
  unicode-bidi: embed;
}

.panel { overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease; padding: 0 1em; max-height: 0; }
.panel.show { max-height: 500px; padding: 0.5em 1em; }
.plane { transition: max-height 0.4s ease-out, padding 0.4s ease; padding: 0 1em; max-height: 0; }


#foot_txt {
  direction: ltr;
}

/* 全パネル開放＆操作不可用（terms, privacy共通で使える） */
body.all-open .panel {
  display: block !important;
  max-height: none !important;
  transition: none !important;
  box-shadow: none;
  border-top: none;
}
body.all-open .accordion-indicator {
  display: none !important;
}
body.all-open .accordion {
  cursor: default !important;
  pointer-events: none !important;
  background: #f7f7f7;
  padding: 0.8em 1em 0.1em 1em;
}

/* lastUpdteをLTRなら右、RTLなら左に寄せる */
#lastUpdte {
  font-size: 0.95em;
  color: #888;
  margin-bottom: 0.5em;
  text-align: right;
}
html[dir="rtl"] #lastUpdte {
  text-align: left;
}

/* --- Anti-copy: 文字選択・長押しメニューの抑止（既定で全体に適用） --- */
html, body, #accordion-container, #head_txt, #foot_txt, .no-copy {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* iOS 長押しメニュー */
}

/* 必要箇所だけ再び選択可にする場合に使用 */
.selectable {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}
