/* ===== CYCOS JAPAN — Design System v2 ===== */
:root {
  --accent:       #e67e22;
  --accent-dark:  #d35400;
  --accent-light: #fef3e8;
  --navy:         #2c3e50;
  --navy-light:   #3d5166;
  --navy-dark:    #1a2636;
  --gray-light:   #f1f5f9;
  --gray-mid:     #64748b;
  --gray-border:  #e2e8f0;
  --text-main:    #1e293b;
  --text-sub:     #64748b;
  --white:        #ffffff;
}

/* ===== Buttons ===== */
.btn-accent {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.25s, transform 0.2s;
  border: 2px solid var(--accent);
  white-space: nowrap;
}
.btn-accent:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-navy {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--navy);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.25s, transform 0.2s;
  border: 2px solid var(--navy);
  white-space: nowrap;
}
.btn-navy:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-outline-white {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: transparent;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, transform 0.2s;
  border: 2px solid rgba(255,255,255,0.7);
  white-space: nowrap;
}
.btn-outline-white:hover {
  background-color: #fff;
  color: var(--navy);
  border-color: #fff;
  transform: translateY(-1px);
}

/* ===== New Navigation Dropdown ===== */
.nav-item-dropdown {
  position: relative;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background-color: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(8px);
  z-index: 9999;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s, background-color 0.2s;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.07);
}
.nav-caret {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.65rem;
  vertical-align: middle;
  opacity: 0.7;
}

/* ===== Hamburger icon ===== */
.hamburger-wrap {
  position: relative;
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger-line {
  display: block;
  width: 28px;
  height: 1.5px;
  background-color: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
/* Open state: transform to × */
.hamburger-open .hamburger-line:nth-child(1) {
  transform: translateY(9.25px) rotate(45deg);
}
.hamburger-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-open .hamburger-line:nth-child(3) {
  transform: translateY(-9.25px) rotate(-45deg);
}

/* ===== Section layout helpers ===== */
.section-light {
  padding: 5rem 0;
  background-color: var(--white);
}
.section-gray {
  padding: 5rem 0;
  background-color: var(--gray-light);
}
.section-dark {
  padding: 5rem 0;
  background-color: var(--navy);
  color: #fff;
}
.section-navy-dark {
  padding: 5rem 0;
  background-color: var(--navy-dark);
  color: #fff;
}

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

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}
.section-label-light {
  color: rgba(255,255,255,0.5);
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.section-heading-white {
  color: #fff;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}
.section-sub-white {
  color: rgba(255,255,255,0.7);
}

/* ===== Pain point cards ===== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.pain-card {
  background-color: #fff;
  border: 1px solid var(--gray-border);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.75rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.pain-card::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 0.1rem;
}

/* ===== Service cards ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background-color: #fff;
  border: 1px solid var(--gray-border);
  padding: 2rem 1.75rem;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(44,62,80,0.12);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.service-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.service-card-icon svg {
  width: 100%;
  height: 100%;
}
.service-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.service-card-sub {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.service-card-desc {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.7;
  flex: 1;
}
.service-card-link {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.service-card-link::after {
  content: "→";
  transition: transform 0.2s;
}
.service-card:hover .service-card-link::after {
  transform: translateX(4px);
}

/* ===== Reasons grid ===== */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.reason-item {
  text-align: center;
  padding: 2rem 1.5rem;
}
.reason-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: 'Georgia', serif;
}
.reason-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}
.reason-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ===== Works cards ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.works-card {
  background-color: #fff;
  border: 1px solid var(--gray-border);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.works-card:hover {
  box-shadow: 0 8px 32px rgba(44,62,80,0.12);
  transform: translateY(-3px);
}
.works-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background-color: var(--gray-light);
}
.works-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.works-card-tag {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.works-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.works-card-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.6;
  flex: 1;
}
.works-card-result {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

/* ===== Flow steps ===== */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .flow-steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    max-width: 100%;
  }
}
.flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}
.flow-step:not(:last-child)::after {
  content: "";
  display: none;
}
@media (min-width: 768px) {
  .flow-step:not(:last-child)::after {
    content: "→";
    display: block;
    position: absolute;
    right: -0.75rem;
    top: 1.75rem;
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 700;
  }
}
.flow-step-num {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.flow-step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.flow-step-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Mobile flow connector */
@media (max-width: 767px) {
  .flow-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-border);
  }
  .flow-step:last-child {
    border-bottom: none;
  }
  .flow-step-num {
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .flow-step-body {
    flex: 1;
  }
}
.flow-step-body {
  display: flex;
  flex-direction: column;
}

/* ===== Bottom CTA ===== */
.cta-section {
  padding: 5rem 0;
  background-color: var(--navy-dark);
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.cta-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.cta-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-brand img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.8rem;
  line-height: 1.8;
}
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: rgba(255,255,255,0.9);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  padding: 8rem 1.5rem 4rem;
  background-color: var(--navy);
  text-align: center;
}
.page-hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== Feature list ===== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
}
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  margin-top: 0.55rem;
}

/* ===== Tech tags ===== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  background-color: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.breadcrumb span { opacity: 0.5; }

/* ===== Stats row ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat-item {
  text-align: center;
  padding: 1.5rem;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* ===== Two-column content block ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}
.two-col-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* ===== Sticky floating CTA (mobile) ===== */
.floating-cta {
  display: none;
}
@media (max-width: 768px) {
  .floating-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background-color: var(--accent);
    color: #fff;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-top: 2px solid var(--accent-dark);
  }
}

/* ===== Nav gap utility (space-x-8 not in compiled Tailwind) ===== */
.nav-links {
  align-items: center;
  gap: 2rem;
}

/* ===== Mobile / Desktop nav visibility (robust override) ===== */
@media (max-width: 767px) {
  .nav-links {
    display: none !important;
  }
  button[aria-label="メニュー"] {
    display: flex !important;
  }
}
@media (min-width: 768px) {
  .nav-links {
    display: flex !important;
  }
  button[aria-label="メニュー"] {
    display: none !important;
  }
}

/* ===== Header CTA button ===== */
.header-cta {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: var(--accent);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.2s;
  border: none;
  white-space: nowrap;
}
.header-cta:hover {
  background-color: var(--accent-dark);
}

/* Ensure body has padding for mobile floating CTA */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px;
  }
}
