@charset "UTF-8";

/* 共通スタイル */
.page {
    font-family: sans-serif;
    line-height: 1.8;
    margin: 20px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 16px;
}

.page__heading {
    font-weight: bold;
    font-size: 25px;
    line-height: 1;
    margin-bottom: 30px;
}

.table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    border: 1px solid #ccc;
}

.table__header-cell,
.table__cell {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.table__header-cell {
    background-color: #eee;
}

.form__label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.2;
}

.form__submit-button {
    background-color: #555;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* list.php 固有スタイル */
.meeting-table {
    margin: 40px auto;
    width: 100%;
    max-width: 1200px;
}

.meeting-table__header-cell,
.meeting-table__cell {
    padding: 12px;
}

.meeting-table__header-cell--sort-up,
.meeting-table__header-cell--sort-down {
    background-color: #ddd;
}

.detail-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #555; /* ボタンの背景色をグレーに */
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px; /* 角を丸める */
    cursor: pointer;
}

/* detail.php 固有スタイル */
.detail-table {
    width: 60%;
    margin: 40px auto;
}

.detail-table__header-cell,
.detail-table__cell {
    padding: 12px;
}

.detail-page__heading {
    margin-top: 50px;
}

.detail-page__audio {
    margin-top: 30px;
}

.output-button-container {
  text-align: right;
  margin-bottom: 20px;
}

.output-button { /* 意向確認書出力ボタンのスタイル */
  display: inline-block;
  padding: 10px 20px;
  background-color: #ccc; /* グレー */
  color: #333; /* 文字色を濃いグレーに */
  text-decoration: none;
  border-radius: 5px;
}

/* index.php 固有スタイル */
.form-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.form__input,
.form__select,
.form__input--date { /* index.phpのinput要素とselect要素のスタイル */
    width: 100%;
    height: 30px;
    padding: 5px;
    margin-bottom: 30px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.form__input[type="file"] {
    height: auto;
}

.form__textarea { /* index.phpのtextarea要素のスタイル */
    width: 100%;
    height: 200px;
    padding: 10px;
    margin-bottom: 30px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

details {
  margin-bottom: 20px; /* 見出し間の余白 */
}

summary {
  cursor: pointer;
  display: flex; /* summary を flexbox に */
  align-items: center; /* 縦方向に中央揃え */
}

summary::-webkit-details-marker { /* デフォルトのトグルを非表示 */
  display: none;
}

.detail-title {
  margin-left: 10px; /* タイトルに左マージンを追加 */
}

.detail-toggle { /* トグルのスタイル */
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.detail-toggle::before { /* トグルの矢印 */
  content: '+';
}

details[open] .detail-toggle::before { /* 展開時の矢印 */
  content: '-';
}

.back-button-container {
  text-align: center; /* ボタンを中央寄せ */
  margin-top: 30px; /* 上に余白を追加 */
}

.back-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #555; /* グレー */
  color: white;
  text-decoration: none;
  border-radius: 5px; /* 角丸 */
}

details {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

summary {
  padding: 0.5em 1em;
  cursor: pointer;
  font-weight: bold;
  background-color: #f1f1f1;
}

details[open] summary {
  border-bottom: 1px solid #ddd;
}

code {
  display: block;
  padding: 1em;
  font-family: none;
  font-size: 0.9em;
  line-height: 1.5;
}
