/*
Theme Name: FLOW-FLEX Child
Template: FLOW-FLEX_1.82
Version: 1.0.0
*/

/* Author Small (Header) */
a.flow-author-small {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.52);
    border: 1px solid #ccc;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}


.flow-author-small-avatar img {
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: block;
    object-fit: cover;
}

.flow-author-small-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.flow-author-small-label {
    font-size: 14px;
    color: #000;
    line-height: 1;
}

.flow-author-small-name {
    font-size: 14px;
    color: #000;
    line-height: 1;
    text-decoration: underline;
}

/* Author Medium (Footer) */
.flow-author-medium-wrapper {
    margin: 80px 0;
    scroll-margin-top: 100px;
}

.flow-author-medium-title {
    font-size: 18px;
    color: #000;
    margin: 0 0 8px 0;
    font-weight: 400;
}

.flow-author-medium {
    display: flex;
    align-items: flex-start;
    gap: 74px;
    padding: 44px 44px;
    background-color: rgba(255, 255, 255, 0.52);
    border: 1px solid #ccc;
}

.flow-author-medium-avatar img {
    border-radius: 14px;
    width: 250px;
    height: 250px;
    object-fit: cover;
}

.flow-author-medium-content {
    display: flex;
    flex-direction: column;
    gap: 21px;
    flex: 1;
    min-width: 0;
}

.flow-author-medium .flow-author-medium-name {
    margin: 0;
    font-size: 24px !important;
    color: #000;
    font-weight: 400;
}

.flow-author-medium .flow-author-medium-desc {
    font-size: 16px !important;
    color: #000;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .flow-author-medium {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 30px 20px;
    }

    .flow-author-medium-avatar img {
        width: 150px;
        height: 150px;
    }

    .flow-author-medium-content {
        text-align: center;
    }
}

/* HSP Calculator */
.hsp-calculator {
  max-width: 1200px;
  padding: 24px;
  border: 1px solid #ccc;
}

.hsp-section {
  margin-bottom: 32px;
}

.hsp-heading {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #333;
}

.hsp-heading-en {
  font-size: 14px;
  font-weight: 400;
  margin-left: 0.5em;
}

.hsp-option-bonus {
  margin-top: 24px;
  background-color: #f0f7ff;
  border-radius: 4px;
  border-bottom: none;
}

.hsp-note {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.hsp-option .hsp-note,
.hsp-section-note {
  display: block;
  font-size: 12px;
  margin: 8px 0 0 0;
}

.hsp-note-warning {
  color: #c53030;
}

.hsp-option {
  display: block;
  padding: 12px 16px 12px 44px;
  position: relative;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.hsp-option:hover {
  background-color: #f9f9f9;
}

.hsp-option input[type="radio"],
.hsp-option input[type="checkbox"] {
  position: absolute;
  left: 16px;
  top: 14px;
  margin: 0;
}

.hsp-label {
  display: block;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  white-space: pre-line;
}

.hsp-label-en {
  display: block;
  font-size: 14px;
  color: #919191;
  margin-top: 4px;
  line-height: 1.4;
}

.hsp-age-limit-note {
  color: #c53030;
  font-size: 13px;
  margin-left: 8px;
}

.hsp-option--limited .hsp-points {
  color: #999;
}

.hsp-option input:checked + .hsp-label {
  color: #2563eb;
  font-weight: 600;
}

.hsp-option--limited input:checked + .hsp-label {
  color: #999;
}

.hsp-option--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hsp-option--disabled .hsp-label {
  color: #999;
}

.hsp-result {
  max-width: 320px;
  margin: 32px auto 0;
  padding: 24px;
  background: #f7f9fc;
  border-radius: 8px;
  border: 2px solid #333;
}

.hsp-result--sticky-clone {
  display: none;
}

.hsp-result--sticky-clone.hsp-result--sticky {
  display: block;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease-out;
  margin: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hsp-result--sticky-clone.hsp-result--sticky.hsp-result--hiding {
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

.hsp-result-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hsp-result-label {
  font-size: 14px;
  color: #666;
  line-height: 1;
}

.hsp-result-score {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

.hsp-result-unit {
  font-size: 14px;
  color: #666;
  line-height: 1;
}

.hsp-result-status {
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
}

.hsp-result-status.qualified {
  color: #16a34a;
  font-weight: 600;
}

.hsp-result-status.not-qualified {
  color: #666;
}

/* Flow Button */
.flow-button {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  background-color: #C72F22;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
}

.flow-button:hover {
  background-color: #e54542;
}

.flow-button:visited,
.flow-button:active,
.flow-button:hover {
  color: #fff;
}

.flow-button--large {
  padding: 20px 28px;
  font-size: 15px;
}

.flow-button--medium {
  height: 60px;
  padding: 0 20px;
  font-size: 14px;
  line-height: 60px;
}

.flow-button--small {
  padding: 12px 16px;
  font-size: 13px;
}
