
/* ==========================================
   RESET & BASE
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.5;
  color: #1f2937;
  overflow-x: hidden;
  background-color: #ffffff;
  background-image:
    url('../images/bg_4cda718cb4.svg'),
    url('../images/bg_e5c2c0f415.svg');
  background-repeat: repeat-y, repeat-y;
  background-size: 260px auto, 260px auto;
  background-position: left top, right top;
  background-attachment: fixed, fixed;
}
@media (max-width: 1100px) {
  body {
    background-size: 150px auto, 150px auto;
  }
}
@media (max-width: 768px) {
  body {
    background-image: none;
  }
}
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

.sp-only { display: inline; }
.pc-only { display: none; }
@media (min-width: 1024px) {
  .sp-only { display: none; }
  .pc-only { display: inline; }
}

/* ==========================================
   BACKGROUND LAYER
   ========================================== */
.background-layer {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: transparent;
  background-image:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(166,20,105,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(18,118,127,0.05) 0%, transparent 60%);
  z-index: -10;
  pointer-events: none;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(166, 20, 105, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #A61469;
  transition: all 0.3s ease;
}
.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 32px;
}
@media (max-width: 1023px) {
  .header-container { padding: 4px 24px; }
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.logo-link:hover { opacity: 0.8; }

/* テキストロゴ（画像の代替） */
.logo-image {
  height: 32px;
  width: auto;
  display: block;
}
.logo-text-mark {
  font-family: 'Jost', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}
.logo-wf-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  letter-spacing: 1px;
  vertical-align: middle;
}

.header-right { display: flex; align-items: center; }

