/* WP Fortune Types */

.wpft-home,
.wpft-app {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: #171d22;
}

.wpft-home {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 16px;
}

.wpft-home__head {
  text-align: center;
  margin-bottom: 18px;
}

.wpft-home__head p {
  margin: 0 0 6px;
  color: #96712a;
  font-size: 0.78rem;
  font-weight: 800;
}

.wpft-home__head h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.35;
}

.wpft-home__head span,
.wpft-intro p {
  color: #5b6470;
  line-height: 1.75;
}

.wpft-shell {
  background: #fbfaf7;
  border: 1px solid #d8d2c4;
  border-radius: 8px;
  padding: 18px;
}

.wpft-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.wpft-tab,
.wpft-submit,
.wpft-share {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #d8d2c4;
  background: #fff;
  color: #171d22;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.wpft-tab {
  padding: 8px 13px;
}

.wpft-tab.active,
.wpft-tab:hover {
  border-color: #a98535;
  background: #f2eee4;
  color: #6f5520;
}

.wpft-intro {
  border-bottom: 1px solid #d8d2c4;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.wpft-intro h3 {
  margin: 0 0 6px;
  font-size: 1.32rem;
  line-height: 1.35;
}

.wpft-intro p {
  margin: 0;
}

.wpft-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.wpft-field span {
  display: block;
  color: #4d5660;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.wpft-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8d2c4;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.95rem;
}

.wpft-submit {
  padding: 8px 18px;
  background: #151e26;
  color: #fff;
  border-color: #151e26;
}

.wpft-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.wpft-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 120px;
  color: #5b6470;
}

.wpft-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d8d2c4;
  border-top-color: #a98535;
  border-radius: 50%;
  animation: wpft-spin 0.8s linear infinite;
}

@keyframes wpft-spin {
  to { transform: rotate(360deg); }
}

.wpft-result {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.wpft-result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.wpft-result-head p {
  margin: 0 0 5px;
  color: #96712a;
  font-size: 0.82rem;
  font-weight: 800;
}

.wpft-result-head h4 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.35;
}

.wpft-flow-badge {
  display: grid;
  gap: 3px;
  justify-items: center;
  min-width: 132px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #d8bd74;
  background: #151e26;
  color: #fff;
  text-align: center;
}

.wpft-flow-badge span {
  color: #d8bd74;
  font-size: 0.74rem;
  font-weight: 800;
}

.wpft-flow-badge strong {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.25;
}

.wpft-flow-badge.excellent { background: #1f5a4a; }
.wpft-flow-badge.good { background: #18242e; }
.wpft-flow-badge.steady { background: #3f3827; }
.wpft-flow-badge.care { background: #4d5660; }

.wpft-summary {
  margin: 0;
  color: #3f4650;
  line-height: 1.8;
}

.wpft-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wpft-result-card {
  background: #fff;
  border: 1px solid #e4dece;
  border-radius: 8px;
  padding: 14px;
  min-height: 122px;
}

.wpft-result-card span {
  display: block;
  color: #96712a;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 7px;
}

.wpft-result-card p {
  margin: 0;
  color: #333b44;
  line-height: 1.75;
}

.wpft-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wpft-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f2eee4;
  color: #6f5520;
  font-size: 0.84rem;
  font-weight: 800;
}

.wpft-share {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  padding: 8px 16px;
  background: #151e26;
  color: #fff;
  border-color: #151e26;
}

@media (max-width: 720px) {
  .wpft-form,
  .wpft-result-grid {
    grid-template-columns: 1fr;
  }

  .wpft-result-head {
    align-items: flex-start;
  }
}
