@charset "UTF-8";

/* ==========================================
   共通設定・変数
   ========================================== */
:root {
    --primary-color: #4a90e2;    /* 爽やかなブルー */
    --secondary-color: #35495e;  /* 深みのあるネイビー */
    --accent-color: #ff6b6b;     /* アクセントの赤 */
    --bg-light: #f8f9fa;         /* 薄いグレーの背景 */
    --text-color: #333333;       /* メインの文字色 */
    --text-muted: #777777;       /* 補足の文字色 */
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth; /* スムーズスクロール */
}

body {
    font-family: "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-color);
    background-color: #ffffff;
}

/* 共通の見出し */
section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 3.2rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

section hr {
    border: none;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    width: 150px;
    margin: 0 auto 40px auto;
}

/* ==========================================
   ヘッダー（ナビゲーション）
   ========================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header p {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

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

header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

header nav ul li a:hover {
    color: var(--primary-color);
}

header nav ul li a:hover::after {
    width: 100%;
}

/* ==========================================
   メインビジュアル (MV)
   ========================================== */
.mv {
    height: 60vh;
    background: linear-gradient(135deg, #3a7bd5, #3a6073);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
    color: #ffffff;
}

.mv h1 {
    font-size: 4.8rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeIn 1.2s ease forwards;
}

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

/* ==========================================
   About セクション
   ========================================== */
.ab {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.ab h3 {
    font-size: 2.4rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.ab h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.ab p {
    font-size: 1.6rem;
    color: #555;
    line-height: 2;
}

/* ==========================================
   Skill セクション
   ========================================== */
#skill-nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 40px;
}

#skill-nav ul li {
    background-color: var(--bg-light);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-name {
    font-weight: bold;
    font-size: 1.6rem;
    text-transform: uppercase;
}

.skill-star {
    color: #f1c40f; /* きれいなゴールド星 */
    font-size: 1.4rem;
}

/* 資格テーブル */
#skill table {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    overflow: hidden;
}

#skill table caption {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

#skill th, #skill td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
}

#skill th {
    background-color: #fcfcfc;
    color: var(--secondary-color);
    font-weight: 600;
    width: 70%;
}

#skill td {
    color: var(--text-muted);
    font-size: 1.5rem;
    white-space: nowrap;
}

/* ==========================================
   Works セクション (実績カード)
   ========================================== */
.works-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 20px;
}

.work-card {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.work-img {
    flex: 1;
    min-width: 40%;
    max-height: 350px;
    background-color: #eaeaea;
    overflow: hidden;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.work-info {
    flex: 1.5;
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lan-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #00d2ff);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    width: fit-content;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.work-info table {
    width: 100%;
    border-collapse: collapse;
}

.work-info th, .work-info td {
    padding: 10px 0;
    vertical-align: top;
}

.work-info th {
    width: 90px;
    color: var(--secondary-color);
    font-weight: bold;
}

.work-info td a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed var(--primary-color);
    transition: var(--transition);
}

.work-info td a:hover {
    color: var(--secondary-color);
    border-bottom-style: solid;
}

/* レスポンシブ (スマホ・タブレット用) */
@media (max-width: 768px) {
    .work-card {
        flex-direction: column;
    }
    .work-img {
        width: 100%;
        height: 200px;
    }
    header {
        padding: 15px 20px;
    }
    header nav ul {
        gap: 15px;
    }
}

/* ==========================================
   Contact セクション (問い合わせフォーム)
   ========================================== */
#contact form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: left;
}

#contact form p {
    margin-bottom: 20px;
}

#contact label {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 1.6rem;
    box-sizing: border-box;
    transition: var(--transition);
}

#contact input:focus,
#contact textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.2);
}

#contact textarea {
    height: 150px;
    resize: vertical;
}

#contact button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-color), #2c3e50);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#contact button:hover {
    background: linear-gradient(135deg, var(--primary-color), #3a7bd5);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}

/* ==========================================
   フッター と TOPへ戻るボタン
   ========================================== */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-size: 1.4rem;
    position: relative;
}

.to-top {
    position: absolute;
    right: 40px;
    top: -25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.to-top .arrow {
    font-size: 1.8rem;
    line-height: 1;
}

.to-top .text {
    font-size: 0.9rem;
    font-weight: bold;
}

.to-top:hover {
    background-color: #357abd;
    transform: translateY(-5px);
}