@charset "UTF-8";

/*
  Mobile refinement draft
  Theme: 昭和の老舗写真商 / 生成り紙面 / 深緑 / 鈍い金茶 / 罫線中心
  Scope: 798px以下のみ。既存viewport設定はそのまま使用。
*/

@media screen and (max-width: 798px) {
    :root {
        --retro-bg: #f6ead2;
        --retro-bg-deep: #efe0bf;
        --retro-paper: #fff8e8;
        --retro-paper-warm: #fff4d8;
        --retro-ink: #231f1a;
        --retro-green: #001f14;
        --retro-green-2: #0d2f21;
        --retro-gold: #9a7a32;
        --retro-brown: #6f5532;
        --retro-line: #c9b98f;
        --retro-line-soft: rgba(201, 185, 143, 0.62);
        --retro-muted: #6f6658;
        --retro-shadow: rgba(35, 31, 26, 0.1);
    }

    html {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        margin: 0;
        padding: 0;
        color: var(--retro-ink);
        background: var(--retro-bg);
        font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
        line-height: 1.75;
    }

    .wrapper {
        width: 100%;
        overflow-x: hidden;
        background: var(--retro-bg);
    }

    a {
        color: var(--retro-brown);
        text-decoration-thickness: 1px;
        text-underline-offset: 0.18em;
    }

    a:link,
    a:visited,
    a:hover,
    a:active,
    a:focus {
        color: var(--retro-brown);
    }

    img,
    video {
        max-width: 100%;
        height: auto;
    }

    /* Header ------------------------------------------------------------ */
    header {
        width: 100%;
        padding: 0;
        color: var(--retro-bg);
        background: var(--retro-green);
        position: relative;
    }

    header .head {
        padding: 0.9rem 1rem 1rem;
        position: relative;
    }

    header .head .authorized-dealer-block {
        width: 100%;
        max-width: 330px;
        margin: 0 auto 1rem;
        color: var(--retro-bg);
        font-size: 0.72rem;
        line-height: 1.65;
        letter-spacing: 0.08em;
        text-align: center;
    }

    header .head .authorized-dealer-block::before,
    header .head .authorized-dealer-block::after {
        width: 100%;
        border-color: rgba(246, 234, 210, 0.68);
        border-width: 1px;
    }

    header .head .authorized-dealer-block::before {
        margin-bottom: 0.45rem;
    }

    header .head .authorized-dealer-block::after {
        margin-top: 0.45rem;
    }

    header .head .company-info {
        margin: 0;
        padding: 0 0 0.85rem;
        border-bottom: 1px solid rgba(246, 234, 210, 0.55);
    }

    header .head .company-info .logo-area {
        width: 72px;
        margin: 0 auto 0.5rem;
    }

    .logo {
        width: 72px;
        height: 40px;
        margin: 0;
        background: url("../images/logo.svg") no-repeat center / contain;
    }

    header .head .company-info .company-name-area {
        text-align: center;
    }

    header .head .company-info .company-name-area h1 {
        color: var(--retro-bg);
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.55;
        letter-spacing: 0.12em;
    }

    header .head .company-info a {
        display: inline-block;
        color: var(--retro-bg);
    }

    header .main-visual {
        height: 38vh;
        height: 38svh;
        min-height: 220px;
        max-height: 360px;
        background-image: url("../images/main-visual.png");
        background-size: cover;
        background-position: center;
        border-top: 1px solid rgba(246, 234, 210, 0.36);
        border-bottom: 1px solid rgba(246, 234, 210, 0.36);
    }

    /* Navigation -------------------------------------------------------- */
    nav.global-nav {
        display: block !important;
        width: 100%;
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: auto;
        background: var(--retro-green-2);
        border-top: 1px solid rgba(246, 234, 210, 0.35);
        border-bottom: 1px solid rgba(246, 234, 210, 0.35);
    }

    nav.global-nav ul {
        width: 100%;
        margin: 0;
        padding: 1px;
        list-style: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px;
        background: rgba(246, 234, 210, 0.2);
    }

    nav.global-nav li {
        min-width: 0;
        background: var(--retro-green);
        border: 0;
    }

    nav.global-nav li:last-child {
        border: 0;
    }

    nav.global-nav a {
        min-height: auto;
        display: block;
        padding: 0.72rem 0.4rem 0.78rem;
        color: var(--retro-bg);
        text-align: center;
        text-decoration: none;
    }

    nav.global-nav a:link,
    nav.global-nav a:visited,
    nav.global-nav a:hover,
    nav.global-nav a:active,
    nav.global-nav a:focus {
        color: var(--retro-bg);
    }

    nav.global-nav .menu-ja {
        font-size: 0.82rem;
        line-height: 1.45;
        letter-spacing: 0.08em;
    }

    nav.global-nav .menu-en {
        margin-top: 0.12rem;
        font-size: 0.61rem;
        line-height: 1.35;
        letter-spacing: 0.06em;
        opacity: 0.72;
    }

    /* Main layout ------------------------------------------------------- */
    main {
        margin: 0 auto;
        padding: 0;
        color: var(--retro-ink);
        background: linear-gradient(180deg, #f8edd7 0%, #f3e3c4 100%);
        filter: none;
    }

    main section {
        padding: 2.25rem 1rem;
        display: flex;
        flex-direction: column;
    }

    main section .container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .round-frame {
        border-radius: 0;
    }

    h1.section-headline,
    h2.section-headline {
        width: 100%;
        margin: 0 auto 1.2rem;
        padding: 0 0 0.65rem;
        color: var(--retro-ink);
        background: transparent;
        border-bottom: 1px solid var(--retro-line);
        font-size: 1.05rem;
        font-weight: 500;
        line-height: 1.6;
        letter-spacing: 0.12em;
        text-align: center;
    }

    h1.section-headline::after,
    h2.section-headline::after {
        content: "";
        display: block;
        width: 56px;
        height: 1px;
        margin: 0.65rem auto 0;
        background: var(--retro-gold);
    }

    /* Welcome ----------------------------------------------------------- */
    main section.welcome {
        padding-top: 2.4rem;
        text-align: left;
        background: var(--retro-bg);
    }

    main section.welcome .container {
        padding: 1.25rem 1rem 1.4rem;
        background: var(--retro-paper);
        border: 1px solid var(--retro-line);
        box-shadow: 0 3px 12px var(--retro-shadow);
    }

    main section.welcome p,
    main section .container p {
        width: 100%;
        margin: 0;
        padding: 0;
        color: var(--retro-ink);
        font-size: 0.92rem;
        line-height: 1.95;
        text-align: left;
    }

    main section.welcome p + p,
    main section .container p + p {
        margin-top: 1.15rem;
    }

    /* Events / Notifications ------------------------------------------ */
    main section.events-and-notifications {
        background: var(--retro-bg-deep);
    }

    main section.events-and-notifications .container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    main section.events-and-notifications .container > article,
    body > div > main > section.events-and-notifications > div > article {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    main section .container article {
        margin-top: 0;
        overflow: hidden;
        color: var(--retro-ink);
        background: var(--retro-paper);
        border: 1px solid var(--retro-line);
        box-shadow: 0 3px 12px var(--retro-shadow);
    }

    main section .container article:has(img) {
        display: block;
    }

    main section .container article .event-header,
    main section .container article .notification-header {
        width: 100%;
        color: var(--retro-ink);
        background: transparent;
    }

    main section .container article .event-header .event-title,
    main section .container article .event-header .notification-title,
    main section .container article .notification-header .event-title,
    main section .container article .notification-header .notification-title {
        display: block;
        width: 100%;
        padding: 0.95rem 1rem 0.75rem;
        color: var(--retro-ink);
        background: transparent;
        border-bottom: 1px solid var(--retro-line);
        filter: none;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.55;
        letter-spacing: 0.06em;
    }

    main section .container article.notification {
        background: var(--retro-paper-warm);
        border-color: var(--retro-gold);
    }

    main section .container article.notification .notification-title {
        color: var(--retro-brown);
    }

    main section .container article .event-content,
    main section .container article .notification-content,
    main section .container article .event-content:has(img),
    main section .container article .notification-content:has(img) {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }

    main section .container article .event-details,
    main section .container article .notification-details,
    main section .container article .event-details:has(img),
    main section .container article .notification-details:has(img) {
        min-width: 0;
        width: 100%;
        margin: 0;
        padding: 0.8rem 1rem 1rem;
        flex: none;
    }

    main section .container article .event-details dl {
        margin: 0;
        display: grid;
        grid-template-columns: 4.8em minmax(0, 1fr);
        gap: 0;
        border-bottom: 1px solid var(--retro-line-soft);
    }

    main section .container article .event-details dl:last-child {
        border-bottom: none;
    }

    main section .container article .event-details dl dt,
    main section .container article .event-details dl dd {
        display: block;
        padding: 0.65rem 0;
        background: transparent;
        font-size: 0.88rem;
        line-height: 1.65;
    }

    main section .container article .event-details dl dt {
        color: var(--retro-brown);
        font-weight: 500;
        letter-spacing: 0.06em;
    }

    main section .container article .event-details dl dd {
        color: var(--retro-ink);
        word-break: normal;
        overflow-wrap: anywhere;
    }

    main section .container article .notification-details {
        font-size: 0.9rem;
        line-height: 1.85;
    }

    main section .container article .notification-details p,
    main section .container article .notification-text {
        margin: 0;
        padding: 0;
        font-size: 0.9rem;
        line-height: 1.9;
    }

    main section .container article .event-picture,
    main section .container article .notification-picture,
    main section .container article .event-picture:has(img),
    main section .container article .notification-picture:has(img) {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        height: auto;
        margin: 0;
        padding: 0.8rem 1rem 1rem;
        display: block;
        background: transparent;
        overflow: visible;
        position: relative;
        flex: none;
    }

    main section .container article .event-picture:empty,
    main section .container article .notification-picture:empty {
        display: none;
    }

    main section .container article .event-picture img,
    main section .container article .notification-picture img {
        position: static;
        top: auto;
        left: auto;
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
        transform: none;
        object-fit: contain;
        border: 1px solid rgba(201, 185, 143, 0.85);
        background: #f8f1df;
    }

    /* Service / other sections ---------------------------------------- */
    .intro-section,
    .services-section,
    .steps-section,
    .contact-section {
        width: 100%;
        max-width: 100%;
        padding: 2rem 1rem;
    }

    .our-services .container {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        margin: 1rem auto;
    }

    .our-services .column,
    .step-panel {
        width: 100%;
        display: block;
    }

    .step-panel,
    .step-panel:nth-child(even) {
        flex-direction: column;
    }

    .step-panel img {
        width: 100%;
        height: auto;
    }

    /* Footer ----------------------------------------------------------- */
    footer {
        height: auto;
        min-height: 0;
        display: block;
        padding: 2rem 1rem 2.2rem;
        color: var(--retro-bg);
        background: var(--retro-green);
        filter: none;
        position: relative;
        overflow: hidden;
    }

    footer section.footer-left,
    footer section.footer-right,
    footer section.footer-bottom {
        width: 100%;
        height: auto;
        padding: 0;
        position: relative;
        z-index: 1;
    }

    footer section.footer-left .contact-info {
        padding: 0;
        color: var(--retro-bg);
        font-size: 0.9rem;
        line-height: 1.8;
    }

    footer section.footer-left .contact-info h2 {
        width: 100%;
        margin: 0 0 1rem;
        color: var(--retro-bg);
        font-size: 1.05rem;
        font-weight: 500;
        line-height: 1.6;
        letter-spacing: 0.08em;
    }

    footer section.footer-left .contact-info h3 {
        margin: 1.2rem 0 0.45rem;
        color: var(--retro-bg);
        font-size: 0.95rem;
        font-weight: 500;
        letter-spacing: 0.06em;
    }

    footer section.footer-left .contact-info .company-name,
    footer section.footer-left .contact-info .address,
    footer section.footer-left .contact-info .phone-number,
    footer section.footer-left .contact-info .business-hours {
        margin-bottom: 0.7rem;
    }

    footer dl {
        margin: 0;
    }

    footer dt,
    footer dd {
        display: block;
        padding: 0;
    }

    footer section.footer-left .contact-info .company-name > dl dt,
    footer section.footer-left .contact-info .address > dl dt,
    footer section.footer-left .contact-info .phone-number > dl dt,
    footer section.footer-left .contact-info .business-hours > dl dt,
    footer section.footer-left .contact-info dl.hours-list dt {
        width: auto;
        color: rgba(246, 234, 210, 0.72);
        font-size: 0.78rem;
        letter-spacing: 0.08em;
    }

    footer section.footer-left .contact-info dl.hours-list dd {
        margin-bottom: 0.32rem;
    }

    footer section.footer-right {
        display: block;
        margin-top: 1.4rem;
        padding-top: 1.2rem;
        border-top: 1px solid rgba(246, 234, 210, 0.28);
    }

    footer section.footer-right nav.footer-nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 1rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    footer section.footer-right nav.footer-nav ul::before {
        content: "Navigation";
        grid-column: 1 / -1;
        display: block;
        margin: 0 0 0.45rem;
        color: var(--retro-bg);
        font-size: 0.95rem;
        font-weight: 500;
        line-height: 1.5;
        letter-spacing: 0.06em;
    }

    footer section.footer-right nav.footer-nav ul li {
        margin: 0;
    }

    footer a,
    footer a:link,
    footer a:visited,
    footer a:hover,
    footer a:active,
    footer a:focus {
        color: var(--retro-bg);
    }

    footer section.footer-bottom {
        margin-top: 1.6rem;
        padding-top: 1rem;
        min-height: 150px;
        border-top: 1px solid rgba(246, 234, 210, 0.22);
    }

    footer section.footer-bottom .copyright {
        margin: 0;
        padding: 0;
        color: rgba(246, 234, 210, 0.76);
        font-size: 0.74rem;
        line-height: 1.7;
        text-align: center;
        position: relative;
        z-index: 2;
    }

    footer section.footer-bottom::after {
        content: "";
        display: block;
        width: 260px;
        height: 146px;
        position: absolute;
        left: 50%;
        bottom: -18px;
        transform: translateX(-50%);
        background: url("../images/logo.svg") no-repeat center / contain;
        opacity: 0.08;
        mix-blend-mode: normal;
        pointer-events: none;
        z-index: 0;
    }
}

/* Poster thumbnail modal -------------------------------------------------
   イベント・お知らせ内のポスター画像をカード下部サムネイル化し、
   js/poster-modal.js で拡大表示する。 */
body.poster-modal-is-open {
    overflow: hidden;
}

.poster-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.poster-modal[aria-hidden="false"] {
    display: flex;
}

.poster-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 16, 0, 0.82);
    backdrop-filter: blur(2px);
}

