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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.8;
  color: #2d3748;
  background: #f0ece8;
  -webkit-font-smoothing: antialiased;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url("images/hero_image.png") center 60% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 25, 0.78) 0%,
    rgba(35, 40, 45, 0.6) 35%,
    rgba(45, 50, 55, 0.5) 60%,
    rgba(20, 20, 25, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 48px;
  width: 100%;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 0;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff 20%, #a8e6c3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9))
    drop-shadow(0 4px 24px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 48px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 40px rgba(56, 161, 105, 0.3));
}

.hero-title .accent {
  font-family: "Inter", sans-serif;
  font-size: 4.2rem;
  font-style: italic;
  padding-right: 0.1em;
  background: linear-gradient(180deg, #b8f5d5 0%, #48d98a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(72, 217, 138, 0.4));
}

.hero-divider {
  width: 480px;
  height: 2px;
  margin: 18px auto 0;
  border: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  box-shadow: 0 0 12px rgba(72, 217, 138, 0.5),
    0 0 24px rgba(72, 217, 138, 0.2);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 500;
  margin-top: 16px;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 24px rgba(0, 0, 0, 0.6),
    0 0 48px rgba(0, 0, 0, 0.4);
}

/* ===== Section Common ===== */
.section {
  padding: 60px 24px;
}

.section-white {
  background: #f0ece8;
}

.section-gray {
  background: transparent;
}

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

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #38a169;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #22543d;
  line-height: 1.4;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #38a169, #68d391);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===== Overview ===== */
.overview-text {
  margin: 0 auto;
  max-width: max-content;
  font-size: 1rem;
  line-height: 2;
  color: #4a5568;
}

/* ===== Security Card ===== */
.security-card {
  /* max-width: 680px;
  margin: 0 auto; */
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.security-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 40%;
}

.security-card-body {
  padding: 32px 40px 36px;
}

/* ===== Dashboard Coming Soon ===== */
.dashboard-coming-soon {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.coming-soon-icon {
  color: #38a169;
  margin-bottom: 20px;
}

.coming-soon-title {
  font-family: "Inter", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #22543d;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.coming-soon-text {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.9;
}

.manual-label {
  display: block;
  margin-top: 16px;
  font-size: 1.0rem;
  font-weight: 600;
  color: #22543d;
}

.manual-note {
  display: block;
  margin: 6px auto 0;
  max-width: max-content;
  text-align: left;
  font-size: 0.85rem;
  /* color: #38a169; */
  color: #4a5568
}

/* ===== PDF Link Button ===== */
.pdf-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  margin-left: 12px;
  padding: 7px 18px;
  background: linear-gradient(135deg, #38a169, #68d391);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 32px;
  box-shadow: 0 2px 12px rgba(56, 161, 105, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdf-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(56, 161, 105, 0.45);
}

.pdf-link-icon {
  flex-shrink: 0;
}

.dashboard-notice {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 14px 20px;
  background: #f0faf4;
  border-left: 4px solid #38a169;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #22543d;
}

.notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: transparent;
  color: #38a169;
  border: 1.5px solid #38a169;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  vertical-align: middle;
  margin-right: 4px;
}

/* 横スクロールバーをダッシュボード直下に出す */
#tableauContainer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  transition: height 0.3s ease;
}

/* ===== News ===== */
.news-scroll-wrapper {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.news-scroll-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(240, 236, 232, 0.85));
  border-radius: 0 0 12px 12px;
  pointer-events: none;
  transition: opacity 0.2s;
}

.news-scroll-wrapper.news-scroll-end::after {
  opacity: 0;
}

.news-scroll-area {
  max-height: 480px; /* PC: 1件+2件目の頭が見える高さ */
  overflow-y: auto;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .news-scroll-area {
    max-height: 520px; /* スマホ: テキスト折り返し分を考慮 */
  }
}

