/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* 見出しやタイトルには丸ゴシックを使用 */
h1, h2, h3, h4, h5, h6,
.hero-title, .hero-subtitle,
.section-title, .section-heading,
.service-title, .logo,
.btn {
    font-family: 'M PLUS Rounded 1c', 'Rounded Mplus 1c', 'Hiragino Maru Gothic ProN', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.1) 0%, rgba(173, 216, 230, 0.1) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.2), 0 2px 10px rgba(135, 206, 250, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #ff69b4, #87ceeb) 1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
    transition: transform 0.3s ease;
    display: inline-block;
}

.logo a:hover {
    transform: scale(1.1) rotate(-2deg);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    font-weight: 700;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff69b4, #87ceeb);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-list a:hover {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(135, 206, 250, 0.1));
    transform: translateY(-2px);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 80%;
}

.nav-list a.active {
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(135, 206, 250, 0.1));
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #ff69b4, #87ceeb) 1;
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, #ff69b4, #87ceeb);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: url('../images/25470393_s.jpg') center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: fadeIn 1s ease-in;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(173, 216, 230, 0.3) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow:
        3px 3px 0px rgba(255, 105, 180, 0.8),
        -1px -1px 0px rgba(135, 206, 250, 0.8),
        2px 2px 20px rgba(255, 255, 255, 0.5);
    animation: slideInDown 1s ease-out 0.3s both, float 3s ease-in-out infinite;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow:
        2px 2px 0px rgba(255, 182, 193, 0.8),
        -1px -1px 0px rgba(173, 216, 230, 0.8),
        1px 1px 15px rgba(255, 255, 255, 0.5);
    animation: slideInUp 1s ease-out 0.6s both, float 3s ease-in-out 0.5s infinite;
    letter-spacing: 0.2em;
}

/* Sections */
.intro-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.intro-image-wrapper {
    display: flex;
    justify-content: center;
}

.placeholder-image {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border: 2px dashed #999;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

.intro-image-wrapper .placeholder-image {
    width: 600px;
    height: 300px;
}

.divider {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 3rem 0;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    animation: fadeIn 1s ease-in;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.service-card:hover {
    transform: translateY(-15px) rotate(2deg);
}

.service-title {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    letter-spacing: 0.06em;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 0 10px;
    transition: all 0.3s ease;
}

.service-card:hover .service-title {
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

.service-divider {
    border: none;
    border-top: 1px solid #ddd;
    width: 120px;
    margin: 0 auto 1rem;
}

.service-image {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3), 0 4px 15px rgba(135, 206, 250, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #ff69b4, #87ceeb) border-box;
}

.service-card:hover .service-image {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.5), 0 10px 30px rgba(135, 206, 250, 0.5);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
    filter: contrast(1.05) brightness(1.02);
}

.button-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff1493, #4682b4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

/* About Section */
.about-section {
    padding: 4rem 0;
}

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

.about-image .placeholder-image {
    width: 100%;
    height: 400px;
}

.about-image img {
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
    filter: contrast(1.05) brightness(1.02);
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

/* Contact CTA */
.contact-cta {
    position: relative;
    height: 300px;
    background:
        linear-gradient(135deg, rgba(161, 140, 209, 0.7) 0%, rgba(251, 194, 235, 0.7) 100%),
        url('../images/24176830_m.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-cta-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.contact-cta-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.contact-cta-title {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow:
        3px 3px 0px rgba(0, 0, 0, 0.3),
        -1px -1px 0px rgba(255, 255, 255, 0.3),
        2px 2px 20px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    animation: float 3s ease-in-out infinite;
}

/* Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Page Header (for subpages) */
.page-header {
    background: linear-gradient(135deg, #ff69b4 0%, #87ceeb 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow:
        3px 3px 0px rgba(0, 0, 0, 0.2),
        -1px -1px 0px rgba(255, 255, 255, 0.3),
        2px 2px 20px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.2em;
    position: relative;
    z-index: 1;
}

/* Content Section (for subpages) */
.content-section {
    padding: 4rem 0;
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Service Detail */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.service-detail:nth-child(even) .service-detail-image {
    order: 2;
}

.service-detail:nth-child(even) .service-detail-content {
    order: 1;
}

.service-detail-image .placeholder-image {
    width: 100%;
    height: 400px;
}

.service-detail-image img {
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
    filter: contrast(1.05) brightness(1.02);
}

.service-detail-content h2 {
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.service-detail-content p {
    line-height: 1.8;
    color: #555;
}

/* Company Info Table */
.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.company-table table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.company-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
    width: 30%;
}

.company-table td {
    color: #555;
}

.company-table ul {
    list-style-position: inside;
    padding-left: 0;
}

.company-table li {
    margin-bottom: 0.5rem;
}

/* Company Message */
.company-message {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.1), rgba(173, 216, 230, 0.1));
    border-radius: 20px;
    border: 3px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.15);
    position: relative;
}

.company-message::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.company-message h2 {
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.company-message p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.required-badge {
    display: inline-block;
    background-color: #dc3545;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #215564;
    box-shadow: 0 0 0 3px rgba(33, 85, 100, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: start;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label {
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.form-note {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.25rem;
}

.submit-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    padding: 1rem 3rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-submit:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Contact Info */
.contact-info-section {
    background-color: #f9f9f9;
    padding: 4rem 0;
}

.contact-info-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.contact-phone {
    text-align: center;
}

.phone-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.phone-hours {
    color: #666;
}

/* CTA Section */
.cta-section {
    background-color: #f9f9f9;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.cta-section p {
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(255, 182, 193, 0.95) 0%, rgba(173, 216, 230, 0.95) 100%);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(255, 105, 180, 0.3), 0 2px 10px rgba(135, 206, 250, 0.3);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .nav.active {
        max-height: 300px;
    }

    .nav-list {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-list a {
        display: block;
        padding: 1rem 20px;
        font-weight: 700;
        color: #fff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }

    .nav-list a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(10px);
    }

    .nav-list a.active {
        background: rgba(255, 255, 255, 0.3);
        font-weight: 900;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-image {
        width: 100%;
        max-width: 300px;
    }

    .about-grid,
    .service-detail {
        grid-template-columns: 1fr;
    }

    .service-detail:nth-child(even) .service-detail-image,
    .service-detail:nth-child(even) .service-detail-content {
        order: 0;
    }

    .intro-image-wrapper .placeholder-image {
        width: 100%;
        max-width: 600px;
    }

    .company-table th {
        width: 35%;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .company-table th,
    .company-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll animations class */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse animation for CTAs */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

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

.btn-primary {
    animation: pulse 2s infinite ease-in-out;
}

.btn-primary:hover {
    animation: bounce 0.5s ease;
}
