/*
Theme Name: ドメイン占い
Theme URI: https://example.com/domain-uranai
Author: Your Name
Author URI: https://example.com
Description: ドメイン名の運命数を診断する占いツール専用WordPressテーマ
Version: 15.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: domain-uranai
Tags: one-page, custom-logo
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: #111827;
  background: #ffffff;
  min-height: 100vh;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.hero { 
  background: linear-gradient(to bottom right, #3b82f6, #06b6d4, #2563eb);
  position: relative;
  overflow: hidden;
  padding: 3rem 0 5rem;
}
.hero::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  filter: blur(64px);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background: rgba(103,232,249,0.2);
  border-radius: 50%;
  filter: blur(64px);
}
/* 浮遊するTLD装飾 */
.floating-tlds {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.floating-tld {
  position: absolute;
  color: white;
  font-weight: 900;
  user-select: none;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 10; text-align: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
h1 {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  text-shadow: 0 10px 8px rgba(0,0,0,0.04);
}
.subtitle {
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 3px rgba(0,0,0,0.07);
}
.description {
  max-width: 42rem;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
}
.description strong { color: white; }
.input-box {
  max-width: 48rem;
  margin: 0 auto;
}
.input-wrapper {
  background: white;
  border-radius: 1rem;
  padding: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media (min-width: 640px) {
  .input-wrapper {
    flex-wrap: nowrap;
  }
}
input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: transparent;
  color: #111827;
}
@media (min-width: 640px) {
  input[type="text"] {
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
  }
}
input[type="text"]::placeholder {
  color: #9ca3af;
}
input[type="text"]:focus {
  outline: none;
}
/* TLD選択ボックス */
.tld-select {
  padding: 0.5rem 0.75rem;
  background: #f3f4f6;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #111827;
  cursor: pointer;
  font-weight: 400;
}
.tld-select:focus {
  outline: none;
}
/* サンプルチップス */
.sample-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.sample-chip {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  color: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s;
}
.sample-chip:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}
.btn-primary {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #10b981, #059669);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(16,185,129,0.3);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.btn-primary:hover {
  background: linear-gradient(to right, #059669, #047857);
  box-shadow: 0 4px 16px rgba(16,185,129,0.4);
}
.social-proof {
  max-width: 56rem;
  margin: -2rem auto 0;
  padding: 0 1rem;
  position: relative;
  z-index: 20;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}
.proof-card {
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.proof-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.proof-domain {
  font-weight: 700;
  font-size: 0.875rem;
  color: #111827;
  margin-bottom: 0.5rem;
  font-family: monospace;
}
.stars {
  display: flex;
  gap: 0.125rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.star {
  font-size: 1rem;
}
.rank-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}
.rank-daikichi { background: #fef3c7; color: #a16207; }
.rank-kichi { background: #dbeafe; color: #1d4ed8; }
.rank-chukichi { background: #dcfce7; color: #15803d; }
.rank-shokichi { background: #f3f4f6; color: #374151; }
.rank-kyo { background: #fee2e2; color: #b91c1c; }
.banner {
  max-width: 56rem;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.banner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 48rem;
  height: 6rem;
  margin: 0 auto;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 0.75rem;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.15s;
}
.banner-link:hover {
  border-color: #60a5fa;
  background: #eff6ff;
}
.loading {
  display: none;
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
}
.loading.active { display: block; }
.loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.dot {
  width: 0.75rem;
  height: 0.75rem;
  background: #3b82f6;
  border-radius: 50%;
  animation: bounce 1s infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); }
  50% { transform: translateY(0); }
}
.result {
  display: none;
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.result.active { display: block; }
.result-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.5);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.result-header {
  background: linear-gradient(to right, #3b82f6, #06b6d4);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.result-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.result-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}
.result-body {
  padding: 2rem;
}
.rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.rating-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
.rating-star {
  font-size: 2rem;
}
.rating-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  border: 2px solid;
}
.destiny-box {
  background: white;
  border: 2px solid #bfdbfe;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.destiny-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.25rem;
}
.destiny-number {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.number {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(to right, #2563eb, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.meaning {
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
}
.advice {
  color: #1f2937;
  line-height: 1.625;
  font-size: 0.875rem;
}
.cta-box {
  border-top: 2px solid #e5e7eb;
  padding-top: 1.5rem;
}
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to right, #2563eb, #0891b2);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: all 0.15s;
  margin-bottom: 0.5rem;
}
.btn-cta:hover {
  background: linear-gradient(to right, #1d4ed8, #0e7490);
}
.cta-note {
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
}
.improvement-card {
  background: #fef2f2;
  border: 2px solid #fecaca;
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.improvement-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #7f1d1d;
  margin-bottom: 1rem;
}
.alt-domain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid #fee2e2;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  transition: all 0.15s;
}
.alt-domain:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.alt-name {
  font-weight: 700;
  color: #111827;
  font-family: monospace;
  margin-bottom: 0.25rem;
}
.alt-desc {
  font-size: 0.875rem;
  color: #4b5563;
}
.alt-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #fef3c7;
  color: #a16207;
  white-space: nowrap;
}
.companies-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.companies-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}
.company {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.company-logo {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(to bottom right, #3b82f6, #06b6d4);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.company-logo img {
  width: 2.5rem;
  height: 2.5rem;
}
.company-info {
  flex: 1;
}
.company-brand {
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.125rem;
}
.company-domain {
  font-size: 0.875rem;
  color: #4b5563;
  font-family: monospace;
}
.affiliate-area {
  margin-bottom: 1.5rem;
}
.affiliate-title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 1rem;
}
.affiliate-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.affiliate-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.affiliate-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.15s;
}
.affiliate-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.affiliate-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.icon-orange { background: linear-gradient(to bottom right, #fb923c, #eab308); }
.icon-blue { background: linear-gradient(to bottom right, #60a5fa, #06b6d4); }
.icon-green { background: linear-gradient(to bottom right, #4ade80, #10b981); }
.icon-purple { background: linear-gradient(to bottom right, #c084fc, #ec4899); }
.icon-pink { background: linear-gradient(to bottom right, #f472b6, #ef4444); }
.affiliate-info {
  flex: 1;
  min-width: 0;
}
.affiliate-name {
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.125rem;
  font-size: 0.875rem;
}
.affiliate-desc {
  font-size: 0.75rem;
  color: #4b5563;
}
.affiliate-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.badge-pr { background: #fee2e2; color: #dc2626; }
.badge-popular { background: #dcfce7; color: #16a34a; }
.main-cta {
  background: linear-gradient(to bottom right, #2563eb, #1d4ed8, #0891b2);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  margin-bottom: 1.5rem;
}
.main-cta-title {
  color: rgba(255,255,255,0.9);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.main-cta-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.main-cta-button {
  display: block;
  background: white;
  color: #2563eb;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: all 0.15s;
  margin-bottom: 1rem;
}
.main-cta-button:hover {
  background: #f3f4f6;
}
.tld-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.tld-option {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  color: white;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.15s;
}
.tld-option:hover {
  background: rgba(255,255,255,0.3);
}
.reset-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  color: #4b5563;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.reset-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}
/* Footer */
footer {
  background: #041859;
  color: white;
  padding: 2rem 0 1rem;
  margin-top: 4rem;
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
.footer-top {
  text-align: center;
  margin-bottom: 1.5rem;
}
.footer-top p {
  margin: 0;
}
.footer-top p + p {
  margin-top: 0.75rem;
}
.footer-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.footer-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  line-height: 1.6;
}
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 1.5rem 0;
}

/* デスクトップ用3カラム */
.footer-desktop {
  display: none;
}
@media (min-width: 768px) {
  .footer-desktop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-mobile {
    display: none;
  }
}
.footer-column h4 {
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: rgba(255, 255, 255, 0.9);
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column li {
  margin-bottom: 0.375rem;
}
.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.15s;
}
.footer-column a:hover {
  color: white;
  text-decoration: underline;
}

/* モバイル用アコーディオン */
.footer-mobile {
  display: block;
}
.footer-accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-accordion-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.footer-accordion-heading {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}
.footer-accordion-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.footer-accordion-button.active .footer-accordion-icon {
  transform: rotate(180deg);
}
.footer-accordion-content {
  display: none;
  list-style: none;
  padding: 0 0 0.75rem 0;
  margin: 0;
}
.footer-accordion-content.active {
  display: block;
}
.footer-accordion-content li {
  margin-bottom: 0.5rem;
}
.footer-accordion-content a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-accordion-content a:hover {
  color: white;
}

/* フッター下部 */
.footer-bottom {
  text-align: center;
}
.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin: 0;
}
@media (min-width: 640px) {
  h1 { font-size: 5rem; }
  .subtitle { font-size: 2rem; }
}
/* 診断結果ページ スマホ崩れ対策 */
@media (max-width: 639px) {
  #result-section .flex.gap-0\.5 {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
  }
  #result-section .flex.gap-0\.5 svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
  }
  #result-section .grid.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}
/* ==================== DomainDNA カスタムクラス ==================== */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.shadow-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.gradient-blue-to-cyan {
    background: linear-gradient(to right, #63b3ed, #83c5f7);
}
.text-gradient-blue {
    background: linear-gradient(to right, #63b3ed, #83c5f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
