/*
Theme Name: 4craft Custom Theme
Theme URI: https://4craft.jp/
Author: あなたの名前 or 4craft
Author URI: https://4craft.jp/
Description: 4craft用にカスタマイズしたシンプルWordPressテーマ
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

/* カスタムCSS */
:root {
    --primary: #ffea3b;
    --secondary: #373832;
    --light-gray: #f8f8f8;
    --medium-gray: #e0e0e0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--secondary);
    overflow-x: hidden;
}

/* shadcn/uiスタイルの模倣 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    filter: brightness(0.9);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    filter: brightness(1.2);
}

.btn-outline {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: white;
}

.card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ヘッダーのスタイル */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* モバイルメニュー */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--secondary);
    z-index: 200;
    transition: right 0.3s ease;
    padding: 2rem;
    color: white;
}

.mobile-menu.open {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

/* アニメーション関連 */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* サービスセクションのスタイル */
.service-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(55, 56, 50, 0.9), rgba(55, 56, 50, 0.6) 70%, transparent);
    padding: 2rem 1.5rem;
    color: white;
    transform: translateY(70%);
    transition: transform 0.3s ease;
}

.service-box:hover .service-overlay {
    transform: translateY(0);
}

.service-icon {
    background-color: var(--primary);
    color: var(--secondary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1rem;
}

/* コンタクトフォーム */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--secondary);
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 234, 59, 0.25);
}

/* ユーティリティクラス */
.section-padding {
    padding: 6rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

/* フッター */
.footer {
    background-color: var(--secondary);
    color: white;
}

.footer-link {
    color: #f0f0f0;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
}

/* パララックス効果 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}