/*
Theme Name: LaLaFeel
Theme URI: 
Author: Your Name
Description: 街の小さなお菓子屋さんの温かみと、パティシエのこだわりが伝わる上質な洋菓子店サイト
Version: 1.0.0
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lalafeel
Domain Path: /languages
*/

/* ============================================
   CSS VARIABLES - グローバルカラーパレット定義
   ============================================ */
:root {
  /* メインカラー */
  --main-orange: #FF9966;
  --dark-brown: #704020;
  --cream-ivory: #FFF8F0;
  --light-gray: #F5F5F5;
  
  /* テキストカラー */
  --text-primary: #2C2C2C;
  --text-secondary: #666666;
  --text-light: #999999;
  
  /* アクセントカラー */
  --accent-orange-light: #FFD4B3;
  --accent-brown-dark: #533011;
  
  /* 境界線 */
  --border-light: #E8E8E8;
  
  /* シャドウ */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #F5F5F5;
    --text-secondary: #B8B8B8;
    --text-light: #888888;
    --light-gray: #2A2A2A;
    --cream-ivory: #1F1F1F;
    --border-light: #404040;
  }
}

/* ============================================
   基本スタイル - リセット＆ベース設定
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: #FFFFFF;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #1A1A1A;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 100;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding h1.site-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.site-branding h1.site-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-branding h1.site-title a:hover {
  color: var(--main-orange);
}

/* ============================================
   ヒーロースライダーセクション（全幅）
   ============================================ */
.shop-hero-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 500px;
  overflow: hidden;
  background-color: var(--light-gray);
  background-size: cover;
  background-position: center;
}

.hero-slide-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* スライダーナビゲーション（ドット） */
.hero-slider-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.slider-dot.active {
  background-color: white;
  width: 24px;
  border-radius: 6px;
}

.slider-dot:focus {
  outline: 2px solid var(--main-orange);
  outline-offset: 2px;
}

/* レスポンシブ - スライダー高さ調整 */
@media (max-width: 768px) {
  .shop-hero-slider {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .shop-hero-slider {
    height: 250px;
  }
  
  .hero-slider-nav {
    bottom: 16px;
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
  }
  
  .slider-dot.active {
    width: 20px;
  }
}

/* ============================================
   メインコンテンツセクション（1200px幅・センター）
   ============================================ */
.site-content {
  background-color: #FFFFFF;
  padding: 0;
}

@media (prefers-color-scheme: dark) {
  .site-content {
    background-color: #1A1A1A;
  }
}

.shop-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* セクションタイトル */
.shop-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.shop-section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
  letter-spacing: -0.5px;
}

.shop-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--main-orange) 0%, var(--accent-orange-light) 100%);
  border-radius: 2px;
}

/* レスポンシブ - タイトル */
@media (max-width: 768px) {
  .shop-section-title {
    font-size: 28px;
  }
  
  .shop-content-wrapper {
    padding: 40px 16px;
  }
}

@media (max-width: 480px) {
  .shop-section-title {
    font-size: 24px;
  }
  
  .shop-section-title::after {
    width: 50px;
  }
  
  .shop-content-wrapper {
    padding: 32px 12px;
  }
}

/* ============================================
   グリッドレイアウト - CSS Grid構成
   ============================================ */
.shop-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  grid-template-areas: 
    "custom-post cards-grid";
}

.shop-grid-item {
  display: flex;
  flex-direction: column;
}

/* 左カラム - カスタム投稿タイプ */
.shop-custom-post {
  grid-area: custom-post;
}

.custom-post-inner {
  background-color: var(--cream-ivory);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.custom-post-inner:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.custom-post-thumbnail {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--light-gray);
}

.custom-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.custom-post-inner:hover .custom-post-image {
  transform: scale(1.05);
}

