/*
Theme Name: AkiraCosme1
Description: AKIRAヘアツールブランド用のWordPressテーマ。モダンで洗練されたデザインとレスポンシブ対応。
Version: 1.0.0
Author: AkiraCosme
Text Domain: akiracosme1
*/

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tailwind CSS の基本ユーティリティクラス */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}

@media (min-width: 768px) {
    .container { max-width: 768px; }
}

@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

@media (min-width: 1536px) {
    .container { max-width: 1536px; }
}

/* Flexbox utilities */
.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.grid { display: grid; }

/* Flex direction */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

/* Flex wrap */
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

/* Justify content */
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

/* Align items */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

/* Spacing */
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Padding */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Margin */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* Width */
.w-full { width: 100%; }
.w-64 { width: 16rem; }
.w-12 { width: 3rem; }

/* Height */
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-screen { height: 100vh; }
.min-h-\[700px\] { min-height: 700px; }

/* Position */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-8 { bottom: 2rem; }
.right-8 { right: 2rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Z-index */
.z-50 { z-index: 50; }

/* Background */
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-900 { background-color: #111827; }
.bg-black { background-color: black; }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }

/* Text */
.text-white { color: white; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }

/* カスタムマージン */
.custom-margin-center {
    margin: 5px auto;
}

.custom-margin-responsive {
    margin-left: 50px;
}
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* Font weight */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-serif { font-family: 'Playfair Display', serif; }

/* Border */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-800 { border-color: #1f2937; }
.border-\[#FF5330\] { border-color: #FF5330; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Transform */
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }

/* Transition */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Hover effects */
.hover\:text-\[\#FF5330\]:hover { color: #FF5330; }
.hover\:bg-\[\#E64A2B\]:hover { background-color: #E64A2B; }
.hover\:bg-transparent:hover { background-color: transparent; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
}

@media (min-width: 768px) {
    .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
}

/* Custom colors */
.bg-\[\#FF5330\] { background-color: #FF5330; }
.text-\[\#FF5330\] { color: #FF5330; }
.border-\[\#FF5330\] { border-color: #FF5330; }
.hover\:text-\[\#FF5330\]:hover { color: #FF5330; }
.hover\:bg-\[\#E64A2B\]:hover { background-color: #E64A2B; }
.hover\:bg-\[\#FF5330\]:hover { background-color: #FF5330; }
.hover\:text-white:hover { color: white; }

/* Tracking */
.tracking-wider { letter-spacing: 0.05em; }

/* Leading */
.leading-tight { line-height: 1.25; }
.leading-relaxed { 
    line-height: 1.625; 
    padding: 10px; 
    text-align: left;
}

@media (max-width: 767px) {
    .leading-relaxed {
        padding-left: 0;
        padding-right: 0;
    }
}

/* カスタムスタイル */
.custom-padding-left {
    padding: 5px;
    text-align: left;
}

/* Max width */
.max-w-2xl { max-width: 42rem; }
.max-w-none { max-width: none; }

/* Object fit */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }

/* Aspect ratio */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-w-16 { --tw-aspect-w: 16; }
.aspect-h-9 { --tw-aspect-h: 9; }
.aspect-w-16.aspect-h-9 { padding-bottom: calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%); }

/* Filter */
.filter { filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-drop-shadow) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia); }
.invert { --tw-invert: invert(1); }
.brightness-0 { --tw-brightness: brightness(0); }

/* Backdrop filter */
.backdrop-blur { backdrop-filter: blur(8px); }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-10 { opacity: 0.1; }
.opacity-100 { opacity: 1; }

/* Pointer events */
.pointer-events-none { pointer-events: none; }

/* Antialiased */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* カスタムスタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #F8F8F8;
    color: #1a1a1a;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* アニメーション用の基本設定 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ヘッダーの背景がスクロールで変わる */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

/* ヒーローセクションのテキストアニメーション */
.hero-text-line {
    opacity: 0;
    transform: translateY(20px);
    animation: text-reveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes text-reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* モバイルメニュー */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
.mobile-menu.is-open {
    transform: translateX(0);
}

/* --- Product Slider Styles --- */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(var(--animation-distance, -2040px)); }
}

.slider {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
    mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

.slider-track {
    display: flex;
    width: calc(var(--total-width, 2040px) * 2);
    animation: scroll var(--animation-duration, 40s) linear infinite;
}

.slider:hover .slider-track {
    animation-play-state: paused;
}

.slide {
    width: var(--slide-width, 340px);
    flex-shrink: 0;
    padding: 0 20px;
}

/* WordPress固有のスタイル */
.wp-block-image {
    margin: 0;
}

.alignwide {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-text-line {
        font-size: 2rem;
    }
    
    .slide {
        width: 280px;
        padding: 0 10px;
    }
    
    .slider-track {
        width: calc(var(--total-width, 1680px) * 2);
    }
}

@media (max-width: 480px) {
    .hero-text-line {
        font-size: 1.5rem;
    }
    
    .slide {
        width: 240px;
        padding: 0 5px;
    }
    
    .slider-track {
        width: calc(var(--total-width, 1440px) * 2);
    }
}

/* Custom responsive margin */
@media (max-width: 1023px) {
    .custom-margin-responsive {
        margin-left: 0 !important;
        margin-top: 50px !important;
    }
}

/* --- Opening Animation Styles --- */
.opening-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle, #ff7e63, #FF5330);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
    overflow: hidden;
}

.opening-animation.fade-out {
    opacity: 0;
    visibility: hidden;
}

.opening-logo {
    width: 200px;
    height: auto;
    opacity: 0;
    transform: scale(0.3);
    animation: logo-smooth-appear 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

@keyframes logo-smooth-appear {
    0% {
        opacity: 0;
        transform: scale(0.3);
        filter: blur(10px) drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
        filter: blur(2px) drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px) drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }
}

/* グラデーション背景のアニメーション */
.opening-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, 
        rgba(255, 126, 99, 0.9) 0%, 
        rgba(255, 83, 48, 0.8) 50%, 
        rgba(255, 83, 48, 0.9) 100%);
    animation: gradient-shift 2s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* ローディングスピナー（オプション） */
.opening-spinner {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    animation-delay: 0.8s;
    animation-fill-mode: forwards;
}

@keyframes spin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .opening-logo {
        width: 150px;
    }
    
    .opening-spinner {
        bottom: 60px;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .opening-logo {
        width: 120px;
    }
    
    .opening-spinner {
        bottom: 40px;
        width: 25px;
        height: 25px;
    }
}

/* パララックス効果 */
.hero-parallax {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 120%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
}

/* モバイルデバイスでのパララックス効果の最適化 */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
        top: 0;
        height: 100%;
    }
}