:root {
    --bg-color: #F9FAFB;
    --surface-color: #FFFFFF;
    --text-main: #1F2937;
    --text-sub: #4B5563;
    --accent-color: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-warm: #F59E0B;
    --container-width: 1000px;
    --container-width-narrow: 800px;
    --header-height: 70px;
    --section-padding: 80px 20px;
}

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

body {
    font-family: "Noto Sans JP", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe {
    max-width: 100%;
    width: 100%;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0px auto;
    padding: 0px 20px;
}

.container.is-narrow {
    max-width: var(--container-width-narrow);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: 0.1em;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0px;
    border-radius: 2px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--text-main);
    color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: rgba(37, 99, 235, 0.3) 0px 6px 12px;
}

.pagelink {
    text-decoration: underline;
    color: var(--accent-color);
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0px;
    z-index: 1000;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(238, 238, 238);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 85px;
    width: auto;

}

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

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);

}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: medium;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s;
}

main {
    padding-top: var(--header-height);
}

.hero {
    min-height: 60vh;
    display: flex;
    align-items: end;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url("https://n-5.work/img/n-5Top-img.jpg");
    background-size: cover;
    background-position: center center;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.01);
    z-index: 1;

}

.hero-content {
    z-index: 2;
    padding: 20px 20px 50px;
    max-width: 800px;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: rgba(0, 0, 0, 0.5) 0px 2px 4px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-shadow: rgba(0, 0, 0, 0.5) 0px 1px 2px;
}

.page-intro {
    padding: 60px 0px;
    text-align: center;
    background: linear-gradient(135deg, rgb(253, 251, 251) 0%, rgb(235, 237, 238) 100%);
    color: var(--text-main);
}

.page-intro.is-dark {
    background: rgb(31, 41, 55);
    color: rgb(255, 255, 255);
    padding: 80px 0px;
}

.page-intro.is-dark p {
    opacity: 0.8;
}

.content-section {
    background: rgb(255, 255, 255);
    padding: 60px 40px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 10px;
}

.content-section h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.4rem;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    margin: 40px 0px 20px;
}

.profile {
    padding: var(--section-padding);
    background-color: var(--surface-color);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 0px auto;
}

