@charset "UTF-8";

/* =========================================
   Global Styles & Reset
========================================= */
:root {
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --border-color: #dddddd;
    --white: #FFFFFF;
}

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

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.body-no-scroll {
    overflow: hidden;
}

/* Stop animations during window resize to prevent layout flicker */
.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}

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

/* スクロール位置をヘッダーの高さ分ずらす (index.html) */
[id] {
    scroll-margin-top: 80px;
}

/* =========================================
   Layout (Common)
========================================= */
.container {
    width: 100%;
    max-width: 1152px; /* lg breakpoint */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-subtitle {
    color: var(--gray-600);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.text-center {
    text-align: center;
}

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

/* =========================================
   Header (Common)
========================================= */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--gray-800);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}

.nav-links a {
    color: var(--gray-600);
    transition: color 0.3s ease;
    font-size: 1.5rem;
}

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

.nav-menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.nav-menu-button .icon-close {
    display: none;
}

.nav-menu-button.is-open {
    color: var(--white);
}

.nav-menu-button.is-open .icon-menu {
    display: none;
}

.nav-menu-button.is-open .icon-close {
    display: block;
}

.nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.nav-links.is-open a {
    color: var(--white);
}

.btn-entry {
    display: none;
    background-color: var(--blue-600);
    color: var(--white);
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.btn-entry:hover {
    background-color: var(--blue-700);
}

/* =========================================
   Footer (Common)
========================================= */
.footer {
    background-color: var(--gray-800);
    color: var(--white);
    padding: 2.5rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0;
    margin-bottom: 1rem;
}

.footer-links li {
    white-space: nowrap; 
}

.footer-links a {
    display: block;
    font-size: 0.75rem;
    transition: opacity 0.3s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover,
.social-links a:hover {
    opacity: 0.75;
}

.social-links svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    transform: translateY(-4%);
}

.copyright {
    color: #9CA3AF;
    font-size: 0.75rem;
}

/* =========================================
   Top Page (index.html)
========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height:100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: black;
    opacity: 0.6;
    z-index: 1;
}
    
.halftone {
    width: 100%;
}

.halftone::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    background-image: radial-gradient(#000 10%, transparent 90%);
    background-color: rgb(70, 70, 70);
    background-position: 0 0;
    background-size: 3px 3px;
    mix-blend-mode: screen;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 25rem;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
    margin-bottom: 0;
}

.hero-copyright {
    position: absolute;
    inset: 0;
    top: 95%;
    padding-right: 1.5rem;
    color: var(--gray-250);
    font-size: 0.65rem;
    text-align: right;
    z-index: 2;
}

.features-section {
    background-color: var(--white);
}

.nmd-intro {
    max-width: 56rem;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.nmd-intro p {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    text-align: left;
}

.feature-box {
    background-color: var(--gray-50);
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.cel-look-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.cel-look-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-700);
    margin-bottom: 1rem;
}

.cel-look-content p {
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.cel-look-copyright {
    color: var(--gray-250);
    font-size: 0.65rem;
    text-align: right;
}

.originality-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.originality-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease;
}

.originality-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-600);
}

.originality-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.originality-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.originality-text {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.works-section {
    background-color: var(--gray-50);
}

.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.works-grid > a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.work-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.work-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.work-card-copyright {
    margin-top: auto;
    color: var(--gray-250);
    font-size: 0.65rem;
    text-align: right;
}

.work-card:hover {
     box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
     transform: translateY(-0.5rem);
}

.work-card-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.work-card-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.careers-section {
     background-color: var(--white);
}

.job-posting {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    background-color: var(--gray-50);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
}

.job-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.job-description {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

ol.job-description,
ol.job-category {
    padding-left: 4rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

ol.job-description li,
ol.job-category li {
    padding-left: 1rem;
}

.job-details h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.job-details ul {
    list-style-position: inside;
    list-style-type: disc;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    padding-left: 3rem;
}

.job-details ul li + li {
    margin-top: 0.25rem;
}

.btn-apply {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--blue-600);
    color: var(--white);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.btn-apply:hover {
    background-color: var(--blue-700);
}

.about-box {
    display: block;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    text-decoration: none;
    color: inherit;
}

.about-box img {
    width: 100%;
    height: auto;
    max-width: 300px;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* =========================================
   Text Pages (about.html / privacy.html)
========================================= */
.text-page-title,
.privacy-title {
    margin-bottom: 3rem;
}

.text-page-final-text,
.privacy-final-text {
    margin-top: 3rem;
    text-align: right;
}

.text-page-container,
.privacy-container {
    max-width: 800px;
}

.text-page-content,
.privacy-content {
    color: var(--gray-800);
    line-height: 1.8;
}

.text-page-content h2,
.privacy-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-900);
}