.custom-post-content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.custom-post-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.custom-post-excerpt {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.custom-post-excerpt p {
  margin: 0;
}

.custom-post-link {
  display: inline-block;
  color: var(--main-orange);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.custom-post-link:hover {
  color: var(--accent-brown-dark);
  border-bottom-color: var(--accent-brown-dark);
}

.custom-post-link:focus {
  outline: 2px solid var(--main-orange);
  outline-offset: 2px;
}

/* 右カラム - カード型グリッド */
.shop-cards-grid {
  grid-area: cards-grid;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  auto-rows: max-content;
}

/* ============================================
   カード型コンポーネント
   ============================================ */
.shop-card {
  background-color: var(--cream-ivory);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.shop-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--light-gray);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.shop-card:hover .card-image {
  transform: scale(1.08);
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  color: var(--main-orange);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.card-link:hover {
  color: var(--accent-brown-dark);
  border-bottom-color: var(--accent-brown-dark);
}

.card-link:focus {
  outline: 2px solid var(--main-orange);
  outline-offset: 2px;
}

/* ============================================
   フッター（センター揃え）
   ============================================ */
.site-footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  margin-top: 60px;
}

@media (prefers-color-scheme: dark) {
  .site-footer {
    background-color: #1A1A1A;
    border-top-color: var(--border-light);
  }
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
}

.footer-content {
  margin-bottom: 24px;
}

.footer-branding {
  margin-bottom: 20px;
}

.footer-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-navigation {
  margin-bottom: 20px;
}

.footer-navigation ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-navigation a {
  color: var(--main-orange);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-navigation a:hover {
  color: var(--accent-brown-dark);
}

.footer-credit {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.footer-credit p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ============================================
   レスポンシブ対応 - タブレット（iPad）
   ============================================ */
@media (max-width: 1024px) {
  .site-header-inner,
  .shop-content-wrapper,
  .site-footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .shop-grid-layout {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "custom-post"
      "cards-grid";
    gap: 40px;
  }
  
  .custom-post-content {
    padding: 24px;
  }
  
  .custom-post-title {
    font-size: 22px;
  }
}

/* ============================================
   レスポンシブ対応 - スマートフォン（iPhone 16 Pro）
   ============================================ */
@media (max-width: 768px) {
  .site-header-inner,
  .shop-content-wrapper,
  .site-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .shop-section-header {
    margin-bottom: 32px;
  }
  
  .shop-section-title {
    font-size: 28px;
  }
  
  /* グリッド - 1カラムに統一 */
  .shop-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  /* カスタム投稿タイプ */
  .custom-post-inner {
    border-radius: 12px;
  }
  
  .custom-post-thumbnail {
    aspect-ratio: 16 / 9;
  }
  
  .custom-post-content {
    padding: 20px;
  }
  
  .custom-post-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .custom-post-excerpt {
    font-size: 15px;
    margin-bottom: 16px;
  }
  
  /* カードグリッド - 2カラムキープ */
  .shop-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .card-content {
    padding: 16px;
  }
  
  .card-title {
    font-size: 16px;
  }
  
  .card-excerpt {
    font-size: 13px;
  }
  
  .card-link {
    font-size: 13px;
  }
}

/* ============================================
   レスポンシブ対応 - 小型スマートフォン（iPhone SE相当）
   ============================================ */
@media (max-width: 480px) {
  .site-header-inner,
  .shop-content-wrapper,
  .site-footer-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .shop-section-title {
    font-size: 24px;
  }
  
  .shop-section-title::after {
    width: 50px;
  }
  
  /* カードグリッド - 1カラムに変更 */
  .shop-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .custom-post-thumbnail {
    aspect-ratio: 16 / 10;
  }
  
  .custom-post-content {
    padding: 16px;
  }
  
  .custom-post-title {
    font-size: 18px;
  }
  
  .custom-post-excerpt {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .card-thumbnail {
    aspect-ratio: 1 / 1;
  }
  
  .card-content {
    padding: 14px;
  }
  
  .card-title {
    font-size: 15px;
    margin-bottom: 10px;
  }
  
  .card-excerpt {
    font-size: 12px;
    margin-bottom: 12px;
  }
}

/* ============================================
   ダークモード調整
   ============================================ */
@media (prefers-color-scheme: dark) {
  .shop-custom-post .custom-post-inner,
  .shop-card {
    background-color: #2A2A2A;
    border: 1px solid #3A3A3A;
  }
  
  .custom-post-thumbnail,
  .card-thumbnail {
    background-color: #1F1F1F;
  }
  
  .site-header {
    background-color: #1A1A1A;
  }
}

/* ============================================
   ユーティリティ - プレースホルダー
   ============================================ */
.custom-post-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--main-orange) 0%, var(--accent-orange-light) 100%);
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--main-orange) 0%, var(--accent-orange-light) 100%);
  color: white;
  font-weight: 600;
  font-size: 16px;
}

/* ============================================
   印刷スタイル
   ============================================ */
@media print {
  .shop-hero-slider,
  .hero-slider-nav,
  .site-header,
  .site-footer {
    display: none;
  }
}

/* ============================================
   アクセシビリティ - スクリーンリーダー対応
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}