/*
Theme Name: room102
Theme URI: https://shiroitofu.com
Author: 白いとうふ
Author URI: https://shiroitofu.com
Description: 102号室のためのオリジナルテーマ
Version: 1.5
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: room102
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f4f2;
    color: #333;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.8;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

header,
main,
footer {
    width: 100%;
}

header {
    padding: 32px 0;
}

main {
    padding: 64px 0;
}

footer {
    padding: 48px 0;
    font-size: 0.9rem;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: 2rem;
    font-weight: normal;
}

h2 {
    font-size: 1.6rem;
    font-weight: normal;
}

p {
    font-size: 1rem;
}


/* =========================
Hero
========================= */

.hero {
    padding: 8px 0 0;
}

.hero-image {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-concept {
    min-height: 38vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.2s linear;
}

.hero-concept p {
    margin: 0;
    font-family: "Noto Serif JP", serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.08em;
}



/* =========================
   Gallery
========================= */

.gallery {
    padding: 40px 0 100px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 72px;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}


/* =========================
   Work Single
========================= */

.work-single {
    padding: 0px 0 160px;
}

.work-single h1 {
    margin: 0 0 64px;
    font-family: "Noto Serif JP", serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.08em;
}

.work-image {
    max-width: 1000px;
    margin: 0 auto;
}

.work-image img {
    width: 100%;
    height: auto;
    display: block;
}

.work-content {
    max-width: 700px;
    margin: 80px auto 0;
    font-size: 0.95rem;
    line-height: 2;
}

.work-content p {
    margin: 0 0 1.5em;
}


/* =========================
   Work Navigation
========================= */

.work-navigation {
    max-width: 1000px;
    margin: 120px auto 0;
    padding-top: 32px;
    border-top: 1px solid #d8d8d4;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    font-family: "Noto Serif JP", serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.work-navigation a {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.work-navigation a:hover {
    opacity: 0.5;
}

.work-navigation-prev,
.work-navigation-next {
    width: 50%;
}

.work-navigation-next {
    text-align: right;
}


/* =========================
   Tablet
========================= */

@media (max-width: 900px) {

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 32px;
        row-gap: 56px;
    }
}


/* =========================
   Smartphone
========================= */

