/*
Theme Name: mocimo
Theme URI: https://mocimo.jp
Author: mocimo
Description: mocimo original theme
Version: 2.0
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  line-height: 1.7;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
  white-space: nowrap;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 48px;
  position: relative;
  padding-bottom: 14px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e879b0, #f9a74b);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .8; transform: translateY(-2px); }

.btn-contact {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  background: #111;
  color: #fff !important;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .2s;
}
.btn-contact:hover { opacity: .75; color: #fff !important; }

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,.95);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}

#site-header.is-scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  gap: 16px;
}

.header-logo img { display: block; height: 32px; width: auto; }

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

.header-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0; padding: 0;
  white-space: nowrap;
}

.header-nav a {
  font-size: .825rem;
  font-weight: 500;
  color: #444;
  transition: color .2s;
  white-space: nowrap;
}
.header-nav a:hover { color: #e879b0; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 0; padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 300;
}
.hamburger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }

.hamburger[aria-expanded="true"] span {
  opacity: 0;
}

.hamburger[aria-expanded="true"]::after {
  content: "close";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #fff;
  overflow: hidden;
  padding-top: 80px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 100px;
  width: 100%;
}

.hero-text { flex: 1; }

.hero-catch {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 24px;
  color: #111;
}

.hero-catch span { color: #e879b0; }

.hero-sub {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin: 0 0 12px;
}
.hero-sub--sm { font-size: .875rem; margin-bottom: 32px; color: #777; }

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-img {
  max-width: 420px;
  width: 100%;
  animation: heroFloat 5s ease-in-out infinite;
}

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

/* ---- WAVE ---- */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 140px;
  display: block;
}

.wave-path {
  transform-box: fill-box;
  transform-origin: center;
}

.wave-path--1 { animation: waveFloat1 6.5s ease-in-out infinite; }
.wave-path--2 { animation: waveFloat2 8s ease-in-out infinite; }
.wave-path--3 { animation: waveFloat3 5.5s ease-in-out infinite; }

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

@keyframes waveFloat2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

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

/* ===== SERVICE ===== */
.service {
  padding: 100px 0;
  background: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 32px 24px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e879b0, #f9a74b, #7ec8f0);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}

.service-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.service-card p {
  font-size: .875rem;
  color: #666;
  line-height: 1.75;
  margin: 0;
}

/* ===== REASON ===== */
.reason {
  padding: 100px 0;
  background: #fafafa;
}

.reason-carousel {
  text-align: center;
  overflow-x: clip; /* 左右だけクリップ、ドットはクリップしない */
  padding: 0 60px;
}

.reason-track-wrap {
  /* overflow visible — .reason-carousel が左右をクリップ */
}

.reason-track {
  display: flex;
  gap: 24px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

.reason-slide {
  flex: 0 0 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  opacity: .4;
  transition: opacity .45s ease;
  box-sizing: border-box;
  min-height: 260px;
}

.reason-slide.is-active {
  opacity: 1;
}

.reason-num {
  font-size: 3rem;
  font-weight: 900;
  color: #f0d0e8;
  line-height: 1;
  margin-bottom: 16px;
}

.reason-slide h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #111;
}

.reason-slide p {
  font-size: .95rem;
  color: #666;
  margin: 0;
  line-height: 1.8;
}

.reason-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.reason-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  padding: 0;
  transition: background .3s, transform .3s;
}

.reason-dot.is-active {
  background: #e879b0;
  transform: scale(1.3);
}

/* ===== FLOW ===== */
.flow {
  padding: 100px 0;
  background: #fff;
}

.flow-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  position: relative;
}

.flow-list::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 36px;
  right: 36px;
  height: 2px;
  background: linear-gradient(90deg, #e879b0, #f9a74b, #7ec8f0);
  z-index: 0;
}

.flow-item {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}

.flow-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e879b0, #f9a74b);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.flow-item.aos-animate .flow-num {
  animation: flowFloat 3.8s ease-in-out infinite;
}

.flow-item:nth-child(2).aos-animate .flow-num,
.flow-item:nth-child(5).aos-animate .flow-num {
  animation-delay: .35s;
}

.flow-item:nth-child(3).aos-animate .flow-num,
.flow-item:nth-child(6).aos-animate .flow-num {
  animation-delay: .7s;
}

.flow-item:nth-child(4).aos-animate .flow-num,
.flow-item:nth-child(7).aos-animate .flow-num {
  animation-delay: 1.05s;
}

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

@media (prefers-reduced-motion: reduce) {
  .flow-item.aos-animate .flow-num {
    animation: none;
  }
}

