:root {
    --bg: #1f2022;
    --bg2: #222427;
    --fg: #f5f6f7;
    --muted: rgba(245, 246, 247, .72);
    --shadow: 0 18px 60px rgba(0, 0, 0, .55);

    --brand-orange: #E37A1F;

    /* display font vibe */
    --display-font: "Cooper Black", "Luckiest Guy", ui-rounded, system-ui, -apple-system, "Segoe UI", "Noto Sans JP", sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--fg);
    background: var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans JP", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: .02em;
}

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

/* =========================
   WordPress admin-bar 対策（カスタマイザー/ログイン時のズレ防止）
   ========================= */
body.admin-bar .topnav {
    top: calc(18px + 32px);
}

@media (max-width: 767px) {
    body.admin-bar .topnav {
        top: calc(12px + 46px);
    }
}

/* =========================
   Section Head / Typography
   ========================= */
.section__head {
    text-align: center;
    margin: 0 0 16px;
    letter-spacing: .08em;
}

.section__head h2 {
    color: #faab46;
    margin: 0 0 10px;
    font-size: clamp(34px, 5.2vw, 60px);
}

.section__head p {
    font-size: 16px;
    letter-spacing: 0;
    color: #222;
    line-height: 2.0;
    margin: 12px auto 0;
    max-width: 1100px;
    padding: 0 24px;
}

#story .section__head h2,
#profile .section__head h2 {
    font-size: inherit;
}

.scroll-title {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-title.is-show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   Background sections
   ========================= */
#work,
#works,
#news,
#contact {
    background-image: url("./img/back.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* =========================
   Top Nav (PC)
   ========================= */
.topnav {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 30;
}

.topnav__menu {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px;
    background: rgba(180, 215, 230, 0.85);
    backdrop-filter: blur(6px);
}

.topnav__menu a {
    font-size: 13px;
    opacity: .84;
    color: #2b2b2b;
    font-weight: 600;
}

.topnav__menu a:hover {
    opacity: 1;
    color: #111;
}

/* 旧ハンバーガー（使ってないなら残っててもOKだが、表示は出さない） */
.hamburger {
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    display: none;

    border-radius: 999px;
    background: rgba(180, 215, 230, 0.85);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
}

.hamburger span {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2px;
    background-color: #333;
    transform: translateX(-50%);
    transition: transform 0.35s ease, opacity 0.25s ease, top 0.35s ease;
}

.hamburger span:first-of-type {
    top: 14px;
}

.hamburger span:nth-of-type(2) {
    top: 21px;
}

.hamburger span:last-of-type {
    top: 28px;
}

/* =========================
   Hero
   ========================= */
.hero--single {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
        url("./img/FV.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__titleWrap {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero__title {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-orange);
    font-size: clamp(40px, 6.2vw, 92px);
    line-height: 1.02;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, .06),
        0 12px 40px rgba(0, 0, 0, .20);
}

.hero__scroll {
    position: absolute;
    right: 24px;
    bottom: 0px;
    display: grid;
    justify-items: center;
    gap: 10px;
    z-index: 5;
}

.hero__scroll span {
    writing-mode: vertical-rl;
    letter-spacing: .18em;
    font-size: 14px;
    color: rgba(0, 0, 0, .65);
}

.scroll-line {
    position: relative;
    width: 2px;
    height: 150px;
    background: rgba(0, 0, 0, .20);
    border-radius: 999px;
    overflow: hidden;
}

.scroll-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: -35%;
    width: 100%;
    height: 35%;
    background: rgba(0, 0, 0, .60);
    border-radius: 999px;
    animation: scrollLineFlow 1.4s ease-in-out infinite;
}

@keyframes scrollLineFlow {
    0% {
        top: -35%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    50% {
        top: 40%;
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

/* =========================
   Sections base
   ========================= */
.section {
    padding: 72px 34px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: var(--bg);
}

.section__body {
    margin-top: 22px;
}

/* =========================
   STORY / PROFILE background
   ========================= */
#story,
#profile {
    position: relative;
    background-image: url("./img/story-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* STORY */
.story-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    border: none;
    background: transparent;
}

.story-content p {
    color: #222;
    line-height: 2.0;
    text-shadow: none;
    margin: 0 auto;
    max-width: 1100px;
    padding: 0 24px;
}

.story-sep {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .18);
    margin: 22px 0;
    width: min(520px, 100%);
}

/* =========================
   PROFILE
   ========================= */
#profile .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#profile .profile-name {
    color: #1d7ef6;
}

.profile-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.profile-left {
    min-width: 0;
}

.profile-name {
    margin: 0 0 14px;
    font-size: 22px;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .92);
}

.profile-bio p {
    margin: 0 0 14px;
    line-height: 2.0;
    color: #222;
    max-width: 620px;
}

.profile-ig {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 18px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #1d7ef6;
    background: rgba(255, 255, 255, .40);
}

.profile-ig:hover {
    background: rgba(255, 255, 255, .55);
}

.ig-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-color: #1d7ef6;
    -webkit-mask: url("https://unpkg.com/simple-icons@v9/icons/instagram.svg") no-repeat center / contain;
    mask: url("https://unpkg.com/simple-icons@v9/icons/instagram.svg") no-repeat center / contain;
}

