/*
Theme Name: Mochi Satellite
*/

:root {
  /* --color-base: #f4f3f0; */
  /* --color-base: #ffecff; */
  --color-base: #f9f0f9;
  --color-main: #1f3a56;
  --color-accent: #197d41;
  --color-text: #333333;
  --color-accent-red: #c0392b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-base);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden !important;
  width: 100% !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

.container {
  /* width: min(1400px, 100% - 32px); */
  width: 90%;
  margin: auto;
}

/* ====================
ヘッダー
==================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.ttl-logo {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.ttl-logo .site-header__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-main);
}

.ttl-logo .site-header__title.small {
  font-size: 1rem;
}

/* ====================
PCナビ
==================== */

.site-header__nav {
  margin-left: 40px;
}

.global-nav__list {
  display: flex;
  gap: clamp(8px, 1.5vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.global-nav__list a {
  color: var(--color-main);
  font-weight: 600;
  padding: 8px 0;
  text-decoration: none;
  font-size: clamp(12px, 1vw, 16px);
  white-space: nowrap;
}

.nav-sns-item:first-of-type {
  margin-left: auto;
}

@media (max-width: 1100px) {
  .global-nav__list {
    display: none;
  }

  .menu-line {
    display: block;
  }
}

/* ====================
ハンバーガー
==================== */

.menu-check {
  display: none;
}

.menu-line {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 24px;
  cursor: pointer;
  z-index: 3000;
}

.menu-line span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #333;
  transition: .3s;
}

.menu-line span:nth-child(1) {
  top: 0;
}

.menu-line span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-line span:nth-child(3) {
  bottom: 0;
}

.menu-check:checked+.menu-line span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.menu-check:checked+.menu-line span:nth-child(2) {
  opacity: 0;
}

.menu-check:checked+.menu-line span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* ====================
SPメニュー
==================== */

@media (max-width:1199px) {

  .menu-line {
    display: inline-block;
  }

  .site-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #f7f7f2;
    padding: 80px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: .3s;

    z-index: 2001;
  }

  .menu-check:checked~.site-header__nav {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }


  .global-nav__list>li {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
  }

  .global-nav__list>li>a:not(.nav-sns) {
    display: block;
    padding: 16px;
    font-size: 18px;
    color: #333;
  }

  .nav-sns {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    gap: 6px;
  }

  .global-nav__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: start;
  }

  .global-nav__list>li:not(.nav-sns-item) {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
  }

  .global-nav__list>li:not(.nav-sns-item)>a {
    display: block;
    padding: 16px;
    font-size: 18px;
    color: #333;
    text-decoration: none;
  }

  .global-nav__list>li:not(.nav-sns-item)>a:hover {
    background: #f0f0f0;
  }

  .global-nav__list>li.nav-sns-item {
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
}

/* ====================
   SNS
==================== */

.nav-sns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.nav-sns__icon {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nav-sns--instagram .nav-sns__icon {
  background-image: url("/wp-content/themes/mochizuki-satellite/img/icon-instagram.svg");
}

.nav-sns--facebook .nav-sns__icon {
  background-image: url("/wp-content/themes/mochizuki-satellite/img/icon-facebook.svg");
}

.nav-sns--x .nav-sns__icon {
  background-image: url("/wp-content/themes/mochizuki-satellite/img/icon-x.svg");
}

.nav-sns__label {
  font-size: .6rem;
  text-align: center;
  white-space: normal;
}

@media (max-width:1199px) {

  .nav-sns {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    text-decoration: none;
  }

  .nav-sns__icon {
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .nav-sns__label {
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
  }
}

/* ========================
Buttons
======================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  color: var(--color-main);
  background-color: #ffffff;
}

.btn--primary:hover {
  background-color: var(--color-main);
  color: #ffffff;
}

.btn--outline {
  background: #ffffff;
  color: var(--color-main);
  border-color: var(--color-main);
}

/* =====================================
   スクロールフェードイン
===================================== */

.fadein {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(.22, 1, .36, 1),
    transform 0.8s cubic-bezier(.22, 1, .36, 1);
}

.fadein.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fadein-left {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity 0.8s cubic-bezier(.22, 1, .36, 1),
    transform 0.8s cubic-bezier(.22, 1, .36, 1);
}

.fadein-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fadein-right {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 0.8s cubic-bezier(.22, 1, .36, 1),
    transform 0.8s cubic-bezier(.22, 1, .36, 1);
}

.fadein-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-delay-1 {
  transition-delay: .15s;
}

.fade-delay-2 {
  transition-delay: .3s;
}

.fade-delay-3 {
  transition-delay: .45s;
}