/* ===================================
   履歴書chan - メインスタイルシート
   猫モチーフ・フレンドリーデザイン
   =================================== */

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

:root {
  --color-primary: #f97316;
  --color-primary-dark: #ea580c;
  --color-primary-light: #fff7ed;
  --color-primary-pale: #ffedd5;
  --color-secondary: #8b5cf6;
  --color-secondary-light: #f5f3ff;
  --color-accent: #ec4899;
  --color-accent-light: #fce7f3;
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-text: #292524;
  --color-text-light: #78716c;
  --color-text-lighter: #a8a29e;
  --color-bg: #fffbf5;
  --color-bg-light: #fef7ee;
  --color-bg-gray: #faf5ef;
  --color-bg-white: #ffffff;
  --color-border: #f5e6d3;
  --color-border-dark: #e7d5c0;
  --color-cat-brown: #8B6914;
  --color-cat-orange: #f97316;
  --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(146,109,60,0.08);
  --shadow-md: 0 4px 12px rgba(146,109,60,0.1);
  --shadow-lg: 0 10px 24px rgba(146,109,60,0.12);
  --shadow-xl: 0 20px 40px rgba(146,109,60,0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.sp-only {
  display: none;
}

/* --- Cat Mascot --- */
.cat-mascot {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}

.cat-mascot-lg {
  width: 120px;
  height: 120px;
}

.cat-face {
  width: 100%;
  height: 100%;
  position: relative;
}

/* CSS Cat Face */
.cat-face::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 75%;
  bottom: 0;
  background: #f97316;
  border-radius: 50%;
}

.cat-face::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 24px solid #f97316;
}

/* Cat speech bubble */
.cat-speech {
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.cat-speech::before {
  content: '';
  position: absolute;
  left: 24px;
  bottom: -12px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid var(--color-border);
}

.cat-speech::after {
  content: '';
  position: absolute;
  left: 26px;
  bottom: -9px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--color-bg-white);
}

.cat-tip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-primary-light);
  border: 2px solid var(--color-primary-pale);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 20px 0;
}

.cat-tip-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

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

.cat-tip-text strong {
  color: var(--color-primary-dark);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,251,245,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--color-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-text);
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--color-primary), #fb923c);
  color: #fff !important;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.4);
  color: #fff !important;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 100px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #fb923c);
  color: #fff;
  box-shadow: 0 3px 12px rgba(249,115,22,0.3);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-bg-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), #f472b6);
  color: #fff;
  box-shadow: 0 3px 12px rgba(236,72,153,0.25);
}

.btn-accent:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236,72,153,0.35);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-icon {
  font-size: 1.2em;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(180deg, #fff7ed 0%, #fef3e2 40%, #fde8cd 100%);
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Cat paw prints background decoration */
.hero::before {
  content: '🐾 🐾 🐾';
  position: absolute;
  top: 20px;
  left: -20px;
  font-size: 2rem;
  opacity: 0.08;
  transform: rotate(-15deg);
  letter-spacing: 40px;
  white-space: nowrap;
  pointer-events: none;
}

.hero::after {
  content: '🐾 🐾 🐾';
  position: absolute;
  bottom: 30px;
  right: -20px;
  font-size: 2rem;
  opacity: 0.08;
  transform: rotate(15deg);
  letter-spacing: 40px;
  white-space: nowrap;
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.hero-cat {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: catBounce 2s ease-in-out infinite;
}

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

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  background: var(--color-bg-white);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  margin-bottom: 20px;
}

.hero-title-main {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-text) 0%, #44403c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-sub {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 8px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: var(--color-bg-white);
  padding: 8px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  font-size: 1.1rem;
}

/* --- Sections --- */
.section {
  padding: 80px 24px;
}

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

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.4;
}

.section-title-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* --- Template Grid --- */
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.template-card {
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all 0.25s;
  position: relative;
}

.template-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

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

