/*
Theme Name: Aoi Portfolio
Theme URI: https://example.com
Author: Aoi Matsuoka
Author URI: https://example.com
Description: シンプルでモダンなポートフォリオテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aoi-portfolio
*/

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

:root {
    --primary: #00BCD4;
    --secondary: #0097A7;
    --accent: #4DD0E1;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #ffffff;
    --bg-light: #f7fafc;
    --border: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
}

/* First View */
.fv {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.fv-content {
    animation: fadeInUp 1s ease-out;
}

.fv-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.fv-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 1rem;
    opacity: 0.95;
}

.fv-skills {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 3rem;
    opacity: 0.85;
}

.fv-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

/* About */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text li {
    padding: 0.8rem 0 0.8rem 1.5rem;
    position: relative;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-category li:last-child {
    border-bottom: none;
}

.level {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
}

.level.high {
    background: #d4edda;
    color: #155724;
}

.level.medium {
    background: #fff3cd;
    color: #856404;
}

/* Works */
.works {
    background: var(--bg-light);
}

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

.work-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.work-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.work-card:hover .work-image img {
    transform: scale(1.1);
}

.work-info {
    padding: 1.5rem;
}

.work-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.work-type, .work-tech {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.work-points {
    list-style: none;
    margin-top: 1rem;
}

.work-points li {
    padding: 0.4rem 0 0.4rem 1.2rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-light);
}

.work-points li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.works-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Strength */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.strength-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.strength-item:hover {
    transform: translateY(-5px);
}

.strength-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.strength-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.strength-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Flow */
.flow {
    background: var(--bg-light);
}

.flow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.flow-step {
    flex: 1 1 160px;
    max-width: 160px;
    min-width: 160px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.flow-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.flow-step h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--text);
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
}

.flow-step p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-arrow {
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
    margin: 0 0.5rem;
}

.flow-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Contact */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 1200px) and (min-width: 769px) {
    .flow-steps {
        gap: 2rem;
        max-width: 900px;
    }

    .flow-step {
        flex: 0 0 220px;
        max-width: 220px;
        min-width: 220px;
        height: 220px;
        padding: 1.5rem 1rem;
    }

    /* 2番目のカードの後に改行 */
    .flow-step:nth-child(3)::after {
        content: '';
        flex-basis: 100%;
        width: 100%;
        height: 0;
    }

    .flow-step h3 {
        font-size: 1rem;
    }

    .flow-step p {
        font-size: 0.85rem;
    }

    .flow-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .flow-steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    .flow-step {
        max-width: 100%;
        min-width: 200px;
        height: auto;
        padding: 1.5rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .fv-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }
}
