/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #000000;
    padding: 16px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.05em;
}

/* Main Content */
.content {
    flex: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

article {
    width: 100%;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #000000;
    letter-spacing: 0.02em;
}

.profile p {
    margin-bottom: 24px;
    text-align: justify;
    text-justify: inter-ideograph;
}

.profile p:last-child {
    margin-bottom: 0;
}

.award {
    font-weight: 700;
}

/* Signature */
.signature {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.signature img {
    width: 180px;
    height: auto;
}

/* Footer */
footer {
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #000000;
    padding: 24px 0;
    text-align: center;
}

footer small {
    font-size: 0.75rem;
    color: #000000;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .logo-image {
        width: 32px;
        height: 32px;
    }

    .site-name {
        font-size: 1.1rem;
    }

    .content {
        padding: 32px 16px;
    }

    h1 {
        font-size: 1.25rem;
        margin-bottom: 24px;
        padding-bottom: 12px;
    }

    .profile p {
        margin-bottom: 20px;
    }

    .signature img {
        width: 150px;
    }

    footer {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .header-inner {
        padding: 0 12px;
        gap: 10px;
    }

    .content {
        padding: 24px 12px;
    }

    h1 {
        font-size: 1.15rem;
    }
}

/* Site Intro Section */
.site-intro {
    margin-bottom: 64px;
}

.intro-content p {
    margin-bottom: 16px;
    text-align: justify;
    text-justify: inter-ideograph;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

/* About Block */
.about-block {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.about-image {
    flex: 0 0 200px;
    max-width: 200px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 0;
}

.social-link {
    margin-top: 24px;
}

.social-link a {
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #000000;
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.social-link a:hover {
    opacity: 0.6;
}

/* Service Navigation */
.service-nav {
    margin-top: 32px;
}

.service-nav h2 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.service-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-list a {
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid #000000;
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.service-list a:hover {
    opacity: 0.6;
}

.service-desc {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #555;
}

/* Miesusumu Section */
.miesusumu-intro {
    margin-bottom: 48px;
}

.miesusumu-intro .tagline {
    font-size: 1rem;
    color: #555;
    margin-bottom: 24px;
}

/* Miepro Section */
.miepro-intro {
    margin-bottom: 48px;
}

.miepro-intro .tagline {
    font-size: 1rem;
    color: #555;
    margin-bottom: 24px;
}

/* Utopia Section */
.utopia-intro {
    margin-bottom: 48px;
}

.utopia-intro .tagline {
    font-size: 1rem;
    color: #555;
    margin-bottom: 24px;
}

h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-top: 48px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #000000;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
}

/* Feature Block - Left Image, Right Text */
.feature-block {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    align-items: flex-start;
}

.feature-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.feature-image img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.feature-text {
    flex: 1;
}

.feature-text p {
    margin-bottom: 12px;
}

.feature-text ul {
    margin: 12px 0;
    padding-left: 20px;
}

.feature-text li {
    margin-bottom: 6px;
}

.feature-text .note {
    background-color: #f8f8f8;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 16px;
}

/* Demo Table */
.demo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.demo-table th,
.demo-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}

.demo-table th {
    background-color: #f5f5f5;
    font-weight: 700;
}

.demo-table td {
    font-family: monospace;
}

/* Responsive for Feature Blocks */
@media (max-width: 768px) {
    .feature-block {
        flex-direction: column;
    }

    .feature-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    h2 {
        font-size: 1.1rem;
        margin-top: 36px;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 1rem;
    }

    .site-intro {
        margin-bottom: 48px;
    }

    .about-block {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        flex: none;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .feature-block {
        gap: 16px;
        margin-bottom: 36px;
    }

    .feature-text .note {
        padding: 10px;
    }

    .demo-table th,
    .demo-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}
