/* ==========================================================================
   issho-main.css
   issho 専用スタイルシート
   デザインは完全保持。構造・運用性のみ整理。
========================================================================== */

/* --------------------------------------------------------------------------
   Base
-------------------------------------------------------------------------- */
body {
    background-color: #1A237E;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   View Management (マルチページ構成用)
-------------------------------------------------------------------------- */
.view-section { display: none; opacity: 0; }
.view-section.is-active { display: block; opacity: 1; }

/* --------------------------------------------------------------------------
   Navigation
-------------------------------------------------------------------------- */
.nav-link {
    position: relative;
    overflow: hidden;
    display: inline-block;
    color: #a5b4fc;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover,
.nav-link.active { color: #ffffff; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* --------------------------------------------------------------------------
   Illustrator Build Animation Styles
-------------------------------------------------------------------------- */
.bbox-wrap {
    position: relative;
    display: inline-block;
    vertical-align: top;
}
.bbox-wrap.block-wrap {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.bbox-wrap.w-full { width: 100%; }
.text-left .bbox-wrap.block-wrap {
    margin-left: 0;
    margin-right: auto;
}

.bbox-border {
    position: absolute;
    inset: -4px;
    border: 1px solid #0054ff;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
}
.bbox-anchor {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border: 1px solid #0054ff;
    opacity: 0;
    z-index: 21;
    pointer-events: none;
}
.bbox-anchor.tl { top: -4px;    left: -4px;  }
.bbox-anchor.tr { top: -4px;    right: -4px; }
.bbox-anchor.bl { bottom: -4px; left: -4px;  }
.bbox-anchor.br { bottom: -4px; right: -4px; }

.hover-bbox .bbox-border,
.hover-bbox .bbox-anchor { transition: opacity 0.2s; }
.hover-bbox:hover .bbox-border,
.hover-bbox:hover .bbox-anchor { opacity: 1 !important; }

.reveal-target { visibility: hidden; }

/* タイピングカーソル */
.type-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #ffffff;
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}
.bg-white .type-cursor { background-color: #1A237E; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Slide Button
-------------------------------------------------------------------------- */
.btn-slide {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    padding: 0 40px;
    height: 56px;
    min-width: max-content;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-slide-inner {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    height: 100%;
    width: 100%;
}
.btn-slide:hover .btn-slide-inner { transform: translateY(-50%); }

.btn-text-primary,
.btn-text-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    white-space: nowrap;
}
.btn-text-secondary {
    position: absolute;
    top: 100%;
    left: 0;
}

.btn-solid {
    background-color: #ffffff;
    color: #1A237E;
    border: none;
}
.btn-solid .btn-text-secondary { color: #ffffff; }
.btn-solid:hover {
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Price Table
-------------------------------------------------------------------------- */
.custom-table {
    border-collapse: collapse;
    width: 100%;
    color: #333;
}
.custom-table th,
.custom-table td {
    border-bottom: 1px solid #E5E7EB;
    padding: 1.5rem 1rem;
}
.custom-table tr { transition: background-color 0.3s ease; }
.custom-table tbody tr:hover { background-color: #f8fafc; }

/* --------------------------------------------------------------------------
   Plan Cards
-------------------------------------------------------------------------- */
.plan-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 2px solid transparent;
    height: 100%;
}
.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    border-top-color: #303f9f;
}

/* --------------------------------------------------------------------------
   Work Cards
-------------------------------------------------------------------------- */
.work-card {
    display: block;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}
.work-card:hover { border-color: rgba(255, 255, 255, 0.4); }

.work-img-wrap { overflow: hidden; }
.work-card img { transition: transform 0.7s ease; }
.work-card:hover img { transform: scale(1.05); }

/* プレースホルダー（アイキャッチ未設定時） */
.ph-image {
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* --------------------------------------------------------------------------
   Works Marquee (Auto Horizontal Scroll)
-------------------------------------------------------------------------- */
.works-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
}
.works-track {
    display: flex;
    gap: 2rem;
    width: max-content;
}
.works-track.is-animating {
    animation: scrollLeft 40s linear infinite;
}
.works-track.is-animating:hover {
    animation-play-state: paused;
}
@keyframes scrollLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

/* --------------------------------------------------------------------------
   Work Modal
-------------------------------------------------------------------------- */
#work-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    opacity: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#work-modal.is-open {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease forwards;
}

.modal-content {
    background: #ffffff;
    color: #1a1a1a;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .modal-content { flex-direction: row; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Legal Pages (.legal-content)
   Privacy Policy / Legal Notice / Terms
-------------------------------------------------------------------------- */
.legal-content h2 {
    font-family: 'Noto Serif JP', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #1A237E;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.625rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content p {
    font-size: 0.8125rem;
    line-height: 2;
    letter-spacing: 0.05em;
    color: #374151;
    margin-bottom: 0.75rem;
}
.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.legal-content li {
    font-size: 0.8125rem;
    line-height: 1.9;
    letter-spacing: 0.05em;
    color: #374151;
}
.legal-content a {
    color: #1A237E;
    text-decoration: underline;
}
.legal-content a:hover {
    color: #283593;
}
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
}
.legal-content th {
    background-color: #f8faff;
    color: #1A237E;
    font-weight: 600;
    text-align: left;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    vertical-align: top;
    width: 30%;
    letter-spacing: 0.05em;
    line-height: 1.8;
}
.legal-content td {
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    color: #374151;
    line-height: 1.9;
    letter-spacing: 0.05em;
    vertical-align: top;
}

/* --------------------------------------------------------------------------
   Contact Form
-------------------------------------------------------------------------- */
.form-input-base {
    width: 100%;
    border: none;
    border-bottom: 1px solid #D1D5DB;
    background: transparent;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    color: #1A237E;
    outline: none;
    transition: border-color 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
}
.form-input-base::placeholder { color: #D1D5DB; }
.form-input-base:focus { border-bottom-color: #1A237E; }

/* --------------------------------------------------------------------------
   Honeypot（spam bot対策 / 訪問者には完全非表示）
   ※ aria-hidden="true" と tabindex="-1" を HTML 側で必ず付与すること
-------------------------------------------------------------------------- */
.issho-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-size: 0;
}

/* --------------------------------------------------------------------------
   FAQ Accordion
-------------------------------------------------------------------------- */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-trigger {
    width: 100%;
    text-align: left;
    padding: 1.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    color: #ffffff;
    gap: 1.5rem;
}
.faq-trigger:hover .faq-q-text {
    color: #bfdbfe; /* blue-200 */
}

.faq-q-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    line-height: 1.6;
    transition: color 0.3s;
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #93c5fd; /* blue-300 */
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.is-open .faq-body {
    max-height: 400px;
}

.faq-body-inner {
    padding-bottom: 1.75rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.8125rem;
    line-height: 2;
    letter-spacing: 0.12em;
    color: #bfdbfe; /* blue-200 */
}