/* Skills */
.profile-skills h4 {
    margin: 18px 0 10px;
    color: #222;
    font-size: 16px;
    letter-spacing: .06em;
}

.profile-skills ul {
    margin: 0;
    padding-left: 18px;
    color: #222;
    line-height: 1.9;
}

.profile-right {
    display: flex;
    justify-content: flex-end;
}

.photo-card {
    width: min(380px, 100%);
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    border: none;
    background-image: url("./img/photo.jpg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================
   WORK
   ========================= */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

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

.work-item img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    cursor: zoom-in;
}

.work-text {
    margin-top: 12px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.work-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
}

.btn-allview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .04em;
    color: #2b2b2b;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .6);
    backdrop-filter: blur(6px);
}

.btn-allview:hover {
    background: rgba(255, 255, 255, .75);
}

.work-grid--all {
    grid-template-columns: repeat(4, 1fr);
}

/* =========================
   NEWS
   ========================= */
#news {
    text-align: center;
}

#news .news {
    list-style: none;
    padding: 0;
    margin: 24px auto 0;
    max-width: 900px;
}

#news .news li {
    color: #2f2f2f;
    font-size: 16px;
    line-height: 1.9;
    text-align: center;
}

#news .news li span {
    display: inline-block;
    margin-right: 12px;
    color: #666;
    font-size: 14px;
}

/* =========================
   CONTACT（あなたのデザイン）
   ========================= */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    background: #ffffff;
    color: #333;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button,
.contact-form input[type="submit"] {
    margin-top: 8px;
    padding: 14px;
    border-radius: 999px;
    border: none;
    background: #faab46;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

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

/* =========================
   Contact Form 7 を “contact-form” に完全統合
   （ショートコード文字が出る/余白が崩れる系を抑制）
   ========================= */

/* CF7が勝手に入れる余白・改行をリセット */
.contact-form p {
    margin: 0;
}

.contact-form br {
    display: none;
}

/* CF7のwrapは幅100%に */
.contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* CF7の入力系を全部あなたのデザインに寄せる */
.contact-form .wpcf7-form-control {
    width: 100%;
}

/* labelがあっても崩れないように */
.contact-form label {
    display: block;
    width: 100%;
}

/* 必須などの表示が邪魔なら整える */
.contact-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 13px;
    color: #b00020;
}

.contact-form .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   Footer
   ========================= */
.footer {
    padding: 26px 34px;
    background: #c2eeff;
    color: #333;
    text-align: center;
}

/* =========================
   Modal (Work tap → image-only)
   ========================= */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 50;
}

.modal.is-open {
    display: block;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .62);
}

.modal__panel {
    position: relative;
    width: min(980px, calc(100% - 28px));
    margin: 5vh auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(30, 32, 34, .96);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(0, 0, 0, .28);
    color: var(--fg);
    font-size: 22px;
    cursor: pointer;
}

.modal__media {
    min-height: 460px;
    background:
        radial-gradient(700px 280px at 30% 20%, rgba(255, 255, 255, .14), transparent 60%),
        rgba(0, 0, 0, .22);
    background-size: cover;
    background-position: center;
    border-right: 1px solid rgba(255, 255, 255, .10);
}

