/* INOMI GRAPHIX — static site */

:root {
    --ink: #111111;
    --ink-2: #444444;
    --ink-3: #888888;
    --line: #e5e5e5;
    --bg: #ffffff;
    --bg-soft: #f6f6f4;
    --radius: 14px;
    --container: 1120px;
    --header-h: 72px;
    --font: 'Noto Sans JP', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-en: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* hidden 属性を付けたものは、ほかの指定より優先して必ず隠す */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    font-family: var(--font);
    color: var(--ink-2);
    background: var(--bg);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3 { color: var(--ink); line-height: 1.4; font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
    border: 1px solid var(--ink); transition: background .2s, color .2s, opacity .2s;
    cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { opacity: .85; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--ink); border-bottom: 1px solid currentColor; font-weight: 500; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
    display: flex; align-items: center;
}
.header-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-family: var(--font-en); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 24px; font-size: .95rem; font-weight: 500; color: var(--ink); }
.nav-list > li { position: relative; }
.nav-list a:hover { opacity: .6; }
.nav-drop > button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.nav-drop > button::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-3px) rotate(45deg); }
.drop-menu {
    position: absolute; top: calc(100% + 12px); right: 0; min-width: 190px; padding: 8px 0;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.08);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.drop-menu a { display: block; padding: 9px 18px; }
.drop-menu a:hover { background: var(--bg-soft); opacity: 1; }
.nav-drop:hover .drop-menu, .nav-drop.is-open .drop-menu { opacity: 1; visibility: visible; transform: none; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 12px 10px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); transition: .2s; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 36px; }
.section-head .en { font-family: var(--font-en); font-size: .8rem; letter-spacing: .18em; color: var(--ink-3); font-weight: 700; }
.section-head h2 { font-size: 1.75rem; margin-top: 4px; }
.section-head p { margin-top: 10px; }
.section-foot { margin-top: 36px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-eyebrow { font-size: .9rem; color: var(--ink-3); font-weight: 500; letter-spacing: .04em; }
.hero h1 { font-size: 2.35rem; margin: 12px 0 18px; }
.nw { display: inline-block; }
.hero-lead { font-size: 1.05rem; }
.hero .btn-row { margin-top: 28px; }
.hero-sub { margin-top: 16px; font-size: .92rem; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.12); cursor: zoom-in; }
.hero-caption { margin-top: 10px; font-size: .82rem; color: var(--ink-3); text-align: right; }

.availability { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; background: #fff; }
.availability-label { font-size: .82rem; font-weight: 700; color: var(--ink); letter-spacing: .04em; margin-bottom: 6px; }
.availability li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: .93rem; }
.availability li:first-child { border-top: 0; }
.availability li strong { color: var(--ink); white-space: nowrap; }

/* Works */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tab-btn {
    font: inherit; font-size: .92rem; padding: 8px 20px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: .2s;
}
.tab-btn:hover, .tab-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
/* 左から右へ新しい順に並べる。高さに合わせた行数は site.js が計算する（計算前は普通のグリッド） */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; align-items: start; }
.works-grid.is-masonry { grid-auto-rows: 4px; }
.work.is-more { display: none; }
.works-grid.show-all .work.is-more:not([hidden]) { display: block; }
.works-more { text-align: center; margin-top: 8px; }
.works-more[hidden] { display: none; }
.work {
    margin-bottom: 24px; background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.06); cursor: zoom-in; transition: transform .2s, box-shadow .2s;
}
.work:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.1); }
.work img, .work video { width: 100%; height: auto; background: #eee; }
.work-title { padding: 12px 14px; font-size: .88rem; color: var(--ink); text-align: center; }
.work[hidden] { display: none; }
.work-badge { display: inline-block; font-family: var(--font-en); font-size: .7rem; font-weight: 700; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; margin-right: 6px; vertical-align: middle; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 16px; }
.lightbox[hidden] { display: none; }
.lightbox-media img, .lightbox-media video { max-width: min(92vw, 1100px); max-height: 72vh; width: auto; border-radius: 6px; }
.lightbox-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; color: #fff; font-size: .95rem; }
.lightbox-text { display: flex; flex-direction: column; gap: 4px; max-width: 640px; }
.lightbox-desc { font-size: .85rem; line-height: 1.7; opacity: .85; }
.lightbox-desc[hidden] { display: none; }
.lightbox-bar .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.lightbox-close { position: absolute; top: 14px; right: 22px; font-size: 2.4rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; opacity: .85; }
.lightbox-close:hover { opacity: 1; }

/* Price cards */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; }
.price-card h3 { font-size: 1rem; }
.price-card .price { font-family: var(--font-en); font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: 8px 0 6px; }
.price-card p { font-size: .88rem; flex: 1; }
.price-card .text-link { margin-top: 12px; font-size: .9rem; align-self: flex-start; }
.note { font-size: .88rem; color: var(--ink-3); }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.trust-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.trust-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.trust-item p { font-size: .93rem; }
.review-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: .9rem; }

