/* 明朝体・縦書きデザイン - selecthome5 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #1a1a1a;
    --white: #ffffff;
    --gray-light: #f5f8fa;
    --gray-medium: #e0e8ef;
    --gray-dark: #5a6978;
    --primary: #1a5f7a;
    --secondary: #2d8bba;
    --accent: #57a6c7;
    --gradient-start: #1a5f7a;
    --gradient-end: #2d8bba;
    --gold: #c9b037;
    --washi: #f5f9fc;
    --sumi: #1a1a1a;
}

body {
    font-family: 'Noto Serif JP', 'Noto Sans JP', serif;
    color: var(--black);
    line-height: 1.6;
    background: var(--washi);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(26,95,122,0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(45,139,186,0.03) 0%, transparent 50%),
                      radial-gradient(circle at 40% 40%, rgba(87,166,199,0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* ミニマルヘッダー */
.minimal-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 249, 252, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 25px 60px;
    box-shadow: 0 1px 0 rgba(26,95,122,0.1);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(26,95,122,0.1);
}

.minimal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.2em;
    font-family: 'Noto Serif JP', serif;
    color: var(--primary);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--black);
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s;
    position: relative;
    font-family: 'Noto Sans JP', sans-serif;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
    position: relative;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
    display: block;
    position: relative;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -12.5px;
    margin-top: -1px;
}

.menu-toggle.active span:nth-child(2) {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -12.5px;
    margin-top: -1px;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 25px;
}

.nav-cta:hover {
    background: var(--secondary);
    opacity: 1 !important;
}

.nav-cta:hover::after {
    width: 0;
}

/* ヒーローセクションはhero.cssで定義 */

/* セクション共通 */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    margin-bottom: 50px;
    position: relative;
    text-align: center;
}

/* 各セクションの間隔 - ここで一括調整 */
.about-minimal,
.service-minimal,
.works-minimal {
    padding: 100px 0;
}

.contact-minimal {
    padding: 100px 0 120px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 15px;
    font-family: 'Noto Serif JP', serif;
    display: inline-block;
    position: relative;
}

.header-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 2px;
}

/* アバウト */
.about-minimal {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 26px;
    margin-bottom: 25px;
    line-height: 1.7;
    font-weight: 400;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.03em;
    color: var(--primary);
}

.about-text p {
    font-size: 15px;
    line-height: 2;
    color: var(--gray-dark);
    margin-bottom: 35px;
    font-family: 'Noto Sans JP', sans-serif;
}

.company-info-minimal {
    display: flex;
    gap: 30px;
    background: var(--gray-light);
    padding: 25px 30px;
    border-radius: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-value {
    font-size: 14px;
    font-weight: 400;
    font-family: 'Noto Serif JP', serif;
    color: var(--black);
}

.about-image {
    position: relative;
}

.image-frame {
    width: 100%;
    height: 420px;
    background: var(--gray-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
}

.image-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* サービス */
.service-minimal {
    background: linear-gradient(180deg, var(--gray-light) 0%, var(--washi) 100%);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 45px 35px;
    background: var(--white);
    border-radius: 20px;
    transition: all 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(26,95,122,0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
}

.card-number {
    font-size: 32px;
    font-weight: 300;
    color: var(--primary);
    opacity: 0.6;
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.1em;
}

.service-card h3 {
    font-size: 19px;
    margin-bottom: 15px;
    font-weight: 500;
    font-family: 'Noto Serif JP', serif;
    color: var(--black);
}

.service-card p {
    font-size: 14px;
    color: var(--gray-dark);
    line-height: 1.9;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 実績 */
.works-minimal {
    background: var(--white);
}

.works-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.work-item {
    cursor: pointer;
    transition: all 0.4s ease;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26,95,122,0.12);
}

.work-image {
    width: 100%;
    height: 220px;
    background: var(--gray-light);
    overflow: hidden;
    position: relative;
}

.work-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(26,95,122,0.6) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.work-item:hover .work-image::before {
    opacity: 1;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.08);
}

.work-info {
    padding: 22px 25px;
}

.work-info h3 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: 'Noto Serif JP', serif;
    color: var(--black);
}

.work-info p {
    font-size: 13px;
    color: var(--gray-dark);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
}

/* コンタクト */
.contact-minimal {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
}

.contact-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.contact-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-box h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 400;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.08em;
    color: var(--white);
}

