:root {
  --color-bg: #f8fafd;
  --color-card: rgba(255, 255, 255, 0.82);
  --color-nav: rgba(255, 255, 255, 0.65);
  --color-glass: rgba(255, 255, 255, 0.38);
  --color-primary: #1769ff;
  --color-accent: #1769ee99;
  --color-text: #23262f;
  --color-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.12);
  --color-shadow-hover: 0 6px 32px 0 rgba(23, 105, 255, 0.13);
}

body {
  font-family: 'SF Pro Display', 'Noto Sans JP', 'Poppins', Arial, sans-serif;
  background: linear-gradient(120deg, #f8fafd 60%, #e7f0ff 100%);
  color: var(--color-text);
  min-height: 100dvh;
  margin: 0;
  transition: background .5s, color .5s;
}

body.dark-mode {
  --color-bg: #181f2d;
  --color-card: rgba(35, 40, 52, 0.97);
  --color-nav: rgba(30, 30, 38, 0.78);
  --color-glass: rgba(50, 55, 75, 0.33);
  --color-text: #f4f6fa;
  background: linear-gradient(120deg, #181f2d 60%, #232b3a 100%);
  color: var(--color-text);
}

header {
  padding: 88px 2vw 60px;
  text-align: center;
  background: transparent;
  margin-bottom: 20px;
}

header h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: 1.5px;
  font-family: "Geist", "Noto Sans JP", sans-serif;
}

header h1 span {
  background: linear-gradient(135deg, #3700ff, #283bca, #0070F3, #38bdf8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aurora 8s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% {
    background-position: 0% 50%;
    transform: rotate(-5deg) scale(0.9);
  }

  25% {
    background-position: 50% 100%;
    transform: rotate(5deg) scale(1.1);
  }

  50% {
    background-position: 100% 50%;
    transform: rotate(-3deg) scale(0.95);
  }

  75% {
    background-position: 50% 0%;
    transform: rotate(3deg) scale(1.05);
  }

  100% {
    background-position: 0% 50%;
    transform: rotate(-5deg) scale(0.9);
  }
}

header p {
  font-size: 1.4rem;
  opacity: 0.88;
  margin: 0;
}

.container {
  max-width: 950px;
  margin: 40px auto 80px auto;
  padding: 0 14px;
}

.section {
  display: none;
  position: relative;
  margin-bottom: 40px;
  padding: 2.4rem 2rem;
  border-radius: 2.2rem;
  box-shadow: var(--color-shadow);
  background: var(--color-card);
  backdrop-filter: blur(15px) saturate(170%);
  animation: fadeIn 0.36s;
  transition: background 0.45s, box-shadow 0.3s;
}

.section.active {
  display: block;
  z-index: 2;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  font-size: 2rem;
  margin-bottom: 22px;
  letter-spacing: 1px;
  border-bottom: 2.5px solid var(--color-accent);
  padding-bottom: 7px;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 22px;
  letter-spacing: 1px;
  border-bottom: 2.5px solid var(--color-accent);
  padding-bottom: 7px;
  font-weight: 700;
}

@media screen and (max-width: 600px) {
  .dark-mode {
    h3 {
      border-bottom: none;
    }

    .team-member:not(#mobile_) {
      border-radius: 0px;
      border-top: 2.5px solid var(--color-accent);
    }
  }
}

ul {
  padding-left: 24px;
  line-height: 1.8;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  background: var(--color-glass);
  border-radius: 1.3rem;
  box-shadow: var(--color-shadow);
  padding: 1.6rem 1.2rem;
  font-size: 1.08rem;
  font-weight: 600;
  text-align: center;
  transition: background .28s, box-shadow .2s;
}

.card:hover {
  box-shadow: var(--color-shadow-hover);
  background: linear-gradient(112deg, var(--color-accent) 2%, var(--color-primary) 80%);
  color: #fff;
}

/* --- 今っぽいUI --- */
.home-hero {
  text-align: center;
  margin-bottom: 2.6rem;
}

.home-top-text {
  font-size: 20px;
  font-weight: 700;
}

.english {
  font-family: "Geist", "Noto Sans JP", sans-serif;
}

.main-logo {
  width: 110px;
  height: auto;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(23, 105, 255, 0.18);
}

.soft-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(24, 24, 34, 0.18);
  border-radius: 2em;
  padding: 0.38em 1.1em 0.38em 0.38em;
  box-shadow: 0 2px 12px rgba(23, 105, 255, 0.11);
  font-size: 1.04rem;
  margin: 0.7em 0 1em 0;
  gap: 0.6em;
  color: #fff;
}

