@charset "utf-8";

/* ========================================
   Contact Index — white, smart & editorial
   ======================================== */

.contact-index {
  --c-ink: #000;
  --c-muted: #333; /* 約80% */
  --c-line: #e8e8e8;
  --c-pink: #eb6e9a;
  --c-pink-soft: #ff87be;
  --c-white: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  max-width: 820px;
  margin: 48px auto 0;
  padding: 0 8px;
  background: var(--c-white);
}

.contact-index__lead {
  margin: 0 0 40px;
  font-family: "Zen Kaku Gothic New", "M PLUS Rounded 1c", sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 17px);
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--c-muted);
  text-align: center;
}

.sp-only {
  display: none;
}

/* --- Navigation buttons --- */

.contact-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--c-line);
}

.contact-nav__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 48px;
  align-items: center;
  gap: 16px;
  padding: 28px 20px 28px 8px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-white);
  color: var(--c-ink);
  text-decoration: none;
  overflow: visible;
  transition: color 0.35s var(--ease);
  animation: contactFadeUp 0.7s var(--ease) both;
}

.contact-nav__item:nth-child(1) { animation-delay: 0.08s; }
.contact-nav__item:nth-child(2) { animation-delay: 0.18s; }
.contact-nav__item:nth-child(3) { animation-delay: 0.28s; }

.contact-nav__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(235, 110, 154, 0.07), transparent 70%);
  transition: width 0.45s var(--ease);
  pointer-events: none;
}

.contact-nav__item:hover::before,
.contact-nav__item:focus-visible::before {
  width: 100%;
}

.contact-nav__item:hover,
.contact-nav__item:focus-visible {
  color: var(--c-pink);
}

.contact-nav__item:focus-visible {
  outline: 2px solid var(--c-pink-soft);
  outline-offset: -2px;
}

.contact-nav__icon {
  position: relative;
  display: block;
  width: 40px;
  height: 33px;
  justify-self: start;
}

.contact-nav__icon-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition:
    opacity 0.3s var(--ease),
    transform 0.4s var(--ease);
}

.contact-nav__icon-img--gr {
  opacity: 1;
}

.contact-nav__icon-img--p {
  opacity: 0;
}

.contact-nav__item:hover .contact-nav__icon-img,
.contact-nav__item:focus-visible .contact-nav__icon-img {
  transform: scale(1.25);
}

.contact-nav__item:hover .contact-nav__icon-img--gr,
.contact-nav__item:focus-visible .contact-nav__icon-img--gr {
  opacity: 0;
}

.contact-nav__item:hover .contact-nav__icon-img--p,
.contact-nav__item:focus-visible .contact-nav__icon-img--p {
  opacity: 1;
}

.contact-nav__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.contact-nav__label {
  font-family: "M PLUS Rounded 1c", "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 0.08em;
  line-height: 1.4;
  transition: transform 0.45s var(--ease);
}

.contact-nav__item:hover .contact-nav__label,
.contact-nav__item:focus-visible .contact-nav__label {
  transform: translateX(6px);
}

.contact-nav__desc {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  line-height: 1.5;
  transition: color 0.35s var(--ease), transform 0.45s var(--ease);
}

.contact-nav__item:hover .contact-nav__desc,
.contact-nav__item:focus-visible .contact-nav__desc {
  color: #c47a98;
  transform: translateX(6px);
}

/* Arrow */
.contact-nav__arrow {
  position: relative;
  justify-self: end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  transition:
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    transform 0.45s var(--ease);
}

.contact-nav__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--c-ink);
  border-right: 1.5px solid var(--c-ink);
  transform: translate(-60%, -50%) rotate(45deg);
  transition: border-color 0.35s var(--ease);
}

.contact-nav__item:hover .contact-nav__arrow,
.contact-nav__item:focus-visible .contact-nav__arrow {
  border-color: var(--c-pink);
  background: var(--c-pink);
  transform: translateX(4px);
}

.contact-nav__item:hover .contact-nav__arrow::before,
.contact-nav__item:focus-visible .contact-nav__arrow::before {
  border-color: #fff;
}

/* Privacy block */
.contact-privacy {
  max-width: 820px;
  margin: 56px auto 24px;
  padding: 32px 24px;
  background: #fafafa;
  border-left: 3px solid var(--c-pink, #eb6e9a);
}

.contact-privacy h4 {
  margin: 0 0 12px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #000;
}

.contact-privacy h4 + p + h4 {
  margin-top: 24px;
}

.contact-privacy p {
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: #333; /* 約80% */
}

.contact-privacy a {
  color: #eb6e9a;
  word-break: break-all;
}

.contact-privacy a:hover {
  text-decoration: none;
}

/* Motion */
@keyframes contactFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-nav__item {
    animation: none;
  }

  .contact-nav__item,
  .contact-nav__item::before,
  .contact-nav__icon-img,
  .contact-nav__label,
  .contact-nav__desc,
  .contact-nav__arrow,
  .contact-nav__arrow::before {
    transition: none;
  }

  .contact-nav__item:hover .contact-nav__label,
  .contact-nav__item:focus-visible .contact-nav__label,
  .contact-nav__item:hover .contact-nav__desc,
  .contact-nav__item:focus-visible .contact-nav__desc,
  .contact-nav__item:hover .contact-nav__arrow,
  .contact-nav__item:focus-visible .contact-nav__arrow,
  .contact-nav__item:hover .contact-nav__icon-img,
  .contact-nav__item:focus-visible .contact-nav__icon-img {
    transform: none;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .contact-index {
    margin-top: 28px;
    padding: 0 4px;
  }

  .contact-index__lead {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .sp-only {
    display: inline;
  }

  .contact-nav__item {
    grid-template-columns: 44px 1fr 40px;
    gap: 10px;
    padding: 22px 8px 22px 4px;
  }

  .contact-nav__icon {
    width: 34px;
    height: 28px;
  }

  .contact-nav__label {
    font-size: 16px;
    letter-spacing: 0.04em;
  }

  .contact-nav__desc {
    font-size: 12px;
  }

  .contact-nav__arrow {
    width: 32px;
    height: 32px;
  }

  .contact-privacy {
    margin-top: 40px;
    padding: 24px 16px;
  }
}