.modal__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.modal__body {
    padding: 18px;
}

.modal__body h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.meta {
    margin: 0 0 10px;
    color: var(--muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tags .tag {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, .86);
}

.modal.modal--image .modal__body {
    display: none;
}

.modal.modal--image .modal__panel {
    grid-template-columns: 1fr;
    width: min(1100px, calc(100% - 24px));
    margin: 6vh auto;
}

.modal.modal--image .modal__media {
    border-right: none;
    min-height: 70vh;
}

/* =========================
   Left-top rotating text
   ========================= */
.corner-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 520px;
    height: 320px;
    overflow: hidden;
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    mix-blend-mode: normal;
    filter: none;
}

.corner-left__svg {
    position: absolute;
    width: 660px;
    height: 660px;
    top: -360px;
    left: -360px;
    transform-origin: 50% 50%;
    animation: cornerSpin 18s linear infinite reverse;
    opacity: 1;
    mix-blend-mode: normal;
    filter: none;
}

.corner-left__text {
    fill: #faab46;
    font-size: 9px;
    letter-spacing: 2px;
    font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", sans-serif;
}

.corner-left__text textPath {
    fill: #faab46;
}

@keyframes cornerSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .corner-left__svg {
        animation: none;
    }
}

/* =========================
   Responsive (Tablet)
   ========================= */
@media (max-width: 1024px) {
    .section {
        padding: 64px 24px;
    }

    .work-grid {
        gap: 28px;
    }

    .profile-grid {
        gap: 28px;
    }
}

/* =========================
   Responsive (Mobile)
   ========================= */
@media (max-width: 767px) {

    .corner-left {
        width: 320px;
        height: 200px;
        opacity: 0.85;
    }

    .corner-left__svg {
        width: 420px;
        height: 420px;
        top: -230px;
        left: -230px;
    }

    .section {
        padding: 48px 16px;
    }

    .section__head h2 {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .section__head p {
        font-size: 14px;
        padding: 0 8px;
    }

    .story-content p,
    .profile-bio p {
        font-size: 14px;
        line-height: 1.9;
        padding: 0 8px;
    }

    /* HERO */
    .hero__titleWrap {
        padding: 0 14px;
    }

    .hero__scroll {
        right: 14px;
    }

    .scroll-line {
        height: 110px;
    }

    .topnav {
        top: 12px;
        right: 12px;
        left: 12px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .profile-right {
        order: 1;
        justify-content: center;
    }

    .profile-left {
        order: 2;
    }

    .photo-card {
        width: min(260px, 100%);
        background-size: cover;
        border-radius: 16px;
    }

    .profile-name {
        font-size: 18px;
    }

    #work .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    #work .work-grid .work-item:nth-child(n + 5) {
        display: none;
    }

    .work-grid--all {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .work-item img {
        border-radius: 12px;
    }

    .work-text {
        font-size: 13px;
    }

    /* NEWS */
    #news .news li {
        font-size: 14px;
    }

    #news .news li span {
        display: block;
        margin: 0 0 6px;
    }

    /* CONTACT */
    .contact-form {
        gap: 12px;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 14px;
        padding: 12px 14px;
    }

    .contact-form button,
    .contact-form input[type="submit"] {
        font-size: 15px;
    }

    .modal__panel {
        grid-template-columns: 1fr;
        width: min(960px, calc(100% - 18px));
        margin: 10vh auto;
    }

    .modal__media {
        min-height: 55vh;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .10);
    }

    .modal.modal--image .modal__media {
        min-height: 70vh;
    }

    /* Footer */
    .footer {
        padding: 22px 16px;
    }
}

@media (max-width: 360px) {
    .section__head h2 {
        font-size: 34px;
    }

    .topnav__menu {
        width: 86vw;
    }
}

#story .section__head h2,
#profile .section__head h2 {
    font-size: clamp(34px, 5.2vw, 60px) !important;
}

