/*
Theme Name: BlankSlate Child
Template: blankslate
*/

/* ========================================
   CSS Variables (Organic Storytelling Theme)
   ======================================== */

:root {
    /* Primary: Terracotta accent */
    --primary: #C97B63;
    --primary-foreground: #FEFDFB;
    
    /* Base colors: Off-white and warm grey */
    --background: #F8F6F3;
    --foreground: #4A4A48;
    
    /* Card: Slightly warmer white */
    --card: #FCFBF9;
    --card-foreground: #4A4A48;
    --color-card-rgb: 252, 251, 249;
    
    /* Muted: Warm neutral */
    --muted: #EBE9E6;
    --muted-foreground: #7B7977;
    
    /* Border */
    --border: #D9D7D4;
    
    /* Fonts */
    --font-heading: 'EB Garamond', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    
    /* Border radius */
    --radius: 1.2rem;
}

/* ========================================
   Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* ========================================
   Container
   ======================================== */

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
        max-width: 1280px;
    }
}

/* ========================================
   Utility Classes (Tailwind-like)
   ======================================== */

.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-8 { bottom: 2rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.flex { display: flex; }
.hidden { display: none; }
.grid { display: grid; }
.inline-block { display: inline-block; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.flex-col { flex-direction: column; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-8 { padding-top: 2rem; }

.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.w-6 { width: 1.5rem; }
.w-24 { width: 6rem; }
.h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; }
.h-32 { height: 8rem; }
.h-px { height: 1px; }
.h-0\.5 { height: 0.125rem; }
.h-full { height: 100%; }

.min-h-screen { min-height: 100vh; }

.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

.overflow-hidden { overflow: hidden; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.border-t { border-top-width: 1px; }
.border-border { border-color: var(--border); }

.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }

.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; }
.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; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-foreground { color: var(--foreground); }
.text-primary { color: var(--primary); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-foreground\/70 { color: rgba(74, 74, 72, 0.7); }
.text-foreground\/80 { color: rgba(74, 74, 72, 0.8); }
.text-foreground\/90 { color: rgba(74, 74, 72, 0.9); }
.text-foreground\/40 { color: rgba(74, 74, 72, 0.4); }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.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); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.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; 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; }

.cursor-pointer { cursor: pointer; }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* About icon complete fix */
.bg-card .flex-shrink-0 {
    width:48px !important;
    height:48px !important;
    min-width:48px;
    min-height:48px;
    border-radius:9999px !important;
    flex:none;
}

.bg-card ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.5rem;
    margin-left: 0;
}

/* ========================================
   Organic Texture Overlay
   ======================================== */

.texture-overlay {
    position: relative;
}

.texture-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   Handwritten Underline Effect
   ======================================== */

.handwritten-underline {
    position: relative;
    display: inline-block;
}

