@charset "utf-8";
/*
Theme Name: Hand To Mouth Child
Theme URI: http://example.com/
Author: Kenji Kuroda
Author URI: http://example.com/
Description: A brief description of the theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: test-theme
*/

/* Base Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  font-family: "myriad-pro-semiextended", sans-serif !important;
  font-weight: 600;
  font-style: normal;
  background: white;
  height: 100vh;
  overflow: hidden;
  max-width: 2000px;
  margin: 0 auto;
}

/* Layout */
.page-container {
  max-width: 1600px;
  max-height: 1000px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  height: 100vh;
  position: relative;
}

/* Interactive Elements */
.footer-address:hover,
.nav-item a:hover,
.nav-link:hover,
.footer-address a:hover {
  text-decoration: underline;
}

.footer-address a,
.nav-item a,
.nav-link a {
  font-family: "myriad-pro-semiextended", sans-serif !important;
  font-weight: 700;
  font-style: bold;
}

/* Accessibility */
.sr-only {
  display: none;
}

/* Header & Navigation - Desktop */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 37%;
  height: 100vh;
  z-index: 100;
  overflow: hidden;
}

.nav-container {
  top: 2%;
  display: flex;
  flex-direction: column;
  width: 200px;
  color: black;
  position: fixed;
  padding: 6px;
  padding-left: 18px;
  height: 100%;
  max-height: 1000px;
  z-index: 2;
}

.site-nav ul,
.submenu-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
  padding: 5%;
}

.nav-link {
  display: block;
  padding: 10px 10px 0px 0px;
  color: black;
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: bold;
}

.nav-item {
  padding-bottom: 7px;
  cursor: pointer;
  position: relative;
  color: black;
  font-weight: bold;
  font-size: 4rem;
}

.nav-item a,
.nav-item a:hover {
  font-weight: bold;
  font-size: 4rem;
}

.nav-item a:visited {
  color: black;
}

.nav-divider {
  text-align: left;
  width: 30px;
  height: 5px;
  margin: 15px 0px 15px 0px;
}

.site-nav {
  padding-left: 10px;
}

.nav-item a {
  color: black;
  text-decoration: none;
  font-size: 4rem;
}

.online-shop-nav {
  line-height: 60px;
}

/* Logo - Desktop */
.site-logo {
  height: 100%;
}

.site-logo img {
  position: fixed;
  bottom: 3%;
  width: 900px;
  z-index: 100;
}

/* Main Content - Desktop */
.content-main {
  position: fixed;
  left: 29%;
  right: 10%;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding-top: 30px;
  padding-left: 10%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
}

/* Footer/Address - Desktop */
.footer-address {
  position: fixed;
  right: 0;
  top: 0;
  width: 10%;
  height: 100vh;
  z-index: 100;
}

.footer-address a {
  text-decoration: none;
  color: black;
  font-size: 2.3rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  position: fixed;
  padding-right: 30px;
  padding-bottom: 30px;
}

/* Loading Screen */
.page-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 1s ease;
  font-size: 24px;
  padding: 20px 40px;
  background-color: white;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  display: flex;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.page-loader img {
  width: 10%;
}

.page-loader.show {
  opacity: 1;
  transform: translateY(0);
}

.page-loader.hide {
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}

/* ==================================================
   MEDIA QUERIES
   ================================================== */

/* Large Desktop (1200px and up) - デフォルトスタイルのまま */

/* Medium Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .nav-item a {
    font-size: 3.5rem;
  }

  .nav-item {
    font-size: 3.5rem;
  }

  .nav-link {
    font-size: 2.2rem;
  }

  .footer-address a {
    font-size: 2rem;
  }

  .site-logo img {
    width: 800px;
  }
}

/* Small Desktop (768px to 991px) */
@media (max-width: 991px) and (min-width: 769px) {
  .nav-item a {
    font-size: 3rem;
  }

  .nav-item {
    font-size: 3rem;
  }

  .nav-link {
    font-size: 2rem;
  }

  .footer-address a {
    font-size: 1.8rem;
  }

  .site-logo img {
    width: 700px;
  }

  .content-main {
    left: 32%;
    right: 8%;
  }
}