.text-page-content h2:first-of-type,
.privacy-content h2:first-of-type {
    margin-top: 1rem;
}

.text-page-content p,
.privacy-content p {
    margin-bottom: 1.5rem;
}

.text-page-content ul,
.privacy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.text-page-content li,
.privacy-content li {
    margin-bottom: 0.5rem;
}

.contact-box {
    background-color: var(--gray-100);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* =========================================
   Contact Form (contact.html)
========================================= */
.contact-form-container {
    max-width: 48rem;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.contact-form-container a {
    color: var(--blue-600);
    font-weight: bold;
}

.contact-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: var(--gray-800);
}

.contact-title span {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 5px;
    letter-spacing: 2px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
    color: var(--gray-700);
    font-size: 0.875rem;
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.required-tag {
    color: #e22d2d;
    font-size: 0.75rem;
    margin-left: 5px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    background-color: #fafafa;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue-600);
    background-color: #ffffff;
}

hr {
    border: none;
    border-top: 1px solid #eeeeee;
    margin: 40px 0;
}

.privacy-section {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 40px;
}

.privacy-section h3 {
    font-size: 0.875rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--blue-600);
    display: inline-block;
    padding-bottom: 5px;
}

.privacy-section p {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.875rem;
    cursor: pointer;
    justify-content: center;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.submit-btn-wrap {
    text-align: center;
    margin-bottom: 50px;
}

button[type="submit"] {
    background-color: var(--blue-600);
    color: #ffffff;
    border: none;
    padding: 18px 45px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    width: 100%;
    max-width: 400px;
    letter-spacing: 1px;
}

button[type="submit"]:hover:not(:disabled) {
    background-color: var(--blue-700);
}

button[type="submit"]:active:not(:disabled) {
    transform: scale(0.98);
}

button[type="submit"]:disabled {
    background-color: #cccccc;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.8;
}

.notes {
    background-color: #fffaf0;
    padding: 30px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--gray-600);
    border: 1px solid #f2e3c6;
}

.notes h3 {
    font-size: 0.875rem;
    color: #d18f1f;
    margin-bottom: 15px;
}

.notes ol {
    padding-left: 20px;
}

.notes li {
    margin-bottom: 10px;
}

.notes li:last-child {
    margin-bottom: 0;
}

/* =========================================
   Thanks Page (thanks.html)
========================================= */

/* .thanks-container を含む main タグのみに適用して他ページの崩れを防ぐ */
main:has(.thanks-container) {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thanks-container {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    padding: 60px 40px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
}

.thanks-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--blue-600);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.thanks-message {
    font-size: 16px;
    color: var(--gray-800);
    margin-bottom: 50px;
    line-height: 2;
}

.back-btn {
    display: inline-block;
    background-color: var(--blue-600);
    color: #ffffff;
    padding: 16px 50px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.1s;
    letter-spacing: 1px;
}

.back-btn:hover {
    background-color: var(--blue-700);
    text-decoration: none;
}

.back-btn:active {
    transform: scale(0.98);
}

/* =========================================
   Responsive Breakpoints
========================================= */
@media (min-width: 768px) {
    /* Header Navigation */
    .nav-links, .nav-links.is-open {
        display: flex;
        position: static;
        flex-direction: row;
        background-color: transparent;
        backdrop-filter: none;
        gap: 2rem;
        z-index: auto;
        width: auto;
        height: auto;
        opacity: 1;
        visibility: visible;
        transition: none; 
    }

    .nav-links a, .nav-links.is-open a {
        font-size: inherit;
        color: var(--gray-600);
    }

    .nav-links a:hover, .nav-links.is-open a:hover {
        color: var(--blue-600);
    }

    .btn-entry {
        display: inline-block;
    }

    .nav-menu-button {
        display: none;
    }

    /* General layout adjustments */
    .section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    /* index.html layout adjustments */
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        max-width: 72rem;
        font-weight: 700;
    }

    .hero-copyright {
        top: 97%;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cel-look-container {
        flex-direction: row;
        align-items: center;
    }

    .originality-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nmd-intro p {
        text-align: center;
    }

    /* contact.html layout adjustments */
    .privacy-section {
        padding: 30px;
        margin-bottom: 40px;
    }

    .privacy-section h3 {
        font-size: 0.875rem;
        margin-bottom: 15px;
        padding-bottom: 5px;
    }

    .privacy-section p {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }

    .checkbox-label {
        font-size: 0.875rem;
        padding: 15px;
    }

    button[type="submit"] {
        padding: 18px 60px;
        font-size: 1rem;
    }

    /* thanks.html layout adjustments */
    .thanks-container {
        padding: 40px 20px;
    }
}

@media (min-width: 1024px) {
    /* index.html layout adjustments */
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}