/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #fafafa;
}

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

/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
}

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

.nav-menu a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #007aff;
}

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: #667eea;
}

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

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

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.2);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

/* セクション共通スタイル */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #1d1d1f;
}

/* プロフィールセクション */
.about {
    background: white;
}

/* アピールポイント（削除） */

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

.about-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #6e6e73;
    line-height: 1.7;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #f5f5f7;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

.stat h3 {
    font-size: 2rem;
    color: #007aff;
    margin-bottom: 0.5rem;
}

.stat-unit {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 400;
    margin-left: 0.2rem;
}

.stat p {
    color: #6e6e73;
    font-size: 0.9rem;
}

/* スキルセクション */
.skills {
    background: #f5f5f7;
}

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

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.skill-card p {
    color: #6e6e73;
    line-height: 1.6;
}

/* プロジェクトセクション */
.projects {
    background: white;
}

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

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-placeholder {
    padding: 2rem;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
}

.project-status {
    margin-bottom: 0.75rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-ended {
    background: #e6f4ea;
    color: #137333;
}

.badge-cancelled {
    background: #fde7e9;
    color: #c5221f;
}

.badge-inprogress {
    background: #e8f0fe;
    color: #1967d2;
}

.project-info p {
    color: #6e6e73;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tech span {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #6e6e73;
}

/* 名言セクション */
.quote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.quote::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.quote-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.quote-text {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.4;
    margin: 0 0 2rem 0;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.quote-text::before {
    content: '"';
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: -10px;
    left: -30px;
    font-family: Georgia, serif;
}

.quote-text::after {
    content: '"';
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: -40px;
    right: -30px;
    font-family: Georgia, serif;
}

.quote-author {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.8;
    font-style: normal;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* 連絡先セクション */
.contact {
    background: #ffffff;
}

/* ギャラリー（最近の写真） */
.gallery {
    background: #f5f5f7;
}

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

.frame {
    background: #fff;
    border-radius: 12px;
    padding: 16px; /* マット部分 */
    box-shadow: 0 12px 30px rgba(0,0,0,0.12), inset 0 0 0 12px #f0ede8; /* 額縁・マット感 */
    position: relative;
}

.frame::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 8px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08), inset 0 -2px 6px rgba(0,0,0,0.06);
    pointer-events: none;
}

.frame img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    filter: saturate(1.05) contrast(1.02);
}

/* 額縁の影の浮き感 */
.frame:hover {
    transform: translateY(-4px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 16px 34px rgba(0,0,0,0.16), inset 0 0 0 10px #f0ede8;
}

/* セクション区切り（削除） */

/* 豪華な金縁（luxe） */
.frame.luxe {
    background: linear-gradient(135deg, #f7f2e7, #fffbea);
    padding: 18px;
    border-radius: 14px;
    box-shadow:
        0 14px 36px rgba(0,0,0,0.16),
        inset 0 0 0 14px #f3efe6,
        inset 0 0 0 2px rgba(255, 215, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.frame.luxe::before {
    inset: 10px;
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(255,215,0,0.35), rgba(184,134,11,0.35)),
        linear-gradient(315deg, rgba(255,255,255,0.35), rgba(0,0,0,0.08));
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.12),
        inset 0 -2px 8px rgba(0,0,0,0.08);
}

.frame.luxe img {
    border-radius: 8px;
    outline: 4px solid rgba(255, 255, 255, 0.7);
    outline-offset: -6px;
}

/* 金縁の光沢スイープ（ホバー時） */
.frame.luxe::after {
    content: '';
    position: absolute;
    top: -120%;
    left: -60%;
    width: 40%;
    height: 340%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 80%);
    transform: rotate(20deg) translateX(-150%);
    opacity: 0;
    pointer-events: none;
}

.frame.luxe:hover::after {
    animation: sheen 1.2s ease;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
    justify-items: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.contact-info p {
    color: #6e6e73;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-info {
    text-align: center;
    max-width: 640px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 12px;
    transition: transform 0.3s ease;
    width: min(520px, 100%);
}

.contact-method:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-method a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #007aff;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007aff;
}

.form-group textarea {
    resize: vertical;
}

/* フッター */
.footer {
    background: #1d1d1f;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    opacity: 0.8;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes sheen {
    0% {
        transform: rotate(20deg) translateX(-150%);
        opacity: 0;
    }
    20% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.45;
    }
    100% {
        transform: rotate(20deg) translateX(250%);
        opacity: 0;
    }
}

/* スクロール効果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* モバイルメニュー */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1d1d1f;
    cursor: pointer;
    z-index: 1001;
}

.nav-menu.mobile-menu-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

.nav-menu.mobile-menu-active a {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .quote {
        padding: 80px 0;
    }
    
    .quote-text {
        font-size: 1.5rem;
        margin: 0 0 1.5rem 0;
    }
    
    .quote-text::before,
    .quote-text::after {
        font-size: 2rem;
    }
    
    .quote-author {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .quote {
        padding: 60px 0;
    }
    
    .quote-text {
        font-size: 1.2rem;
        line-height: 1.5;
        margin: 0 0 1rem 0;
    }
    
    .quote-text::before,
    .quote-text::after {
        font-size: 1.5rem;
    }
    
    .quote-text::before {
        top: -5px;
        left: -20px;
    }
    
    .quote-text::after {
        bottom: -20px;
        right: -20px;
    }
    
    .quote-author {
        font-size: 0.9rem;
    }
} 

/* タブレット: 768px〜 */
@media (min-width: 768px) {
    .section-title {
        font-size: 2.6rem;
    }
    .contact-icon {
        font-size: 1.8rem;
    }
    .contact-method {
        width: min(640px, 100%);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PC: 1024px〜 */
@media (min-width: 1024px) {
    .section-title {
        font-size: 2.8rem;
    }
    .contact-icon {
        font-size: 2rem;
    }
    .contact-method {
        width: min(720px, 100%);
    }
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}