.contact-box > p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
    font-family: 'Noto Sans JP', sans-serif;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-method {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-method h3 {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 500;
    font-family: 'Noto Serif JP', serif;
    color: rgba(255,255,255,0.9);
}

.contact-method p {
    color: var(--white);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    line-height: 1.8;
}

.contact-number {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 10px;
    color: var(--white);
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
}

.contact-hours {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-family: 'Noto Sans JP', sans-serif;
}

.btn-contact {
    display: inline-block;
    padding: 18px 50px;
    margin-bottom: 40px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.4s;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-contact:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* フッター */
.footer-minimal {
    background: var(--black);
    color: var(--white);
    padding: 70px 40px 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 400;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.08em;
}

.footer-info p {
    font-size: 14px;
    line-height: 2;
    opacity: 0.75;
    font-family: 'Noto Sans JP', sans-serif;
}

.footer-copyright {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright p {
    font-size: 12px;
    opacity: 0.5;
    font-family: 'Noto Sans JP', sans-serif;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .nav-brand {
        font-size: 14px;
        letter-spacing: 0.1em;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 18px;
        padding: 10px 20px;
    }
    
    .nav-menu .nav-cta {
        padding: 12px 30px;
        margin-top: 10px;
    }

    .menu-toggle {
        display: flex;
    }
    
    /* スライダーの矢印を非表示 */
    .slide-nav,
    .nav-btn {
        display: none;
    }
    
    .hero-content {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        flex-direction: column;
        align-items: center;
        padding: 60px 20px;
        width: 100%;
    }
    
    .hero-text-vertical {
        writing-mode: horizontal-tb;
        text-align: center;
    }
    
    .hero-title-vertical {
        flex-direction: row-reverse;
        gap: 20px;
    }
    
    .title-main {
        font-size: 32px;
        letter-spacing: 0.1em;
    }
    
    .hero-desc-vertical {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .about-grid,
    .service-cards,
    .works-list,
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        padding: 60px 20px;
    }
}

/* ページヒーロー - 共通スタイル */
.page-hero {
    margin-top: 50px;
    height: 300px;
    background: var(--white);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-medium);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 2;
}

.page-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    text-align: left;
    z-index: 3;
    position: relative;
}

.page-title {
    font-size: 38px;
    font-weight: 500;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    color: var(--black);
}

.page-subtitle {
    font-size: 13px;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-transform: uppercase;
}

/* ページヒーロー レスポンシブ */
@media (max-width: 768px) {
    .page-hero {
        height: 200px;
    }

    .page-hero::before,
    .page-hero::after {
        width: 40%;
        clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    }

    .page-title {
        font-size: 28px;
    }

    .page-hero-content {
        padding: 0 20px;
    }
}

/* Contact Form 7 スタイル */
.wpcf7 {
    margin: 0;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.wpcf7-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.wpcf7-form label {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--black);
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    padding: 16px 22px;
    border: 2px solid var(--gray-medium);
    background: var(--white);
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
    border-radius: 12px;
    color: var(--black);
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.wpcf7-form textarea {
    resize: vertical;
    min-height: 140px;
}

.wpcf7-form input[type="submit"] {
    align-self: center;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 50px;
    font-family: 'Noto Sans JP', sans-serif;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.25);
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(26, 95, 122, 0.35);
}

.wpcf7-not-valid-tip {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 8px;
    font-family: 'Noto Sans JP', sans-serif;
}

.wpcf7-response-output {
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
}

.wpcf7-mail-sent-ok {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.wpcf7-spam-blocked {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffcc02;
}

/* Contact Form Section Styling */
.contact-form-section {
    padding: 80px 0;
    background: var(--gray-light);
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 60px;
}

.contact-intro h2 {
    font-size: 28px;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.1em;
}

.contact-intro p {
    font-size: 16px;
    color: var(--gray-dark);
    line-height: 1.8;
    font-family: 'Noto Sans JP', sans-serif;
}

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto;
}

/* Contact Info Section */
.contact-info-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.contact-info-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--gray-light);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.contact-info-item h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.contact-email a {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-email a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.contact-phone a {
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
    font-family: 'Noto Sans JP', sans-serif;
}

.contact-phone a:hover {
    color: var(--primary);
}

.contact-hours,
.contact-address,
.contact-note {
    font-size: 14px;
    color: var(--gray-dark);
    line-height: 1.6;
    font-family: 'Noto Sans JP', sans-serif;
}

.contact-address {
    line-height: 1.8;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 20px;
    }

    .contact-form {
        padding: 30px 15px;
    }

    .contact-form-section {
        overflow-x: hidden;
    }

    .wpcf7 {
        width: 100%;
        max-width: 100%;
    }

    .wpcf7-form {
        width: 100%;
        max-width: 100%;
    }

    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form select,
    .wpcf7-form textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 14px 16px;
        font-size: 16px;
    }

    .wpcf7-form input[type="submit"] {
        width: 100%;
        max-width: 100%;
        padding: 16px 30px;
        min-width: auto;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-item {
        padding: 30px 20px;
    }

    .contact-phone a {
        font-size: 20px;
    }
}