.template-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.template-preview {
  width: 100%;
  aspect-ratio: 210/297;
  max-height: 180px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px;
  overflow: hidden;
}

.tp-header {
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 6px;
  margin-bottom: 8px;
}

.template-preview-tenshoku .tp-header {
  background: #dbeafe;
  color: #2563eb;
}

.template-preview-shinsotsu .tp-header {
  background: #d1fae5;
  color: #059669;
}

.template-preview-arbeit .tp-header {
  background: #ffedd5;
  color: #ea580c;
}

.template-preview-freeter .tp-header {
  background: #f3e8ff;
  color: #7c3aed;
}

.template-preview-kousei .tp-header {
  background: #fce7f3;
  color: #db2777;
}

.tp-lines {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}

.tp-lines span {
  display: block;
  height: 4px;
  background: var(--color-bg-gray);
  border-radius: 2px;
}

.tp-lines span:nth-child(1) { width: 60%; }
.tp-lines span:nth-child(2) { width: 80%; }
.tp-lines span:nth-child(3) { width: 70%; }
.tp-lines span:nth-child(4) { width: 50%; }

.template-tag {
  display: inline-block;
  padding: 3px 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 10px;
}

.tag-blue { background: #dbeafe; color: #2563eb; }
.tag-green { background: #d1fae5; color: #059669; }
.tag-orange { background: #ffedd5; color: #ea580c; }
.tag-purple { background: #f3e8ff; color: #7c3aed; }
.tag-red { background: #fce7f3; color: #db2777; }

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.25s;
  text-align: center;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

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

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
  text-align: left;
}

/* --- Steps --- */
.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.step-card {
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  flex: 1;
  max-width: 300px;
  transition: all 0.25s;
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-primary), #fb923c);
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 16px;
  box-shadow: 0 3px 8px rgba(249,115,22,0.3);
}

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

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

.step-arrow {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  padding-top: 52px;
}

/* --- Referral Section --- */
.referral-section {
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 50%, #fff7ed 100%) !important;
}

.referral-card {
  max-width: 960px;
  margin: 0 auto;
}

.referral-content h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 16px;
  text-align: center;
}

.referral-content > p {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 40px;
  font-size: 1rem;
}

.referral-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.referral-service {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: all 0.25s;
}

.referral-service:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.referral-service h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.referral-service p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-bg-white);
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--color-primary-pale);
}

.faq-item[open] {
  border-color: var(--color-primary);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: '🐱';
  margin-right: 10px;
  font-size: 1.2rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 300;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  padding-left: 52px;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Content Grid --- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.content-card {
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
}

.content-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.content-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.content-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* --- Footer --- */
.footer {
  background: #292524;
  color: #fff;
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand {
  min-width: 200px;
}

.footer-brand .logo-icon {
  font-size: 1.5rem;
}

.footer-brand .logo-text {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fb923c, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #a8a29e;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex: 1;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #a8a29e;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #d6d3d1;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fb923c;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #a8a29e;
}

/* --- Progress Bar --- */
.progress-bar-container {
  background: var(--color-bg-gray);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* --- Encouragement Messages --- */
.encouragement {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-success-light);
  border: 2px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #065f46;
  margin: 16px 0;
}

.encouragement-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .referral-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .hero {
    padding: 40px 16px 56px;
  }

  .hero-cat {
    font-size: 3rem;
  }

  .hero-title-main {
    font-size: 2rem;
  }

  .hero-title-sub {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .section {
    padding: 48px 16px;
  }

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

  .template-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .template-card {
    padding: 16px;
  }

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

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .step-card {
    max-width: 100%;
    width: 100%;
  }

  .referral-services {
    grid-template-columns: 1fr;
  }

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

  .footer-main {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

  .header-nav {
    gap: 12px;
  }

  .nav-link {
    display: none;
  }

  .referral-content h2 {
    font-size: 1.4rem;
  }

  .btn-lg {
    padding: 16px 28px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .template-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 0 16px;
  }
}
