@charset "UTF-8";
/* CSS Document */
/* グレーの地 */
.dormitory-form-section {
  padding: 0;
  margin: 60px auto;
  max-width: 800px;
  box-shadow: 0 0 0 transparent; /* 親要素に余計な影がないように */
}
/* 上のピンク帯（左右と天がぴったり） */
.dormitory-form-list {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #f4f4f4;
  margin: 0;
}
.dormitory-form-list .dormitory-form-header {
  background: #F19795;
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 0.4em 0; /* 高さを低めに */
  font-size: 1.3rem;
  line-height: 1.4;
  border: none;
}
/* テーブルの中身 */
.dormitory-form-list td {
  padding: 0.9em 1em;
  /*  border-bottom: 1px solid #e0e0e0;*/
  color: #333;
  font-weight: 500;
}
.dormitory-form-list tr {
  background: #F4F4F4;
}
.dormitory-form-list.narrow tr:nth-child(odd) {
  background: #fff;
}
.dormitory-form-list.narrow td {
  padding: 0.5em 1em;
}
/* 1列目と2列目の幅を指定 */
.dormitory-form-list td:first-child {
  width: 80%; /* 左の列：本文 */
}
.dormitory-form-list td:last-child {
  width: 20%; /* 右の列：Word形式 / PDF形式 */
  text-align: right; /* ✅ 右寄せで統一 */
  white-space: nowrap;
}
@media screen and (min-width: 768px) {
  .dormitory-form-list {
    table-layout: auto;
    word-break: keep-all; /* ← 文中での変な改行を防ぐ */
    white-space: normal; /* ← 折り返しを許可 */
  }
  .dormitory-form-list td:first-child {
    width: auto; /* ← 80%を解除して自然幅に */
  }
  .dormitory-form-list td:last-child {
    width: 10em; /* ← 固定幅のWord形式列 */
  }
}
.dormitory-form-list a {
  color: #0072ff;
  font-weight: bold;
  text-decoration: none;
}
/* テーブルごとにカウンターリセット */
.dormitory-form-list {
  counter-reset: dorm-counter;
}
/* 左列 */
.dormitory-form-list td:first-child {
  position: relative;
  padding-left: 2.2em; /* ← 丸数字ぶんの余白をやや増 */
  line-height: 1.7;
  vertical-align: middle; /* ← 縦センター */
  text-indent: 0;
}
/* 丸数字（中央＋内側＋全行均等） */
.dormitory-form-list tr td:first-child::before {
  counter-increment: dorm-counter;
  position: absolute;
  left: 0.65em; /* ✅ 左飛び出しを解消（内側へ0.65em） */
  top: 50%;
  transform: translateY(-50%); /* ✅ 高さ中央揃え */
  font-weight: 600;
  color: #333;
  font-size: 1em;
  line-height: 1;
}
/* 丸数字マッピング（1〜20まで対応） */
.dormitory-form-list tr:nth-child(1) td:first-child::before {
  content: "① ";
}
.dormitory-form-list tr:nth-child(2) td:first-child::before {
  content: "② ";
}
.dormitory-form-list tr:nth-child(3) td:first-child::before {
  content: "③ ";
}
.dormitory-form-list tr:nth-child(4) td:first-child::before {
  content: "④ ";
}
.dormitory-form-list tr:nth-child(5) td:first-child::before {
  content: "⑤ ";
}
.dormitory-form-list tr:nth-child(6) td:first-child::before {
  content: "⑥ ";
}
.dormitory-form-list tr:nth-child(7) td:first-child::before {
  content: "⑦ ";
}
.dormitory-form-list tr:nth-child(8) td:first-child::before {
  content: "⑧ ";
}
.dormitory-form-list tr:nth-child(9) td:first-child::before {
  content: "⑨ ";
}
.dormitory-form-list tr:nth-child(10) td:first-child::before {
  content: "⑩ ";
}
.dormitory-form-list tr:nth-child(11) td:first-child::before {
  content: "⑪ ";
}
.dormitory-form-list tr:nth-child(12) td:first-child::before {
  content: "⑫ ";
}
.dormitory-form-list tr:nth-child(13) td:first-child::before {
  content: "⑬ ";
}
.dormitory-form-list tr:nth-child(14) td:first-child::before {
  content: "⑭ ";
}
.dormitory-form-list tr:nth-child(15) td:first-child::before {
  content: "⑮ ";
}
.dormitory-form-list tr:nth-child(16) td:first-child::before {
  content: "⑯ ";
}
.dormitory-form-list tr:nth-child(17) td:first-child::before {
  content: "⑰ ";
}
.dormitory-form-list tr:nth-child(18) td:first-child::before {
  content: "⑱ ";
}
.dormitory-form-list tr:nth-child(19) td:first-child::before {
  content: "⑲ ";
}
.dormitory-form-list tr:nth-child(20) td:first-child::before {
  content: "⑳ ";
}
orm-list td:first-child:nth-of-type(20)::before {
  content: "⑳ ";
}
@media screen and (max-width: 767px) {
  .dormitory-form-list {
    table-layout: auto; /* ← ✅ 自動レイアウトに戻す */
  }
  .dormitory-form-list td:first-child {
    width: auto; /* ← 固定解除 */
  }
  .dormitory-form-list td:last-child {
    width: auto; /* ← 固定解除 */
    text-align: left; /* ← スマホでは左寄せに */
    display: block; /* ← 行の最後に折り返すように */
    margin-top: 0.2em;
  }
}
/* 下のピンク帯（ボタン風に） */
.dormitory-form-button {
  background: #F19795;
  color: #fff;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 1.0em 0; /* 高さをしっかり取る */
  margin: 40px auto 0;
  border-radius: 6px;
  width: 100%;
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
}


