/*
Theme Name: StoreWalk
Theme URI: 
Author: Your Name
Author URI: 
Description: すとあるきサイトのオリジナルテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storewalk
*/

/* ======= 基本設定 ======= */
:root {
  --purple: #5D3FD3;
  --dark-purple: #4B32A6;
  --purple-gradient-start: #4030F9;
  --purple-gradient-end: #C130F9;
  --light-gray: #f5f5f5;
  --dark-gray: #333;
  --white: #fff;
  --black: #000;
  --font-text: 'Azeret Mono', monospace;
  --font-title: 'Klee One', cursive;
 }
 
 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
 }
 
 body {
  font-family: var(--font-text);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
 }
 
 a {
  color: inherit;
  text-decoration: none;
 }
 
 img {
  max-width: 100%;
  height: auto;
 }
 
 ul, ol {
  list-style: none;
 }
 
 html, body {
  height: 100%;
  margin: 0;
  padding: 0;
 }
 
 #page {
  display: flex;
  flex-direction: column;
  flex: 1;
 }
 
 #content, .site-content {
  display: flex;
  flex-direction: column;
  flex: 1;
 }
 
 .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
 }
 
 /* ======= ヘッダー ======= */
 .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, padding 0.3s ease;
  background-color: rgba(0, 0, 0, 0);
  font-family: var(--font-text);
 }
 
 .site-header.scrolled {
  background-color: rgba(64, 48, 249, 0.95);
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 }
 
 .site-branding {
  padding: 0 20px;
 }
 
 .site-title {
  margin: 0;
  padding: 0;
  line-height: 1;
 }
 
 .site-title a {
  display: block;
  text-decoration: none;
 }
 
 .logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
 }
 
 .custom-logo {
  max-height: 50px;
  width: auto;
  display: block;
 }
 
 .logo-text {
  color: var(--white);
  font-size: 24px;
  font-weight: 500;
  font-family: var(--font-title);
 }
 
 .site-title .logo-text,
 .logo-container .logo-text,
 .site-branding .logo-text {
  font-family: 'Klee One', cursive !important;
  font-weight: 600;
  font-size: 24px;
  color: var(--white);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
 }
 
 .sticky-header .custom-logo {
  max-height: 40px;
  transition: max-height 0.3s ease;
 }
 
 .sticky-header .logo-text {
  font-size: 20px;
  transition: font-size 0.3s ease;
 }
 
 /* ナビゲーション */
 .main-navigation {
  display: flex;
 }
 
 #primary-menu {
  display: flex;
 }
 
 #primary-menu li {
  margin-left: 20px;
 }
 
 #primary-menu a {
  color: var(--white);
  font-weight: 500;
  padding: 5px 10px;
 }
 
 .menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
 }
 
 .menu-toggle-bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--white);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
 }
 
 .menu-toggle-bar:nth-child(1) {
  top: 0;
 }
 
 .menu-toggle-bar:nth-child(2) {
  top: 10px;
 }
 
 .menu-toggle-bar:nth-child(3) {
  top: 20px;
 }
 
 /* ======= ヒーローセクション ======= */
 .hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
 }
 
 .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/top.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
 }
 
 .hero-content {
  z-index: 2;
  text-align: center;
 }
 
 .hero-title,
 .hero-section h1 {
  color: var(--white);
  font-size: 4rem;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-family: 'Klee One', cursive !important;
  font-weight: 600;
 }
 
 /* ======= セクション共通スタイル ======= */
 .section-row {
  display: flex;
  flex-wrap: wrap;
  height: 800px;
 }
 
 .section-col {
  flex: 1;
  min-width: 300px;
 }
 
 .content-col {
  background: transparent;
  padding: 80px 40px;
  flex: 2;
  display: flex;
  align-items: center;
 }
 
 .section-content {
  max-width: 600px;
  margin-left: 50px;
 }
 
 .section-title {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.3;
 }
 
 .section-subtitle {
  margin-bottom: 30px;
 }
 
 .section-subtitle h3 {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.4;
 }
 
 .feature-list {
  margin-bottom: 40px;
 }
 
 .feature-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
 }
 
 .feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
 }
 
 .button-container {
  margin-top: 30px;
 }
 
 .explore-button {
  display: inline-block;
  padding: 10px 30px;
  border: 2px solid var(--white);
  border-radius: 30px;
  color: var(--white);
  font-weight: 500;
  transition: all 0.3s ease;
 }
 
 .explore-button:hover {
  background-color: var(--white);
  color: var(--purple-gradient-start);
 }
 
 /* ======= ストア検索セクション ======= */
 .store-search-section {
  background: linear-gradient(180deg, #4030F9 0%, #C130F9 100%);
  color: var(--white);
  padding: 0;
 }
 
 .search-image-col {
  flex: 1;
  position: relative;
  overflow: visible !important;
  min-height: 500px;
 }
 
 .section-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/store.jpg');
  background-size: cover;
  background-position: center;
 }
 
 /* デスクトップ/スマホ画像の切り替え */
 .desktop-only {
  display: block;
 }
 
 .mobile-only {
  display: none;
 }
 
 /* ラップトップ画像（デスクトップ用） */
 .laptop-image {
  position: absolute !important;
  top: 10px !important;
  right: -150px !important;
  width: 200% !important;
  max-width: none !important;
  height: auto !important;
  z-index: 20 !important;
  pointer-events: none;
 }
 
 /* スマートフォン画像（モバイル用） */
 .smartphone-image {
  position: absolute !important;
  top: 30px !important;
  right: -50px !important;
  width: 120% !important;
  max-width: none !important;
  height: auto !important;
  z-index: 20 !important;
  pointer-events: none;
  display: none; /* 初期状態では非表示 */
 }
 
 /* ======= 店舗登録セクション ======= */
 .store-registration-section {
  background: linear-gradient(180deg, #C130F9 0%, #000 100%);
  color: var(--white);
  padding: 0;
 }
 
 .image-col {
  position: relative;
  min-height: 600px;
 }
 
 .lantern-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/store2.jpg');
  background-size: cover;
  background-position: center;
 }
 
 /* ======= フッター ======= */
 .site-footer {
  background-color: var(--black);
  color: var(--white);
  padding: 30px 20px;
  margin-top: 0;
 }
 
 .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
 }
 
 .footer-left, .footer-right {
  font-size: 14px;
 }
 
 .company-info {
  margin-bottom: 5px;
 }
 
 .copyright {
  margin-bottom: 5px;
  text-align: right;
 }
 
 .built-on {
  text-align: right;
 }
 
 /* ======= 固定ページのスタイル ======= */
 .page-header {
  background: linear-gradient(180deg, #4030F9 0%, #C130F9 100%);
  color: var(--white);
  padding: 120px 0 60px;
  text-align: center;
 }
 
 .page-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: var(--font-title);
 }
 
 .page-content {
  background: linear-gradient(180deg, #C130F9 0%, #000 100%);
  color: var(--white);
  padding: 60px 0;
  flex: 1;
 }
 
 /* コンテンツ内のリンク色調整 */
 .page-content a:not(.cta-button):not(.app-button) {
  color: var(--white);
  text-decoration: underline;
 }
 
 .page-content a:not(.cta-button):not(.app-button):hover {
  opacity: 0.8;
 }
 
 /* ======= 飲食店向けページスタイル ======= */
 .restaurant-message h2 {
  color: var(--white);
 }
 
 .page-restaurant .cta-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  margin: 50px 0;
 }
 
 .page-restaurant .cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--purple-gradient-start);
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
 }
 
 .page-restaurant .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
 }
 
 /* ======= 使い方ページスタイル ======= */
 .howto-guide {
  max-width: 1000px;
  margin: 0 auto;
  color: var(--white);
 }
 
 .guide-section {
  margin-bottom: 40px;
 }
 
 .guide-section h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  text-align: center;
  font-family: var(--font-title);
 }
 
 .guide-intro {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 30px;
  backdrop-filter: blur(5px);
  text-align: center;
 }
 
 .guide-intro h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-family: var(--font-title);
 }
 
 .steps-heading {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-family: var(--font-title);
  text-align: center;
 }
 
 .step-box {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
  backdrop-filter: blur(5px);
 }
 
 .step-content {
  flex: 1;
  padding: 25px 30px;
 }
 
 .step-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
 }
 
 .step-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
 }
 
 .step-box h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-family: var(--font-title);
  color: var(--white);
 }
 
 .step-content ol {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 15px;
 }
 
 .step-content ul {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 15px;
 }
 
 .step-content li {
  margin-bottom: 10px;
 }
 
 .troubleshoot-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px 30px;
  margin-top: 40px;
  backdrop-filter: blur(5px);
 }
 
 .troubleshoot-box h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-family: var(--font-title);
 }
 
 .troubleshoot-list {
  list-style-type: disc;
  padding-left: 25px;
 }
 
 .troubleshoot-list li {
  margin-bottom: 10px;
 }
 
 .troubleshoot-list strong {
  color: #fff;
  font-weight: 600;
 }
 
 /* アプリ誘導セクションのスタイル */
 .app-cta-section {
  background: linear-gradient(135deg, #4030F9 0%, #C130F9 100%);
  border-radius: 12px;
  padding: 40px;
  margin-top: 50px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
 }
 
 .app-cta-section h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-family: var(--font-title);
  color: var(--white);
 }
 
 .app-cta-section p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
 }
 
 .app-button-container {
  margin-top: 20px;
 }
 
 .app-button {
  display: inline-block;
  background-color: var(--white);
  color: var(--purple-gradient-start) !important;
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
 }
 
 .app-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
 }
 
 .app-button:active {
  transform: translateY(-1px);
 }
 
 /* ======= アニメーション ======= */
 @keyframes fadeInBlur {
  0% {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
 }
 
 @keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-90px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
 }
 
 @keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(90px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
 }
 
 /* ヒーローセクションのアニメーション */
 .hero-title {
  animation: fadeInBlur 1.5s ease forwards;
 }
 
 /* ストア検索セクションのアニメーション */
 .store-search-section .section-content,
 .store-search-section .section-title,
 .store-search-section .section-subtitle,
 .store-search-section .feature-list,
 .store-search-section .button-container,
 .store-search-section .section-image,
 .store-search-section .laptop-image {
  opacity: 0;
  animation: none;
 }
 
 .store-search-section.animate-start .section-content {
  animation: slideInLeft 1s ease forwards;
  animation-delay: 0.3s;
 }
 
 .store-search-section.animate-start .section-title {
  animation: slideInLeft 1s ease forwards;
  animation-delay: 0.5s;
 }
 
 .store-search-section.animate-start .section-subtitle {
  animation: slideInLeft 1s ease forwards;
  animation-delay: 0.7s;
 }
 
 .store-search-section.animate-start .feature-list {
  animation: slideInLeft 1s ease forwards;
  animation-delay: 0.9s;
 }
 
 .store-search-section.animate-start .button-container {
  animation: slideInLeft 1s ease forwards;
  animation-delay: 1.1s;
 }
 
 .store-search-section.animate-start .section-image {
  animation: fadeInBlur 1.5s ease forwards;
  animation-delay: 0.5s;
 }
 
 .store-search-section.animate-start .laptop-image {
  animation: slideInRight 1.2s ease forwards;
  animation-delay: 1s;
 }
 
 /* 店舗登録セクションのアニメーション */
 .store-registration-section .section-content,
 .store-registration-section .section-title,
 .store-registration-section .section-description,
 .store-registration-section .feature-list,
 .store-registration-section .button-container,
 .store-registration-section .lantern-image {
  opacity: 0;
  animation: none;
 }
 
 .store-registration-section.animate-start .lantern-image {
  animation: fadeInBlur 1.5s ease forwards;
 }
 
 .store-registration-section.animate-start .section-content {
  animation: slideInRight 1s ease forwards;
  animation-delay: 0.3s;
 }
 
 .store-registration-section.animate-start .section-title {
  animation: slideInRight 1s ease forwards;
  animation-delay: 0.5s;
 }
 
 .store-registration-section.animate-start .section-description {
  animation: slideInRight 1s ease forwards;
  animation-delay: 0.7s;
 }
 
 .store-registration-section.animate-start .feature-list {
  animation: slideInRight 1s ease forwards;
  animation-delay: 0.9s;
 }
 
 .store-registration-section.animate-start .button-container {
  animation: slideInRight 1s ease forwards;
  animation-delay: 1.1s;
 }

 /* ストア検索セクションのアニメーション */