@media (max-width: 700px) {

    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 8px 0 0;
    }

    .hero-image {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-concept {
        min-height: 32vh;
    }

    .hero-concept p {
        font-size: 1.4rem;
        line-height: 1.8;
    }

    .gallery {
        padding: 24px 0 80px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 48px;
    }

    .work-single {
        padding: 8px 0 80px;
    }

    .work-single h1 {
        margin-bottom: 24px;
        font-size: 1rem;
    }

    .work-content {
        margin-top: 48px;
    }

    .work-navigation {
        margin-top: 64px;
        gap: 16px;
    }

    .about-page {
    padding: 56px 0 80px;
}

.about-page .container {
    max-width: none;
}

.about-section {
    margin-bottom: 64px;
}

.about-section h1 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.about-section h2 {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.about-section p {
    font-size: 0.9rem;
    line-height: 2.1;
}
.client-work-single {
    padding: 56px 0 80px;
}

.client-work-single h1 {
    margin-bottom: 32px;
    font-size: 1.2rem;
}

.client-work-content {
    margin-top: 48px;
}

.client-work-content p {
    font-size: 0.9rem;
    line-height: 2.1;
}

.client-work-meta {
    margin-top: 40px;
    padding-top: 20px;
}

.client-work-meta p {
    font-size: 0.8rem;
    line-height: 2;
}

.client-work-link {
    margin-top: 48px;
}
}


/* =========================
   Small Smartphone
========================= */

@media (max-width: 400px) {

    .gallery-grid {
        grid-template-columns: 1fr;
        row-gap: 48px;
    }
}
/* =========================
   Site Header
========================= */

.site-header {
    display: flex;
    align-items: center;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #333;
    text-decoration: none;
}

.site-name {
    font-family: "Noto Serif JP", serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.site-mark {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    font-family: "Noto Serif JP", serif;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}
@media (max-width: 700px) {

    .site-logo {
        gap: 10px;
    }

    .site-name {
        font-size: 1rem;
    }

    
}

.site-logo a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-mark-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 700px) {

    .site-logo a {
        gap: 5px;
    }

    .site-mark-image {
        width: 28px;
        height: 28px;
    }

}

/* =========================
   About
========================= */

.about-page {
    padding: 100px 0 140px;
}

.about-page .container {
    max-width: 800px;
}

.about-section {
    margin-bottom: 100px;
}

.about-section h1,
.about-section h2 {
    margin: 0 0 32px;
    font-family: "Noto Serif JP", serif;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.about-section h1 {
    font-size: 1.5rem;
}

.about-section h2 {
    font-size: 1.2rem;
}

.about-section p {
    margin: 0 0 8px;
    font-size: 0.95rem;
    line-height: 2.2;
}

.about-works {
    margin-bottom: 0;
}

.about-works a {
    display: inline-block;
    margin-top: 16px;
    color: #333;
    font-family: "Noto Serif JP", serif;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.about-works a:hover {
    opacity: 0.5;
}
/* =========================
   Client Work Single
========================= */

.client-work-single {
    padding: 100px 0 140px;
}

.client-work-single .container {
    max-width: 1000px;
}

.client-work-single h1 {
    margin: 0 0 56px;
    font-family: "Noto Serif JP", serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.08em;
}

.client-work-image {
    width: 100%;
}

.client-work-image img {
    width: 100%;
    height: auto;
    display: block;
}

.client-work-content {
    max-width: 700px;
    margin: 72px auto 0;
}

.client-work-content p {
    margin: 0 0 8px;
    font-size: 0.95rem;
    line-height: 2.2;
}

.client-work-meta {
    max-width: 700px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid #d8d8d4;
}

.client-work-meta p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 2;
}

.client-work-link {
    max-width: 700px;
    margin: 56px auto 0;
}

.client-work-link a {
    color: #333;
    font-family: "Noto Serif JP", serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.client-work-link a:hover {
    opacity: 0.5;
}
/* =========================
Client Works
========================= */

.client-works-page {
    padding: 80px 0 120px;
}

.client-works-intro {
    max-width: 700px;
    margin: 0 auto 80px;
    text-align: center;
}

.client-works-intro h1 {
    margin-bottom: 24px;
    font-family: "Noto Serif JP", serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.client-works-intro p {
    margin: 0 0 8px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.client-works-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 72px;
}

.client-work-item {
    margin: 0;
}

.client-work-item a {
    display: block;
    color: #333;
    text-decoration: none;
}

.client-work-item-image {
    margin-bottom: 20px;
    overflow: hidden;
}

.client-work-item-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.client-work-item h2 {
    margin: 0;
    font-family: "Noto Serif JP", serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

.client-work-item a:hover .client-work-item-image img {
    opacity: 0.7;
}

/* =========================
Client Works Smartphone
========================= */

@media (max-width: 700px) {

    .client-works-page {
        padding: 48px 0 80px;
    }

    .client-works-intro {
        margin-bottom: 48px;
    }

    .client-works-intro h1 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .client-works-intro p {
        font-size: 0.85rem;
    }

    .client-works-list {
        grid-template-columns: 1fr;
        row-gap: 56px;
    }

    .client-work-item-image {
        margin-bottom: 14px;
    }

    .client-work-item h2 {
        font-size: 0.95rem;
    }

}
/* =========================
Header Navigation
========================= */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
}

.site-logo a {
    color: #333;
    text-decoration: none;
}

.site-nav a {
    color: #333;
    text-decoration: none;
    font-family: "Noto Serif JP", serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.site-nav a:hover {
    opacity: 0.5;
}

@media (max-width: 700px) {

    .site-nav a {
        font-size: 0.8rem;
    }

}
/* =========================
Mobile Menu
========================= */

.menu-toggle {
    display: none;
    padding: 0;
    border: 0;
    background: none;
    color: #333;
    font-family: "Noto Serif JP", serif;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}

@media (max-width: 700px) {

    .site-header {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 10;

        width: 120px;
        padding: 16px 20px;

        background: #f4f4f2;
        border: 1px solid #d8d8d4;

        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
        
        flex-direction: column;
align-items: flex-start;
gap: 8px;

            
    }

    .site-nav a {
        display: block;
        font-size: 0.85rem;
        line-height: 1.8;


    display: flex;
    align-items: center;
    gap: 32px;

    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

}
/* =========================
Footer
========================= */

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

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-social a {
    display: block;
    width: 18px;
    height: 18px;
    color: #333;
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-social svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-copyright {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    opacity: 0.5;
}
header .site-header .site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
@media (max-width: 700px) {
    header .site-header .site-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

.footer-privacy {
    margin-bottom: 12px;
}

.footer-privacy a {
    color: #333;
    font-family: "Noto Serif JP", serif;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-privacy a:hover {
    opacity: 1;
}

/* =========================
Work Related Links
========================= */

.work-related-links {
    max-width: 700px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.work-related-links a {
    color: #333;
    font-family: "Noto Serif JP", serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.work-related-links a:hover {
    opacity: 0.5;
}

@media (max-width: 700px) {

    .work-related-links {
        margin-top: 40px;
        gap: 10px;
    }

    .work-related-links a {
        font-size: 0.85rem;
    }
}
/* =========================
Contact Form
========================= */

.contact-page {
    padding: 56px 0 120px;
}

.contact-page .container {
    max-width: 800px;
}

.contact-intro {
    margin-bottom: 64px;
}

.contact-intro h1 {
    margin-bottom: 32px;
    font-family: "Noto Serif JP", serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.contact-intro p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 2;
}

.contact-form label {
    display: block;
    margin-bottom: 32px;
    font-size: 0.85rem;
    line-height: 1.8;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #cfcfcb;
    border-radius: 0;
    background: transparent;
    color: #333;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.9rem;
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #777;
}

.contact-form .required {
    margin-left: 4px;
    font-size: 0.75rem;
    opacity: 0.6;
}



.contact-form input[type="submit"] {
    width: auto;
    margin-top: 24px;
    padding: 10px 32px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.contact-form input[type="submit"]:hover {
    opacity: 0.5;
}

@media (max-width: 700px) {

    .contact-page {
        padding: 32px 0 80px;
    }

    .contact-intro {
        margin-bottom: 48px;
    }

    .contact-intro h1 {
        margin-bottom: 24px;
        font-size: 1.3rem;
    }

    .contact-intro p {
        font-size: 0.85rem;
    }

    .contact-form label {
        margin-bottom: 28px;
    }

  
}
.contact-form input[type="checkbox"] {
    width: auto;
    margin: 0 8px 0 0;
    padding: 0;
    vertical-align: middle;
}

.contact-form .wpcf7-acceptance label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 0.85rem;
    line-height: 1.8;
}

.contact-form .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}
/* =========================
Work Year
========================= */

.work-year {
    max-width: 700px;
    margin: 32px auto 0;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    opacity: 0.55;
}

@media (max-width: 700px) {

    .work-year {
        margin-top: 24px;
        font-size: 0.75rem;
    }

}
/* =========================
Hero Mark
========================= */

.hero-image-inner {
    position: relative;
}

.hero-image .hero-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: none;
    animation: heroMarkFade 2.5s ease forwards;
}

@keyframes heroMarkFade {
    0%,
    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@media (max-width: 700px) {
    .hero-image .hero-mark {
        width: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image .hero-mark {
        animation: none;
        opacity: 0;
    }
}