/* 
 * footer.css
 * フッターコンポーネント用のスタイル
 */

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

.footer {
  background: var(--color-primary);
  color: var(--color-text);
  position: relative;
  overflow: clip;
}

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

.footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 62px 48px 48px;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

.footer__brand {
  min-width: 0;
  height: 100%;
  border-right: 1px solid var(--line);
}
.s .footer__brand {
  border-right: none;
}

.footer__brand-head {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__logo {
  flex: 0 0 auto;
}

.footer__logo-mark {
  width: 82px;
  display: block;
}

.footer__logo-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.footer__logo-mark text {
  fill: currentColor;
  font-size: 9px;
  letter-spacing: 0.18em;
  font-family: 'Noto Sans JP', sans-serif;
}

.footer__company {
  font-size: 1.125rem /* 18px (基準16px) */;
  line-height: 1.35;
  letter-spacing: 0.08em;
}

.footer__address {
  margin-top: 40px;
  font-style: normal;
  font-size: 0.75rem /* 12px (基準16px) */;
  line-height: 2;
  letter-spacing: 0.04em;
}

.footer__address a {
  /* text-decoration: underline; */
  text-underline-offset: 0.18em;
}

.footer__content {
  padding-left: 56px;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 32px 64px;
  max-width: 560px;
}

.footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav-item + .footer__nav-item {
  margin-top: 20px;
}

.footer__nav-item a {
  display: inline-block;
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.footer__social {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 360px;
  margin: 30px auto 0;
}

.footer__social-label {
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.footer__instagram {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer__instagram svg {
  width: 100%;
  height: 100%;
}

.footer__divider {
  display: none;
  width: 100%;
  height: 1px;
  background: var(--line);
}

.footer__copyright {
  margin: 0;
  padding: 0 48px 50px;
  text-align: center;
  font-size: 0.5rem /* 8px (基準16px) */;
  letter-spacing: 0.05em;
}

.s .footer {
  display: grid;
  padding: 30px 20px calc(80px + env(safe-area-inset-bottom, 0px));
}

.s .footer__inner {
  display: contents;
}

.s .footer__brand {
  display: contents;
}

.s .footer__brand-head {
  order: 1;
}

.s .footer__divider--mobile {
  order: 2;
}

.s .footer__content {
  order: 3;
}

.s .footer__divider--mobile-bottom {
  order: 4;
}

.s .footer__address {
  order: 5;
}

.s .footer__copyright {
  order: 6;
}

.s .footer__mobile-cta {
  order: 7;
}

.s .footer__inner {
  padding: 0;
}

.s .footer__brand-head {
  align-items: center;
  gap: 18px;
}

.s .footer__logo-mark {
  width: 81px;
}

.s .footer__company {
  margin-top: 0;
  font-size: 1.125rem /* 18px (基準16px) */;
  line-height: 1.5;
}

.s .footer__divider--mobile,
.s .footer__divider--mobile-bottom {
  display: block;
}

.s .footer__divider--mobile {
  margin: 24px 0 28px;
}

.s .footer__address {
  display: inline-block;
  margin: 36px auto 0;
  font-size: 0.75rem /* 12px (基準16px) */;
  line-height: 1.95;
}

.s .footer__content {
  border-left: 0;
  padding-left: 0;
  margin-top: 0;
}

.s .footer__nav {
  width: 84%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0 auto;
}

.s .footer__nav-item + .footer__nav-item {
  margin-top: 14px;
}

.s .footer__nav-item a {
  font-size: 0.75rem; /* 12px (基準16px) */
  letter-spacing: 0.04em;
}

.s .footer__social {
  margin-top: 34px;
  max-width: none;
  gap: 12px;
}

.s .footer__social-label {
  font-size: 0.875rem;
}

.s .footer__instagram {
  width: 38px;
  height: 38px;
}

.s .footer__divider--mobile-bottom {
  margin-top: 28px;
}

.s .footer__copyright {
  padding: 24px 20px 28px;
  font-size: 0.5rem; /* 8px (基準16px) */
}

.action-links.footer__mobile-cta {
  display: none;
}

.s .action-links.footer__mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: none;
  margin: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.is-hero-visible .s .action-links.footer__mobile-cta {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.s .footer__mobile-cta .action-links__item {
  width: 100%;
  max-width: none;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0;
  font-size: 1rem /* 16px (基準16px) */;
  letter-spacing: 0.08em;
  border-left: 1px solid rgba(190, 82, 93, 0.32);
  font-weight: 500;
}

.s .footer__mobile-cta .action-links__item:first-child {
  border-left: 0;
}

.s .footer__mobile-link--primary {
  background-color: var(--color-primary) !important;
  color: #fff !important;
}

.footer__cta {
  margin-top: 60px;
}
