/* ============================
   Layla Fortune Tools トップページ
   ============================ */

:root {
  --bg-deep: #1A0A2E;
  --bg-card: rgba(45, 27, 78, 0.7);
  --bg-card-hover: rgba(45, 27, 78, 0.95);
  --gold: #D4AF37;
  --gold-light: #E8C960;
  --purple-hover: #6B2FA0;
  --moon-white: #F0E8FF;
  --text: #E8D5B7;
  --text-dim: #9A8B7A;
  --border: #3A2560;
  --border-gold: rgba(212, 175, 55, 0.4);
  --radius: 16px;
  --radius-sm: 8px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Kaisei Decol', serif;
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  background: linear-gradient(180deg, #1A0A2E 0%, #0F0620 40%, #1A0A2E 70%, #0F0620 100%);
  background-attachment: fixed;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--gold-light);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================
   ヒーロー
   ============================ */
.hero {
  text-align: center;
  padding: 100px 20px 60px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  max-width: 720px;
}

.hero-mark {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.5em;
}

.hero-title {
  font-family: 'Grenze', 'Kaisei Decol', serif;
  font-weight: 600;
  font-size: 3rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: 4px;
}

.hero-subtitle {
  font-family: 'Grenze', 'Kaisei Decol', serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--moon-white);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero-copy {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 2;
}

/* ============================
   ツールカード
   ============================ */
.tools-section {
  padding: 40px 0 60px;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.tool-card {
  width: calc(33.333% - 14px);
  min-width: 260px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px 28px;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
  backdrop-filter: blur(8px);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
  background: var(--bg-card-hover);
}

.tool-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}

.tool-name-en {
  font-family: 'Grenze', 'Kaisei Decol', serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.tool-name-ja {
  font-size: 0.85rem;
  color: var(--moon-white);
  margin-bottom: 16px;
  font-weight: 700;
}

.tool-desc {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tool-cta {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--gold), #B8943D);
  border-radius: var(--radius-sm);
  color: var(--bg-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: box-shadow 0.2s;
}

.tool-card:hover .tool-cta {
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* ============================
   特徴セクション
   ============================ */
.features-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: 'Kaisei Decol', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--moon-white);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

.feature-item h3 {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-item p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============================
   Aboutセクション
   ============================ */
.about-section-top {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.about-block {
  margin-bottom: 48px;
}

.about-heading-top {
  font-family: 'Kaisei Decol', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.about-block p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 10px;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tool-list-item {
  background: rgba(45, 27, 78, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.tool-list-item h4 {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.tool-list-item h4 a {
  color: var(--gold);
}

.tool-list-item p {
  font-size: 0.8rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.tool-meta {
  font-size: 0.75rem !important;
  color: var(--text-dim) !important;
}

/* プロフィールカード */
.profile-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: rgba(45, 27, 78, 0.5);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.profile-img-wrap {
  flex-shrink: 0;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.profile-text p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.profile-link a {
  color: var(--gold);
  font-weight: 700;
}

/* Aboutボタン（トップページ） */
.about-btn {
  display: inline-block;
  padding: 18px 64px;
  background: linear-gradient(135deg, var(--gold), #B8943D);
  border: none;
  border-radius: 0;
  color: #1A0A2E;
  font-family: 'Kaisei Decol', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.about-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
  color: #1A0A2E;
}

/* Aboutページ専用 */
.about-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.about-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-link {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.back-link:hover { color: var(--gold); }

.about-page-main {
  padding: 48px 0 40px;
}
.about-page-main .container {
  max-width: 720px;
}
.page-title-about {
  font-family: 'Grenze', 'Kaisei Decol', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
}
.about-cta {
  text-align: center;
  padding: 32px 0;
}
.cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--gold), #B8943D);
  border-radius: 8px;
  color: #1A0A2E;
  font-family: 'Kaisei Decol', serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  color: #1A0A2E;
}

@media (max-width: 768px) {
  .tool-list {
    grid-template-columns: 1fr;
  }
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================
   フッター
   ============================ */
.footer {
  text-align: center;
  padding: 48px 20px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.footer-brand {
  font-family: 'Grenze', 'Kaisei Decol', serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ============================
   レスポンシブ
   ============================ */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 40px;
    min-height: auto;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-lead {
    font-size: 0.95rem;
  }
  .hero-copy {
    font-size: 0.82rem;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
