* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #f5f2ed;
    --bg-secondary: #ebe7e0;
    --text-primary: #2c3e50;
    --text-secondary: #5a6a7a;
    --accent-blue: #00a4d4;
    --navy: #1e3044;
    --navy-light: #2a4055;
    --border-color: #d5d0c8;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 14px;
}

/* Header */
header {
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-primary);
}

.logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 0;
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
    background-color: #BEE9E8;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right top;
}

.hero-overlay {
    display: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-left {
    flex: 0 0 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: flex-start;
    margin-top: 100px;
}

.voice-image {
    margin-bottom: 8px;
}

.voice-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.voice-samples {
    background-color: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.voice-title {
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.voice-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.voice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background-color: var(--bg-primary);
    border-radius: 6px;
}

.voice-item.has-youtube {
    flex-wrap: nowrap;
}

.voice-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.voice-info {
    flex: 1;
    min-width: 0;
}

.voice-label {
    font-size: 12px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

.voice-time {
    font-size: 11px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.progress-container {
    margin-top: 5px;
}

.progress-bar {
    width: 100%;
}

/* YouTubeサムネイル */
.youtube-thumbnail {
    position: relative;
    width: 120px;
    height: 68px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.youtube-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.youtube-thumbnail:hover .youtube-play-icon {
    background-color: #ff0000;
}

.youtube-play-icon svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.youtube-badge-small {
    position: absolute;
    top: 4px;
    left: 4px;
    background-color: #ff0000;
    color: white;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: bold;
}

/* YouTubeモーダル */
.youtube-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.youtube-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1001;
}

.youtube-modal-content iframe {
    width: 100%;
    height: 100%;
}

.youtube-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.youtube-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* スマホ表示調整 */
@media (max-width: 600px) {
    .voice-item.has-youtube {
        flex-direction: column;
        align-items: stretch;
    }
    
    .voice-main {
        width: 100%;
    }
    
    .youtube-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

.progress-bar {
    height: 3px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 3px;
}

.progress-fill {
    height: 100%;
    background-color: var(--navy);
    width: 0%;
    transition: width 0.1s linear;
}

.current-time, .duration {
    font-size: 10px;
    color: var(--text-secondary);
}

.play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: var(--navy);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.play-btn:hover {
    background-color: var(--navy-light);
}

.play-btn-placeholder {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.voice-item.no-audio .voice-main {
    padding-left: 0;
}

.play-icon {
    font-size: 10px;
    margin-left: 2px;
}

.voice-label {
    flex: 1;
    font-size: 11px;
    color: var(--text-primary);
}

.voice-time {
    font-size: 10px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.hero-text {
    position: absolute;
    top: 14%;
    left: 52%;
    text-align: center;
    z-index: 3;
}

.hero-text span {
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

.hero-text:hover span:nth-child(1) { transform: translateY(-2px); transition-delay: 0ms; }
.hero-text:hover span:nth-child(2) { transform: translateY(-2px); transition-delay: 20ms; }
.hero-text:hover span:nth-child(3) { transform: translateY(-2px); transition-delay: 40ms; }
.hero-text:hover span:nth-child(4) { transform: translateY(-2px); transition-delay: 60ms; }
.hero-text:hover span:nth-child(5) { transform: translateY(-2px); transition-delay: 80ms; }
.hero-text:hover span:nth-child(6) { transform: translateY(-2px); transition-delay: 100ms; }
.hero-text:hover span:nth-child(7) { transform: translateY(-2px); transition-delay: 120ms; }
.hero-text:hover span:nth-child(8) { transform: translateY(-2px); transition-delay: 140ms; }
.hero-text:hover span:nth-child(9) { transform: translateY(-2px); transition-delay: 160ms; }
.hero-text:hover span:nth-child(10) { transform: translateY(-2px); transition-delay: 180ms; }
.hero-text:hover span:nth-child(11) { transform: translateY(-2px); transition-delay: 200ms; }
.hero-text:hover span:nth-child(12) { transform: translateY(-2px); transition-delay: 220ms; }

.hero-label span {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 3px rgba(255,255,255,0.8), 0 1px 2px rgba(0,0,0,0.1);
}

.hero h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 56px;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero h1 span {
    display: inline-block;
    transition: transform 0.2s ease;
    text-shadow: 0 1px 3px rgba(255,255,255,0.8), 0 1px 2px rgba(0,0,0,0.1);
}

.hero-subtitle span {
    font-size: 14px;
    display: inline-block;
    transition: transform 0.2s ease;
    text-shadow: 0 1px 3px rgba(255,255,255,0.8), 0 1px 2px rgba(0,0,0,0.1);
}

.hero-text:hover h1 span:nth-child(1) { transform: translateY(-3px); transition-delay: 0ms; }
.hero-text:hover h1 span:nth-child(2) { transform: translateY(-3px); transition-delay: 30ms; }
.hero-text:hover h1 span:nth-child(3) { transform: translateY(-3px); transition-delay: 60ms; }
.hero-text:hover h1 span:nth-child(4) { transform: translateY(-3px); transition-delay: 90ms; }
.hero-text:hover h1 span:nth-child(5) { transform: translateY(-3px); transition-delay: 120ms; }
.hero-text:hover h1 span:nth-child(6) { transform: translateY(-3px); transition-delay: 150ms; }
.hero-text:hover h1 span:nth-child(7) { transform: translateY(-3px); transition-delay: 180ms; }

.hero-text:hover .hero-subtitle span:nth-child(1) { transform: translateY(-2px); transition-delay: 0ms; }
.hero-text:hover .hero-subtitle span:nth-child(2) { transform: translateY(-2px); transition-delay: 25ms; }
.hero-text:hover .hero-subtitle span:nth-child(3) { transform: translateY(-2px); transition-delay: 50ms; }
.hero-text:hover .hero-subtitle span:nth-child(4) { transform: translateY(-2px); transition-delay: 75ms; }
.hero-text:hover .hero-subtitle span:nth-child(5) { transform: translateY(-2px); transition-delay: 100ms; }
.hero-text:hover .hero-subtitle span:nth-child(6) { transform: translateY(-2px); transition-delay: 125ms; }
.hero-text:hover .hero-subtitle span:nth-child(7) { transform: translateY(-2px); transition-delay: 150ms; }
.hero-text:hover .hero-subtitle span:nth-child(8) { transform: translateY(-2px); transition-delay: 175ms; }
.hero-text:hover .hero-subtitle span:nth-child(9) { transform: translateY(-2px); transition-delay: 200ms; }
.hero-text:hover .hero-subtitle span:nth-child(10) { transform: translateY(-2px); transition-delay: 225ms; }
.hero-text:hover .hero-subtitle span:nth-child(11) { transform: translateY(-2px); transition-delay: 250ms; }
.hero-text:hover .hero-subtitle span:nth-child(12) { transform: translateY(-2px); transition-delay: 275ms; }

/* Section Common */
section {
    padding: 60px 80px;
}

.section-title {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Profile Section */
.profile {
    background-color: var(--bg-primary);
}

.profile-table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
}

.profile-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    align-items: center;
}

.profile-label {
    width: 200px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.profile-value {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
}

/* Services Section */
.services {
    background-color: var(--bg-secondary);
}

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

.service-card h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* Works Section */
.works {
    background-color: var(--bg-primary);
}

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

.work-item {
    background-color: #fff;
    padding: 20px;
    min-height: 120px;
}

.work-tag {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--text-secondary);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.work-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}

.work-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Social Section (Instagram & Twitter) */
.social-section {
    margin-top: 40px;
}

/* Gallery Section */
.gallery {
    background-color: var(--bg-primary);
}

.gallery .social-section {
    max-width: 800px;
    margin: 0 auto;
}

.twitter-container {
    width: 100%;
    min-height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.twitter-container iframe {
    width: 100% !important;
}

.section-subtitle {
    font-size: 14px;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

/* About Section */
.about {
    background-color: var(--bg-secondary);
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.6;
}

.about-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 2;
}

.about-image {
    width: 350px;
    height: 420px;
    background-image: url('../images/about.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 4px;
}

/* Contact CTA Section */
.contact-cta {
    background-color: var(--navy);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.contact-cta h2 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.contact-cta p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: rgba(255,255,255,0.1);
}

/* FAQ Section */
.faq {
    background-color: var(--bg-primary);
}

.faq-list {
    max-width: 800px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
}

.faq-tag {
    background-color: var(--accent-blue);
    color: var(--text-secondary);
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 3px;
    margin-right: 15px;
}

.faq-arrow {
    color: var(--text-secondary);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-top: 0;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
    padding-top: 15px;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

/* Instagram Feed */
.instagram-feed {
    max-width: 100%;
    margin: 0 auto;
}

.instagram-feed iframe {
    width: 100%;
    border: none;
    overflow: hidden;
}

/* Gallery Section */
.gallery {
    background-color: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 1;
    background-color: #e0ddd6;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Form Section */
.contact-form {
    background-color: var(--bg-primary);
}

.contact-form-wrapper {
    max-width: 600px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-primary);
}

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

.submit-button {
    background-color: var(--navy);
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--navy-light);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 40px 80px;
    text-align: center;
}

.footer-logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    margin-bottom: 15px;
}

.copyright {
    font-size: 11px;
    color: var(--text-secondary);
}

.back-to-top {
    display: inline-block;
    margin: 15px 0;
    padding: 8px 20px;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.back-to-top:hover {
    background-color: var(--text-secondary);
    color: #fff;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--navy);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 1000;
    -webkit-tap-highlight-color: transparent;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--navy-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.scroll-to-top span {
    display: block;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.scroll-to-top:hover span {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .hero-container {
        padding: 80px 60px 40px;
        order: 2;
        min-height: auto;
    }

    .hero {
        flex-direction: column;
        min-height: auto;
    }

    .hero-bg {
        position: relative;
        width: 100%;
        height: auto;
        order: 1;
        line-height: 0;
    }

    .hero-bg img {
        object-position: center top;
        object-fit: contain;
        width: 100%;
        height: auto;
        display: block;
    }

    .hero-overlay {
        display: none;
    }

    .hero-text {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 40px;
        width: 100%;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-left {
        flex: 1;
        width: 100%;
        max-width: 500px;
        margin-top: 20px;
    }
}

@media (max-width: 900px) {
    section {
        padding: 40px 30px;
    }

    .services-grid,
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        flex-direction: column;
    }

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

    header {
        padding: 20px 30px;
    }

    nav ul {
        gap: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-left {
        max-width: 350px;
        order: 2;
    }

    .hero-center {
        order: 1;
        padding-bottom: 0;
    }

    .voice-samples {
        padding: 15px;
    }

    .voice-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .voice-item {
        flex-direction: row;
        padding: 12px;
        gap: 10px;
    }
    
    .voice-info {
        flex: 1;
        min-width: 0;
    }
    
    .voice-time {
        display: block;
        font-size: 10px;
    }
    
    .progress-container {
        display: block;
        margin-top: 4px;
    }
    
    .progress-bar {
        height: 2px;
    }
    
    .current-time, .duration {
        font-size: 9px;
    }

    .hero-container {
        padding: 80px 30px 40px;
    }
}

@media (max-width: 600px) {
    .services-grid,
    .works-grid {
        grid-template-columns: 1fr;
    }

    .profile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .profile-label {
        width: auto;
    }
    
    .hero-bg {
        margin-top: 60px;
    }
    
    .hero-container {
        padding: 40px 20px 60px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-label {
        font-size: 10px;
    }
    
    .hero-subtitle {
        font-size: 12px;
    }
    
    .voice-title {
        font-size: 11px;
    }
    
    .voice-label {
        font-size: 10px;
    }
    
    .voice-item {
        padding: 8px 10px;
    }
    
    .play-btn {
        width: 28px;
        height: 28px;
    }
    
    nav ul {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
        letter-spacing: 0.15em;
    }
    
    .hero-container {
        padding: 70px 20px 30px;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .voice-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .voice-samples {
        padding: 15px;
    }
    
    .voice-item {
        flex-direction: row;
        gap: 6px;
        padding: 8px;
    }
    
    .voice-label {
        font-size: 9px;
    }
    
    .voice-time {
        font-size: 8px;
    }
}
