@charset "utf-8";

/* =========================================
   1. ベース設定・リセット
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: white; 
}

.noto-sans-jp {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400; 
}
.zen-old-mincho-regular {
  font-family: "Zen Old Mincho", serif;
  font-weight: 400; 
}
.montserrat {
  font-family: "Montserrat", sans-serif;
  font-weight: 400; 
}
.oswald {
  font-family: "Oswald", sans-serif;
  font-weight: 400; 
}

p {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    margin: 0;
}

a {
  text-decoration: none;
}

/* 画面外枠フチ */
html::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: 10px solid #000000; 
  pointer-events: none; 
  z-index: 9999; 
}

body {
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 768px) {
  html::after {
    border: 4px solid #000000;
  }
}


/* =========================================
   2. ヘッダー要素
   ========================================= */
.header {
    position: fixed;
    width: 100%;
    height: auto;
    min-height: 50px;
    border: none;
    z-index: 1000; 
}

#nav_h .logo a,
.header .logo a {
    background: none !important;
    background-image: none !important;
}

.header-inner {
    width: 100%;
    max-width: 370px;
    height: auto;
    margin: auto;
}

/* コンタクトボタン */
.contact-sp {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10000;
    width: 120px;
    height: 35px;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.contact-sp p {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    color: white;
    margin: 0;
    letter-spacing: 2px;
}

.contact-pc {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10000;
    width: 150px;
    height: 50px;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.contact-pc:hover {
    opacity: 0.7;
}

.contact-pc p {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    color: white;
    margin: 0;
    letter-spacing: 3px;
}

/* ナビゲーション (ドロワーなど) */
.global-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(96, 95, 94, 0.95);
    z-index: 999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.global-nav.is-active {
    left: 0; 
}

.global-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.global-nav li {
    margin-bottom: 30px;
}

.global-nav a {
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    display: block;
    padding: 10px;
    transition: opacity 0.3s;
}

.global-nav a:hover {
    opacity: 0.7;
}


/* =========================================
   3. フッター要素
   ========================================= */
.footer {
    width: 100%;
    height: auto;
    margin: auto;
    background-color: #e7edf3;
    padding: 30px 0;
}

.footer-inner {
    width: 100%;
    max-width: 370px; 
    margin: auto;
    display: flex;
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: space-between;
    gap: 15px 5px; 
}

.apro-logo {
    flex: 0 0 100%; 
    max-width: 150px; 
    margin: 20px auto; 
}

.footer-item {
    flex: 1; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; 
}

.footer-ph {
    width: 100%;
    max-width: 45px; 
    height: 45px; 
    object-fit: contain; 
    margin: 0 auto;
}

.footer-caption {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 10px;
    line-height: 1.2;
    margin-top: 8px;
    color: #231815;
}

@media screen and (max-width: 768px) {
  body {
    padding-bottom: 120px; 
  }
  .footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100%;
    z-index: 990; 
    padding: 10px 0 15px 0; 
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); 
    display: block !important; 
    background-color: #e7edf3;
  }
  .apro-logo {
    display: block !important;
    width: 90px !important; 
    height: auto !important;
    margin: 20px auto 10px auto !important; 
    flex: 0 0 100% !important;
  }
}

@media screen and (min-width: 769px) {
  .footer {
      display: none !important;
  }
}


/* =========================================
   4. 共通アニメーション・UI（モーダル等）
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; 
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.modal {
    visibility: hidden;
    display: flex; 
    position: fixed;
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); 
    justify-content: center; 
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease; 
}

.modal.show {
    visibility: visible;
    opacity: 1; 
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.8); 
    padding: 20px; 
    border-radius: 8px; 
    max-width: 95vw; 
    max-height: 95vh;
}

.modal-content img {
    max-width: 85vw; 
    max-height: 85vh; 
    object-fit: contain;
    cursor: pointer;
    display: block; 
}