/* ===== シックUI CSS ===== */
:root {
  --bg: #f6f6f4;
  --fg: #2e2e2e;
  --accent: #8b7e74;
  --accent-hover: #6f645c;
  --sub-accent: #b8b0a8;
  --border: #d8d4cf;
  --radius: 8px;
  --transition: 0.2s;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Segoe UI", sans-serif;
  padding: 40px;
  line-height: 1.6;
}

/* ===== フォーム ===== */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(139, 126, 116, 0.15);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== チェックボックス / ラジオ ===== */
.checkbox-container,
.radio-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  background: #fff;
  position: relative;
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== セレクト ===== */
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #777 50%),
    linear-gradient(135deg, #777 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* ===== ボタン ===== */
button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

button:hover {
  background: var(--accent-hover);
}

button:active {
  transform: translateY(1px);
}

/* ===== 見出し ===== */
h1 {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
}

h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--accent);
}

h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 16px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 20px 0 8px;
}
.heading-sub {
  text-align: center;
  font-size: 14px;
  color: #7a6a8a;
  margin-top: -10px;
  margin-bottom: 30px;
}


/* ===== シックテーブル（共通） ===== */
.table-calm {
  width: auto;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border);
}

.table-calm th {
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--fg);
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table-calm td {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}

.table-calm tr:hover td {
  background: color-mix(in srgb, var(--accent) 6%, #fff);
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {

  body {
    padding: 20px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 16px;
  }

  input,
  textarea,
  select,
  button {
    font-size: 16px; /* タップしやすさ & iOS対策 */
  }

  /* テーブル横スクロール */
  .table-calm {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
