@charset "UTF-8";
@layer core, frame, page, states;

/* ==========================================================================
   Page: Jisha (寺社向けページ)
   Phase 1 Integration: Showroom, Intro, Policy
   ========================================================================== */

@layer page {
  /* 
   * Page Specific Variables 
   */
  :root {
    /* Colors */
    --c-jisha-accent: #6d5843; /* Dark Brown (Main Accent) */
    --c-jisha-gold: #cfa972; /* Gold (Highlight) */
    --c-jisha-gold-light: #e0d5c1; /* Pale Gold (Numbers) */
    --c-jisha-bg: #f9f7f4; /* Base Beige */
    --c-jisha-bg-light: #fdfbf7; /* Lighter Beige (Showroom) */
    --c-jisha-text: #1a1a1a;

    /* Fonts */
    --f-jisha-serif: "Zen Old Mincho", serif;
  }

  /* 
   * 1. Showroom Section (.p-jisha-showroom)
   * Base: demo-showroom-9.php
   */
  .p-jisha-showroom {
    position: relative;
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--c-jisha-bg-light);
  }

  /* Texture Layer */
  .p-jisha-showroom__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }
  .p-jisha-showroom__texture {
    width: 100%;
    height: 100%;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* Foreground Watermark */
  .p-jisha-showroom__watermark {
    position: absolute;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
  }
  .p-jisha-showroom__ink-wrap {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 90vh;
    max-width: 600px;
    opacity: 0.03;
    mix-blend-mode: multiply;
  }
  .p-jisha-showroom__ink-img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Content Container */
  .p-jisha-showroom__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 28% 1fr 45%;
    gap: 50px;
    align-items: center;
  }

  .p-jisha-showroom__col-left {
    display: flex;
    justify-content: flex-end;
    padding-top: 60px;
  }
  .p-jisha-showroom__col-center {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .p-jisha-showroom__col-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .p-jisha-showroom__sub-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
  }

  /* Frames & Captions */
  .p-jisha-showroom__frame {
    position: relative;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
  }
  .p-jisha-showroom__frame:hover {
    transform: translateY(-8px);
    z-index: 50;
  }
  .p-jisha-showroom__frame img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition:
      transform 1.2s ease,
      box-shadow 0.6s ease;
  }
  .p-jisha-showroom__frame:hover img {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  }

  /* Variants */
  .p-jisha-showroom__frame--pillar {
    /* Standard */
    zoom: 1;
  }
  .p-jisha-showroom__frame--wide {
    margin-left: -20px;
  }
  .p-jisha-showroom__frame--sm {
    margin-top: 30px;
  }

  .p-jisha-showroom__caption {
    position: absolute;
    z-index: 60;
    pointer-events: none;
    font-family: var(--f-jisha-serif);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    writing-mode: vertical-rl;
  }
  .p-jisha-showroom__caption--left {
    bottom: 20px;
    left: -20px;
  }
  .p-jisha-showroom__caption--right {
    bottom: -15px;
    right: -10px;
  }

  /* Typography */
  .p-jisha-showroom__typo {
    writing-mode: vertical-rl;
    font-family: var(--f-jisha-serif);
    color: var(--c-jisha-text);
    font-feature-settings: "palt" 1;
  }
  .p-jisha-showroom__head {
    line-height: 2.4;
    margin-left: 1.5rem;
  }
  .p-jisha-showroom__line {
    display: block;
    white-space: nowrap;
  }
  .p-jisha-showroom__line.is-margin {
    margin-right: 0.8em;
  }

  .p-jisha-showroom__char-s {
    font-size: 1.8rem;
    font-weight: 500;
  }
  .p-jisha-showroom__char-m {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
  }
  .p-jisha-showroom__char-l {
    font-size: 3.6rem;
    font-weight: 700;
  }
  .p-jisha-showroom__char-xl {
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1;
  }

  .p-jisha-showroom__line-deco {
    height: 60px;
    width: 1px;
    background: var(--c-jisha-gold);
    margin: 30px 15px 30px 0;
    opacity: 0.6;
  }
  .p-jisha-showroom__sub {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666;
    letter-spacing: 0.15em;
  }

  /* 
   * 2. Intro Section (.p-jisha-intro)
   * Base: demo-intro-2.php
   */
  .p-jisha-intro {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
  }
  .p-jisha-intro__circles {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
  }
  .p-jisha-intro__circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(207, 169, 114, 0.38);
  }
  .p-jisha-intro__circle--1 {
    width: 600px;
    height: 600px;
    opacity: 1;
  }
  .p-jisha-intro__circle--2 {
    width: 850px;
    height: 850px;
    opacity: 0.6;
  }
  .p-jisha-intro__circle--3 {
    width: 1100px;
    height: 1100px;
    opacity: 0.3;
  }

  .p-jisha-intro__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
  }

  /* Flex Layout for Text Content (Fix for Margin Collapse) */
  .p-jisha-intro__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .p-jisha-intro__heading {
    font-family: var(--f-jisha-serif);
    margin-bottom: 0;
  }
  .p-jisha-intro__sub {
    display: block;
    font-size: 0.9rem;
    color: var(--c-jisha-gold);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-weight: 700;
  }
  .p-jisha-intro__main {
    display: block;
    font-size: 2.2rem;
    line-height: 1.5;
    font-weight: 600;
    color: #333;
  }
  .p-jisha-intro__accent {
    color: #a68e74;
    position: relative;
    display: inline-block;
  }
  .p-jisha-intro__accent::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(207, 169, 114, 0.3);
    z-index: -1;
  }

  .p-jisha-intro__lead {
    font-size: 1rem;
    line-height: 2;
    color: #555;
    margin-bottom: 0px;
  }

  /* Feature List */
  .p-jisha-intro__features {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  .p-jisha-intro__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .p-jisha-intro__item:last-child {
    border: none;
    padding-bottom: 0;
  }

  .p-jisha-intro__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid var(--c-jisha-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-jisha-gold);
    font-size: 1.2rem;
    font-family: serif;
  }

  /* Simple CSS Icons (Replace with SVGs if available) */
  .u-icon-brush::before {
    content: "筆";
    font-family: serif;
  }
  .u-icon-eye::before {
    content: "眼";
    font-family: serif;
  }
  .u-icon-check::before {
    content: "✓";
    font-family: sans-serif;
  }

  .p-jisha-intro__item-title {
    display: block;
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 0.3rem;
    font-family: serif;
    letter-spacing: 0.05em;
  }
  .p-jisha-intro__item-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
  }

  .p-jisha-intro__visual {
    position: relative;
  }
  .p-jisha-intro__img-frame {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.08);
  }
  .p-jisha-intro__img-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
  }
  .p-jisha-intro__img-frame:hover img {
    transform: scale(1.02);
  }

  .p-jisha-intro__deco-text {
    position: absolute;
    bottom: -30px;
    right: 0;
    font-family: sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
  }

  /* 
   * 3. Policy Section (.p-jisha-policy)
   * Base: demo-policy-4.php
   */
  .p-jisha-policy {
    padding: 120px 0;
  }
  .p-jisha-policy__header {
    text-align: center;
    margin-bottom: 80px;
  }
  .p-jisha-policy__title {
    font-family: var(--f-jisha-serif);
    font-size: 1.8rem;
    line-height: 1.6;
    letter-spacing: 0.1em;
    color: var(--c-jisha-text);
  }
  .p-jisha-policy__title-accent {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--c-jisha-accent);
    margin-left: 0.5em;
    display: block;
  }

  .p-jisha-policy__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
  }

  /* Visual */
  .p-jisha-policy__visual {
    position: sticky;
    top: 40px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.15);
  }
  .p-jisha-policy__visual img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
  }
  .p-jisha-policy__visual:hover img {
    transform: scale(1.03);
  }

  /* Grid */
  .p-jisha-policy__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 30px;
  }

  .p-jisha-policy__card {
    position: relative;
    padding-top: 5px;
  }

  .p-jisha-policy__num {
    display: block;
    font-family: var(--f-jisha-serif);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--c-jisha-gold-light);
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.05em;
  }
  .p-jisha-policy__head {
    font-family: var(--f-jisha-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-jisha-accent);
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 2px solid var(--c-jisha-gold);
    display: inline-block;
    padding-bottom: 5px;
  }
  .p-jisha-policy__desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666;
    text-align: justify;
  }

  /* --- RESPONSIVE QUERIES --- */
  @media (min-width: 900px) {
    /* Intro */
    .p-jisha-intro__inner {
      grid-template-columns: 1.1fr 0.9fr;
      gap: 80px;
    }

    /* Policy */
    .p-jisha-policy__inner {
      grid-template-columns: 400px 1fr;
      gap: 80px;
      align-items: start;
    }
    .p-jisha-policy__list {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 959px) {
    /* Showroom */
    .p-jisha-showroom {
      padding: 60px 0;
    }
    .p-jisha-showroom__inner {
      display: flex;
      flex-direction: column;
      gap: 50px;
      padding: 0 20px;
    }
    .p-jisha-showroom__col-center {
      order: 1;
      margin-bottom: 10px;
    }
    .p-jisha-showroom__typo {
      writing-mode: vertical-rl;
      margin: 0 auto;
      height: 300px;
    }
    .p-jisha-showroom__col-left {
      order: 2;
      padding: 0;
      width: 100%;
      justify-content: center;
    }
    .p-jisha-showroom__frame--pillar {
      width: 80%;
    }
    .p-jisha-showroom__col-right {
      order: 3;
      width: 100%;
    }
    .p-jisha-showroom__ink-wrap {
      width: 100vw;
      opacity: 0.08;
    }

    /* Font sizes update for SP handled by rem typically, but manual overrides here */
    .p-jisha-showroom__char-s {
      font-size: 1.4rem;
    }
    .p-jisha-showroom__char-m {
      font-size: 2.2rem;
    }
    .p-jisha-showroom__char-l {
      font-size: 2.8rem;
    }
    .p-jisha-showroom__char-xl {
      font-size: 3.5rem;
    }

    /* Policy */
    .p-jisha-policy__title-accent {
      display: block;
      margin-left: 0;
      margin-top: 0.2em;
      font-size: 1.8rem;
    }
    .p-jisha-policy__visual {
      margin-bottom: 40px;
      position: static;
    }
    .p-jisha-policy__head {
      white-space: normal;
    }
  }

  /* 
   * 4. Service Section (.p-jisha-service)
   * Base: demo-service-3.php
   */
  .p-jisha-service {
    position: relative;
    padding: 96px 0;
    overflow: hidden;
    color: var(--c-jisha-text);
  }
  .p-jisha-service__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
  }
  .p-jisha-service__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .p-jisha-service__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.75),
      rgba(255, 255, 255, 0.75)
    );
  }
  .p-jisha-service__content {
    position: relative;
    z-index: 2;
  }

  .p-jisha-service__header {
    text-align: center;
    margin-bottom: 64px;
  }
  .p-jisha-service__title-en {
    display: block;
    font-family: var(--f-jisha-serif);
    font-size: 1rem;
    color: var(--c-jisha-gold);
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    font-weight: 700;
  }
  .p-jisha-service__title-jp {
    display: block;
    font-family: var(--f-jisha-serif);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--c-jisha-text);
  }

  /* Grid */
  .p-jisha-service__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
  }

  /* Card */
  .p-jisha-service__card {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition:
      transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
      box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .p-jisha-service__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  }

  .p-jisha-service__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: multiply;
  }

  .p-jisha-service__card-inner {
    position: relative;
    z-index: 1;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .p-jisha-service__card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .p-jisha-service__num {
    font-family: var(--f-jisha-serif);
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 700;
    background: linear-gradient(
      135deg,
      #b48a3c 0%,
      #f3e0a0 30%,
      #c5a059 50%,
      #967027 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(197, 160, 89, 0.2));
  }
  .p-jisha-service__card-title {
    font-family: var(--f-jisha-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-jisha-text);
    margin: 0;
    line-height: 1.4;
  }

  .p-jisha-service__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
  }
  .p-jisha-service__tag {
    font-size: 0.75rem;
    color: #5e5a54;
    background: #f3f1ec;
    padding: 6px 12px;
    border-radius: 10px;
    font-family: var(--f-jisha-serif);
    letter-spacing: 0.05em;
    transition: all 0.3s;
  }
  .p-jisha-service__card:hover .p-jisha-service__tag {
    background: #eee9e0;
    color: var(--c-jisha-text);
  }

  .p-jisha-service__desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #666;
    margin-top: auto;
  }

  /* 
   * 5. Restoration Section (.p-jisha-restoration)
   * Base: demo-restoration-3.php
   */
  .p-jisha-restoration {
    padding: 120px 0;
    overflow: hidden;
    --res-box: #1f1e1c;
    --res-text: #e0e0e0;
  }
  .p-jisha-restoration__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .p-jisha-restoration__visual {
    width: 100%;
    position: relative;
    z-index: 1;
  }
  .p-jisha-restoration__frame {
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    overflow: hidden;
  }
  .p-jisha-restoration__frame img {
    width: 100%;
    height: auto;
    display: block;
  }
  .p-jisha-restoration__caption {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-family: var(--f-jisha-serif);
    color: #444;
    letter-spacing: 0.1em;
  }

  /* Content Box */
  .p-jisha-restoration__content {
    width: 100%;
    background: var(--res-box);
    color: var(--res-text);
    padding: 60px 50px;
    position: relative;
    z-index: 2;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }

  .p-jisha-restoration__header {
    margin-bottom: 40px;
    position: relative;
  }
  .p-jisha-restoration__vertical-label {
    writing-mode: vertical-rl;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    color: var(--c-jisha-gold);
    border-right: 1px solid var(--c-jisha-gold);
    padding: 10px 0;
    position: absolute;
    top: 0;
    right: 100%;
    margin-right: 25px;
    height: 100px;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .p-jisha-restoration__heading {
    font-family: var(--f-jisha-serif);
    font-size: 1.8rem;
    line-height: 1.6;
    letter-spacing: 0.1em;
    font-weight: 500;
  }
  .p-jisha-restoration__text-gold {
    color: var(--c-jisha-gold);
  }

  .p-jisha-restoration__body p {
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 24px;
    color: #ccc;
    font-family: var(--f-jisha-serif);
    text-align: justify;
    font-feature-settings: "palt";
  }
  .p-jisha-restoration__body .is-small {
    font-size: 0.8rem;
    color: #888;
  }

  .p-jisha-restoration__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
  }
  .p-jisha-restoration__tag {
    font-family: var(--f-jisha-serif);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--c-jisha-gold);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 6px 20px;
    white-space: nowrap;
  }

  /* Responsive Phase 2 */
  @media (min-width: 600px) {
    .p-jisha-service__grid {
      grid-template-columns: 1fr 1fr;
      gap: 48px;
    }
  }

  @media (min-width: 900px) {
    /* Restoration Left/Right */
    .p-jisha-restoration__inner {
      flex-direction: row;
      align-items: center;
      gap: 0;
    }
    .p-jisha-restoration__visual {
      width: 60%;
      margin-right: -100px;
    }
    .p-jisha-restoration__content {
      width: 50%;
      padding: 80px 60px;
    }
  }

  @media (max-width: 600px) {
    .p-jisha-service {
      padding: 64px 0;
    }
    .p-jisha-service__card-inner {
      padding: 24px 16px;
    }

    .p-jisha-restoration__content {
      padding: 40px 24px;
    }

    /* Restoration Vertical Label Fallback */
    .p-jisha-restoration__vertical-label {
      position: static;
      writing-mode: horizontal-tb;
      border-right: none;
      border-bottom: 2px solid var(--c-jisha-gold);
      display: inline-block;
      margin-right: 0;
      margin-bottom: 15px;
      height: auto;
      padding: 0 0 5px 0;
    }
  }

  /* 
   * 6. Art Gallery Section (.p-jisha-art)
   * Base: demo-art-4.php
   */
  .p-jisha-art {
    padding: 100px 0 140px;
    overflow: hidden;
    position: relative;
    --art-bg: #f9f9f9;
    --art-text: #333;
    --art-shadow: 0 20px 50px rgba(90, 80, 70, 0.1);
  }

  .p-jisha-art__header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 70px;
    padding: 0 20px;
  }
  .p-jisha-art__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    height: 100px;
  }
  .p-jisha-art__watermark {
    font-family: "Cormorant Garamond", serif;
    font-size: 6rem;
    color: rgba(0, 0, 0, 0.03);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    user-select: none;
    line-height: 1;
    font-style: italic;
    z-index: -1;
  }
  .p-jisha-art__text-jp {
    font-family: var(--f-jisha-serif);
    font-size: 1.6rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: #222;
    border-bottom: 1px solid var(--c-jisha-gold);
    padding-bottom: 10px;
    display: inline-block;
  }
  .p-jisha-art__lead {
    font-family: var(--f-jisha-serif);
    font-size: 0.9rem;
    line-height: 2.2;
    color: #666;
    letter-spacing: 0.05em;
  }

  /* Carousel */
  .p-jisha-art__carousel-area {
    position: relative;
    width: 100%;
  }
  .p-jisha-art__carousel-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    /*transform: rotate(2deg) scale(1.05);*/
    margin: 30px 0;
  }
  .p-jisha-art__carousel {
    width: 100%;
    padding: 50px 0;
  }
  .p-jisha-art__track {
    display: flex;
    gap: 50px;
    width: max-content;
    /* JS Control */
    will-change: transform;
    cursor: grab;
  }
  .p-jisha-art__track:active {
    cursor: grabbing;
  }

  /* Navigation */
  .p-jisha-art__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--c-jisha-gold);
    color: var(--c-jisha-gold);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .p-jisha-art__nav:hover {
    background: var(--c-jisha-gold);
    color: #fff;
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.3);
  }
  .p-jisha-art__nav--prev {
    left: 40px;
  }
  .p-jisha-art__nav--next {
    right: 40px;
  }

  /* Overlay (Lightbox Trigger) */
  .p-jisha-art__overlay {
    position: absolute;
    inset: 0;
    background: rgba(109, 88, 67, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
    cursor: pointer;
  }
  .p-jisha-art__overlay i {
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s;
  }
  .p-jisha-art__fig:hover .p-jisha-art__overlay {
    opacity: 1;
  }
  .p-jisha-art__fig:hover .p-jisha-art__overlay i {
    transform: scale(1);
  }

  /* Items */
  .p-jisha-art__item {
    width: auto;
    height: 420px;
    flex-shrink: 0;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .p-jisha-art__item:hover {
    transform: translateY(-10px);
  }

  .p-jisha-art__fig {
    height: 100%;
    background-color: #fff;
    /* Inner Texture */
    background-image: url("/assets/images/jisha/bg_jisha_washi_01.webp");
    background-size: 300px;
    background-blend-mode: multiply;

    padding: 24px;
    box-shadow: var(--art-shadow);
    border-radius: 2px;

    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    position: relative;
  }
  /* Pseudo-element removed to match demo structure */

  .p-jisha-art__frame-inner {
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 4px;
    background: #fff;
    position: relative;
    z-index: 1;
  }
  .p-jisha-art__img {
    height: 100% !important;
    width: auto !important;
    max-width: 500px;
    object-fit: contain;
    display: block;
  }

  .p-jisha-art__caption {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 100%;
    font-family: var(--f-jisha-serif);
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    color: #444;
    display: flex;
    justify-content: flex-start;
    padding-top: 5px;
    border-right: 1px solid rgba(197, 160, 89, 0.4);
    padding-right: 10px;
    position: relative;
    z-index: 1;
  }

  .p-jisha-art__fade-left,
  .p-jisha-art__fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 10;
    pointer-events: none;
  }
  .p-jisha-art__fade-left {
    left: 0;
    background: linear-gradient(to right, var(--c-jisha-bg), transparent);
  }
  .p-jisha-art__fade-right {
    right: 0;
    background: linear-gradient(to left, var(--c-jisha-bg), transparent);
  }

  /* 
   * 7. Contact Section (.p-jisha-contact)
   * Base: demo-contact-2.php
   */
  .p-jisha-contact {
    padding-bottom: 120px;
    padding-top: 20px;
    --con-bg: #fff;
    --con-accent: #6d5843;
    --con-gold: #c5a059;
  }

  /* Responsive Phase 3 Part 2 */
  @media (min-width: 900px) {
    /* FAQ */
    .p-jisha-faq__inner {
      flex-direction: row;
      padding: 80px;
      gap: 60px;
    }
    .p-jisha-faq__head {
      flex: 0 0 260px;
      margin-bottom: 0;
    }
    .p-jisha-faq__body {
      padding-left: 60px;
      border-left: 1px solid rgba(0, 0, 0, 0.06);
    }
  }

  /* Animation Helper Class (Moved from demo) */
  .js-jisha-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity 1s,
      transform 1s cubic-bezier(0.2, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
  }
  .js-jisha-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 
   * 9. Contact Section (.p-jisha-contact)
   * Base: demo-contact-2.php
   */
.p-jisha-contact {
  padding-bottom: 120px;
  padding-top: 20px;
  --con-bg: #fff;
  --con-accent: #6d5843;
  --con-gold: #c5a059;
}

.p-jisha-contact__card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.p-jisha-contact__visual {
  position: relative;
  min-height: 200px;
  background: #222;
}
.p-jisha-contact__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.p-jisha-contact__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}