.news-empty p {
  text-align: center;
  color: #718096;
  font-size: 0.95rem;
  margin: 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.news-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.news-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.news-badge-maintenance {
  background: #fff3cd;
  color: #856404;
}

.news-badge-info {
  background: #d1ecf1;
  color: #0c5460;
}

.news-date {
  font-size: 13px;
  color: #718096;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  color: #22543d;
  margin-bottom: 12px;
}

.news-body p {
  font-size: 0.92rem;
  color: #4a5568;
  line-height: 1.75;
  margin-bottom: 8px;
}

.news-body p:last-child {
  margin-bottom: 0;
}

.news-schedule {
  background: #f7fafc;
  border-left: 3px solid #68d391;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin: 10px 0;
}

.news-schedule-label {
  font-weight: 700;
  color: #2d6a4f;
  margin-bottom: 4px !important;
}

/* ===== Use Case Cards ===== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.usecase-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
}

.usecase-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.usecase-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.usecase-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.usecase-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: #22543d;
  line-height: 1.6;
}

.usecase-answer {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
  line-height: 1.8;
  background: #f0faf4;
  border-left: 3px solid #38a169;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}

.usecase-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38a169;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background: #f0faf4;
  border: 1px solid #c6f6d5;
  border-radius: 8px;
  padding: 10px 16px;
  transition: all 0.2s ease;
  align-self: start;
}

.usecase-text-link::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #38a169;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
  flex-shrink: 0;
}

.usecase-text-link:hover {
  color: #22543d;
  background: #e6f7ed;
  border-color: #9ae6b4;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(56, 161, 105, 0.15);
}

.usecase-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f7fafc;
  border-radius: 8px;
  overflow: hidden;
}

.usecase-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== Feature Cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card-single {
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.feature-card-body {
  padding: 28px 32px 32px;
}

.feature-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #22543d;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card-title .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.icon-blue {
  background: #e6ffed;
  color: #2f855a;
}

.icon-green {
  background: #f0fff4;
  color: #38a169;
}

.feature-card-text {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.9;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 6px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38a169, #68d391);
}

.feature-list-plain li::before {
  display: none;
}

.feature-list-plain li {
  padding-left: 0;
  margin-bottom: 12px;
}

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

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #22543d;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.6;
}

.faq-question::before {
  content: "Q";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38a169, #68d391);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-answer-inner {
  padding: 12px 24px 20px 64px;
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.9;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  background: linear-gradient(
    135deg,
    #0a2e1c 0%,
    #14493a 40%,
    #1a5e42 60%,
    #0d3525 100%
  );
  color: #fff;
  padding: 48px 24px 32px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
      0deg,
      rgba(56, 161, 105, 0.04) 0px,
      rgba(56, 161, 105, 0.04) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(56, 161, 105, 0.04) 0px,
      rgba(56, 161, 105, 0.04) 1px,
      transparent 1px,
      transparent 40px
    );
  pointer-events: none;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #48d98a;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.footer-contact {
  line-height: 2.2;
}

.footer-label {
  display: inline-block;
  background: rgba(72, 217, 138, 0.15);
  color: #68d391;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0px 10px;
  border-radius: 16px;
  margin-right: 8px;
  letter-spacing: 0.05em;
}

.footer-link {
  color: #68d391;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ===== Navigation Stack ===== */
#nav-stack {
  position: fixed;
  bottom: 10%;
  right: 0;
  display: flex;
  flex-direction: column;
  background: rgba(45, 122, 89, 0.85);
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.15);
}

#nav-stack.show {
  opacity: 1;
  visibility: visible;
}

/* Common button styles */
#nav-stack button {
  width: 48px;
  height: 48px;
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: background 0.2s ease, opacity 0.25s ease, visibility 0.25s ease;
}

#nav-stack button.show {
  opacity: 1;
  visibility: visible;
}

#nav-stack button:hover {
  background: rgba(255, 255, 255, 0.15);
}

#nav-stack button:active {
  background: rgba(255, 255, 255, 0.25);
}

#nav-stack button:focus {
  outline: none;
  background: transparent;
}

/* Divider between buttons */
#nav-stack button + button.show {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Chevron icons */
#scroll-up .chevron-up {
  width: 10px;
  height: 10px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  transform: rotate(-45deg);
}

#page-top .chevron-top {
  position: relative;
  width: 10px;
  height: 16px;
}

/* Double chevron for TOP button */
#page-top .chevron-top::before,
#page-top .chevron-top::after {
  content: "";
  position: absolute;
  left: 0;
  width: 10px;
  height: 10px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  transform: rotate(-45deg);
}

#page-top .chevron-top::before {
  top: 3px;
}

#page-top .chevron-top::after {
  top: 9px;
}

#scroll-down .chevron-down {
  width: 10px;
  height: 10px;
  border-bottom: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  transform: rotate(45deg);
}

/* PC: Hide UP/DOWN buttons, show TOP only */
@media (min-width: 769px) {
  #scroll-up,
  #scroll-down {
    display: none !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 420px;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-title .accent {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section {
    padding: 56px 16px;
  }

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

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

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

  .feature-card-body {
    padding: 24px 20px 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-answer-inner {
    padding-left: 24px;
  }

  .security-card-img {
    height: 160px;
  }

  .security-card-body {
    padding: 24px 20px 28px;
  }

  /* Navigation stack for mobile */
  #nav-stack button {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

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

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