/*
Theme Name: India
Theme URI:
Author: JW
Description: 南インドの魅力を伝えるWordPressブロックテーマ。サフラン、ターメリック、トロピカルグリーンの温かみのあるカラーパレットで、陽気で賑やかな雰囲気を演出します。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: india
*/

/* ---- South Indian Decorative Styles ---- */

/* Kolam-inspired decorative border for images */
.wp-block-image img {
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wp-block-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(230, 81, 0, 0.3);
}

/* Vibrant button animations */
.wp-block-button__link {
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.4);
}

/* Decorative top border on groups with background */
.wp-block-group[style*="background"] {
    border-top: 3px solid rgba(249, 168, 37, 0.4);
}

/* Card-style columns */
.wp-block-column {
    transition: transform 0.3s ease;
}
.wp-block-column:hover {
    transform: translateY(-4px);
}

/* Heading decoration */
h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #E65100, #F9A825);
    margin-top: 0.5rem;
}
h2[class*="has-text-align-center"]::after {
    margin-left: auto;
    margin-right: auto;
}

/* Separator styling */
.wp-block-separator {
    border-color: #F9A825 !important;
    opacity: 0.6;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Site title hover effect */
.wp-block-site-title a {
    text-decoration: none !important;
    transition: text-shadow 0.3s ease;
}
.wp-block-site-title a:hover {
    text-shadow: 0 0 15px rgba(249, 168, 37, 0.6);
}

/* Navigation link styling */
.wp-block-navigation a {
    text-decoration: none !important;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.wp-block-navigation a:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #E65100;
    color: #FFF3E0;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    background: #F9A825;
    color: #3E2723;
}

/* Mobile hamburger menu */
.wp-block-navigation__responsive-container-open {
    color: #FFF3E0 !important;
}
.wp-block-navigation__responsive-container.is-menu-open {
    background-color: #3E2723 !important;
    padding: 2rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    color: #F9A825 !important;
}
.wp-block-navigation__responsive-container.is-menu-open a {
    color: #FFF3E0 !important;
    font-size: 1.2rem;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}
