:root {
    /* base */
    --bg: #0a1f1a; /* Dark Forest Green */
    --text: #f0f4f3; /* Off-white for readability */
    --muted: #cbd5e1; /* Lighter gray for dark background */
    --line: rgba(212, 175, 55, 0.15); /* Gold tinted lines */

    /* surface */
    --card: rgba(15, 38, 33, 0.85); /* Darker green surface */
    --card2: rgba(22, 54, 47, 0.95);

    /* accent */
    --accent: #d4af37; /* Metallic Gold */
    --accent2: #f9d423; /* Bright Gold */
    --ring: rgba(212, 175, 55, 0.3);

    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: radial-gradient(900px 500px at 20% 0%, rgba(212, 175, 55, 0.08), transparent 55%),
                radial-gradient(900px 500px at 80% 20%, rgba(10, 31, 26, 0.1), transparent 55%), var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px 56px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--text);
    background: rgba(15, 38, 33, 0.6);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(20, 22, 26, 0.08);
    border-color: rgba(20, 22, 26, 0.14);
}

.btn.primary {
    border-color: transparent;
    color: #1a1a1a;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 14px 34px rgba(212, 175, 55, 0.22);
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    background: var(--card2);
    box-shadow: 0 18px 44px rgba(20, 22, 26, 0.1);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 720px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ========= Works Card (共通) ========= */
.work-card {
    padding: 0;
    overflow: hidden;
}

.thumb {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--line);
    transition: transform 0.4s ease;
}

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

.card-body {
    padding: 24px;
}

.title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.meta {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    font-weight: 500;
}

/* ========= Contact Form & List ========= */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 32px;
}

@media (max-width: 820px) {
    .contact {
        grid-template-columns: 1fr;
    }
}

.form {
    display: grid;
    gap: 20px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: 12px;
    padding: 14px 16px;
    font: inherit;
    outline: none;
    transition: all 0.2s ease;
    display: block;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field input:focus,
.field textarea:focus {
    box-shadow: 0 0 0 4px var(--ring);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-list {
    display: grid;
    gap: 20px;
}

.contact-item {
    display: grid;
    gap: 8px;
}

.contact-item .label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.contact-item .value {
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    word-break: break-all;
    background: rgba(10, 31, 26, 0.5);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
}

.contact-item a.value:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.contact-item .value svg {
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.contact-item a.value:hover svg {
    opacity: 1;
    transform: translate(2px, -2px);
    color: var(--accent);
}

.contact-item span.value {
    background: rgba(10, 31, 26, 0.3);
    cursor: default;
}

.mini-cta-wrapper {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--line);
    padding-top: 40px;
}

.mini-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hidden { display: none; }

/* ========= Layout & Common ========= */
.section {
    padding: 80px 0 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.category-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 40px 0 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

/* ========= Header & Nav ========= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 31, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 32px;
    width: auto;
}

.logo span {
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* シンプルにするためモバイルでは一旦非表示 */
    }
}

/* ========= Hero ========= */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-top: 64px;
}

.hero h1 {
    font-size: clamp(32px, 8vw, 56px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero .sub {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ========= Profile ========= */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 860px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
}

.profile-bio p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.profile-meta {
    padding: 32px;
}

.meta-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    margin-bottom: 20px;
    align-items: baseline;
}

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

.meta-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ========= Works Refine ========= */
.work-card.featured {
    grid-column: span 2;
}

@media (max-width: 720px) {
    .work-card.featured {
        grid-column: span 1;
    }
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--ring);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    border-radius: 99px;
    margin-bottom: 12px;
}

.more {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

/* ========= Skills ========= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.skill-category h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--muted);
}

.skill-category .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ========= Services ========= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    text-align: center;
    padding: 40px 24px;
}

.service-card .icon {
    font-size: 32px;
    font-size: 40px;
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* ========= Pricing ========= */
.pricing-table {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}
.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.pricing-table th, .pricing-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.pricing-table th {
    font-size: 14px;
    color: var(--muted);
}

td {
    font-weight: 600;
}
.pricing-table .note {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

/* ========= Flow ========= */
.flow-steps {
    max-width: 600px;
    margin: 0 auto;
}
.step {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50px;
    left: 17px;
    width: 2px;
    height: calc(100% - 20px);
    background: var(--line);
}
.step .num {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    opacity: 1; /* Remove the 0.3 opacity */
}

/* Skills Polish */
.skill-category.card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.skill-category.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.step h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.step p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

/* ========= FAQ ========= */
.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: "+";
    font-size: 20px;
    color: var(--muted);
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item p {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* ========= Contact ========= */
.contact-card.info {
    display: flex;
    flex-direction: column;
}

.footer-inner {
    text-align: center;
    padding: 40px 0;
}

footer p {
    margin: 0;
}

/* Adjustments for existing styles */
.wrap {
    padding-top: 0;
}