.store-search-section .section-content,
.store-search-section .section-title,
.store-search-section .section-subtitle,
.store-search-section .feature-list,
.store-search-section .button-container,
.store-search-section .section-image,
.store-search-section .laptop-image,
.store-search-section .smartphone-image {
  opacity: 0;
  animation: none;
}

.store-search-section.animate-start .section-content {
  animation: slideInLeft 1s ease forwards;
  animation-delay: 0.3s;
}

.store-search-section.animate-start .section-title {
  animation: slideInLeft 1s ease forwards;
  animation-delay: 0.5s;
}

.store-search-section.animate-start .section-subtitle {
  animation: slideInLeft 1s ease forwards;
  animation-delay: 0.7s;
}

.store-search-section.animate-start .feature-list {
  animation: slideInLeft 1s ease forwards;
  animation-delay: 0.9s;
}

.store-search-section.animate-start .button-container {
  animation: slideInLeft 1s ease forwards;
  animation-delay: 1.1s;
}

.store-search-section.animate-start .section-image {
  animation: fadeInBlur 1.5s ease forwards;
  animation-delay: 0.5s;
}

.store-search-section.animate-start .laptop-image {
  animation: slideInRight 1.2s ease forwards;
  animation-delay: 1s;
}

.store-search-section.animate-start .smartphone-image {
  animation: slideInRight 1.2s ease forwards;
  animation-delay: 1s;
}
 
 /* スクロールトリガーアニメーション */
 .animation-trigger {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
 }
 
 .animation-trigger.animated {
  opacity: 1;
  transform: translateY(0);
 }
 
 /* ======= レスポンシブ設定 ======= */
 @media screen and (max-width: 768px) {
  /* ヘッダー */
  .custom-logo {
    max-height: 40px;
  }
  
  .logo-text {
    font-size: 20px;
  }
  
  .menu-toggle {
    display: block;
    z-index: 110;
  }
  
  #primary-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--purple);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
  }
  
  .main-navigation.toggled #primary-menu {
    right: 0;
  }
  
  #primary-menu li {
    margin: 10px 0;
  }
  
  /* セクション */
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle h3 {
    font-size: 1.5rem;
  }
  
  .section-row {
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
  }
  
  .content-col {
    padding: 40px 20px;
  }
  
  .section-content {
    margin-left: 0;
  }
  
  .map-col, .image-col {
    height: 300px;
    min-height: auto !important;
  }
 
  /* 画像表示切替 */
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block !important;
  }
  
  /* スマホ表示時の画像位置調整 - ストア検索セクションのみ */
  .store-search-section .smartphone-image {
    display: block !important;
    top: 10px !important;
    right: 28% !important;
    transform: translateX(50%) !important;
    width: 50% !important;
    position: relative !important;
    margin: 0 auto !important;
    opacity: 0;
  }

  .store-search-section.animate-start .smartphone-image {
    animation: slideInRight 2.5s ease forwards;
    animation-delay: 1.5s;
  }
  
  .search-image-col {
    min-height: auto !important;
    padding: 20px !important;
  }
  
  .image-col {
    min-height: 300px !important;
  }
  
  /* 使い方ページ */
  .step-box {
    flex-direction: column;
  }
  
  .step-image {
    padding: 20px;
  }
  
  .guide-section h2 {
    font-size: 1.8rem;
  }
  
  .steps-heading,
  .guide-intro h3,
  .troubleshoot-box h3 {
    font-size: 1.5rem;
  }
  
  .step-box h4 {
    font-size: 1.3rem;
  }
  
  /* アプリ誘導 */
  .app-cta-section {
    padding: 30px 20px;
  }
  
  .app-cta-section h3 {
    font-size: 1.5rem;
  }
  
  .app-button {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  /* 飲食店向けページ */
  .restaurant-message {
    padding: 0;
  }
  
  .cta-box {
    margin: 40px 20px;
    padding: 30px 20px;
  }
 
  /* フッター */
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-right {
    text-align: left;
  }
  
  .copyright, .built-on {
    text-align: left;
  }
 }
 
 @media screen and (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle h3 {
    font-size: 1.3rem;
  }
  
  .custom-logo {
    max-height: 30px;
  }
  
  .logo-text {
    font-size: 18px;
  }
 
  .store-search-section .smartphone-image {
    width: 60% !important;
  }
  
  .laptop-image {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    margin-top: 20px;
  }
 }