/*
Theme Name: Juku LP
*/
/* ----- 名前付きグリッドエリアの例 ----- */
.area-grid {
  display: grid;
  width: 100%;
  min-height: 100vh;
  margin-inline: auto;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
}

.main {
  grid-area: main;
  width: 100%;
  overflow-x: hidden;

}

/* =========================================================
  Header
========================================================= */
.header {
  grid-area: header;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, .82);
  /* backdrop-filter: saturate(140%) blur(10px); */
  border-bottom: 1px solid rgba(30, 41, 59, .08);
}

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space--2);
  padding: calc(var(--space--2)*1) calc(var(--space--2)*2);
  border-radius: var(--radius--md);
  border: 1px solid transparent;
  text-decoration: none
}

.header-logo__img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  padding: var(--space--2);
  flex-shrink: 0;
}

.site-header__logoText {
  font-size: var(--font-size--sm);
  font-weight: 700;
  letter-spacing: .02em;
}
.site-header__nav {
  display: flex;
  gap: var(--space--2);
  margin-left: calc(var(--space--2)*2);
  flex: 1 1 auto;
}

.site-header__nav a {
text-decoration: none
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space--2)*1) calc(var(--space--2)*2);
  /* border-radius: 999px; */
  /* border: 1px solid var(--color--border); */
  /* background: #fff; */
  font-weight: 700;
  font-size: var(--font-size--sm);
  transition: transform .15s ease, border-color .15s ease;
}

.nav-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 163, 175, .35);
}

.nav-pill:focus-visible {
  outline: 3px solid rgba(0, 163, 175, .35);
  outline-offset: 2px;
}



.site-header__actions {
  display: flex;
  gap: var(--space--2);
  margin-right: 20px;

}
.site-header__actions .btn.btn--cta {
  text-decoration: none

}
.tel{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size--md);
  line-height: 1;
  padding: calc(var(--space--2)*1.25) calc(var(--space--2)*2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space--2)*1.25) calc(var(--space--2)*2);
  border-radius: var(--radius--md);
  border: 1px solid var(--color--border);
  background: #fff;
  font-weight: 700;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
  outline: 3px solid rgba(0, 163, 175, .35);
  outline-offset: 2px;
}

.btn--space--2host {
  background: #fff;
}

.btn--cta {
  /* display: grid; */
  background: var(--color-accent);
  border-color: rgba(249, 115, 22, .35);
  color: #fff;
}

/* Mobile menu */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color--border);
  border-radius: var(--radius--md);
  background: #fff;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  position: relative;
  z-index: 90;
  margin-right: 20px;
}

.nav-burger span {
  display: inline-block;
  position: relative;
  cursor: pointer;
  width: 18px;
  height: 2px;
  background: var(--color--text);
  border-radius: 2px;
  transition: .3s ease;
}

.nav-burger.is-active span:nth-of-type(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-burger.is-active span:nth-of-type(2) {
  opacity: 0;
}

.nav-burger.is-active span:nth-of-type(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* #menu-toggle:checked~#nav-burger span:nth-of-type(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle:checked~#nav-burger span:nth-of-type(2) {
  opacity: 0;
}

#menu-toggle:checked~#nav-burger span:nth-of-type(3) {
  transform: rotate(-45deg) translate(5px, -5px);
} */


.mobile-nav {
  position: fixed;
  /* top: 170px; */
  /* right: -60px; */
  z-index: 80;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-nav__inner {
  font-size: var(--font-size--md);
  width: clamp(15.625rem, 9.215rem + 32.05vw, 31.25rem);
  height: 100dvh;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space--6);
}

.mobile-nav__inner a {
  text-decoration: none
}

/* アニメーション前のメニューの状態 */
.mobile-nav {
  transform: translateX(100%);
  transition: all .3s linear;
}

/* アニメーション後のメニューの状態 */
.mobile-nav.is-active {
  transform: translateX(0);
}


.mobile-nav__link {
  font-weight: 700;
}

.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
/* body.menu-open {
  overflow: hidden;
} */


/* Responsive header */
@media (width > 1200px) {
  .mobile-nav {
    display: none;
  }
}

@media (width <= 1200px) {

  .site-header__nav {
    display: none;
  }

  .nav-burger {
    display: flex;
    flex-direction: column;
    margin-left: auto;
  }

  .site-header__actions {
    display: none;
  }
}


/* =========================================================
  Footer
========================================================= */

.site-footer {
  grid-area: footer;
  width: 100%;
  /* box-sizing: border-box; */
  background-color: var(--color--bg--2);
  margin-top: var(--space--12);
}