/* Profile */
.profile { max-width: 760px; }
.profile h3 { font-size: 1.1rem; margin-bottom: 12px; }
.profile p + p { margin-top: 12px; }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.flow li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; }
.flow li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-en); font-weight: 700; font-size: .85rem; color: var(--ink-3); letter-spacing: .1em; }
.flow h3 { font-size: 1rem; margin: 4px 0 6px; }
.flow p { font-size: .9rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-en); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 18px; font-size: .95rem; }

/* CTA band */
.cta-band { background: var(--ink); color: #d8d8d8; text-align: center; padding: 76px 0; }
.cta-band h2 { color: #fff; font-size: 1.7rem; }
.cta-band p { margin-top: 12px; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); }
.cta-band .sub { margin-top: 18px; font-size: .9rem; }
.cta-band .sub a { color: #fff; border-bottom: 1px solid; }

/* Page header (sub pages) */
.page-head { padding: 56px 0 8px; }
.page-head .en { font-family: var(--font-en); font-size: .8rem; letter-spacing: .18em; color: var(--ink-3); font-weight: 700; }
.page-head h1 { font-size: 2rem; margin-top: 4px; }
.page-head p { margin-top: 10px; }

/* Price tables */
.price-block { margin-top: 40px; }
.price-block h2 { font-size: 1.25rem; margin-bottom: 6px; }
.price-block .note { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.price-table th, .price-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: .82rem; color: var(--ink-3); font-weight: 700; border-bottom: 1px solid var(--ink); }
.price-table td:nth-child(1) { font-weight: 700; color: var(--ink); width: 34%; }
.price-table td:nth-child(2) { font-family: var(--font-en); font-weight: 700; color: var(--ink); white-space: nowrap; width: 20%; }
.notes { margin-top: 18px; font-size: .92rem; }
.notes li { padding-left: 1.1em; text-indent: -1.1em; margin-bottom: 4px; }
.rules { margin-top: 12px; }
.rules li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }

/* Estimate page */
.est-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 20px 0 32px; background: #fff; }
.est-switch a { padding: 8px 22px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.est-switch a.active { background: var(--ink); color: #fff; }
.est-wrap { max-width: 640px; }
.est-note { max-width: 640px; margin-top: 28px; font-size: .9rem; }

/* Tool pages */
.tool-frame { width: 100%; border: 0; display: block; }
.tool-note { text-align: center; font-size: .9rem; margin: 16px 0 40px; }

/* Footer */
.site-footer { background: var(--ink); color: #bbb; padding: 44px 0; font-size: .88rem; border-top: 1px solid #2a2a2a; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #ddd; }
.footer-links a:hover { color: #fff; }
.footer-meta a { color: #ddd; border-bottom: 1px solid rgba(255,255,255,.3); }

/* Responsive */
@media (max-width: 960px) {
    .price-grid { grid-template-columns: repeat(2, 1fr); }
    .flow { grid-template-columns: repeat(2, 1fr); }
    .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    :root { --header-h: 62px; }
    .menu-toggle { display: flex; }
    .nav {
        position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,.06);
    }
    .nav.is-open { display: flex; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list > li { border-bottom: 1px solid var(--line); }
    .nav-list a, .nav-drop > button { display: block; width: 100%; text-align: left; padding: 14px 0; }
    .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; display: none; }
    .nav-drop:hover .drop-menu { display: none; }
    .nav-drop.is-open .drop-menu { display: block; }
    .nav .btn { margin-top: 16px; }
    .hero { padding: 36px 0 56px; }
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero h1 { font-size: 1.5rem; }
    .section { padding: 64px 0; }
    .trust-grid { grid-template-columns: 1fr; }
    .works-grid { column-gap: 14px; }
    .works-grid.is-masonry { grid-auto-rows: 2px; }
    .work { margin-bottom: 14px; }
    .work-title { font-size: .8rem; padding: 10px; }
}
@media (max-width: 520px) {
    .price-grid, .flow { grid-template-columns: 1fr; }
    .btn-row .btn { flex: 1 1 100%; }
}
