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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

#intro {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

#intro.hide {
    animation: fadeOut 0.1s ease forwards;
}

#intro.hide .meishi {
    animation: slideOut 0.2s ease 0.4s forwards;
}

.meishi {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0;
    transform: translateY(-300%);
    animation: slideIn 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Header */
.header {
    width: 100%;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    background-color: #333;
    top: 0;
    left: 0;
    z-index: 100;
}

.logo {
    height: 50px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px; 
}

.nav {
    display: flex;
    align-items: center; 
    justify-content: center; 
    gap: 1rem; 
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    gap: 1rem;
}

.nav li {
    margin: 0 1rem;
}

.nav a {
    font-weight: 600;
    color: #fff;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 10px; 
    
}

.hero-image {
    width: 100%;
    height: auto;
}

.hero h1 {
    font-size: 3rem;
    margin: 0rem 0 0.5rem;
}

.hero p {
    font-size: 1.5rem;
    color: #666;
}

/* Sections */
.section {
    max-width: 900px;
    margin: 0px auto;
    padding: 0 20px;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #333;
    display: inline-block;
    padding-bottom: 0rem;
    margin-top : 0;
}

/* About */
.about p {
    margin-bottom: 1rem;
}

/* Career */
.experience ul {
    list-style: disc inside;
}

.experience li {
    margin-bottom: 0.5rem;
}

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

.card {
    display: block;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    object-fit: cover;
    height: 100%;
}

.card img {
    width: 100%;
    height: auto;      
    max-height: 250px; 
    object-fit: contain; 
    display: block;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.95rem;
    color: #666;
}

/* hover演出 */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: #333;
}

/* Skills */
.skills .skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.skills span {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Gallery */
/* .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
} */

.gallery-row {
    overflow: hidden;
    width: 100%;
    margin: 40px 0;
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-left 25s linear infinite;
}

.gallery-row.left .gallery-track {
    animation: scroll-left 50s linear infinite;
}

.gallery-row.right .gallery-track {
    animation: scroll-right 50s linear infinite;
}

.gallery-track img {
    height: 220px;    
    width: auto;       
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Contact */
.contact p {
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    margin-top: 60px;
}

.sub-header {
    background: linear-gradient(135deg, #333, #111);
    color: #fff;
    padding: 50px 20px 50px;
    text-align: center;
}

.sub-header h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    letter-spacing: 1px;
}

.process-page {
    padding: 100px 20px 60px;
}

/* カード内テキスト */
.process-page p,
.process-page li {
    font-size: clamp(1rem, 3.8vw, 1.1rem);
    line-height: 1.8;
}

/* セクションタイトル */
.process-page h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

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

    .logo {
        height: 40px;
        margin-right: 10px;
    }

    
    .nav ul {
        flex-direction: row; 
        justify-content: center; 
        flex-wrap: nowrap; 
        gap: 0.5rem;
    }

    .nav li {
        margin: 0 0.3rem; 
    }

    .nav a {
        font-size: 15px;
    }
}

.process-page {
  padding: 80px 0;
}

.process-page .card {
  margin-bottom: 40px;
  padding: 30px;
}

.process-page h2 {
  margin-bottom: 15px;
  border-left: 5px solid #333;
  padding-left: 10px;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-120px);
    }
    
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateY(-120px);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@media (min-width: 1024px) {
    .meishi {
        width: 500px; 
    }
}

@media (min-width: 1024px) {
    .hero-image {
        max-width: 900px; 
    }
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}