.poster-modal__dialog {
    width: min(94vw, 720px);
    max-height: 92svh;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    outline: none;
}

.poster-modal__close {
    align-self: flex-end;
    margin: 0 0 0.55rem;
    padding: 0.42rem 0.75rem;
    color: #fff8e8;
    background: #001f14;
    border: 1px solid rgba(246, 234, 210, 0.62);
    border-radius: 0;
    font: inherit;
    font-size: 0.82rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.poster-modal__figure {
    margin: 0;
    padding: 0.75rem;
    background: #fff8e8;
    border: 1px solid #c9b98f;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
}

.poster-modal__image {
    width: 100%;
    max-height: calc(92svh - 6.5rem);
    display: block;
    object-fit: contain;
    background: #f6ead2;
}

.poster-modal__caption {
    margin-top: 0.6rem;
    color: #231f1a;
    font-size: 0.86rem;
    line-height: 1.65;
    letter-spacing: 0.04em;
    text-align: center;
}

@media screen and (max-width: 798px) {
    main section.events-and-notifications .container > article.has-poster-thumb,
    main section.events-and-notifications .container > article:has(.event-picture img),
    main section.events-and-notifications .container > article:has(.notification-picture img) {
        position: relative;
    }

    main section .container article.has-poster-thumb .event-header .event-title,
    main section .container article.has-poster-thumb .notification-header .notification-title,
    main section .container article:has(.event-picture img) .event-header .event-title,
    main section .container article:has(.notification-picture img) .notification-header .notification-title {
        min-height: 0;
        padding: 0.95rem 1rem 0.75rem;
        display: block;
    }

    main section .container article.has-poster-thumb .event-details,
    main section .container article.has-poster-thumb .notification-details {
        padding-bottom: 0.55rem;
    }

    main section .container article .event-picture.poster-thumb,
    main section .container article .notification-picture.poster-thumb,
    main section .container article .event-picture.poster-thumb:has(img),
    main section .container article .notification-picture.poster-thumb:has(img) {
        width: 5.8rem;
        height: 6.45rem;
        max-width: none;
        min-height: 0;
        margin: -0.1rem 1rem 1rem auto;
        padding: 0.34rem;
        position: relative;
        top: auto;
        right: auto;
        z-index: 1;
        display: block;
        overflow: hidden;
        background: var(--retro-green);
        border: 1px solid rgba(246, 234, 210, 0.48);
        box-shadow: 0 2px 8px rgba(35, 31, 26, 0.18);
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(154, 122, 50, 0.2);
    }

    main section .container article .event-picture.poster-thumb::before,
    main section .container article .notification-picture.poster-thumb::before {
        content: "";
        position: absolute;
        inset: 0.18rem;
        border: 1px solid rgba(246, 234, 210, 0.22);
        pointer-events: none;
        z-index: 2;
    }

    main section .container article .event-picture.poster-thumb::after,
    main section .container article .notification-picture.poster-thumb::after {
        content: "拡大";
        position: absolute;
        right: 0.34rem;
        bottom: 0.34rem;
        padding: 0.12rem 0.3rem 0.1rem;
        color: var(--retro-bg);
        background: rgba(0, 31, 20, 0.92);
        border-top: 1px solid rgba(246, 234, 210, 0.35);
        border-left: 1px solid rgba(246, 234, 210, 0.35);
        font-size: 0.56rem;
        line-height: 1.35;
        letter-spacing: 0.08em;
        z-index: 3;
    }

    main section .container article .event-picture.poster-thumb img,
    main section .container article .notification-picture.poster-thumb img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        position: static;
        display: block;
        object-fit: contain;
        transform: none;
        border: 0;
        background: var(--retro-green);
    }

    main section .container article .event-picture.poster-thumb:focus-visible,
    main section .container article .notification-picture.poster-thumb:focus-visible {
        outline: 2px solid var(--retro-gold);
        outline-offset: 2px;
    }

    .poster-modal {
        padding: 0.8rem;
    }

    .poster-modal__dialog {
        width: min(94vw, 520px);
        max-height: 92svh;
    }

    .poster-modal__figure {
        padding: 0.5rem;
    }

    .poster-modal__image {
        max-height: calc(92svh - 6.2rem);
    }

    .poster-modal__caption {
        font-size: 0.78rem;
    }

    /* Lower page refinements */
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .authorized-dealer-block,
    nav.global-nav .menu-ja,
    nav.global-nav .menu-en {
        overflow-wrap: normal;
        word-break: keep-all;
    }

    nav.global-nav ul {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    nav.global-nav li {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }

    nav.global-nav a,
    nav.global-nav a:link,
    nav.global-nav a:visited,
    nav.global-nav a:hover,
    nav.global-nav a:active,
    nav.global-nav a:focus {
        min-height: 4.4rem !important;
        padding: 0.68rem 0.5rem !important;
        box-sizing: border-box;
        justify-content: center;
        overflow: visible;
        text-align: center;
    }

    nav.global-nav .menu-ja {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
        letter-spacing: 0.04em !important;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        line-break: strict;
    }

    nav.global-nav .menu-en {
        font-size: 0.6rem !important;
        line-height: 1.25 !important;
        letter-spacing: 0.02em !important;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    nav.global-nav {
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        clear: both;
        display: block;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        min-height: 0;
        max-height: none;
        margin-right: calc(50% - 50vw) !important;
        margin-left: calc(50% - 50vw) !important;
        padding: 0 !important;
        overflow: visible;
        z-index: 10;
    }

    header nav.global-nav ul,
    nav.global-nav ul {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        background: transparent;
    }

    header nav.global-nav li,
    nav.global-nav li {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header nav.global-nav a,
    nav.global-nav a {
        width: 100% !important;
        margin: 0 !important;
    }

    section.intro-section h1.section-headline {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding-left: 0 !important;
        text-align: center;
        font-size: 1.14rem;
        line-height: 1.55;
    }

    section.intro-section h1.section-headline::before {
        position: static !important;
        display: block;
        width: min(42vw, 150px);
        height: min(42vw, 150px);
        padding-left: 0;
        background-position: center;
        background-size: contain;
        flex: 0 0 auto;
    }

    .benefit-panel,
    .benefit-panel:nth-child(even),
    .service-panel,
    .service-panel:nth-child(even),
    .step-panel,
    .step-panel:nth-child(even) {
        display: flex;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-direction: column !important;
        align-items: stretch;
        gap: 1rem;
    }

    .benefit-panel img,
    .service-panel img,
    .step-panel img,
    .camera-gallery img {
        width: min(100%, 300px);
        max-width: 100%;
        height: auto;
        margin-right: auto;
        margin-left: auto;
    }

    .benefit-content,
    .service-content,
    .step-content {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}