.nav-pc {
  display: none;
  align-items: center;
  gap: 32px;
  margin-right: 32px;
}
@media (min-width: 1024px) { .nav-pc { display: flex; } }
.nav-link { background: none; color: white; padding: 8px 0; transition: color 0.3s ease; }
.nav-link:hover { color: #ffc0cb; }

.cta-buttons-pc { display: none; align-items: center; gap: 16px; }
@media (min-width: 1024px) { .cta-buttons-pc { display: flex; } }

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-contact {
  background: white; color: #A61469;
  padding: 8px 24px; border-radius: 9999px;
  transition: all 0.3s ease;
  font-weight: 700;
}
.btn-contact:hover { background: #f3f4f6; transform: scale(1.05); }

.btn-download {
  background: #12767F; color: white;
  padding: 8px 24px; border-radius: 9999px;
  transition: all 0.3s ease;
  font-weight: 700;
}
.btn-download:hover { background: #0F5A61; transform: scale(1.05); }

.hamburger-btn {
  display: block; padding: 8px;
  background: none; color: white;
  font-size: 24px; transition: color 0.3s ease;
}
@media (min-width: 1024px) { .hamburger-btn { display: none; } }
.hamburger-btn:hover { color: #ffc0cb; }

.menu-sp {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #A61469;
  border-top: 1px solid #8A1056;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  z-index: 50;
}
@media (min-width: 1024px) { .menu-sp { display: none !important; } }
.menu-sp-content { max-width: 1152px; margin: 0 auto; padding: 16px 32px; }
.nav-sp { display: flex; flex-direction: column; gap: 16px; }
.nav-link-sp { background: none; color: white; padding: 8px 0; text-align: left; transition: color 0.3s ease; }
.nav-link-sp:hover { color: #ffc0cb; }
.cta-buttons-sp {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 16px; border-top: 1px solid #8A1056;
}
.btn-contact-sp, .btn-download-sp {
  width: 100%; padding: 12px 24px; border-radius: 9999px;
  text-align: center; transition: all 0.3s ease; font-weight: 700;
}
.btn-contact-sp { background: white; color: #A61469; }
.btn-contact-sp:hover { background: #f3f4f6; }
.btn-download-sp { background: #12767F; color: white; }
.btn-download-sp:hover { background: #0F5A61; }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  padding-top: 64px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(253,244,249,0.88) 0%, rgba(240,250,250,0.88) 60%, rgba(253,244,249,0.88) 100%);
}
.hero-section::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(255,255,255,1) 100%);
  pointer-events: none; z-index: 1;
}
/* 背景装飾 */
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166,20,105,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 64px 32px;
  position: relative;
  z-index: 10;
}
.hero-grid {
  max-width: 1152px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-text { text-align: center; margin-bottom: 32px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(166,20,105,0.08);
  border: 1px solid rgba(166,20,105,0.2);
  color: #A61469;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  margin-bottom: 24px;
  color: #1f2937;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.hero-title .highlight {
  color: #A61469;
  background: linear-gradient(180deg, transparent 65%, rgba(166,20,105,0.15) 65%);
  padding: 0 4px;
}
@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.25rem; line-height: 1.3; }
}

.hero-description {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #374151;
  line-height: 1.8;
}

.hero-sub-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub-point {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #374151;
}
.hero-sub-point::before {
  content: '✓';
  color: #12767F;
  font-weight: 700;
  flex-shrink: 0;
}

/* Hero mockup visual */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  width: 100%;
}
.hero-mockup {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(166,20,105,0.15), 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(166,20,105,0.1);
}
.mockup-bar {
  background: #A61469;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mockup-logo { font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 700; color: #fff; }
.mockup-status { font-size: 10px; color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.15); padding: 2px 8px; border-radius: 10px; }
.mockup-body { padding: 16px; background: #fdf8fb; }
.mockup-section-label { font-size: 10px; font-weight: 700; color: #A61469; letter-spacing: 1px; margin-bottom: 10px; text-transform: uppercase; }
.mockup-wf-row {
  background: #fff;
  border: 1px solid #f0e0ea;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-pink { background: #A61469; }
.dot-teal { background: #12767F; }
.dot-green { background: #22C55E; }
.dot-gray { background: #D1D5DB; }
.mockup-wf-name { flex: 1; font-size: 12px; font-weight: 600; color: #1f2937; }
.mockup-wf-person { font-size: 10px; color: #6b7280; }
.mockup-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
.badge-wait { background: #fdf4f9; color: #A61469; border: 1px solid rgba(166,20,105,0.2); }
.badge-done { background: #ecfdf5; color: #059669; }
.badge-review { background: #f0fafa; color: #12767F; border: 1px solid rgba(18,118,127,0.2); }
.mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mockup-stat { background: #fff; border: 1px solid #f0e0ea; border-radius: 8px; padding: 8px; text-align: center; }
.mockup-stat-num { font-size: 16px; font-weight: 700; color: #A61469; line-height: 1; }
.mockup-stat-label { font-size: 9px; color: #6b7280; margin-top: 2px; }

.hero-cta { width: 100%; }
.hero-cta-mobile {
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; max-width: 280px; margin: 0 auto;
}
.hero-cta-desktop { display: none; }

.btn-contact-hero-mobile, .btn-download-hero-mobile {
  width: 100%; border-radius: 9999px; font-weight: 700;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
}
.btn-contact-hero-mobile {
  height: 48px; font-size: 15px; letter-spacing: 0.68px;
  background-color: #A61469; color: #fff;
}
.btn-contact-hero-mobile:hover { background-color: #8A1256; transform: scale(1.05); }
.btn-download-hero-mobile {
  height: 46px; font-size: 15px; letter-spacing: 0.5px;
  background-color: #12767F; color: #fff;
  border: 2px solid #12767F; box-shadow: 0 4px 4px rgba(0,0,0,0.25);
}
.btn-download-hero-mobile:hover { background-color: #0F5A61; transform: scale(1.05); }

@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 64px;
    align-items: center;
  }
  .hero-text { grid-column: span 3; text-align: left; margin-bottom: 0; }
  .hero-sub-points { margin-left: 0; margin-right: 0; }
  .hero-image-wrapper {
    grid-column: span 4;
    margin-bottom: 0;
    margin-right: -60px;
    margin-left: -30px;
    width: calc(100% + 90px);
  }
  .hero-mockup { max-width: 100%; }
  .hero-cta { grid-column: span 3; }
  .hero-cta-mobile { display: none; }
  .hero-cta-desktop { display: flex; flex-direction: row; gap: 16px; }
  .btn-contact-hero-desktop {
    width: 190px; height: 65px; font-size: 20px; font-weight: 700;
    letter-spacing: 0.68px; background-color: #A61469; color: #fff;
    border-radius: 9999px; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Noto Sans JP', sans-serif;
  }
  .btn-contact-hero-desktop:hover { background-color: #8A1256; transform: scale(1.05); }
  .btn-download-hero-desktop {
    width: 260px; height: 65px; font-size: 20px; font-weight: 700;
    letter-spacing: 0.5px; background-color: #12767F; color: #fff;
    border: 2px solid #12767F; border-radius: 9999px;
    box-shadow: 0 4px 4px rgba(0,0,0,0.25); transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Noto Sans JP', sans-serif;
  }
  .btn-download-hero-desktop:hover { background-color: #0F5A61; transform: scale(1.05); }
  .hero-title { font-size: 52px; }
  .hero-eyebrow { display: inline-flex; }
}

/* ==========================================
   セクション共通
   ========================================== */
.section-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-title {
  font-size: 30px; font-weight: 700;
  margin-bottom: 16px; color: #1f2937;
}
.title-decoration {
  display: flex; justify-content: center;
  align-items: center; margin-bottom: 32px;
}
.decoration-svg {
  width: 100%; max-width: 500px;
  height: 12px; overflow: visible;
}
.section-description {
  font-size: 16px; margin-bottom: 48px; color: #4b5563;
  max-width: 768px; margin-left: auto; margin-right: auto;
  line-height: 1.6; text-align: center;
}

/* ==========================================
   PROBLEMS SECTION
   ========================================== */
.problems-section { padding-top: 6em; padding-bottom: 64px; }

.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1152px;
  margin: 0 auto;
}
@media (min-width: 640px) { .problems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .problems-grid { grid-template-columns: repeat(3, 1fr); } }

.problem-card {
  background: #fff;
  border: 1px solid #f0e0ea;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(166,20,105,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(166,20,105,0.14);
}
.problem-icon {
  width: 48px; height: 48px;
  background: rgba(166,20,105,0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.problem-card h3 {
  font-size: 15px; font-weight: 700;
  color: #1f2937; margin-bottom: 8px; line-height: 1.5;
}
.problem-card p { font-size: 13px; color: #4b5563; line-height: 1.7; }

/* ==========================================
   SOLUTION SECTION
   ========================================== */
.solution-section { padding: 64px 24px; background: rgba(255,255,255,0.82); }
.solution-content {
  display: flex; flex-direction: column; gap: 20px;
  color: #374151; max-width: 860px;
  margin: 0 auto; text-align: center;
}
.solution-text {
  font-size: 22px; line-height: 1.65;
  padding: 20px 28px;
  background: #fff;
  border-left: 4px solid #A61469;
  border-radius: 0 10px 10px 0;
  text-align: left;
  box-shadow: 0 2px 12px rgba(166,20,105,0.07);
}
.solution-text strong { color: #A61469; }

@media (max-width: 375px) { .solution-text { font-size: 18px; } }

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section { padding: 64px 24px; }

.features-desktop { display: none; }
.features-mobile { display: flex; flex-direction: column; gap: 64px; }

.feature-item-mobile { display: flex; flex-direction: column; gap: 24px; }
.feature-content-mobile { display: flex; flex-direction: column; }

.feature-header { display: flex; align-items: flex-start; margin-bottom: 20px; }
.feature-number {
  min-width: 48px; min-height: 48px;
  width: 48px; height: 48px;
  background-color: #A61469; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-right: 16px; font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.feature-title { font-size: 22px; font-weight: 700; color: #1f2937; padding-top: 8px; }
.feature-list {
  display: flex; flex-direction: column; gap: 10px;
  color: #4b5563; list-style: none;
  margin-left: 64px;
}
.feature-list li { display: flex; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.bullet { color: #12767F; margin-right: 8px; flex-shrink: 0; font-weight: 700; }

/* PC feature image placeholder */
.feature-img-placeholder {
  background: linear-gradient(135deg, rgba(166,20,105,0.06), rgba(18,118,127,0.06));
  border: 1px solid rgba(166,20,105,0.12);
  border-radius: 12px;
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
  min-height: 240px;
  font-size: 52px;
}

.feature-image-mobile {
  width: 100%;
  background: linear-gradient(135deg, rgba(166,20,105,0.05), rgba(18,118,127,0.05));
  border: 1px solid rgba(166,20,105,0.1);
  border-radius: 12px;
  padding: 28px;
  display: flex; align-items: center; justify-content: center;
  min-height: 160px;
  font-size: 48px;
}

@media (min-width: 1024px) {
  .features-desktop {
    display: flex; flex-direction: column; gap: 80px;
  }
  .features-mobile { display: none; }
  .feature-item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 64px; align-items: center;
  }
  .feature-item.reverse { direction: rtl; }
  .feature-item.reverse .feature-content { direction: ltr; }
  .feature-item.reverse .feature-img-placeholder { direction: ltr; }
  .feature-content { display: flex; flex-direction: column; }
  .feature-image { width: 100%; }
}

/* ==========================================
   TEMPLATES SECTION
   ========================================== */
.templates-section { padding: 64px 24px; background: rgba(253,244,249,0.85); }

.dept-filter {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 36px; justify-content: center;
}
.dept-btn {
  padding: 7px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 700;
  border: 1.5px solid rgba(166,20,105,0.25);
  color: #A61469; cursor: pointer;
  transition: all 0.18s; background: transparent;
  font-family: 'Noto Sans JP', sans-serif;
}
.dept-btn:hover, .dept-btn.active {
  background: #A61469; border-color: #A61469; color: #fff;
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .tpl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tpl-grid { grid-template-columns: repeat(4, 1fr); } }

.tpl-card {
  background: #fff;
  border: 1px solid rgba(166,20,105,0.12);
  border-radius: 12px;
  padding: 20px 18px;
  transition: all 0.2s; cursor: pointer;
  position: relative;
}
.tpl-card-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #A61469;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}
.tpl-card:hover .tpl-card-more { opacity: 1; }

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  background: #A61469;
  padding: 20px 24px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.modal-header-left { display: flex; align-items: center; gap: 12px; }
.modal-header-icon { font-size: 24px; }
.modal-header-title { font-size: 18px; font-weight: 700; color: #fff; }
.modal-header-desc { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.modal-close {
  background: rgba(255,255,255,0.2); border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; transition: background 0.2s; flex-shrink: 0;
}
.modal-close:hover { background: rgba(255,255,255,0.35); }

.modal-tabs {
  display: flex;
  border-bottom: 2px solid #f3f4f6;
  padding: 0 24px;
  gap: 0;
}
.modal-tab {
  padding: 14px 20px;
  font-size: 13px; font-weight: 700;
  color: #6b7280; cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: 'Noto Sans JP', sans-serif;
}
.modal-tab.active { color: #A61469; border-bottom-color: #A61469; }
.modal-tab:hover:not(.active) { color: #1f2937; }

.modal-body { padding: 28px 24px; }
.modal-panel { display: none; }
.modal-panel.active { display: block; }

/* --- 申請フォームUI --- */
.form-preview {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.form-preview-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: #374151;
}
.form-preview-bar-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #A61469;
}
.form-preview-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-label {
  font-size: 11px; font-weight: 700; color: #374151;
  display: flex; align-items: center; gap: 6px;
}
.form-required {
  background: #A61469; color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
}
.form-input {
  background: #fff; border: 1px solid #d1d5db;
  border-radius: 6px; padding: 8px 12px;
  font-size: 13px; color: #9ca3af;
  min-height: 36px; display: flex; align-items: center;
}
.form-input.textarea { min-height: 64px; align-items: flex-start; padding-top: 10px; }
.form-input.select::after { content: '▾'; margin-left: auto; color: #9ca3af; }
.form-input.select { justify-content: space-between; }
.form-input-date { display: flex; gap: 8px; }
.form-input-date .form-input { flex: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-attach {
  border: 2px dashed #d1d5db; border-radius: 6px;
  padding: 14px; text-align: center;
  font-size: 12px; color: #9ca3af; background: #fff;
}
.form-submit-row {
  display: flex; gap: 10px; justify-content: flex-end;
  padding-top: 10px; border-top: 1px solid #e5e7eb;
}
.form-btn {
  padding: 8px 20px; border-radius: 100px;
  font-size: 12px; font-weight: 700; border: none;
}
.form-btn-primary { background: #A61469; color: #fff; }
.form-btn-secondary { background: #fff; color: #6b7280; border: 1px solid #d1d5db; }

/* --- 承認フローUI --- */
.flow-preview {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}
.flow-title { font-size: 12px; font-weight: 700; color: #374151; margin-bottom: 16px; }
.flow-steps { display: flex; flex-direction: column; gap: 0; }
.flow-step-row { display: flex; align-items: stretch; gap: 0; }
.flow-step-left {
  display: flex; flex-direction: column;
  align-items: center; width: 40px; flex-shrink: 0;
}
.flow-step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.flow-step-line { flex: 1; width: 2px; background: #e5e7eb; margin: 2px 0; min-height: 24px; }
.flow-step-line.done { background: #A61469; }
.flow-step-body {
  flex: 1; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px; padding: 10px 14px;
  margin-bottom: 8px; margin-left: 8px;
}
.flow-step-name { font-size: 13px; font-weight: 700; color: #1f2937; }
.flow-step-role { font-size: 11px; color: #6b7280; margin-top: 2px; }
.flow-step-status {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 100px; margin-top: 4px;
}
.fs-done { background: rgba(18,118,127,0.1); color: #12767F; }
.fs-current { background: rgba(166,20,105,0.1); color: #A61469; }
.fs-wait { background: #f3f4f6; color: #9ca3af; }

.flow-circle-done { background: #A61469; color: #fff; }
.flow-circle-current { background: rgba(166,20,105,0.15); color: #A61469; border: 2px solid #A61469; }
.flow-circle-wait { background: #f3f4f6; color: #9ca3af; border: 2px solid #e5e7eb; }

.flow-note {
  margin-top: 16px; padding: 12px 14px;
  background: rgba(18,118,127,0.06);
  border-left: 3px solid #12767F;
  border-radius: 0 6px 6px 0;
  font-size: 12px; color: #374151; line-height: 1.6;
}
.flow-note strong { color: #12767F; }
.tpl-card:hover {
  border-color: #A61469;
  box-shadow: 0 4px 20px rgba(166,20,105,0.12);
  transform: translateY(-2px);
}
.tpl-card.hidden {
  display: none;
}
.dept-list-card.hidden {
  display: none;
}
.tpl-card-icon { font-size: 22px; margin-bottom: 8px; display: block; }
.tpl-card-name { font-size: 14px; font-weight: 700; color: #1f2937; margin-bottom: 6px; line-height: 1.4; }
.tpl-card-desc { font-size: 12px; color: #6b7280; line-height: 1.6; }
.tpl-label {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; margin-top: 8px;
}
.tpl-label-std { background: rgba(18,118,127,0.1); color: #12767F; }
.tpl-label-soon { background: #f3f4f6; color: #9ca3af; }
.tpl-label-std[data-cat="ナレッジ管理"] { background: rgba(139,92,246,0.1); color: #7C3AED; }

/* ナレッジ・サーベイ・ラーニング ラベル色分け */
.tpl-card .tpl-label:not(.tpl-label-soon) {
  background: rgba(18,118,127,0.1); color: #12767F;
}
/* ナレッジ */
.tpl-card[data-dept="ナレッジ・サーベイ・ラーニング"] .tpl-label.tpl-label-std {
  background: transparent;
}
.tpl-card[data-tpl="業務マニュアル作成"] .tpl-label,
.tpl-card[data-tpl="定例チェックリスト"] .tpl-label,
.tpl-card[data-tpl="引き継ぎ書作成"] .tpl-label {
  background: rgba(139,92,246,0.1); color: #7C3AED;
}
/* サーベイ */
.tpl-card[data-tpl="エンゲージメント調査"] .tpl-label,
.tpl-card[data-tpl="職場環境アンケート"] .tpl-label {
  background: rgba(245,90,0,0.08); color: #D97706;
}
/* ラーニング */
.tpl-card[data-tpl="研修受講報告"] .tpl-label,
.tpl-card[data-tpl="理解度確認テスト"] .tpl-label {
  background: rgba(16,185,129,0.1); color: #059669;
}

/* Perception Banner */
.perception-banner {
  background: linear-gradient(135deg, #A61469 0%, #c4196f 100%);
  padding: 36px 24px;
  position: relative;
  z-index: 2;
}
.perception-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .perception-grid {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
}
.perception-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  padding: 0 24px;
}
.perception-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}
.perception-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.perception-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.perception-text span {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.perception-divider {
  display: none;
}
@media (min-width: 768px) {
  .perception-divider {
    display: block;
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
    flex-shrink: 0;
  }
}


}

.dept-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.dept-tag {
  background: #fdf4f9; border: 1px solid rgba(166,20,105,0.15);
  border-radius: 6px; font-size: 12px; font-weight: 500;
  color: #4b5563; padding: 4px 10px;
  transition: all 0.15s;
}
.dept-tag:hover {
  background: rgba(166,20,105,0.08);
  border-color: #A61469; color: #A61469;
}

/* ==========================================
   EFFECTS SECTION
   ========================================== */
.effects-section { padding: 64px 24px; }
.effects-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 24px; max-width: 960px; margin: 0 auto;
}
@media (min-width: 640px) { .effects-grid { grid-template-columns: repeat(2, 1fr); } }

.effect-card {
  background: #fff; border-radius: 12px; padding: 32px 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(166,20,105,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.effect-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(166,20,105,0.2);
}
.effect-icon {
  width: 52px; height: 52px;
  background: rgba(166,20,105,0.08); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.effect-title {
  font-size: 18px; font-weight: 700; color: #1f2937; margin-bottom: 10px;
}
.effect-description { color: #4b5563; line-height: 1.7; font-size: 14px; }

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing-section { padding: 64px 24px; background: rgba(253,244,249,0.85); }
.pricing-box {
  max-width: 760px; margin: 0 auto;
  background: #fff;
  border: 1.5px solid rgba(166,20,105,0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(166,20,105,0.1);
}
.pricing-top {
  background: #A61469; padding: 28px 36px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.pricing-top-left {}
.pricing-service-sub { font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.pricing-service-name { font-size: 24px; font-weight: 700; color: #fff; }
.pricing-free-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 8px 20px; border-radius: 8px;
}
.pricing-body { padding: 36px; }
.pricing-formula {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.pricing-box-item {
  background: #fdf4f9;
  border: 1.5px solid rgba(166,20,105,0.15);
  border-radius: 12px; padding: 18px 24px;
  text-align: center; flex: 1; min-width: 130px;
}
.pricing-box-item.free {
  border-color: #12767F; background: rgba(18,118,127,0.05);
}
.pricing-box-label { font-size: 11px; color: #6b7280; margin-bottom: 6px; }
.pricing-box-value { font-size: 26px; font-weight: 700; color: #1f2937; line-height: 1; }
.pricing-box-value.free-val { color: #12767F; }
.pricing-box-value.pink-val { color: #A61469; }
.pricing-box-unit { font-size: 11px; color: #6b7280; margin-top: 4px; }
.pricing-op { font-size: 22px; font-weight: 700; color: #9ca3af; }
.pricing-note {
  font-size: 13px; color: #6b7280;
  text-align: center; line-height: 1.7;
}
.pricing-note a { color: #A61469; text-decoration: underline; }

/* ==========================================
   SUPPORT SECTION
   ========================================== */
.support-section { padding: 64px 24px; }
.support-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; max-width: 1152px; margin: 0 auto;
}
@media (min-width: 640px) { .support-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .support-grid { grid-template-columns: repeat(4, 1fr); } }

.support-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 24px 20px;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(166,20,105,0.06);
}
.support-card:hover {
  border-color: rgba(166,20,105,0.3);
  box-shadow: 0 6px 20px rgba(166,20,105,0.1);
  transform: translateY(-2px);
}
.support-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.support-card h3 { font-size: 14px; font-weight: 700; color: #1f2937; margin-bottom: 8px; }
.support-card p { font-size: 12px; color: #6b7280; line-height: 1.7; }

/* ==========================================
   FINAL CTA SECTION
   ========================================== */
.final-cta-section {
  padding: 96px 32px;
  background-color: #A61469;
  color: #fff; text-align: center;
}
.final-cta-title { font-size: clamp(20px, 3vw, 30px); font-weight: 700; margin-bottom: 16px; white-space: nowrap; }
.final-cta-sub {
  font-size: 13px; color: rgba(255,255,255,0.8);
  margin-bottom: 40px; line-height: 1.8;
}
.final-cta-buttons {
  display: flex; flex-direction: column; gap: 16px;
  align-items: center; margin-top: 32px;
}
@media (min-width: 640px) {
  .final-cta-buttons { flex-direction: row; justify-content: center; }
}
.btn-contact-final, .btn-download-final {
  width: 100%; max-width: 320px; min-width: 240px;
  height: 56px; border-radius: 9999px;
  font-weight: 700; font-size: 17px;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 4px rgba(0,0,0,0.25);
}
.btn-contact-final { background-color: #fff; color: #A61469; }
.btn-contact-final:hover { background-color: #f3f4f6; transform: scale(1.05); }
.btn-download-final { background-color: #12767F; color: #fff; }
.btn-download-final:hover { background-color: #0F5A61; transform: scale(1.05); }

/* ==========================================
   FOOTER
   ========================================== */
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================
   小画面
   ========================================== */
@media (max-width: 375px) {
  .hero-title { font-size: 20px; }
  .section-title { font-size: 22px; }
  .final-cta-title { font-size: 22px; }
  .btn-contact-final, .btn-download-final { font-size: 15px; }
}
  
}


}


}


/* コンテンツをz-index:2以上で花びら前面へ */
.background-layer { z-index: -10 !important; }
.header { z-index: 100 !important; }
.modal-overlay { z-index: 500 !important; }
.hero-section, .problems-section, .solution-section,
.features-section, .templates-section, .effects-section,
.pricing-section, .support-section, .final-cta-section,
footer, .footer, .footer-spacer {
  position: relative;
  z-index: 2;
}
@media (max-width: 1100px) {
  #flower-left, #flower-right { width: 160px; background-size: 160px auto; }
}
@media (max-width: 768px) {
  #flower-left, #flower-right { display: none; }
}

/* ==========================================
   VIDEO SECTION
   ========================================== */
.video-section {
  padding: 64px 24px;
  background: rgba(255,255,255,0.82);
}
.video-wrapper {
  max-width: 780px;
  margin: 0 auto;
}
.video-thumbnail {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 16px 56px rgba(166,20,105,0.18), 0 4px 16px rgba(0,0,0,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  aspect-ratio: 16/9;
  background: #1f2937;
}
.video-thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 72px rgba(166,20,105,0.25), 0 6px 24px rgba(0,0,0,0.14);
}
.video-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity 0.25s;
}
.video-thumbnail:hover .video-thumb-img { opacity: 0.85; }
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
  transition: transform 0.2s ease;
}
.video-thumbnail:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}
.video-duration {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: rgba(166,20,105,0.9);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 100px;
  letter-spacing: 0.05em; white-space: nowrap;
}
.video-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 600;
  align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.video-modal.open { display: flex; }
.video-modal-inner {
  position: relative;
  width: 100%; max-width: 860px;
}
.video-modal-close {
  position: absolute; top: -44px; right: 0;
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s;
}
.video-modal-close:hover { background: rgba(255,255,255,0.3); }
.video-modal-frame {
  position: relative; width: 100%;
  aspect-ratio: 16/9; border-radius: 12px;
  overflow: hidden; background: #000;
}
.video-modal-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.video-modal-fallback {
  text-align: center;
  margin-top: 12px;
}
.video-fallback-link {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-decoration: underline;
  transition: color 0.2s;
}
.video-fallback-link:hover {
  color: #fff;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: #A61469;
  padding: 14px 32px;
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  min-height: 28px;
}
.footer-left {
  flex: 0 0 auto;
  z-index: 1;
}
.footer-logo-link {
  display: block;
  transition: opacity 0.2s;
}
.footer-logo-link:hover {
  opacity: 0.7;
}
.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
}
.footer-center {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}
.footer-copy {
  color: rgba(255,255,255,0.95);
  font-size: 11px;
  line-height: 1.4;
}
.footer-trademark {
  color: rgba(255,255,255,0.75);
  font-size: 10px;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .footer {
    padding: 14px 16px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    min-height: auto;
  }
  .footer-center {
    position: static;
    text-align: center;
  }
}


/* ==========================================
   DEPT LIST（業務カテゴリ別一覧）
   ========================================== */
.dept-list-section { margin-top: 56px; }

.dept-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .dept-list-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* 申請→承認：全幅（行1） */
  .dept-list-card[data-dept="申請→承認の業務"] {
    grid-column: 1 / -1;
  }
  /* 手順：全幅（行3） */
  .dept-list-card[data-dept="手順を確認しながらの業務"] {
    grid-column: 1 / -1;
  }
}

.dept-list-card {
  background: #fff;
  border: 1px solid rgba(166,20,105,0.12);
  border-radius: 12px;
  padding: 22px;
}

.dept-list-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(166,20,105,0.1);
}

.dept-list-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(166,20,105,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.dept-list-name {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.dept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dept-tag {
  background: rgba(166,20,105,0.06);
  color: #A61469;
  border: 1px solid rgba(166,20,105,0.15);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 500;
}

