:root {
  --primary: #b76ba8;
  --primary-dark: #8a4d7d;
  --primary-light: #f3d8ec;
  --accent: #ff6b9d;
  --accent-light: #ffe4ed;
  --bg: #fff9fd;
  --surface: #ffffff;
  --text: #333637;
  --text-light: #666a6d;
  --border: #f0dced;
  --shadow: 0 4px 20px rgba(120, 60, 110, 0.08);
  --shadow-hover: 0 8px 30px rgba(120, 60, 110, 0.14);
  --radius: 16px;
  --max-width: 900px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 253, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: "✉";
  font-size: 1.5rem;
  color: var(--accent);
}

nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
}

nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 0;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Main */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-title {
  text-align: center;
  margin-bottom: 40px;
}

.page-title h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.page-title p {
  color: var(--text-light);
}

/* Manual cards */
.manual-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.manual-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.manual-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.manual-card a {
  display: block;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.manual-card p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* Common settings box */
.settings-box {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.settings-box h2 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-box ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.settings-box li {
  font-size: 0.97rem;
}

.settings-box li strong {
  color: var(--primary-dark);
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.step h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.step ol,
.step ul {
  margin-left: 22px;
}

.step li {
  margin-bottom: 8px;
  color: var(--text-light);
}

.step li:last-child {
  margin-bottom: 0;
}

.notice {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin-top: 16px;
  color: var(--text);
  font-size: 0.95rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--primary-dark);
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 48px 24px 28px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.footer-contact a {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 249, 253, 0.98);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.open {
    max-height: 420px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 24px;
  }

  nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  nav a::after {
    display: none;
  }

  main {
    padding: 32px 20px 60px;
  }

  .step {
    padding: 20px;
  }
}

/* Manual images */
.step-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 16px 0 8px;
  display: block;
}

.step-img-full {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