@media (min-width: 768px) {
    .modal.modal--image .modal__panel {
        width: min(980px, calc(100% - 48px));
        margin: 6vh auto;
    }

    .modal.modal--image .modal__media {
        min-height: auto;
        height: auto;
        max-height: 86vh;
        display: grid;
        place-items: center;
        padding: 10px;
        border-right: none;
    }

    .modal.modal--image .modal__media img {
        max-width: 100%;
        max-height: 86vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}

@media (max-width: 767px) {
    .modal.modal--image .modal__media {
        max-height: 80vh;
    }

    .modal.modal--image .modal__media img {
        max-height: 80vh;
    }
}

.work-item {
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
}

.work-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
}

.work-text {
    margin-top: 0;
    line-height: 1.4;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 767px) {
    #work .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    #work .work-grid .work-item:nth-child(n + 5) {
        display: none;
    }

    .work-grid--all {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .work-item img {
        border-radius: 12px;
        aspect-ratio: 1 / 1;
    }

    .work-text {
        font-size: 13px;
        min-height: 2.8em;
    }
}

/* ===== Fix: ハンバーガーの枠だけ出る問題 ===== */

/* PCでは確実に非表示 */
@media (min-width: 769px) {
    .topnav__toggle {
        display: none !important;
    }
}

/* スマホだけ表示＋見た目を整える */
@media (max-width: 768px) {
    .topnav__toggle {
        display: inline-flex !important;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        border-radius: 999px;
        cursor: pointer;
    }

    .topnav__toggle .bars,
    .topnav__toggle .bars::before,
    .topnav__toggle .bars::after {
        background: #2b2b2b;
    }
}

/* ===== Mobile hamburger: 必ず表示する（最終上書き） ===== */
@media (max-width: 768px) {
    .topnav {
        pointer-events: auto;
    }

    .topnav__toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0 !important;
        background: rgba(180, 215, 230, 0.85);
        border-radius: 999px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
        cursor: pointer;
    }

    .topnav__toggle .bars {
        display: block !important;
        width: 20px;
        height: 2px;
        background: #2b2b2b;
        position: relative;
        border-radius: 999px;
    }

    .topnav__toggle .bars::before,
    .topnav__toggle .bars::after {
        content: "";
        position: absolute;
        left: 0;
        width: 20px;
        height: 2px;
        background: #2b2b2b;
        border-radius: 999px;
    }

    .topnav__toggle .bars::before {
        top: -6px;
    }

    .topnav__toggle .bars::after {
        top: 6px;
    }
}

/* =========================
   Mobile Nav: 右からスライド（最終版）
   ========================= */

/* スマホではPC用横並びナビを消す */
@media (max-width: 768px) {
    .topnav__menu {
        display: none !important;
    }
}

/* 右から出るシート（初期は画面外） */
.topnav-sheet {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 84vw);
    height: 100vh;
    z-index: 1000;

    display: grid;
    align-content: start;
    gap: 12px;

    padding: 90px 18px 18px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, .12);

    background: rgba(180, 215, 230, 0.85) !important;
    backdrop-filter: blur(8px);
    color: #2b2b2b;

    transform: translateX(110%);
    transition: transform .28s ease;
}

.topnav-sheet.is-open {
    transform: translateX(0);
}

/* ここが事故りポイント：PCまで強制表示しないように “スマホ幅だけ” で有効化 */
@media (max-width: 768px) {
    .topnav-sheet[hidden] {
        display: grid !important;
    }
}

/* PCではモバイルUIは完全に消す（保険） */
@media (min-width: 769px) {

    .topnav-sheet,
    .nav-backdrop {
        display: none !important;
    }
}

/* リンクの見た目（縦並び） */
.topnav-sheet a {
    display: block;
    font-weight: 800;
    opacity: .95;
    padding: 12px 10px;
    border-radius: 12px;
    color: #2b2b2b !important;
}

.topnav-sheet a:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* 背景（画面全体の暗幕） */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(180, 215, 230, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Work：画像サイズと並びの統一 */
.work-thumb {
    padding: 0;
    border: 0;
    background: transparent;
    width: 100%;
    display: block;
    cursor: pointer;
}

.work-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.work-text a {
    color: #333;
}

.work-text a:hover {
    opacity: .85;
}

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

#lightbox.is-open {
    display: block;
}

#lightbox .lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(180, 215, 230, 0.55);
}

#lightbox .lb-panel {
    position: relative;
    width: min(980px, calc(100% - 24px));
    margin: 6vh auto;
    background: rgba(255, 255, 255, .85);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

