/* =========================================================
  Simple Daiyun Checker
  簡易大運チェッカー専用CSS
========================================================= */

/* =========================================================
  Simple Daiyun Checker: form
========================================================= */

.tool-form-card.simple-daiyun-form-card {
  max-width: 770px;
  margin: 26px auto;
  padding: 26px 30px 30px;
  border-radius: 22px;

  background:rgba(255, 253, 248, 0.76);

  border: 1px solid rgba(190, 145, 60, 0.34);
  border-top: 5px solid var(--mikoto-red);

  box-shadow:
    0 14px 30px rgba(80, 30, 20, 0.10),
    inset 0 0 0 1px rgba(255, 240, 190, 0.20);

  backdrop-filter: blur(1.5px);
}

.simple-daiyun-form-card .tool-form-title {
  margin: 0 0 10px;
  text-align: center;
  color: var(--mikoto-red-dark, var(--mikoto-red-dark));
  font-size: 1.36rem;
  letter-spacing: 0.12em;
}

.simple-daiyun-form-card .tool-form-lead {
  max-width: 620px;
  margin: 0 auto 22px;
  text-align: center;
  color: rgba(80, 50, 45, 0.72);
  font-size: 0.86rem;
  line-height: 1.75;
}

.simple-daiyun-form-card .tool-form-inner {
  max-width: 620px;
  margin: 0 auto;
}

.simple-daiyun-form-card .tool-form-row {
  grid-template-columns: 7.2em minmax(0, 1fr);
}

.simple-daiyun-datetime-row {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px 10px;
  align-items: center;
}

.simple-daiyun-datetime-item input[type="number"] {
  width: 4.8em;
  text-align: center;
}

.simple-daiyun-form-card .tool-form-row:first-child {
  border-top: none;
}

.simple-daiyun-form-card .tool-form-label {
  color: var(--mikoto-red-dark, var(--mikoto-red-dark));
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: right;
}

.simple-daiyun-form-card .tool-form-control {
  min-width: 0;
}


.simple-daiyun-form-card input[type="number"],
.simple-daiyun-form-card select {
  height: 34px;
  padding: 5px 10px;
  border-radius: 12px;

  border: 1px solid rgba(120, 80, 60, 0.20);
  background: rgba(255, 253, 251, 0.86);

  color: rgba(65, 43, 38, 0.88);
  font-size: 0.88rem;
  font-weight: 600;

  box-shadow:
    inset 0 1px 2px rgba(80, 30, 20, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.48);

  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease;
}

.simple-daiyun-form-card input[type="number"]:focus,
.simple-daiyun-form-card select:focus {
  outline: none;
  border-color: rgba(62, 116, 172, 0.58);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 3px rgba(62, 116, 172, 0.12),
    inset 0 1px 2px rgba(80, 30, 20, 0.04);
}

.simple-daiyun-form-card .tool-choice-box {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;

  background: rgba(255, 250, 245, 0.46);
  border: 1px solid rgba(190, 145, 60, 0.22);
}

.simple-daiyun-form-card .tool-choice-box label {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 6px 12px;
  border-radius: 999px;

  color: rgba(80, 50, 45, 0.78);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.simple-daiyun-form-card .tool-choice-box input {
  accent-color: rgb(155, 38, 28);
}

.simple-daiyun-birth-place-row {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
}

.simple-daiyun-birth-place-row select {
  width: 100%;
}

.simple-daiyun-birth-place-row #birth-city-area select,
.simple-daiyun-birth-place-row #birth_city {
  width: 100%;
}

.simple-daiyun-timezone-row {
  display: grid;
  gap: 6px;
}

.simple-daiyun-timezone-row select {
  max-width: 420px;
}

.simple-daiyun-timezone-note {
  margin: 0;
  color: rgba(80, 50, 45, 0.58);
  font-size: 0.74rem;
  line-height: 1.55;
}


.simple-daiyun-form-card .tool-submit-area {
  margin-top: 24px;
  text-align: center;
}

.simple-daiyun-form-card .tool-submit-button {
  min-width: 220px;
  padding: 11px 24px;
  border: none;
  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      rgb(180, 42, 35),
      rgb(205, 72, 55)
    );

  color: #fffdf8;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;

  box-shadow:
    0 8px 18px rgba(80, 30, 20, 0.16),
    inset 0 0 0 1px rgba(255, 232, 170, 0.24);

  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    filter 0.14s ease;
}

.simple-daiyun-form-card .tool-submit-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 10px 22px rgba(80, 30, 20, 0.20),
    inset 0 0 0 1px rgba(255, 232, 170, 0.32);
}

/* =========================
  Result card
========================= */

.tool-result-card.simple-daiyun-result-card {
  max-width: 960px;
  margin: 24px auto;
  padding: 18px 20px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(120, 80, 60, 0.14);
  box-shadow: 0 10px 26px rgba(80, 30, 20, 0.07);
  border-top: 5px solid rgba(62, 116, 172, 0.95);
}

.simple-daiyun-result-card > h2 {
  margin: 10px 0 8px;
  text-align: center;
  color: var(--mikoto-red-dark);
  font-size: 1.28rem;
  letter-spacing: 0.08em;
}

.simple-daiyun-result-card > .muted {
  max-width: 760px;
  margin: 6px auto;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
}


/* =========================
  Natal summary
========================= */

.simple-daiyun-natal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 18px auto 16px;
}

.simple-daiyun-pillar-card {
  position: relative;
  overflow: hidden;
  padding: 12px 8px 11px;
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 253, 251, 0.92),
      rgba(255, 246, 242, 0.82)
    );
  border: 1px solid rgba(120, 80, 60, 0.14);
  text-align: center;
  box-shadow: 0 5px 14px rgba(80, 30, 20, 0.045);
}

