/*
Theme Name: Type Diagnosis
Theme URI: https://example.com/mbti-diagnosis
Author: タイプ診断ラボ
Author URI: https://example.com/
Description: タイプ診断コンテンツを運営するための軽量ブロックテーマ。
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mbti-diagnosis
Tags: block-patterns, custom-colors, custom-menu, wide-blocks
*/

:root {
  --pop-bg-gradient: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(34, 211, 238, 0.1) 45%, rgba(250, 204, 21, 0.12) 100%);
  --pop-card-shadow: 0 20px 55px rgba(124, 58, 237, 0.18);
  --pop-surface: #ffffff;
  --pop-text-muted: #475569;
}

body {
  font-family: var(--wp--preset--font-family--sans);
  background: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--foreground);
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.wp-site-blocks {
  position: relative;
  background: var(--wp--preset--color--background);
  isolation: isolate;
}

.wp-site-blocks::before,
.wp-site-blocks::after {
  content: "";
  position: absolute;
  inset: -15% auto auto -10%;
  width: 45vw;
  max-width: 520px;
  aspect-ratio: 1/1;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.26), transparent 65%);
  filter: blur(0);
  z-index: -1;
}

.wp-site-blocks::after {
  inset: auto -12% -20% auto;
  background: radial-gradient(circle at 70% 70%, rgba(34, 211, 238, 0.24), transparent 60%);
}

.site-section,
.wp-block-group.alignwide,
.wp-block-group.alignfull {
  position: relative;
}

.wp-block-group.alignfull > .wp-block-group__inner-container {
  width: min(92vw, var(--wp--style--global--wide-size));
  margin-inline: auto;
}

.wp-block-group.alignwide > .wp-block-group__inner-container {
  width: min(92vw, var(--wp--style--global--wide-size));
  margin-inline: auto;
}

.wp-block-post-template .wp-block-group.mbti-card,
.mbti-card {
  background: var(--pop-surface);
  border-radius: 24px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: var(--pop-card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.mbti-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, transparent 60%);
  transform: rotate(15deg);
  pointer-events: none;
}

.mbti-card::after {
  content: "";
  position: absolute;
  inset: auto -25% -40% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.3) 0%, transparent 65%);
  transform: rotate(-12deg);
  pointer-events: none;
}

.mbti-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 25px 65px rgba(124, 58, 237, 0.25);
}

.wp-block-query-pagination {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.wp-block-query-pagination > * {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.08);
  color: var(--wp--preset--color--primary);
  font-weight: 600;
}

.wp-block-query-pagination > *:hover {
  background: var(--wp--preset--color--primary);
  color: #fff;
}

header .wp-block-site-title,
header .wp-block-navigation {
  display: none !important;
}

.single-diagnosis__main {
  padding-inline: clamp(16px, 5vw, 48px) !important;
}

.diagnosis-share-tips {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.12) !important;
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.09);
}

.diagnosis-share-tips h4 {
  color: var(--wp--preset--color--primary);
}

.wp-block-separator {
  border-color: rgba(124, 58, 237, 0.15);
  opacity: 1;
}

.wp-block-post-title,
.wp-block-heading h1,
.wp-block-heading h2 {
  letter-spacing: -0.01em;
}

.wp-block-post-excerpt,
.wp-block-paragraph {
  color: var(--pop-text-muted);
}

.wp-block-button__link,
button,
input[type="submit"] {
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(124, 58, 237, 0.28);
}

footer.wp-block-group {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.92), rgba(249, 115, 22, 0.92)) !important;
  box-shadow: 0 -20px 45px rgba(15, 23, 42, 0.25);
}

footer .wp-block-paragraph a {
  color: #fff;
  opacity: 0.85;
}

footer .wp-block-paragraph a:hover {
  opacity: 1;
}

.cookie-consent {
  background: var(--wp--preset--color--foreground);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(248, 250, 252, 0.12);
}

.cookie-consent__button {
  background: var(--wp--preset--color--accent);
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.35);
}

@media (max-width: 768px) {
  .wp-site-blocks::before,
  .wp-site-blocks::after {
    inset: auto;
    width: 65vw;
    opacity: 0.6;
  }

  .wp-site-blocks::before {
    top: -25%;
    left: -45%;
  }

  .wp-site-blocks::after {
    right: -40%;
    bottom: -30%;
  }

  .mbti-card {
    border-radius: 20px;
  }

  .single-diagnosis__main {
    padding-inline: clamp(16px, 6vw, 36px) !important;
  }
}