.flow-body h3 {
  font-size: .9rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.flow-body p {
  font-size: .8rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* ===== TECH ===== */
.tech {
  padding: 100px 0;
  background: #fafafa;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100px;
}

.tech-item span:last-child {
  font-size: .8rem;
  font-weight: 600;
  color: #444;
}

.tech-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #eee;
}

.tech-icon img {
  width: 36px; height: 36px;
  object-fit: contain;
}

/* ===== NEWS ===== */
.news {
  padding: 100px 0;
  background: #fff;
}

.news-list {
  max-width: 760px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.news-date {
  font-size: .8rem;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-title {
  font-size: .95rem;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: #fafafa;
  text-align: center;
}

.contact-lead {
  font-size: 1rem;
  color: #555;
  margin: 0 0 48px;
  line-height: 1.8;
}

.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.wpcf7-form input,
.wpcf7-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  box-sizing: border-box;
  margin-bottom: 16px;
}

.wpcf7-form textarea { height: 160px; resize: vertical; }

.wpcf7-form input[type="submit"] {
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #e879b0, #f9a74b);
  transition: opacity .2s;
}
.wpcf7-form input[type="submit"]:hover { opacity: .85; }

/* ===== COMPANY ===== */
.company {
  padding: 100px 0;
  background: #fff;
}

.company-table {
  max-width: 720px;
  margin: 0 auto 48px;
}

.company-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.company-row dt { font-weight: 700; color: #333; }
.company-row dd { margin: 0; color: #555; }
.company-row dd a { color: #e879b0; text-decoration: none; }
.company-row dd a:hover { text-decoration: underline; }

.company-map {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}

.company-map iframe { display: block; width: 100%; height: 400px; }

/* ===== RECRUIT ===== */
.recruit {
  padding: 80px 0;
  background: linear-gradient(135deg, #fce4f3, #fff5e4);
}

.recruit-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 112px;
}

.recruit-text h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.recruit-text p {
  color: #666;
  margin: 0;
}

.recruit-status {
  text-align: left;
}

.recruit-status p {
  color: #666;
  margin: 0;
}

.recruit-status .recruit-sub {
  font-size: .8rem;
  color: #999;
  margin-top: 8px;
}

/* ===== FOOTER ===== */
footer {
  background: #111;
  color: #ccc;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-logo {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  opacity: .9;
}

.footer-desc {
  font-size: .825rem;
  line-height: 1.7;
  color: #888;
  margin: 0;
}

.footer-nav ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav li { }

.footer-nav a {
  font-size: .825rem;
  color: #888;
  transition: color .2s;
  white-space: nowrap;
}
.footer-nav a:hover { color: #fff; }

.footer-contact {
  text-align: right;
}

.footer-contact p {
  font-size: .825rem;
  color: #888;
  line-height: 1.7;
  margin: 0 0 16px;
}

.btn-contact-footer {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e879b0, #f9a74b);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity .2s;
}
.btn-contact-footer:hover { opacity: .85; }

.footer-bottom {
  border-top: 1px solid #222;
  text-align: center;
  padding: 20px 24px;
}

.copyright {
  font-size: .75rem;
  color: #fff;
  margin: 0;
}

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

@media (max-width: 768px) {
  .hero { min-height: 100svh; }
  .hero-inner { flex-direction: column; padding-top: 20px; padding-bottom: 160px; text-align: center; gap: 16px; }
  .hero-visual { order: -1; }
  .hero-logo-img { max-width: 180px; }
  .hero-sub--sm { display: none; }
  br.pc-only { display: none; }
  .btn-primary { margin-top: 24px; }

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

  .flow-list::before { display: none; }
  .flow-list { flex-direction: column; gap: 16px; }
  .flow-item { flex-direction: row; text-align: left; align-items: flex-start; gap: 16px; }
  .flow-num { width: 48px; height: 48px; font-size: .9rem; margin-bottom: 0; flex-shrink: 0; }

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

  .recruit-inner { flex-direction: column; text-align: center; gap: 12px; }
  .recruit-status { text-align: center; }
  .recruit-status .recruit-sub {
    font-size: .72rem;
    white-space: nowrap;
  }

  .header-inner { padding: 12px 16px; }
  .header-nav { display: none; }
  .hamburger { display: block; }

  .header-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 250;
    gap: 28px;
    min-height: calc(100svh - 57px);
    padding: 40px 24px;
    overflow-y: auto;
    isolation: isolate;
  }

  .header-nav.is-open::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -40px;
    height: 210px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 180' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23f7c5e0'/%3E%3Cstop offset='40%25' stop-color='%23fdd8a0'/%3E%3Cstop offset='75%25' stop-color='%23b5e8f0'/%3E%3Cstop offset='100%25' stop-color='%23c8b8f8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g1)' fill-opacity='.55' d='M0 78 C240 28 480 128 720 78 C960 28 1200 128 1440 78 L1440 180 L0 180 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 100%;
    animation: menuWaveFloat1 6.5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
  }

  .header-nav.is-open::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    height: 210px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 180' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g2' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23c8b8f8'/%3E%3Cstop offset='50%25' stop-color='%23f7c5e0'/%3E%3Cstop offset='100%25' stop-color='%23fdd8a0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g2)' fill-opacity='.38' d='M0 112 C220 150 460 52 720 108 C980 164 1220 58 1440 112 L1440 180 L0 180 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 100%;
    animation: menuWaveFloat2 8s ease-in-out infinite .6s;
    pointer-events: none;
    z-index: -1;
  }

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

  @keyframes menuWaveFloat2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
  }

  .header-nav.is-open ul,
  .header-nav.is-open .btn-contact {
    position: relative;
    z-index: 1;
  }

  .header-nav.is-open ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .header-nav.is-open a { font-size: 1.2rem; }

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

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