.simple-daiyun-pillar-card::before {
  content: none;
}

.simple-daiyun-pillar-card span {
  display: block;
  margin-bottom: 4px;
  color: rgba(80, 50, 45, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.simple-daiyun-pillar-card strong {
  display: block;
  color: var(--mikoto-red-dark);
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: 0.12em;
}


/* =========================
  Summary chips
========================= */

.simple-daiyun-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 780px;
  margin: 10px auto 12px;
  
}

.simple-daiyun-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(180, 42, 35, 0.08);
  border: 1px solid rgba(120, 80, 60, 0.12);
  color: rgba(80, 50, 45, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
}


/* =========================
  Table wrapper
========================= */

.simple-daiyun-table-wrap {
  max-width: 95%;
  margin: 18px auto 0;
  border-radius: 14px;
  border: 1px solid rgba(120, 80, 60, 0.12);
  background: rgba(255, 253, 251, 0.32);
  overflow-x: auto;
}


/* =========================
  Table
========================= */

.simple-daiyun-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 253, 251, 0.88);
  font-size: 0.84rem;
}

.simple-daiyun-table th,
.simple-daiyun-table td {
  border-right: 1px solid rgba(234, 223, 216, 0.82);
  border-bottom: 1px solid rgba(234, 223, 216, 0.82);
  padding: 8px 9px;
  text-align: center;
  vertical-align: middle;
}

.simple-daiyun-table th:last-child,
.simple-daiyun-table td:last-child {
  border-right: none;
}

.simple-daiyun-table tbody tr:last-child td {
  border-bottom: none;
}

.simple-daiyun-table thead th {
  background: rgba(180, 42, 35, 0.09);
  color: rgb(110, 30, 25);
  font-weight: 800;
  white-space: nowrap;
}

.simple-daiyun-table tbody tr:nth-child(even) td {
  background: rgba(255, 248, 245, 0.58);
}

.simple-daiyun-table .cycle-period-cell {
  min-width: 170px;
  color: #51463e;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: nowrap;
}

.simple-daiyun-table .cycle-age-cell {
  min-width: 76px;
  color: rgba(80, 50, 45, 0.82);
  font-weight: 700;
  white-space: nowrap;
}

.simple-daiyun-table .cycle-pillar {
  min-width: 74px;
  color: var(--mikoto-red-dark);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.simple-daiyun-table .mini-line {
  line-height: 1.55;
  white-space: nowrap;
}


/* =========================
  Tiny labels
========================= */

.simple-daiyun-table td:nth-child(4),
.simple-daiyun-table td:nth-child(6) {
  font-weight: 700;
  color: #5a4134;
}

.simple-daiyun-table td:nth-child(5) {
  color: #4f3b32;
}


/* =========================
  Simple Daiyun: error
========================= */

.simple-daiyun-error-card {
  max-width: 770px;
  border: 1px solid rgba(70, 110, 160, 0.18);
  border-top: 5px solid rgba(62, 116, 172, 0.95);
  box-shadow: 0 10px 24px rgba(40, 60, 90, 0.08);
}

.simple-daiyun-error-card h2,
.simple-daiyun-error-list strong {
  color: rgb(48, 84, 132);
}

.simple-daiyun-error-list > li {
  background: rgba(239, 246, 252, 0.48);
  border: 1px solid rgba(70, 110, 160, 0.12);
}
.simple-daiyun-error-list > li + li {
  margin-top: 10px;
}

.simple-daiyun-error-list strong {
  display: block;
  margin-bottom: 5px;
  color: rgb(120, 30, 25);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.simple-daiyun-error-messages {
  color: rgba(80, 50, 45, 0.82);
  font-size: 0.86rem;
  line-height: 1.65;
}


/* =========================
  📱 Mobile Section
========================= */
/* =========================================================
  Simple Daiyun Checker - Mobile
========================================================= */
@media (max-width: 767px) {
  .simple-daiyun-form-card {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 20px auto;
    padding: 22px 16px 26px;
    box-sizing: border-box;
  }

  .simple-daiyun-form-card .tool-form-lead {
    font-size: 0.88rem;
    line-height: 1.8;
    text-align: left;
  }

  .simple-daiyun-form-card .tool-form-inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .simple-daiyun-form-card .tool-form-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;

    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    box-sizing: border-box;
  }

  .simple-daiyun-form-card .tool-form-label {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    text-align: left;
    justify-content: flex-start;

    font-size: 0.86rem;
    letter-spacing: 0.06em;
  }

  .simple-daiyun-form-card .tool-form-control {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* 生年月日・出生時刻 */
  .simple-daiyun-datetime-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .simple-daiyun-datetime-item {
    display: flex;
    align-items: center;
    gap: 4px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .simple-daiyun-datetime-item input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .simple-daiyun-datetime-item span {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  /* 性別 */
  .simple-daiyun-form-card .tool-choice-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  /* 出生地 */
  .simple-daiyun-birth-place-row {
    display: flex;
    flex-direction: column;
    gap: 8px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .simple-daiyun-birth-place-row select,
  .simple-daiyun-birth-place-row input,
  .simple-daiyun-birth-place-row #birth-city-area {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .simple-daiyun-birth-place-row #birth-city-area select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* 現在地 */
  .simple-daiyun-timezone-row {
    display: flex;
    flex-direction: column;
    gap: 8px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .simple-daiyun-timezone-row select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .simple-daiyun-timezone-note {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .simple-daiyun-form-card .tool-submit-area {
    margin-top: 18px;
  }

  .simple-daiyun-form-card .tool-submit-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}