/* =========================================
   1. Variables & Base Settings
   ========================================= */
:root {
    --color-text: #333333;
    --color-heading: #2c3e50; /* ダークネイビー */
    --color-bg: #ffffff;
    --color-bg-gray: #f8f9fa;
    --color-border: #eaedf0;
    --color-accent: #e06c75;
    --color-tag-bg: #eef2f5;
    --color-tag-text: #555555;
    --font-main: 'Noto Sans JP', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* =========================================
   2. Layout & Common
   ========================================= */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section {
    margin-bottom: 80px;
}

.section.bg-gray {
    background-color: var(--color-bg-gray);
    padding: 40px 24px;
    border-radius: 8px;
}

/* Section Title & Icons */
.section-title {
    font-size: 1.5rem;
    color: var(--color-heading);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 12px;
}

.section-title .material-symbols-outlined {
    font-size: 1.8rem;
    color: var(--color-heading);
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

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

/* =========================================
   3. Header Section
   ========================================= */
.header {
    margin-bottom: 100px;
}

.name {
    font-size: 2.2rem;
    color: var(--color-heading);
    margin-bottom: 4px;
    font-weight: 700;
}

.en-name {
    font-size: 1.2rem;
    font-weight: normal;
    color: #888;
    margin-left: 12px;
}

.role {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero-message h2 {
    font-size: 1.4rem;
    color: var(--color-heading);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-message p {
    margin-bottom: 16px;
}

.hero-message strong {
    color: var(--color-heading);
}

.personal-note {
    background-color: var(--color-bg-gray);
    padding: 24px;
    border-radius: 8px;
    margin-top: 40px;
}

.note-label {
    display: inline-block;
    font-weight: bold;
    color: var(--color-heading);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.freelance-badge {
    margin-top: 32px;
    font-size: 0.85rem;
    color: #666;
    border: 1px solid var(--color-border);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
}

/* =========================================
   4. Strengths (Cards)
   ========================================= */
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    height: 100%;
}

.strength-card h3 {
    font-size: 1.1rem;
    color: var(--color-heading);
    margin-bottom: 12px;
}

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

/* =========================================
   5. Works Section
   ========================================= */
.work-item {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.work-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.work-content {
    flex: 1;
}

.work-title {
    font-size: 1.2rem;
    color: var(--color-heading);
    margin-bottom: 12px;
}

.work-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    background-color: var(--color-tag-bg);
    color: var(--color-tag-text);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.work-image-placeholder {
    width: 320px;
    aspect-ratio: 16/9;
    background-color: var(--color-bg-gray);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-weight: bold;
    flex-shrink: 0;
}

/* リンク付き実績画像のホバーエフェクト */
a.work-image-placeholder {
    transition: transform 0.3s, box-shadow 0.3s;
}

a.work-image-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Simple List (Others) */
.simple-list {
    list-style: none;
}

.simple-list li {
    margin-bottom: 8px;
    padding-left: 1.2em;
    position: relative;
}

.simple-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--color-heading);
}

/* =========================================
   6. Apps Section (New)
   ========================================= */
.app-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

a.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.app-icon-container {
    width: 100%;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.05);
}

.app-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-heading);
}

.app-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.app-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.app-tag {
    font-size: 0.75rem;
    background-color: var(--color-tag-bg);
    color: var(--color-tag-text);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

/* =========================================
   7. Services Section
   ========================================= */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    list-style: none;
}

.service-list li {
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 24px;
    border-radius: 8px;
    line-height: 1.6;
}

.service-list strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-heading);
    margin-bottom: 8px;
}

/* =========================================
   8. Timeline Section
   ========================================= */
.timeline {
    border-left: 2px solid var(--color-border);
    margin-left: 12px;
    padding-left: 32px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -42px;
    top: 4px;
    width: 14px;
    height: 14px;
    background-color: #fff;
    border: 2px solid var(--color-heading);
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-heading);
    margin-bottom: 8px;
    font-family: sans-serif;
    letter-spacing: 0.05em;
}

.timeline-content h3 {
    font-size: 1.1rem;
    color: var(--color-heading);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.career-detail-list {
    list-style: none;
    background: var(--color-bg-gray);
    padding: 20px;
    border-radius: 8px;
}

.career-detail-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
}

.career-detail-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.client-name {
    font-weight: bold;
    color: var(--color-heading);
}

.client-role {
    color: #666;
    font-size: 0.9rem;
}

.timeline-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 16px;
}

/* =========================================
   9. Conditions & Links Section
   ========================================= */
.condition-list {
    list-style: none;
}

.condition-list li {
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 8px;
}

.condition-list strong {
    display: inline-block;
    width: 80px;
    color: var(--color-heading);
}

.link-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 10px 32px;
    background-color: #fff;
    color: var(--color-heading);
    border: 1px solid var(--color-heading);
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: var(--color-heading);
    color: #fff;
}

/* =========================================
   10. Footer
   ========================================= */
.footer {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 0.9rem;
}

/* =========================================
   11. Responsive (Mobile)
   ========================================= */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .work-item {
        flex-direction: column;
        gap: 16px;
    }
    
    .work-image-placeholder {
        width: 100%;
        aspect-ratio: 16/9;
    }
    
    .career-detail-list li {
        flex-direction: column;
        gap: 4px;
    }
    
    .client-role {
        margin-left: 12px; /* スマホの時は少しインデント */
    }
}