/* ★ 2列グリッド（カテゴリ一覧） */
.category-grid {
  display: grid;
/*  grid-template-columns: repeat(2, 1fr);*/
  gap: 25px;
}

.category-wrapper {
  display: flex;
  flex-direction: column;
}

/* ★ 見出しピンク帯 */
.category-box {
  background: #f8c9d5;
  border: 1px solid #e8b3c1;
    height: 58px;
    font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
    line-height: 58px;
    text-indent: 1rem;
  border-radius: 6px;
  transition: 0.2s;
    position: relative;  
}
.category-box:hover {
  background: #f4b0c4;
}
.category-box::after {
  content: "▼";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  background: #F19795;
  color: white; 
  border-radius: 0 4px 4px 0 ;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  transition: transform 0.3s ease;
      line-height: 1;                     /* ← 文字のずれを防止 */
  padding: 0 15px 0 0;                          /* 念のため */
  box-sizing: border-box;
}

/* 開いている時（▼ → ▲など変更したい場合はここ） */
.category-box.open::after {
  content: "▲";
}

/* 書類リスト */

.accordion-contents {
  display: none;
  background: #f4f4f4; 
  border: 1px solid #eee;
  border-top: none;
  padding: 5px 20px;
  border-radius: 4px; /* ← 角丸も欲しければ追加 */
}
.accordion-contents li {
  padding: 5px 0;
  border-bottom: 1px solid #e5e5e5;
}



.accordion-contents li:last-child {
  border-bottom: none;
}
.accordion-contents a {
  color: #417BEB;
margin-left: 1em;
}
.accordion-contents a:visited {
  color: #945FD9 !important;
}
/* ダウンロードリンク */
a.force-blank {
  color: #417BEB;
  font-weight: normal;
  text-decoration: underline;
}
a.force-blank:hover {
  color: #ff55aa;
}

/* visited */
a.force-blank.visited {
  color: #888 !important;
}
a.force-blank.visited::after {
  content: " ✓";
  color: #28a745;
  font-weight: bold;
}
