/* css/style.css */

/* ============================================
   七福神プロンプト — スタイルシート
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333333;
  background-color: #FFFFFF;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- CSS Custom Properties --- */
:root {
  /* 7 Element Colors */
  --color-1: #8B2E2E; /* 前提情報 */
  --color-2: #D4762C; /* 目的・依頼内容 */
  --color-3: #D4A82C; /* 対象 */
  --color-4: #4A7A3D; /* 役割・キャラクター設定 */
  --color-5: #2E7A7A; /* 出力形式 */
  --color-6: #2E4A7A; /* 制約・ルール */
  --color-7: #7AB0D4; /* レビュー＆改善要請 */

  /* Base Colors */
  --bg-white: #FFFFFF;
  --bg-light: #F5F5F5;
  --text-dark: #333333;
  --text-muted: #666666;

  /* Layout */
  --header-height: 64px;
  --max-width: 1100px;
  --section-padding: 80px 0;
}

/* --- Utility --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-bg-light {
  background-color: var(--bg-light);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.header-logo img,
.header-logo svg {
  width: 40px;
  height: 40px;
}

.nav-list {
  display: flex;
  gap: 28px;
}

.nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-2);
  transition: width 0.3s;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  text-align: center;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.hero-logo {
  width: 180px;
  height: 180px;
  margin: 0 auto 28px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.hero-catchcopy {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  border: none;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-primary {
  background: var(--color-6);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--color-6);
  border: 2px solid var(--color-6);
}

.btn-secondary:hover {
  background: var(--color-6);
  color: #fff;
}

/* ============================================
   Concept Section
   ============================================ */
.concept {
  padding: var(--section-padding);
}

.concept .container {
  text-align: center;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-2);
  margin: 12px auto 0;
  border-radius: 2px;
}

.concept-text {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-muted);
}

/* ============================================
   7 Elements Preview (Cards)
   ============================================ */
.elements-preview {
  padding: var(--section-padding);
  background-color: var(--bg-light);
}

.elements-preview .section-title {
  display: block;
  text-align: center;
  margin-bottom: 40px;
}

.elements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.element-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 4px solid transparent;
}

.element-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.element-card[data-color="1"] { border-top-color: var(--color-1); }
.element-card[data-color="2"] { border-top-color: var(--color-2); }
.element-card[data-color="3"] { border-top-color: var(--color-3); }
.element-card[data-color="4"] { border-top-color: var(--color-4); }
.element-card[data-color="5"] { border-top-color: var(--color-5); }
.element-card[data-color="6"] { border-top-color: var(--color-6); }
.element-card[data-color="7"] { border-top-color: var(--color-7); }

.element-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.3rem;
  color: #fff;
}

.element-card[data-color="1"] .card-icon { background: var(--color-1); }
.element-card[data-color="2"] .card-icon { background: var(--color-2); }
.element-card[data-color="3"] .card-icon { background: var(--color-3); }
.element-card[data-color="4"] .card-icon { background: var(--color-4); }
.element-card[data-color="5"] .card-icon { background: var(--color-5); }
.element-card[data-color="6"] .card-icon { background: var(--color-6); }
.element-card[data-color="7"] .card-icon { background: var(--color-7); }

.element-card .card-number {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.element-card[data-color="1"] .card-number { color: var(--color-1); }
.element-card[data-color="2"] .card-number { color: var(--color-2); }
.element-card[data-color="3"] .card-number { color: var(--color-3); }
.element-card[data-color="4"] .card-number { color: var(--color-4); }
.element-card[data-color="5"] .card-number { color: var(--color-5); }
.element-card[data-color="6"] .card-number { color: var(--color-6); }
.element-card[data-color="7"] .card-number { color: var(--color-7); }

.element-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.element-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: var(--section-padding);
  text-align: center;
}

.cta-section .section-title {
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 32px 0;
  text-align: center;
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.site-footer .footer-name {
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

/* ============================================
   Page Header (about / guide)
   ============================================ */
.page-header {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 50px;
  text-align: center;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.page-header .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ============================================
   About — Overview Diagram
   ============================================ */
.overview {
  padding: var(--section-padding);
  text-align: center;
}

.overview-wheel {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 40px auto 0;
}

.overview-wheel .wheel-logo {
  width: 100%;
  height: 100%;
}

.overview-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.overview-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.overview-label .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   About — Element Detail
   ============================================ */
.element-detail {
  padding: 60px 0;
}

.element-detail:nth-child(even) {
  background: var(--bg-light);
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.detail-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.detail-header h2 {
  font-size: 1.4rem;
  font-weight: 900;
}

.detail-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 8px;
  padding-left: 12px;
  border-left: 3px solid currentColor;
}

.detail-body p {
  margin-bottom: 8px;
  line-height: 1.9;
}

.detail-example {
  background: #f9f9f9;
  border-left: 4px solid #ddd;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ============================================
   Prompt Block (Copy)
   ============================================ */
.prompt-block {
  padding: var(--section-padding);
}

.prompt-block .section-title {
  text-align: center;
  display: block;
  margin-bottom: 28px;
}

.prompt-box {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 12px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.prompt-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #181825;
  font-size: 0.8rem;
  color: #a6adc8;
}

.prompt-box-header .dots {
  display: flex;
  gap: 6px;
}

.prompt-box-header .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.prompt-box-header .dots span:nth-child(1) { background: #f38ba8; }
.prompt-box-header .dots span:nth-child(2) { background: #f9e2af; }
.prompt-box-header .dots span:nth-child(3) { background: #a6e3a1; }

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #cdd6f4;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  transition: background 0.3s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copy-btn.copied {
  background: #a6e3a1;
  color: #1e1e2e;
  border-color: #a6e3a1;
}

.prompt-box pre {
  padding: 24px;
  overflow-x: auto;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ============================================
   Guide — Steps
   ============================================ */
.steps-section {
  padding: var(--section-padding);
}

.steps-section .section-title {
  text-align: center;
  display: block;
  margin-bottom: 48px;
}

.steps-list {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.steps-list::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}

.step-item {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-item:nth-child(1) .step-number { background: var(--color-1); }
.step-item:nth-child(2) .step-number { background: var(--color-2); }
.step-item:nth-child(3) .step-number { background: var(--color-3); }
.step-item:nth-child(4) .step-number { background: var(--color-4); }
.step-item:nth-child(5) .step-number { background: var(--color-5); }

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================================
   Tips Section
   ============================================ */
.tips-section {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.tips-section .section-title {
  text-align: center;
  display: block;
  margin-bottom: 36px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.tip-card {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tip-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-5);
}

.tip-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   Responsive — Tablet (768px – 1023px)
   ============================================ */
@media (max-width: 1023px) {
  .elements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .overview-wheel {
    width: 260px;
    height: 260px;
  }
}

/* ============================================
   Responsive — Mobile (767px and below)
   ============================================ */
@media (max-width: 767px) {
  :root {
    --section-padding: 56px 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid transparent;
  }

  .nav-list.is-open {
    max-height: 300px;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-list a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 36px);
    padding-bottom: 56px;
  }

  .hero-logo {
    width: 130px;
    height: 130px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-catchcopy {
    font-size: 1rem;
  }

  .elements-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.55rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .overview-wheel {
    width: 220px;
    height: 220px;
  }

  .detail-header h2 {
    font-size: 1.2rem;
  }

  .steps-list::before {
    left: 20px;
  }

  .step-number {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }
}