.profile-img {
    flex: 0 0 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 25px;
    background-color: rgb(238, 238, 238);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.profile-role {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.profile-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tag {
    background: rgb(239, 246, 255);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.profile-section {
    padding: 60px 0px;
    background-color: var(--surface-color);
}

.profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
}

.profile-image-large img {
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 20px;
    width: 100%;
}

.bio-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

.history-section {
    padding: 60px 0px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0px auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 2px;
    background: rgb(229, 231, 235);
}

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

.timeline-item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid rgb(255, 255, 255);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-year {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.timeline-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.work {
    padding: var(--section-padding);
}

.work-section {
    padding: 60px 0px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.work-card {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 6px;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid rgb(238, 238, 238);
    display: flex;
    flex-direction: column;
}

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

.work-thumb {
    height: 180px;
    background-color: rgb(229, 231, 235);
    position: relative;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: rgb(255, 255, 255);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.work-info, .work-content {
    padding: 20px;
    flex-grow: 1;
}

.work-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.work-desc {
    font-size: 0.9rem;
    color: var(--text-sub);
}

.category-title {
    font-size: 1.5rem;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: rgb(238, 238, 238);
    padding-bottom: 10px;
    margin-bottom: 30px;
    margin-top: 40px;
}

.work-item {
    background: rgb(255, 255, 255);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 6px;
    transition: 0.3s;
    border: 1px solid rgb(238, 238, 238);
    display: flex;
    flex-direction: column;
}

.work-type {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.work-client {
    font-size: 0.85rem;
    color: rgb(102, 102, 102);
    margin-bottom: 10px;
    display: block;
}

.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.client-tag {
    background: rgb(255, 255, 255);
    border: 1px solid rgb(221, 221, 221);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.note-box {
    background: rgb(255, 248, 225);
    border: 1px solid rgb(255, 236, 179);
    padding: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: rgb(133, 100, 4);
    margin-bottom: 30px;
    margin-top: 10px;
}

.flow-list {
    counter-reset: flow-counter 0;
    list-style: none;
    margin: 20px 0px;
}

.flow-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
}

.flow-list li::before {
    counter-increment: flow-counter 1;
    content: counter(flow-counter);
    position: absolute;
    left: 0px;
    top: 0px;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: rgb(255, 255, 255);
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
}

.flow-list strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.company-section {
    padding: 60px 0px;
    background-color: var(--surface-color);
}

.company-info {
    background-color: rgb(243, 244, 246);
    padding: 40px 20px;
    text-align: center;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: rgb(229, 231, 235);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.info-table th, .info-table td {
    padding: 15px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(238, 238, 238);
    text-align: left;
}

.info-table th {
    width: 25%;
    min-width: 120px;
    font-weight: 700;
    color: var(--text-main);
    background-color: rgb(249, 250, 251);
}

.info-table td {
    color: var(--text-sub);
}

.company-map {
    margin-top: 50px;
    height: auto;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 10px;
}

.contact {
    padding: var(--section-padding);
    background-color: var(--surface-color);
}

.contact-form {
    margin-top: 40px !important;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.required {
    color: red;
    margin-left: 4px;
    font-size: 0.8rem;
}

input[type="text"], input[type="email"], textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgb(221, 221, 221);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    background: rgb(250, 250, 250);
}

input:focus, textarea:focus, select:focus {
    outline: currentcolor;
    border-color: var(--accent-color);
    background: rgb(255, 255, 255);
    box-shadow: rgba(37, 99, 235, 0.1) 0px 0px 0px 3px;
}

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

.btn-submit {
    background-color: var(--accent-color);
    color: rgb(255, 255, 255);
    border: medium;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    width: 100%;
    transition: 0.3s;
    margin-top: 30px;
    text-align: center;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.confirm-box {
    background: rgb(255, 255, 255);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 50px;
    border: 1px solid rgb(221, 221, 221);
}

.confirm-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(238, 238, 238);
    font-size: 1rem;
}

footer {
    background-color: rgb(17, 17, 17);
    color: rgb(156, 163, 175);
    padding: 60px 0px 20px;
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: rgb(255, 255, 255);
    font-size: 1rem;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgb(156, 163, 175);
    transition: color 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: rgb(255, 255, 255);
    transform: translateX(3px);
}

.footer-bottom {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: rgb(51, 51, 51);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgb(102, 102, 102);
}

.social {
    padding: 60px 20px;
    background-color: var(--text-main);
    color: rgb(255, 255, 255);
    text-align: center;
}

.social h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: rgb(255, 255, 255);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.social-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
}

.social-icon:hover {
    color: rgb(255, 255, 255);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgb(255, 255, 255);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease-in-out;
        box-shadow: rgba(0, 0, 0, 0.1) -5px 0px 15px;
        z-index: 1000;
        gap: 40px;
    }

    .nav-links.active {
        right: 0px;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    .hero-content {   
        padding: 10px 10px 25px;
    }
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        margin-bottom: 1rem; 
    }

    .profile-card, .profile-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .profile-img, .profile-image-large {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0px auto;
        height: auto;
    }

    .bio-text h3 {
        text-align: left;
    }

    .profile-tags {
        justify-content: center;
    }

    .info-table th, .info-table td {
        display: block;
        width: 100%;
    }

    .info-table th {
        border-bottom-width: medium;
        border-bottom-style: none;
        border-bottom-color: currentcolor;
        padding-bottom: 5px;
        color: var(--accent-color);
    }

    .info-table td {
        padding-top: 0px;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: rgb(238, 238, 238);
    }

    .content-section {
        padding: 30px 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

