@charset "UTF-8";
/* ==========================================================================
   Layout — header / footer / cta
   ========================================================================== */

/* Header ----------------------------------------------------------------- */
.l-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}

.l-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(51, 48, 44, 0.08);
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: var(--header-height);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 751px) {
  .l-header__inner {
    padding-inline: 32px;
  }
}

.l-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.l-header__logo {
  line-height: 1;
}

.l-header__logo a {
  display: block;
  transition: transform 0.3s var(--ease);
}

.l-header__logo a:hover {
  transform: rotate(-6deg) scale(1.05);
}

.l-header__logo img {
  width: 46px;
  height: 46px;
}

.l-header__brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-ink);
}

/* Main ------------------------------------------------------------------- */
.l-main {
  display: block;
}

/* CTA -------------------------------------------------------------------- */
.l-cta {
  position: relative;
  padding: 96px 20px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #f2914a, #e96f1f);
}

.l-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/common/texture-grain.png");
  background-size: var(--texture-grain-size);
  opacity: 0.75;
  pointer-events: none;
}

/* 下層ページのCTA装飾 (TOPは .p-top__cta-deco を使用) */
.l-cta__deco {
  position: absolute;
  top: 16px;
  left: 4%;
  width: min(280px, 38vw);
  opacity: 0.9;
  pointer-events: none;
}

/* Footer ----------------------------------------------------------------- */
.l-footer {
  position: relative;
  padding: 64px 20px 28px;
  color: #fff;
  background: var(--color-footer);
  border-radius: 32px 32px 0 0;
}

.l-footer__panel {
  display: grid;
  gap: 28px;
  justify-items: center;
  max-width: var(--container);
  margin-inline: auto;
  text-align: center;
}

@media (min-width: 751px) {
  .l-footer__panel {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo   nav"
      "brand  nav"
      "social nav";
    gap: 20px 48px;
    justify-items: start;
    text-align: left;
  }

  .l-footer__logo { grid-area: logo; }
  .l-footer__brand-block { grid-area: brand; }
  .l-footer__nav { grid-area: nav; }
  .l-footer__social { grid-area: social; }
}

.l-footer__logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  background: #fff;
  border-radius: 20px;
}

.l-footer__logo img {
  width: 52px;
  height: 52px;
}

.l-footer__brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.l-footer__address {
  margin-top: 6px;
  font-size: 13px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.82);
}

.l-footer__nav-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 32px;
}

@media (min-width: 751px) {
  .l-footer__nav-list {
    grid-template-columns: repeat(3, auto);
    gap: 12px 40px;
    padding-top: 8px;
  }
}

.l-footer__nav-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.l-footer__nav-link::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  vertical-align: 1px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: rotate(45deg);
}

.l-footer__nav-link:hover {
  color: #ffc9a1;
}

.l-footer__social {
  display: flex;
  gap: 14px;
}

.l-footer__social-link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s var(--ease);
}

.l-footer__social-link img {
  width: 21px;
  height: 21px;
}

.l-footer__social-link:hover {
  background: var(--color-primary);
  transform: translateY(-4px);
}

.l-footer__copyright {
  display: block;
  margin-top: 52px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.l-footer__back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(216, 100, 28, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), background 0.3s;
}

.l-footer__back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.l-footer__back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-4px);
}

.l-footer__back-to-top img {
  width: 18px;
}