.p-jisha-contact__title-area {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #fff;
  z-index: 2;
}
.p-jisha-contact__en {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--con-gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.p-jisha-contact__jp {
  font-family: var(--f-jisha-serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.p-jisha-contact__form-area {
  padding: 40px;
}
.p-jisha-contact__intro {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 40px;
}

/* Simple Form */
.p-jisha-form__row {
  margin-bottom: 24px;
}
.p-jisha-form__label {
  display: block;
}
.p-jisha-form__label-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  display: inline-block;
  margin-bottom: 8px;
}
.p-jisha-form__req {
  font-size: 0.7rem;
  color: #fff;
  background: var(--con-accent);
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
}

.p-jisha-form__input,
.p-jisha-form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background: #fdfdfd;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.p-jisha-form__input:focus,
.p-jisha-form__textarea:focus {
  border-color: var(--con-gold);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}
.p-jisha-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.p-jisha-form__action {
  margin-top: 40px;
  text-align: center;
}
.p-jisha-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--con-accent);
  color: #fff;
  padding: 16px 60px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.p-jisha-form__submit:hover {
  background-color: #554433;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(109, 88, 67, 0.3);
}

/* Responsive Phase 3 Part 2 */
@media (min-width: 900px) {
  /* FAQ */
  .p-jisha-faq__inner {
    flex-direction: row;
    padding: 80px;
    gap: 60px;
  }
  .p-jisha-faq__head {
    flex: 0 0 260px;
    margin-bottom: 0;
  }
  .p-jisha-faq__body {
    padding-left: 60px;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Contact */
  .p-jisha-contact__card {
    grid-template-columns: 350px 1fr;
  }
  .p-jisha-contact__visual {
    min-height: auto;
  }
  .p-jisha-contact__form-area {
    padding: 60px;
  }
}

/* Animation Helper Class (Moved from demo) */
.js-jisha-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s,
    transform 1s cubic-bezier(0.2, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}
.js-jisha-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SP Optimizations (2026-02-20)
   ============================================ */
@media (max-width: 768px) {
  /* 1. Showroom: Reduce padding & adjustments */
  .p-jisha-showroom {
    padding: 80px 0 60px;
  }
  .p-jisha-showroom__typo {
    height: auto;
    margin: 20px 0;
    writing-mode: horizontal-tb; /* Switch to horizontal on SP for better readability? Or keep vertical but adjust */
    /* Keeping vertical per design, but maybe scale down */
    writing-mode: vertical-rl;
    height: 350px;
  }

  /* 2. Intro: Reduce padding */
  .p-jisha-intro {
    padding: 60px 0;
  }

  /* 4. Gallery (Art): Horizontal Scroll Snap */
  .p-jisha-art {
    padding: 60px 0 80px;
  }
  .p-jisha-art__nav {
    display: none; /* Hide buttons, use swipe */
  }

  .p-jisha-art__carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 40px; /* Add bottom padding for scrollbar/shadow */
    margin: 0 -20px; /* Negative margin to full bleed */
    width: auto;
  }

  .p-jisha-art__track {
    width: max-content;
    gap: 20px;
    padding: 0 20px; /* Inner padding for first/last item visibility */
  }

  .p-jisha-art__item {
    scroll-snap-align: center;
    width: 80vw; /* Card like width */
    height: auto;
    max-height: 50vh;
  }

  .p-jisha-art__fig {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 15px;
  }
  .p-jisha-art__frame-inner {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1; /* Square or auto */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .p-jisha-art__img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
  }
  .p-jisha-art__caption {
    writing-mode: horizontal-tb;
    border-right: none;
    border-top: 1px solid rgba(197, 160, 89, 0.4);
    padding-top: 10px;
    padding-right: 0;
    width: 100%;
    height: auto;
  }

  /* 7. About (c-profile-board): Reduce padding */
  .c-profile-board {
    padding: 60px 0;
  }
  .c-profile-board__inner {
    padding: 20px; /* If inner has padding */
  }
}