body:not(.dark-mode) .soft-badge {
  background: rgba(255, 255, 255, 0.64);
  color: #222;
}

.pr-icon {
  width: 32px;
  height: 32px;
  border-radius: 1em;
  box-shadow: 0 2px 10px 0 rgba(80, 0, 140, 0.12);
  background: #1b1b26;
  padding: 2px;
}

.feature-list {
  display: flex;
  gap: 2rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-card {
  width: 50%;
  flex: 1 1 290px;
  background: linear-gradient(120deg, #1c2335 75%, #1836a4 100%);
  color: #fff;
  border-radius: 1.7rem;
  box-shadow: 0 4px 24px 0 rgba(17, 70, 160, 0.11);
  padding: 2.4rem 1.4rem 1.6rem;
  margin-bottom: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow .22s, transform .17s;
}

body:not(.dark-mode) .feature-card {
  background: linear-gradient(120deg, #fff 80%, #e6f1ff 100%);
  color: #23262f;
}

.feature-card:hover {
  box-shadow: 0 8px 32px 0 rgba(23, 105, 255, 0.19);
  transform: translateY(-3px) scale(1.09);
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #00e0ff 0%, #1769ff 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 2px 10px 0 rgba(30, 80, 160, 0.09);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.14rem;
  margin-bottom: 1em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.feature-card ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 1rem;
  line-height: 1.65;
  list-style: none;
}

.feature-card ul li::before {
  content: "▶";
  display: inline-block;
  margin-left: -1.2em;
  margin-right: 7px;
  width: 1em;
  transform: scale(0.75);
  color: #000;
}

.dark-mode {
  .feature-card ul li::before {
    color: #fff;
  }
}

/* --- チーム・他UI --- */
.team-member {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  background: var(--color-card);
  border-radius: 1.5rem;
  box-shadow: 0 2px 18px 0 rgba(30, 60, 120, 0.11);
  padding: 1.2rem 1.3rem;
  margin-bottom: 2.1rem;
  transition: box-shadow .16s;
}

.team-member img {
  width: 90px;
  height: 90px;
  border-radius: 1.1rem;
  object-fit: cover;
  box-shadow: 0 2px 12px 0 rgba(20, 90, 150, 0.16);
}

.team-member .intro {
  flex: 1;
}

.team-member h3 {
  margin: 0 0 8px 0;
  font-size: 1.23rem;
  font-weight: 700;
  color: var(--color-primary);
}

.portfolio-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 22px;
  background: linear-gradient(92deg, var(--color-primary), var(--color-accent));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 1.5em;
  font-size: 1rem;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(23, 105, 255, 0.11);
  transition: background .22s, box-shadow .22s, transform .17s;
}

.portfolio-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.04);
}

.portfolio-btn.disabled,
.portfolio-btn[disabled] {
  background: #b9bbc6;
  color: #fff;
  pointer-events: none;
  filter: grayscale(0.7);
}

/* --- nav + 自動隠し用 --- */
nav {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* width: calc(100% - 2rem); */
  /* max-width: 560px; */
  gap: 18px;
  background: var(--color-nav);
  border-radius: 2.2rem;
  box-shadow: var(--color-shadow);
  padding: 0.7rem 1.5rem;
  backdrop-filter: blur(18px) saturate(150%);
  z-index: 120;
  transition: transform 0.38s cubic-bezier(.6, 0, .3, 1), opacity 0.3s;
}

nav.nav-hidden {
  transform: translateY(120px);
  opacity: 0.05;
  pointer-events: none;
}

nav button {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  padding: 0.8em 1.2em;
  transition: background .19s, color .19s, transform .18s;
  cursor: pointer;
  outline: none;
  letter-spacing: 0.1em;
  position: relative;
}

nav button.active,
nav button:focus {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 2px 10px 0 rgba(40, 80, 255, 0.13);
  transform: scale(1.08);
}

.toggle-container {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 130;
}

.toggle-switch {
  display: block;
  width: 56px;
  height: 32px;
  background: var(--color-glass);
  border-radius: 2em;
  position: relative;
  transition: background 0.3s;
  box-shadow: 0 2px 8px 0 rgba(30, 80, 160, 0.11);
  cursor: pointer;
}

.toggle-switch::after {
  content: '';
  display: block;
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  background: linear-gradient(140deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 2px 6px 0 rgba(23, 105, 255, 0.13);
}

#dark-mode-toggle:checked+.toggle-switch {
  background: var(--color-accent);
}