#lightbox .lb-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: rgba(0, 0, 0, .10);
    cursor: pointer;
    font-size: 22px;
}

#lightbox .lb-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ===== Works一覧ページ：背景をページ全体に表示 ===== */
.page-works {
    min-height: 100vh;
    background-image: url("./img/back.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.page-works #works {
    background: transparent !important;
}

/* ===== Works一覧・詳細 共通背景 ===== */
.page-works,
.single-works-page {
    min-height: 100vh;
    background-image: url("./img/back.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.page-works #works,
.single-works-page #work-detail {
    background: transparent !important;
}

/* ===== News 詳細ページ ===== */
.page-news-single {
    min-height: 100vh;
    background-image: url("./img/back.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.news-content {
    color: #222;
    line-height: 2.0;
    background: rgba(255, 255, 255, 0.6);
    padding: 24px;
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.news-content p {
    margin-bottom: 1.5em;
}

/* section の黒背景を無効化 */
.page-news-single .section {
    background: transparent !important;
}

/* =========================
   CONTACT (CF7) - design unify
   ========================= */

#contact .contact-panel {
    max-width: 720px;
    margin: 0 auto;
    padding: 22px 18px;
    border-radius: 18px;

    /* 背景を紫になじませる */
    background: rgba(255, 255, 255, .35);

    /* ぼかしを少し強めて背景と一体化 */
    backdrop-filter: blur(10px);

    /* 影を弱く＆広く（浮かせすぎない） */
    box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
}


/* 「フォーム未設定」文言 */
#contact .contact-empty {
    margin: 0;
    color: #222;
    line-height: 2.0;
    text-align: center;
}

/* CF7の外枠 */
#contact .wpcf7 {
    margin: 0 auto;
    color: #222;
    /* ラベル・本文を黒寄りに */
}

/* CF7が勝手に入れるp余白を殺して、縦並びのギャップを作る */
#contact .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

#contact .wpcf7 form p {
    margin: 0;
}

/* ラベル */
#contact .wpcf7 label {
    display: block;
    font-weight: 700;
    letter-spacing: .02em;
    color: #222;
    margin-bottom: 6px;
}

/* wrapはブロック化して100%に */
#contact .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* 入力デザイン統一 */
#contact .wpcf7 input[type="text"],
#contact .wpcf7 input[type="email"],
#contact .wpcf7 input[type="tel"],
#contact .wpcf7 input[type="url"],
#contact .wpcf7 select,
#contact .wpcf7 textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    background: rgba(255, 255, 255, .92);
    color: #333;
    outline: none;
}

/* テキストエリア */
#contact .wpcf7 textarea {
    resize: vertical;
    min-height: 160px;
}

/* プレースホルダー */
#contact .wpcf7 input::placeholder,
#contact .wpcf7 textarea::placeholder {
    color: rgba(0, 0, 0, .45);
}

/* 送信ボタン（wpcf7-submit） */
#contact .wpcf7 input[type="submit"],
#contact .wpcf7 .wpcf7-submit {
    margin-top: 8px;
    padding: 14px;
    border-radius: 999px;
    border: none;
    background: #faab46;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

#contact .wpcf7 input[type="submit"]:hover,
#contact .wpcf7 .wpcf7-submit:hover {
    opacity: .85;
}

/* バリデーション文言 */
#contact .wpcf7-not-valid-tip {
    margin-top: 8px;
    font-size: 13px;
    color: #b40000;
}

#contact .wpcf7-response-output {
    margin: 10px 0 0;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
}

/* モバイル微調整 */
@media (max-width: 767px) {
    #contact .contact-panel {
        padding: 18px 14px;
        border-radius: 16px;
    }

    #contact .wpcf7 form {
        gap: 12px;
    }

    #contact .wpcf7 input[type="text"],
    #contact .wpcf7 input[type="email"],
    #contact .wpcf7 input[type="tel"],
    #contact .wpcf7 input[type="url"],
    #contact .wpcf7 select,
    #contact .wpcf7 textarea {
        font-size: 14px;
        padding: 12px 14px;
    }

    #contact .wpcf7 input[type="submit"],
    #contact .wpcf7 .wpcf7-submit {
        font-size: 15px;
    }
}