/* =============================
  フッター上部エリア
============================= */
.footer-upper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space--8);
  align-items: start;
  padding: var(--space--12) var(--space--8);
  box-sizing: border-box;
  width: 100%;
}

/* =============================
  左カラム：ロゴ + 連絡先
============================= */
.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space--6);
  min-width: 0;
}

/* =============================
  ロゴエリア
============================= */
.footer-logo__link {
  display: flex;
  align-items: center;
  gap: var(--space--4);
  text-decoration: none;
  color: var(--color--text);
}

.footer-logo__img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  /* background-color: var(--color--bg--3); */
  /* border-radius: var(--radius--full); */
  padding: var(--space--2);
  flex-shrink: 0;
}

.footer-logo__text {
  display: flex;
  flex-direction: column;
  gap: var(--space--1);
}

.footer-logo__name {
  font-size: var(--font-size--xl);
  font-weight: 700;
  color: var(--color--text);
  line-height: 1.2;
}

.footer-logo__tagline {
  font-size: var(--font-size--xs);
  color: var(--color--text);
  opacity: 0.7;
}

/* =============================
  連絡先エリア
============================= */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space--4);
  /* font-style: normal; */
}

/* 電話番号 */
.footer-contact__tel {
  display: flex;
  flex-direction: column;
  gap: var(--space--1);
}

.footer-contact__tel-link {
  font-size: var(--font-size--2xl);
  font-weight: bold;
  color: var(--color--text-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-contact__tel-link:hover {
  opacity: 0.75;
}

.footer-contact__tel-hours {
  font-size: var(--font-size--sm);
  color: var(--color--text);
  opacity: 0.8;
}

/* 住所 */
.footer-contact__address {
  display: flex;
  align-items: flex-start;
  gap: var(--space--2);
}

.footer-contact__address-text {
  font-size: var(--font-size--sm);
  color: var(--color--text);
  line-height: 1.7;
}

/* =============================
  中央カラム：ナビゲーション
============================= */
.footer-nav {
  min-width: var(--card-size--xs);
}

.footer-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space--4);
}

.footer-nav__link {
  font-size: var(--font-size--base);
  color: var(--color--text);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  position: relative;
  padding-bottom: var(--space--1);
}

.footer-nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color--text-accent);
  transition: width 0.2s ease;
}

.footer-nav__link:hover {
  color: var(--color--text-accent);
}

.footer-nav__link:hover::after {
  width: 100%;
}

/* =============================
  右カラム：マップ
============================= */
.footer-map {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius--lg);
  overflow: hidden;
  box-shadow: var(--shadow--md);
  aspect-ratio: 4 / 3;
}

.footer-map__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================
  フッター下部エリア
============================= */
.footer-lower {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space--4);
  padding: var(--space--6) var(--space--8);
  background: var(--color--bg--4);
  box-sizing: border-box;
  width: 100%;
}
/* =============================
  SNSアイコン
============================= */
.footer-sns__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space--4);
}

.footer-sns__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: var(--color--text-accent);
  text-decoration: none;
  box-shadow: var(--shadow--sm);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* =============================
  法的リンク + コピーライト
============================= */
.footer-legal__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space--1) 0;
  display: flex;
  align-items: center;
  gap: var(--space--2);
}

.footer-legal__link {
  font-size: var(--font-size--xs);
  color: var(--color--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal__link:hover {
  color: var(--color--text-accent);
}

.footer-legal__separator {
  font-size: var(--font-size--xs);
  color: var(--color--text);
  opacity: 0.5;
}

.footer-copyright {
  font-size: var(--font-size--sm);
  color: var(--color--text);
  opacity: 0.7;
  margin-top: var(--space--1);
}

/* =============================
  レスポンシブ対応
============================= */
/* タブレット：マップを下段に移動 */
@media (max-width: 1024px) {
  .footer-upper {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "footer-info footer-nav"
      "footer-map  footer-map";
  }

  .footer-info {
    grid-area: footer-info;
  }

  .footer-nav {
    grid-area: footer-nav;
    justify-self: center;
  }

  .footer-map {
    grid-area: footer-map;
    aspect-ratio: 16 / 5;
  }
}

/* スマートフォン：全て縦積み */
@media (width <= 768px) {
  .footer-lower {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space--6) var(--space--4);
    gap: var(--space--4);
  }

  .footer-contact__tel-link {
    font-size: var(--font-size--xl);
  }
}

@media (max-width: 640px) {
  .footer-upper {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "footer-info"
      "footer-nav"
      "footer-map";
    padding: var(--space--8) var(--space--4);
    gap: var(--space--6);
  }

  .footer-nav {
    justify-self: start;
  }

  .footer-map {
    aspect-ratio: 4 / 3;
  }
}
