/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --accent-color: #333333;
    --border-color: #e5e5e5;
    --hover-bg: #f5f5f5;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Header */
header {
    background: var(--bg-color);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
}

.header-content h1 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.header-content h1 a {
    color: var(--text-primary);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-left: auto;
    justify-content: flex-end;
    align-self: flex-end;
}

.global-nav {
    display: flex;
    gap: 2rem;
}

.global-nav a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
}

.global-nav a:hover,
.global-nav a.active {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links a {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
}

.social-links a:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.hero-message {
    margin-top: 3rem;
    text-align: center;
}

.hero-message p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Hero CTA */
.hero-eyecatch {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.hero-cta-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--text-primary);
    color: var(--bg-color) !important;
    font-size: 1rem;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-cta-primary:hover {
    opacity: 0.8;
}

.hero-cta-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--text-primary) !important;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.hero-cta-secondary:hover {
    background-color: var(--hover-bg);
    opacity: 1;
}

/* Trust Section */
.trust-section {
    padding: 2rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.trust-label {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
}

.trust-badge {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    white-space: nowrap;
    text-decoration: none;
}
a.trust-badge:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

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

.services-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    margin-top: -1.5rem;
}

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

.service-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.service-card--link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.service-card--consult {
    background-color: var(--hover-bg);
    border-color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-examples {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.service-examples li {
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.service-examples li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--text-light);
}

.service-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 1rem;
}

.service-example-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-bottom: 0.5rem;
}

.service-cta {
    display: inline-block;
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary) !important;
}

.services-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Price Section */
.price-section {
    padding: 6rem 0;
}

.price-lead {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    margin-top: -1.5rem;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.price-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.price-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.price-card--consult {
    background-color: var(--hover-bg);
    border-color: var(--text-primary);
}

.price-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

.price-amount--consult {
    font-size: 1.5rem;
}

.price-unit {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 0.2rem;
}

.price-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

.price-example {
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.price-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    margin-top: auto;
}

/* Target Section */
.target-section {
    padding: 6rem 0;
    background-color: var(--hover-bg);
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.target-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    padding: 0.5rem 0;
}

.target-check {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Flow Section */
.flow-section {
    padding: 6rem 0;
    text-align: center;
}

.flow-lead {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    margin-top: -1.5rem;
}

.flow-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.flow-step {
    flex: 1;
    min-width: 180px;
    max-width: 240px;
    text-align: left;
    padding: 1.5rem;
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--text-light);
    align-self: center;
    padding: 0 0.5rem;
    flex-shrink: 0;
}

.flow-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--border-color);
    line-height: 1;
    margin-bottom: 0.8rem;
    font-family: 'Outfit', sans-serif;
}

.flow-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.flow-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.flow-cta {
    padding-top: 1rem;
}

.flow-cta p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Contact Note */
.contact-note {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Section */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Work Item Card */
.work-item {
    display: block;
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-4px);
}

.work-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.work-item p {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.work-item small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Pickup Section */
.pickup-section {
    padding: 0 0 6rem;
}

.pickup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.pickup-item {
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.pickup-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    opacity: 1;
}

.pickup-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--hover-bg);
}

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

.pickup-item:hover .pickup-image img {
    transform: scale(1.05);
}

.pickup-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pickup-content h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.pickup-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.pickup-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--text-primary);
    color: var(--bg-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.pickup-item:hover .pickup-button {
    background-color: var(--text-secondary);
    transform: translateX(4px);
}

/* Service Section */
.service-section {
    padding: 6rem 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.service-item {
    padding: 2rem 0;
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-avatar img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.about-hero-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.about-hero-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.about-block h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.about-block p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 2rem;
}

.contact-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--text-primary);
    color: var(--bg-color);
    font-size: 0.95rem;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

.contact-button:hover {
    opacity: 0.8;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 400;
}

.required {
    color: #f44336;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-color);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Utility */
hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--text-secondary);
}

footer a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-row {
        width: 100%;
        justify-content: flex-end;
    }

    main {
        padding: 0 1.5rem;
    }

    .hero-section {
        padding: 4rem 0 3rem;
    }

    section {
        padding: 4rem 0;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .pickup-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        text-align: center;
        max-width: 320px;
    }

    .trust-badges {
        gap: 0.6rem;
    }

    .trust-badge {
        font-size: 0.8rem;
    }

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

    .target-section {
        margin: 0 -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

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

    .flow-steps {
        flex-direction: column;
        align-items: center;
    }

    .flow-arrow {
        transform: rotate(90deg);
        padding: 0.3rem 0;
    }

    .flow-step {
        max-width: 100%;
        width: 100%;
    }

    .contact-note {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
        padding-left: 1rem;
    }
}

/* Video Responsive Styles */
video {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    display: block;
}

.work-detail video {
    max-width: 100%;
    width: 100% !important;
    height: auto;
    display: block;
}

/* All iframes should be responsive */
iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

.work-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
}

@media (max-width: 768px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    main {
        padding: 0 1.5rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }

    section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        max-width: 100% !important;
        width: 100% !important;
    }

    video,
    video#responsiveVideo,
    main video,
    section video,
    .work-detail video {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    iframe,
    iframe[title*="YouTube"],
    .work-item iframe,
    main iframe,
    section iframe,
    .work-detail iframe {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .work-detail {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }
}