/* ========================================
   インタラクティブアニメーション
   ======================================== */


/* スクロールプログレスバー */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 100000;
    transition: width 0.1s ease;
}

/* カスタムカーソル */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.custom-cursor.cursor-hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
    background: rgba(26, 95, 122, 0.1);
}

.cursor-dot.cursor-hover {
    transform: translate(-50%, -50%) scale(0);
}

/* モバイルではカスタムカーソル非表示 */
@media (max-width: 1024px) {
    .custom-cursor,
    .cursor-dot {
        display: none;
    }
}

/* ボタンリップルエフェクト */
.btn-wa-primary,
.btn-wa-secondary,
.btn-contact,
.nav-cta {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ホバー時の3D効果用 */
.service-card,
.work-item,
.contact-method {
    transform-style: preserve-3d;
    will-change: transform;
}

/* 画像のオーバーレイエフェクト */
.work-image,
.about-image .image-frame {
    position: relative;
    overflow: hidden;
}

.work-image::after,
.about-image .image-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.work-image:hover::after,
.about-image .image-frame:hover::after {
    left: 100%;
}

/* セクションヘッダーのアンダーライン アニメーション */
.header-line {
    position: relative;
    overflow: hidden;
}

.header-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* カードのグラデーションボーダー */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* フローティングアニメーション */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-icon {
    animation: float 3s ease-in-out infinite;
}

.service-card:nth-child(2) .card-icon {
    animation-delay: 0.5s;
}

.service-card:nth-child(3) .card-icon {
    animation-delay: 1s;
}

/* テキストグラデーション */
.section-header h2 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ボタンシャインエフェクト */
.btn-contact::before,
.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-contact:hover::before,
.nav-cta:hover::before {
    left: 100%;
}

/* スクロール時のフェードイン（JSと連携） */
[data-animate] {
    will-change: opacity, transform;
}

/* パルスアニメーション（CTAボタン用） */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(26, 95, 122, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(26, 95, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 95, 122, 0); }
}

.btn-wa-primary {
    animation: pulse 2s infinite;
}

/* 背景パターンアニメーション */
.contact-minimal::before {
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* スムーズなトランジション */
* {
    -webkit-tap-highlight-color: transparent;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}