/* 
=======================================================
 About Me ポートフォリオサイト - メインスタイル
 作成者: 岩﨑 光希
 作成日: 2025年8月23日
 用途: モダンなポートフォリオデザイン
 主な特徴: エメラルドグリーンテーマ、レスポンシブ
======================================================= 
*/

/* メインスタイルファイル - モダンなポートフォリオデザイン */

/* ========================================
   リセット・基本スタイル設定
   ブラウザ間差異の統一
======================================== */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* padding・borderを要素幅に含める */
}

html {
    scroll-behavior: smooth; /* アンカーリンクのスムーズスクロール */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefffe;
}

/* ========================================
   CSS変数（カスタムプロパティ）
   サイト全体で使用する調整可能な値
======================================== */
/* Adjustable variables */
:root {
    /* Heroセクションのオーバーレイ不透明度をここで調整 (0 ~ 1) */
    --hero-overlay-opacity: 0.8;
}

/* ========================================
   コンテナ・レイアウト基本設定
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   タイポグラフィ（文字設定）
======================================== */
/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

/* セクションタイトル下のアクセント線 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 2px;
}

/* ========================================
   ボタンコンポーネント
   プライマリ・セカンダリの2種類
======================================== */
/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* メインボタン（グラデーション） */
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px); /* ホバー時に浮き上がる */
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* サブボタン（アウトライン） */
.btn-secondary {
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
}

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

/* ========================================
   ナビゲーションバー
   固定ヘッダー・レスポンシブ対応
======================================== */
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(4, 120, 87, 0.95) 100%);
    backdrop-filter: blur(15px); /* 背景ぼかし効果 */
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.site-logo {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3)) brightness(1.2);
}

.nav-logo h2 {
    background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #a7f3d0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* 画像ファイル名の大文字小文字修正 */
    background: url('../images/fk7_mie.jpg') center/cover no-repeat;
    padding-top: 70px;
    overflow: hidden;
}

/* オーバーレイ (不透明度調整用) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f0fdfa 0%, #d1fae5 100%);
    opacity: var(--hero-overlay-opacity);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1; /* オーバーレイより前面に */
}

.hero-title {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

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

.profile-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: white;
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

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

.about-text h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #f0fdf4;
    border-radius: 10px;
}

.stat h4 {
    color: #10b981;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Footer */
.footer {
    background: #047857;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* エメラルドグリーンテーマの追加スタイル */

/* スキルバー、プロジェクトカード、趣味カードなどのアクセントカラー */
.skill-progress {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
}

.project-tag, .tech-tag {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    color: white;
}

.contact-btn {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    color: white;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3) !important;
}

/* ホバー効果の統一 */
.card:hover, .skill-card:hover, .project-card:hover, .hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1) !important;
}

/* セクション背景の調整 */
.section-alt {
    background: #f0fdf4 !important;
}

/* カード系コンポーネントの背景調整 */
.card, .skill-card, .project-card, .hobby-card, .contact-card {
    background: white;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

/* アイコンや装飾要素のカラー調整 */
.icon-accent, .highlight {
    color: #10b981 !important;
}

/* a要素として利用する趣味カード（ドライブカードなど）のサイズ維持 */
a.hobby-card {
    display: block;
    color: inherit;
}
a.hobby-card:visited {
    color: inherit;
}
a.hobby-card:hover {
    text-decoration: none;
}

/* Contact Form (最低要件対応追加) */
.contact-form-wrapper { margin-top: 4rem; }
.contact-form .form-group { margin-bottom: 1.2rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: .4rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: .75rem 1rem; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #10b98155; border-color: #10b981; }
.contact-submit-btn { margin-top: .5rem; }
.form-disclaimer { font-size: .8rem; color: #555; margin-top: .75rem; }
.req { color: #ef4444; margin-left: .25rem; }

/* Skip Link */
.skip-link { position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { position:static; width:auto; height:auto; padding:.75rem 1rem; background:#047857; color:#fff; z-index:2000; }

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #10b981 0%, #047857 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .profile-circle {
        width: 250px;
        height: 250px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-buttons {
        justify-content: center;
    }
}