.handwritten-underline::after {
    content: '';
    position: absolute;
    left: -2%;
    bottom: -4px;
    width: 104%;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='8' viewBox='0 0 100 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4 Q25 2 50 4 T100 4' stroke='%23C97B63' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.6;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fade-up 0.8s ease-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* ========================================
   Hover Effects
   ======================================== */

.hover\:text-foreground:hover {
    color: var(--foreground);
}

.hover\:text-primary:hover {
    color: var(--primary);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:-translate-y-2:hover {
    transform: translateY(-0.5rem);
}

.group:hover .group-hover\:translate-x-2 {
    transform: translateX(0.5rem);
}

/* ========================================
   Responsive Display Utilities
   ======================================== */

/* md (768px以上) */
@media (min-width:768px){

    .md\:hidden { display:none; }

    .md\:block { display:block; }
    .md\:inline { display:inline; }
    .md\:inline-block { display:inline-block; }
    .md\:flex { display:flex; }
}

/* sm (640px以上) */
@media (min-width:640px){
    .sm\:hidden { display:none; }
}

/* ========================================
   Custom Styles for WordPress
   ======================================== */

/* Hero Section Background */
.hero-bg {
    background-size: cover;
    background-position: center;
}

/* Navigation Card Gradient */
.nav-card-gradient {
    background: linear-gradient(135deg, #F8F6F3 0%, #FCFBF9 100%);
}

/* CTA Arrow fix */
.nav-card-gradient svg{
    width: 1rem !important;
    height: 1rem !important;
    flex-shrink: 0;
}

/* Promise Box Background */
.promise-box-bg {
    background-color: var(--card);
}

/* Translate utilities */
.-translate-x-1\/2 {
    transform: translateX(-50%);
}

/* Backdrop blur (fallback for older browsers) */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Additional spacing */
.-bottom-1 {
    bottom: -0.25rem;
}

/* Flex utilities */
.ml-2 {
    margin-left: 0.5rem;
}

/* SVG stroke */
svg {
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 画像の白飛び防止 */
.mix-blend-overlay {
    mix-blend-mode: normal !important;
    opacity: .12; /* ほんのり色だけ残す */
}

/* 画像の枠の高さを固定 */
.service-image {
    height:24rem;
}

/* imgは枠にフィットさせる */
.service-img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* ===== Service section block spacing ===== */
.services-list > * + *{
    margin-top:6rem;
}

/* スマホは少し詰める */
@media (max-width:768px) {
    .services-list > * + *{
        margin-top:4rem;
    }
}

/* ===== スマホ（縦並び）余白 ===== */
.service-text{
    margin-top:2rem;
}

/* ===== PC（横並び）では無効化 ===== */
@media (min-width:1024px) {
    .service-text{
        margin-top:0;
        padding-left:2.5rem;
    }

    .lg\:flex-row-reverse .service-text {
        padding-left:0;
        padding-right:2.5rem;
    }
}

/* ===== Header link reset ===== */
#site-navigation a{
    text-decoration:none;
}

#site-navigation a:hover {
    text-decoration:none;
}

/* ===== PC/SP 切り替え ===== */

/* SPのみ表示 */
.mobile-menu-button {
    display:flex;
}

/* PCでは強制的に消す */
@media (min-width:768px) {
    .mobile-menu-button {
        display:none !important;
    }
}

/* PCでは絶対に出さない */
@media (min-width:768px) {
    #mobile-menu {
        display:none !important;
    }
}

/* PC用メニュー */
.desktop-nav {
    display:none;
}

@media (min-width:768px) {
    .desktop-nav {
        display:flex;
    }
}

/* ハンバーガーボタン */
.menu-button {
    width: 42px;
    height: 42px;
    position: relative;
    display:flex;
    align-items:center;
    justify-content:center;
}

.menu-button span {
    position:absolute;
    width:22px;
    height:2px;
    background:currentColor;
    border-radius:2px;
    transition:all .35s cubic-bezier(.4,0,.2,1);
}

/* 三本線位置 */
.menu-button span:nth-child(1){ transform:translateY(-7px); }
.menu-button span:nth-child(2){ opacity:1; }
.menu-button span:nth-child(3){ transform:translateY(7px); }

/* 開いたとき × */
.menu-button.active span:nth-child(1) {
    transform:rotate(45deg);
}
.menu-button.active span:nth-child(2) {
    opacity:0;
}
.menu-button.active span:nth-child(3) {
    transform:rotate(-45deg);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    background: transparent;

    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
	transition: transform .2s ease, opacity .2s ease;
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.min-h-50vh {
    min-height:50vh;
}

.pt-32 { padding-top: 8rem; }
.pb-20 { padding-bottom: 5rem; }

#site-navigation {
	position: fixed;
    top: env(safe-area-inset-top);
    left: 0;
    right: 0;
    z-index: 50;
    min-height: 56px;
    transition: background-color .3s ease,
                box-shadow .3s ease;
}

#site-navigation.scrolled {
    background: rgba(252, 251, 249, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.35em 1.5rem 0.8rem;
}

/* デスクトップ用 */
.hero-bg {
    background-image:
        linear-gradient(rgba(248, 246, 243, 0.85),
                        rgba(248, 246, 243, 0.85)),
        url('http://story-gr.com/wp-content/uploads/2026/02/STORY-LLC-eye-catch.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* モバイル用 */
@media (max-width: 768px) {
    .hero-bg {
        background-image:
            linear-gradient(rgba(248, 246, 243, 0.85),
                            rgba(248, 246, 243, 0.85)),
            url('http://story-gr.com/wp-content/uploads/2026/03/STORY-LLC-eye-catch-sp.png');

        background-position: center top;
    }
}