#dark-mode-toggle:checked+.toggle-switch::after {
  transform: translateX(24px);
}

#dark-mode-toggle {
  display: none;
}

footer {
  background: transparent;
  color: #a3aac6;
  text-align: center;
  font-size: 0.99rem;
  padding: 54px 0 32px 0;
  margin-top: 45px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
}

.footer-links {
  width: 100%;
  display: flex;
  gap: 18px;
}

.designed {
  font-size: 14px;
  margin-top: 8px;
  opacity: .95;
}

.dark-mode .footer-links svg {
  stroke: white;
  fill: white;
}

/* --- お問い合わせメール見やすく --- */
.contact-info {
  font-size: 1.07rem;
  margin-top: 1.5em;
}

.foam-link {
  color: var(--color-accent);
  background: rgba(0, 224, 255, 0.09);
  padding: 4px 12px 4px 10px;
  border-radius: 1.2em;
  text-decoration: underline;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .18s, color .18s;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.foam-link:hover {
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  color: #fff;
  text-decoration: none;
}

/* モバイル対応 */
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
  }

  .section {
    padding: 1.2rem 1.3rem;
  }

  .feature-list {
    gap: 1.1rem;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  nav {
    bottom: 10px;
    padding: 0.45rem 0.9rem;
    width: calc(100% - 1rem);
    gap: 8px;
  }

  .team-member {
    flex-direction: column;
    text-align: center;
  }

  .team-member img {
    margin-bottom: 10px;
  }

  .section {
    border-radius: 1.2rem 1.4rem;
  }

  .feature-list {
    flex-direction: column;
    gap: 1rem;
  }

  .feature-card {
    max-width: 100%;
    min-width: 0;
  }
}

.h3content {
  text-align: center;
  margin: 0 auto;
}

.c3nter {
  text-align: center;
  margin: 0 auto;
}

@media (min-width: 1200px) {

  .container {
    max-width: 1100px;
  }

  header h1 {
    font-size: 3.6rem;
  }

  .main-logo {
    width: 140px;
  }
}

@media (max-width: 400px) {
  header h1 {
    font-size: 1.6rem;
  }

  .main-logo {
    width: 80px;
  }

  nav {
    bottom: 5px;
    padding: 0.3rem 0.6rem;
    width: calc(100% - 0.5rem);
    gap: 4px;
  }

  nav button {
    font-size: 0.75rem;
    padding: 0.5em 0.8em;
  }
}

/* 会社概要セクション専用 */
#about .about-title {
  text-align: center;
  margin-bottom: 22px;
}

.about-lead {
  text-align: center;
  font-size: 1.18rem;
  margin-bottom: 2.2rem;
}

.about-icon {
  font-size: 1.55em;
  vertical-align: middle;
  margin-right: 0.2em;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-bottom: 2.6rem;
}

.about-card {
  background: var(--color-glass);
  border-radius: 1.3rem;
  box-shadow: 0 2px 16px 0 rgba(23, 105, 255, 0.06);
  padding: 1.5rem 1.3rem 1.3rem 1.3rem;
  transition: box-shadow .17s, background .18s;
}

body:not(.dark-mode) .about-card {
  background: linear-gradient(108deg, #fff 80%, #e6f7ff 100%);
}

.about-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  border-bottom: none;
  font-weight: 700;
}

.about-card ul {
  padding-left: 1.3em;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

.about-card li {
  margin-bottom: 8px;
}

.about-vision {
  text-align: center;
  margin-top: 2.2rem;
}

.about-vision h3 {
  color: var(--color-accent);
  font-size: 1.14rem;
  margin-bottom: 8px;
  border-bottom: none;
}

.about-vision p {
  font-size: 1.14rem;
  margin: 0 auto;
  max-width: 500px;
}

@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* --- swiper 全般 --- */
.embed-container {
  position: relative;
  width: 100%;

  padding-top: 56.25%;
  overflow: hidden;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.swiper {
  max-width: 620px;
  margin: 0 auto 40px;
  overflow: hidden;
  background: none;
}

/* 中央１枚表示 */
.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-pagination {
  bottom: 6px !important;
  text-align: center;
  width: 100% !important;
  color: #1769ff;
}

.embed-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-top: 56.25%;
  overflow: hidden;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.swiper-button-next {
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: background .2s;
  right: calc((100% - 560px)/2 - 64px);
}

.swiper-button-prev {
  left: calc((100% - 560px)/2 - 64px);
}