/* =============================================
   Pattern 21: Photo Portfolio
   SHUTTER — Photography — 完成版 (Tenowa Kobo Optimized)
   Theme Name: 21_Photo_Portfolio_WP
   ============================================= */

:root {
    --c-black: #111111;
    --c-white: #ffffff;
    --c-gray: #888888;
    --c-dark: #1a1a1a;
    --c-gold: #d4af37;

    --f-main: "Cormorant Garamond", serif;
    --f-ja: "Zen Old Mincho", serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--f-ja);
    color: var(--c-white);
    background: var(--c-black);
    line-height: 1.8;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== ヘッダー ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== ロゴ ===== */
.logo a {
    display: block;
    transition: opacity 0.3s;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

/* ===== ナビゲーション ===== */
.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s;
}

.nav-main {
    font-family: var(--f-main);
    font-size: 1rem;
    color: var(--c-white);
    letter-spacing: 0.1em;
    font-weight: 500;
}

.nav-sub {
    font-size: 0.6rem;
    color: var(--c-gray);
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.nav a:hover .nav-main {
    color: var(--c-gold);
}

/* ===== ハンバーガーメニュー (SP用) ===== */
.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--c-white);
    transition: all 0.4s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 11px;
}

.hamburger span:nth-child(3) {
    top: 22px;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* SPオーバーレイメニュー */
.overlay-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--c-black);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.overlay-nav.is-active {
    opacity: 1;
    visibility: visible;
}

.overlay-menu {
    list-style: none;
    text-align: center;
}

.overlay-menu li {
    margin: 30px 0;
}

.overlay-menu a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.overlay-menu .nav-main {
    font-size: 1.8rem;
}

/* ===== ヒーロースライダー ===== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    filter: brightness(0.4);
}

.hero-slider-img.is-active {
    opacity: 1;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.highlight-text {
    position: relative;
    padding-bottom: 5px;
}

.highlight-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--c-white);
}

/* ===== ボタン ===== */
.btn-photo {
    display: inline-block;
    padding: 16px 45px;
    border: 1px solid var(--c-white);
    color: var(--c-white);
    text-decoration: none;
    font-family: var(--f-main);
    font-size: 1rem;
    letter-spacing: 0.15em;
    transition: all 0.4s;
    background: transparent;
}

.btn-photo:hover {
    background: var(--c-white);
    color: var(--c-black);
    transform: translateY(-3px);
}

/* ===== セクション ===== */
.section {
    padding: 120px 0;
}

.section--dark {
    background: var(--c-dark);
}

.section-title {
    font-family: var(--f-main);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
}

.sub-ja {
    font-family: var(--f-ja);
    font-size: 0.8rem;
    color: var(--c-gray);
    letter-spacing: 0.1em;
    margin-top: 10px;
}

/* ===== 作品グリッド (Masonry) ===== */
.masonry {
    columns: 3;
    column-gap: 15px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 1s, filter 1s;
}

.masonry-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.masonry-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    font-family: var(--f-main);
    font-size: 0.9rem;
    color: var(--c-white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s;
    pointer-events: none;
}

.masonry-item:hover .masonry-caption {
    opacity: 1;
    transform: translateY(0);
}

.masonry-item--tall img {
    min-height: 400px;
    object-fit: cover;
}

/* ===== 写真帯 ===== */
.photo-band {
    height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.band-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    transition: transform 1s;
}

.photo-band:hover .band-bg {
    transform: scale(1.05);
}

.band-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.band-quote {
    font-family: var(--f-main);
    font-size: 3.5rem;
    line-height: 1.2;
}

/* ===== ABout / Service ===== */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img img {
    width: 100%;
    filter: grayscale(0.3);
    transition: filter 0.5s;
}

.about-img:hover img {
    filter: grayscale(0);
}

.about-text p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--c-gold);
}

.service-img {
    height: 250px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-body {
    padding: 30px;
}

.service-num {
    font-family: var(--f-main);
    font-size: 2.5rem;
    color: rgba(212, 175, 55, 0.3);
    display: block;
    margin-bottom: 10px;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-q {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 35px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s;
}

.faq-q:hover {
    border-color: var(--c-gold);
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-icon::after {
    content: "＋";
}

details[open] .faq-icon::after {
    content: "－";
}

.faq-a {
    padding: 25px 40px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.6);
}

/* ===== フッター ===== */
.footer {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== アニメーション ===== */
.anim {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.anim.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-hero-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.anim-hero-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-delay-1 {
    transition-delay: 0.2s;
}

.anim-delay-2 {
    transition-delay: 0.4s;
}

/* ===== レスポンシブ ===== */
@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .masonry {
        columns: 1;
    }
}

@media (max-width: 500px) {
    .hero-title {
        font-size: 1.6rem;
    }
}

/* PC専用表示制御 */
@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }

    .btn-photo {
        font-size: 0.8rem !important;
        padding: 12px 24px !important;
        white-space: nowrap !important;
    }

    .footer-nav {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }
}

/* WP基本パーツの互換性 */
.wp-content-wrapper {
    font-family: var(--f-ja);
}

/* ==========================================================
 * Contact Form 7 カスタマイズCSS (Dark Theme & Gold Accent)
 * ========================================================== */
.wpcf7 {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.form-required,
.form-optional {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 10px;
    vertical-align: middle;
}

.form-required {
    background-color: #d4af37;
    color: #fff;
}

.form-optional {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.6);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #d4af37;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-radio-group .wpcf7-list-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 15px;
}

.form-radio-group input[type="radio"] {
    display: none;
}

.form-radio-group .wpcf7-list-item-label {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.form-radio-group input[type="radio"]:checked+.wpcf7-list-item-label {
    background-color: #d4af37;
    color: #ffffff;
    border-color: #d4af37;
}

.form-submit-group {
    text-align: center;
    margin-top: 50px;
}

.wpcf7-submit {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #d4af37;
    background-color: transparent;
    color: #d4af37;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    cursor: pointer;
    min-width: 250px;
}

.wpcf7-submit:hover {
    background: #d4af37;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.wpcf7 form .wpcf7-response-output {
    margin: 2em 0.5em 1em;
    padding: 15px;
    border-radius: 4px;
    border: none;
    background: rgba(255, 0, 0, 0.1);
    color: #ffcccc;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-left: 4px solid #d4af37;
}

span.wpcf7-not-valid-tip {
    color: #ffcccc;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}