/* =====================================================
  treatments-frames.css（枠だけテスト：文章を箱内全面に）
  - 依存なし単体で動く
  - 閉じてる状態：テキストのみ
  - 開いた状態：パネル内は文章のみ（右カラム画像なし）
===================================================== */

.treatments-a{
  --tr-ink: rgba(21, 32, 51, .92);
  --tr-ink-soft: rgba(21, 32, 51, .72);
  --tr-bg: #ffffff;
  --tr-paper: rgba(255,255,255,.78);
  --tr-line: rgba(21, 32, 51, .14);
  --tr-accent: #16b4c6;
  --tr-accent-soft: rgba(22, 180, 198, .14);
  --tr-radius: 18px;
  --tr-radius-sm: 12px;
  --tr-shadow-sm: 0 10px 22px rgba(15, 25, 40, .10);
  --tr-wrap: 1120px;

  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--tr-ink);
}

.treatments-a *{ box-sizing: border-box; }

body{
  margin: 0;
  background: #f6fafb;
}

/* ---------- Page head ---------- */
.page-cover{
  background: linear-gradient(120deg, rgba(22,180,198,.12), rgba(127,200,170,.14));
}
.page-cover-inner{
  max-width: var(--tr-wrap);
  margin: 0 auto;
  padding: 56px 24px 34px;
}
.page-cover-title{
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.2;
  color:rgb(107, 105, 105);
}

/* ---------- Layout ---------- */
.tr{
  padding: 28px 24px 92px;
}
.tr-inner{
  max-width: var(--tr-wrap);
  margin: 0 auto;
}
.tr-accordion{
  display: grid;
  gap: 14px;
}

/* ---------- Item ---------- */
.tr-item{
  background: var(--tr-bg);
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius);
  box-shadow: var(--tr-shadow-sm);
  overflow: hidden;
  position: relative;
}

.tr-head{ margin: 0; }

/* ---------- Button（テキストのみ） ---------- */
.tr-btn{
  width: 100%;
  display: block;

  padding: 18px 18px;
  border: 0;
  cursor: pointer;
  text-align: left;

  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.78));
  color: var(--tr-ink);
  position: relative; /* icon固定用 */
}

.tr-btn:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82));
}

.tr-btn:focus-visible{
  outline: 3px solid rgba(22,180,198,.38);
  outline-offset: 2px;
}

@media (max-width: 640px){
  .tr-btn{
    padding: 16px 14px;
  }
}

/* ---------- Button content ---------- */
.tr-btn-left{
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 44px; /* 右上アイコンの逃げ */
}

/* dots */
.tr-dots{
  display: inline-flex;
  gap: 6px;
  opacity: .55;
}
.tr-dots i{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(21,32,51,.35);
}

/* title */
.tr-title{
  display: inline-grid;
  gap: 6px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.25;
  font-size: 20px;
}
.tr-title::after{
  content: attr(data-en);
  display: block;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--tr-ink-soft);
}

/* lead + mini */
.tr-lead{
  color: var(--tr-ink);
  line-height: 1.75;
  font-size: 14px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.tr-mini{
  color: var(--tr-ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Icon（＋/−）右上固定 ---------- */
.tr-icon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--tr-accent-soft);
  border: 1px solid rgba(22,180,198,.22);
  position: absolute;
  right: 16px;
  top: 16px;
}
.tr-icon::before,
.tr-icon::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: rgba(21,32,51,.70);
  transform: translate(-50%, -50%);
  border-radius: 2px;
}
.tr-icon::after{
  transform: translate(-50%, -50%) rotate(90deg);
}

/* open state（見た目だけ） */
.tr-btn[aria-expanded="true"]{
  background: linear-gradient(180deg, rgba(22,180,198,.10), rgba(255,255,255,.84));
}
.tr-btn[aria-expanded="true"] .tr-icon{
  background: rgba(22,180,198,.18);
}
.tr-btn[aria-expanded="true"] .tr-icon::after{
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

/* SP tweak */
@media (max-width: 640px){
  .tr-title{
    font-size: 18px;
  }
  .tr-icon{
    right: 12px;
    top: 12px;
  }
  .tr-btn-left{
    padding-right: 40px;
  }
}

/* ---------- Panel（文章を箱内全面に） ---------- */
.tr-panel{
  border-top: 1px solid var(--tr-line);
  background: rgba(255,255,255,.70);
}

.tr-panel-inner{
  padding: 18px 18px 22px;
}

@media (max-width: 640px){
  .tr-panel-inner{
    padding: 16px 14px 20px;
  }
}

/* 旧：左右2カラムは廃止（互換のため block に落とす） */
.tr-panel-grid{
  display: block;
}

/* 本文ボックス（パネル幅を全面使用） */
.tr-panel-body{
  width: 100%;
  color: var(--tr-ink);
  line-height: 1.9;

  background: rgba(255,255,255,.78);
  border: 1px solid rgba(21,32,51,.10);
  border-radius: var(--tr-radius-sm);
  padding: 16px 16px;
  box-shadow: 0 10px 18px rgba(15,25,40,.06);
}

/* 文章の間隔を自然に */
.tr-panel-body p{
  margin: 0;
}
.tr-panel-body p + p{
  margin-top: 12px;
}

/* 箇条書きも使えるように（将来用） */
.tr-panel-body ul{
  margin: 12px 0 0;
  padding-left: 1.1em;
}
.tr-panel-body li{
  margin: 6px 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}