/* Tablet (481px to 768px) */
@media (max-width: 768px) and (min-width: 481px) {
  html,
  body {
    overflow-x: hidden;
    height: 100vh;
  }

  .page-container {
    flex-direction: column;
    height: 100vh;
    width: 100vw;
  }

  /* Logo - 左上に90度回転で配置 */
  .site-logo {
    position: fixed;
    top: 20px;
    left: 70px; /* タブレット用の調整 */
    z-index: 100;
    height: auto;
    width: auto;
  }

  .site-logo img {
    position: static;
    width: 550px;
    height: auto;
    transform: rotate(90deg);
    transform-origin: left top;
  }

  /* Header & Navigation - 右上に配置 */
  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    width: auto;
    height: auto;
    z-index: 100;
  }

  .nav-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: auto;
    height: auto;
    padding: 0;
  }

  .site-nav {
    padding: 0;
    text-align: left;
  }

  .nav-item {
    padding-bottom: 6px;
    font-size: 2.5rem;
  }

  .nav-item a {
    font-size: 2.5rem;
  }

  .nav-link {
    font-size: 1.8rem;
    padding: 5px 0;
  }

  .nav-divider {
    width: 30px;
    height: 2px;
    margin: 5px 0px 5px 0px;
  }

  /* Main Content - 中央配置 */
  .content-main {
    position: fixed;
    left: 0%;
    top: 50%;
    bottom: 20%;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
  }

  /* Footer/Address - 右下に配置 */
  .footer-address {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 100%;
    height: auto;
  }

  .footer-address a {
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
    font-size: 1.5rem;
    position: absolute;
    padding: 0;
    bottom: 0;
    width: 100%;
    text-align: right;
  }

  .page-loader img {
    width: 20%;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  html,
  body {
    overflow-x: hidden;
    height: 100vh;
  }

  .page-container {
    flex-direction: column;
    height: 100vh;
    width: 100vw;
  }

  /* Logo - 左上に90度回転、モバイルサイズ調整 */
  .site-logo {
    position: fixed;
    top: 15px;
    left: 70px; /* ロゴ幅分だけ右にずらす */
    z-index: 100;
    height: auto;
    width: auto;
  }

  .site-logo img {
    position: static;
    width: 500px;
    height: auto;
    transform: rotate(90deg);
    transform-origin: left top;
  }

  /* Header & Navigation - 右上、モバイル用サイズ */
  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    width: auto;
    height: auto;
    z-index: 100;
  }

  .nav-container {
    position: fixed;
    top: 15px;
    right: 15px;
    width: auto;
    height: auto;
    padding: 0;
  }

  .site-nav {
    padding: 0;
    text-align: left;
  }

  .nav-item {
    padding-bottom: 6px;
    font-size: 2.3rem;
  }

  .nav-item a {
    font-size: 2.1rem;
  }

  .nav-link {
    font-size: 1.5rem;
    padding: 3px 0;
  }

  .online-shop-nav {
    line-height: 1.2;
  }

  .nav-divider {
    width: 20px;
    height: 2px;
    margin: 5px 0px 5px 0px;
  }

  /* Main Content - モバイル用中央配置 */
  .content-main {
    position: fixed;
    left: 0%;
    top: 50%;
    bottom: 25%;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
  }

  .swiper-slide img {
    width: 100%;
    height: auto;
  }

  /* Footer/Address - 右下 */
  .footer-address {
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 100%;
    height: auto;
  }

  .footer-address a {
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
    font-size: 1.2rem;
    position: absolute;
    padding: 0;
    width: 100%;
    bottom: 0;
    text-align: right;
  }

  .page-loader img {
    width: 30%;
  }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
  .site-logo img {
    width: 450px;
  }
  .site-logo {
    left: 190px; /* 極小画面用の調整 */
  }

  .nav-item {
    font-size: 1.8rem;
  }

  .nav-item a {
    font-size: 1.8rem;
  }

  .nav-link {
    font-size: 1.3rem;
  }

  .footer-address a {
    font-size: 1rem;
  }

  .content-main {
    left: 0%;
  }
}
