/* Probono Works — components
   ボタン / サービスカード / コンセプト / 姉妹ブランド / FAQ / 告知バナー /
   ページトップボタンなど、再利用する UI 部品。 */

/* ---------- button ---------- */

.btn {
  display: inline-block;
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #ffffff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
  font-family: inherit;
  text-align: center;
  line-height: 1.5;
}

.btn:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--accent-strong);
  background: transparent;
  border-color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 48px;
  font-size: 16px;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  color: var(--text-mute);
  border-color: var(--border-strong);
  background: transparent;
}

/* ---------- 告知バナー ---------- */

.feature-banner {
  background: linear-gradient(135deg, #2563eb 0%, #1d9bf0 100%);
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  color: #ffffff;
}

.feature-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.feature-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
}

.feature-banner-title {
  font-size: clamp(21px, 3.4vw, 31px);
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: #ffffff;
}

.feature-banner-sub {
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 500;
  color: #ffffff;
  max-width: 760px;
  line-height: 1.85;
  margin: 0;
}

.feature-banner-sub a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature-banner-sub a:hover {
  color: #ffffff;
  opacity: 0.85;
}

.feature-banner-cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  margin-top: 6px;
}

.feature-banner-cta:hover {
  background: var(--accent-strong);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ---------- サービスカード ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  height: 100%;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.card-muted {
  opacity: 0.85;
  background: var(--bg-deep);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.card-status {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: max-content;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 6px 11px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-mute);
  background: #ffffff;
  white-space: nowrap;
}

.card-status-live {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.card-platform {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 6px 11px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-sub);
  background: var(--bg-deep);
  white-space: nowrap;
}

.card-title {
  font-family: var(--font-en);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  color: var(--text-main);
  line-height: 1.3;
}

.card-title-ja {
  font-family: var(--font-ja);
  letter-spacing: 0.04em;
}

.card-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  margin: 0 0 16px;
  line-height: 1.6;
}

.card-desc {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-sub);
  margin: 0 0 24px;
  line-height: 1.8;
}

.card-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--border);
}

.card-meta li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
}

.plan-label {
  flex: 0 0 104px;
  color: var(--text-main);
  font-family: var(--font-ja);
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
}

.plan-desc {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.7;
  min-width: 0;
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.card-actions .btn {
  padding: 12px 26px;
}

/* ---------- コンセプト ---------- */

.concepts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.concept {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.concept:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card-hover);
}

.concept-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
  background: var(--accent-soft);
  font-family: var(--font-ja);
}

.concept-title {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: 0.06em;
  color: var(--text-main);
  line-height: 1.4;
}

.concept-desc {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.8;
}

/* ---------- 姉妹ブランド ---------- */

.sister {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.sister-title {
  font-family: var(--font-en);
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  color: var(--text-main);
}

.sister-desc {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-sub);
  margin: 0 0 26px;
  line-height: 1.85;
}

.plugin-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: left;
}

.plugin-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-deep);
  font-size: 15px;
  line-height: 1.7;
  min-width: 0;
}

.plugin-name {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.plugin-state {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.plugin-state-live {
  color: #ffffff;
  background: var(--accent);
}

.plugin-state-dev {
  color: var(--text-mute);
  background: #ffffff;
  border: 1.5px solid var(--border-strong);
}

.plugin-desc {
  flex: 1 1 100%;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
  min-width: 0;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card-hover);
}

.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-main);
  letter-spacing: 0.02em;
  position: relative;
  list-style: none;
  outline: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "";
  margin-left: auto;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  margin-top: 6px;
}

.faq-item[open] .faq-q::after {
  transform: rotate(-135deg);
  margin-top: 10px;
}

.faq-q:hover,
.faq-q:focus-visible {
  color: var(--accent-strong);
}

.faq-q-text {
  flex: 1;
  min-width: 0;
}

.faq-q-mark {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.faq-a {
  padding: 0 24px 22px 58px;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.85;
}

.faq-a p {
  margin: 0 0 12px;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

.faq-a ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.faq-a li {
  margin-bottom: 6px;
}

.faq-a a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.faq-a a:hover {
  color: var(--accent);
}

/* ---------- ページトップへ戻る ---------- */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ffffff;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), visibility 0s linear 0.25s;
  z-index: 60;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--accent);
  color: #ffffff;
  outline: none;
}

.back-to-top svg {
  display: block;
}
