/* ./assets/css/style.css */

/* =========================
   Base / Reset
========================= */
:root {
    --bg: #FFFFFF;
    --surface: #F7F7F8;
    --text: #111827;
    --text-2: #374151;
    --muted: #6B7280;
    --border: #E5E7EB;

    --accent: #2563EB;
    /* blue */
    --accent-dark: #1D4ED8;
    /* hover */

    --container: 1120px;

    --radius-lg: 16px;
    --radius-md: 14px;

    --shadow-sm: 0 8px 22px rgba(17, 24, 39, .08);
    --shadow-md: 0 12px 26px rgba(17, 24, 39, .10);

    --shadow-accent-sm: 0 6px 18px rgba(37, 99, 235, .18);
    --shadow-accent-md: 0 12px 26px rgba(37, 99, 235, .26);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    line-height: 1.8;
    letter-spacing: .01em;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

p {
    margin: 0;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.25;
    letter-spacing: .01em;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* =========================
   Utilities
========================= */
.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding: 84px 0;
}

.section-head {
    margin-bottom: 28px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
}

.section-lead {
    margin-top: 8px;
    color: var(--text-2);
    max-width: 80ch;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 14px;
}

.note {
    margin-top: 14px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.card {
    background: var(--surface);
    border: 1px solid #6b72808c;
    border-radius: var(--radius-lg);
    padding: 18px;
}

.card-title {
    font-size: 18px;
    font-weight: 800;
}

.card-text {
    margin-top: 10px;
    color: var(--text-2);
}

.card-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
    color: var(--text-2);
}

.card-meta {
    margin-top: 14px;
    display: grid;
    gap: 4px;
}

/* =========================
   Skip link
========================= */
.skip-link {
    position: absolute;
    left: 10px;
    top: 10px;
    transform: translateY(-140%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    z-index: 9999;
}

.skip-link:focus {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

/* =========================
   Header / Nav
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, .7);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
}

.brand-link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-decoration: none;
}

.brand-link:hover {
    text-decoration: none;
}

.brand-mark {
    font-weight: 900;
    letter-spacing: .04em;
}

.brand-sub {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.site-nav {
    display: block;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ナビの通常リンクだけに適用（CTAボタンは除外） */
.nav-list a:not(.btn) {
    color: var(--text-2);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.nav-list a:not(.btn):hover {
    color: var(--text);
    text-decoration: none;
}
.nav-cta {
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0);
    background: #fff;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 30px;
    height: 2px;
    margin: 4px auto;
    background: #1d4ed8;
    border-radius: 2px;
}

.mobile-nav {
    border-top: 1px solid rgba(229, 231, 235, .7);
    background: rgba(255, 255, 255, .92);
}

.mobile-nav-inner {
    padding: 12px 0 16px;
}

.mobile-nav-list {
    display: grid;
    gap: 10px;
}

.mobile-nav-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    text-decoration: none;
    font-weight: 700;
    color: var(--text-2);
}

.mobile-nav-list a:hover {
    color: var(--text);
}

.mobile-nav-list .btn {
    width: 100%;
    justify-content: center;
    border: 0;
}

/* =========================
   Buttons (with hover animation)
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;

    height: 48px;
    padding: 0 18px;

    border-radius: var(--radius-md);
    border: 1px solid transparent;

    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .02em;

    cursor: pointer;
    user-select: none;
    text-decoration: none;

    transform: translateY(0);
    box-shadow: var(--shadow-accent-sm);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        opacity .18s ease;
}

.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-md);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, .22),
        0 10px 22px rgba(37, 99, 235, .22);
}

.btn--ghost {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
    box-shadow: none;
}

.btn--ghost:hover {
    border-color: rgba(37, 99, 235, .35);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.btn--shine {
    position: relative;
    overflow: hidden;
}

.btn--shine::after {
    content: "";
    position: absolute;
    inset: -40% -60%;
    transform: translateX(-60%) rotate(20deg);
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, .35) 40%,
            rgba(255, 255, 255, 0) 70%);
    transition: transform .55s ease;
    pointer-events: none;
}

.btn--shine:hover::after {
    transform: translateX(60%) rotate(20deg);
}

/* =========================
   Hero
========================= */
.hero {
    padding: 72px 0 40px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 22px;
    align-items: start;
}

.eyebrow {
    display: inline-block;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
}

.hero-title {
    margin-top: 14px;
    font-size: 40px;
    font-weight: 900;
}

.hero-lead {
    margin-top: 14px;
    color: var(--text-2);
    max-width: 70ch;
}

.hero-cta {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-points {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-points li {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-2);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
}

.hero-card .card {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.hero-card .card-list {
    color: var(--text-2);
}

/* =========================
   Tags
========================= */
.tag-list {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    font-weight: 800;
    color: rgba(37, 99, 235, .95);
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 999px;
    padding: 6px 10px;
}

/* =========================
   Works
========================= */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.work {
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.work-thumb {
    height: 160px;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, .10), rgba(37, 99, 235, 0)),
        var(--surface);
    border-bottom: 1px solid var(--border);
}

.work-body {
    padding: 16px 18px 18px;
}

.work-dl {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.work-dl>div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    align-items: start;
}

.work-dl dt {
    font-size: 12px;
    font-weight: 900;
    color: var(--muted);
    letter-spacing: .06em;
}

.work-dl dd {
    margin: 0;
    color: var(--text-2);
}

.work-links {
    margin-top: 12px;
}

.work-links a {
    color: var(--accent);
    font-weight: 900;
    text-decoration: none;
}

.work-links a:hover {
    text-decoration: underline;
}

/* =========================
   Steps
========================= */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: step;
}

.step {
    background: #fff;
}

.step .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step .card-title::before {
    counter-increment: step;
    content: counter(step);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    background: var(--accent);
    box-shadow: var(--shadow-accent-sm);
    flex: 0 0 auto;
}

/* =========================
   Pricing
========================= */
.price {
    background: #fff;
}

.price-amount {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
}

.pricing-note {
    margin-top: 16px;
    background: var(--surface);
}

/* =========================
   FAQ
========================= */
.faq {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.faq-q {
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 900;
    list-style: none;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-a {
    padding: 0 18px 16px;
    color: var(--text-2);
    border-top: 1px solid var(--border);
}

details[open] .faq-q {
    background: rgba(37, 99, 235, .06);
}

/* =========================
   Contact
========================= */
.contact-grid {
    align-items: start;
}

.contact-card {
    background: #fff;
}

.contact-form {
    background: #fff;
}

.form-row {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.form-row:first-child {
    margin-top: 0;
}

label {
    font-weight: 900;
    color: var(--text);
}

.req {
    color: var(--accent);
    font-weight: 900;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 12px 12px;
    color: var(--text);
    transition: border-color .18s ease, box-shadow .18s ease;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, .45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}

.form-actions {
    margin-top: 14px;
}

.form-actions .btn {
    width: 100%;
}

.form-actions .muted {
    margin-top: 10px;
}

/* =========================
   Footer
========================= */
.site-footer {
    border-top: 1px solid #6b7280bf;
    padding: 22px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.footer-links {
    display: flex;
    gap: 14px;
}

.footer-links a {
    color: var(--text-2);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .section {
        padding: 64px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .site-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   Hero Background
========================= */
.hero {
    padding: 72px 0 40px;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.35),
            rgba(255, 255, 255, 0.85)),
        url("../img/hero-bg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Works thumbnail as img */
.work-thumb {
    height: 160px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* いい感じにトリミング */
    object-position: center;
    display: block;
}


/* CTAボタンは常に白文字 */
.nav-list a.btn,
.nav-list a.btn:hover,
.nav-list a.btn:focus,
.nav-list a.btn:active {
    color: #fff;
}

/* =========================
   Horizontal scroll (Portfolio / Works)
========================= */
.hscroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    /* スクロールバーが被らない用 */
}

/* スクロールバーを嫌うなら（任意）：Firefox以外は効き方が違う */
.hscroll {
    scrollbar-width: thin;
}

/* スマホ（≒横幅が狭い時）だけ横スクロールにする */
@media (max-width: 980px) {
    .hscroll {
        /* 端まで見せたいので左右余白を作る */
        margin-inline: -20px;
        padding-inline: 20px;
    }

    /* 既存のgridを横スライド用に変換 */
    .hscroll .works-grid {
        grid-auto-flow: column;
        grid-auto-columns: 82%;
        grid-template-columns: none;
        gap: 14px;
        padding-right: 20px;
        /* 最後の余白 */
    }

    /* カードが縮まないように */
    .hscroll .work {
        min-width: 0;
    }
}

/* さらに小さいスマホはカード幅を少し広げる */
@media (max-width: 520px) {
    .hscroll .works-grid {
        grid-auto-columns: 88%;
    }
}

/* =========================
   Header Logo Image
========================= */
.site-logo {
    height: 50px;
    /* 好みで 32〜40px */
    width: auto;
    display: block;
}

/* 送信完了カード専用 */
.card--success {
    background: #f0f8ff;
    /* 薄水色 */
    border: 1px solid #b6dcff;
    border-left: 6px solid #1d4ed8;
    /* 左アクセント */
    padding: 20px 24px;
    position: relative;
}

/* タイトル */
.card--success .card-title {
    color: #1d4ed8;
    font-weight: 700;
}

/* アイコン */
.card--success::before {
    /* content: "✓"; */
    position: absolute;
    left: 16px;
    top: 18px;
    font-size: 18px;
    font-weight: bold;
    color: #1d4ed8;
}
/* ============================
   Page Fade In
============================ */
body {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

body.is-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================
   Footer
========================== */

.site-footer {
    background: #ffffff;
    color: #000000;
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #000000;
    text-decoration: none;
    transition: opacity .3s;
}

.footer-links a:hover {
    opacity: .7;
}

/* SNS */

.footer-sns {
    list-style: none;
    display: flex;
    gap: 16px;
    padding: 0;
    margin: 0;
}

.footer-sns img {
    width: 28px;
    height: 28px;
    display: block;
    transition: transform .3s ease, opacity .3s ease;
}

/* ホバーアニメーション */
.footer-sns a:hover img {
    transform: translateY(-4px) scale(1.1);
    opacity: .8;
}

/* =========
  Footer (Centered)
========= */
.site-footer {
    background: #0b0f18;
    /* 黒寄り（真っ黒より上品） */
    color: rgba(255, 255, 255, .86);
    padding: 32px 0;
}

.site-footer .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

/* ロゴ（任意） */
.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-logo {
    height: 34px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    /* ロゴが濃色なら白っぽく反転（不要なら削除） */
    opacity: .95;
}

/* リンク */
.site-footer a {
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
}

.site-footer a:hover {
    color: #76a7ff;
    /* 青系に寄せる */
}

/* ナビリンク */
.footer-links {
    display: flex;
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.footer-links a:hover {
    transform: translateY(-2px);
    background: rgba(118, 167, 255, .14);
    border-color: rgba(118, 167, 255, .35);
}

/* SNS */
.footer-sns {
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 2px 0 0;
    list-style: none;
    justify-content: center;
}

.sns-link {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.sns-icon {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) invert(1);
    /* SVGが黒なら白に。不要なら消す */
    opacity: .92;
}

.sns-link:hover {
    transform: translateY(-3px) scale(1.04);
    background: rgba(118, 167, 255, .16);
    border-color: rgba(118, 167, 255, .38);
}

.sns-link:active {
    transform: translateY(-1px) scale(.98);
}

/* コピーライト */
.footer-copy {
    margin: 6px 0 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, .70);
}

/* スマホで詰める */
@media (max-width: 480px) {
    .site-footer {
        padding: 26px 0;
    }

    .footer-logo {
        height: 30px;
    }
}

/* メール */
.footer-mail a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    font-size: .95rem;
}

.footer-mail a:hover {
    color: #76a7ff;
}

/* コピーライト内ロゴ */
.footer-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 6px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .7);
}

.footer-copy-logo {
    height: 60px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    /* ロゴを白化 */
    opacity: .9;
}

/* PCのみ表示キャッチコピー */
.footer-catch {
    display: none;
    font-size: 1.05rem;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .55);
    text-align: center;
    margin-bottom: 6px;
}

/* PC表示時のみ */
@media (min-width: 1024px) {
    .footer-catch {
        display: block;
    }
}

/* フッター背景グラデーション */
.site-footer {
    background: linear-gradient(180deg,
            #0d1117 0%,
            #0a0f1c 60%,
            #070b13 100%);
    padding: 50px 0 30px;
    color: #fff;
}

/* 上段レイアウト */
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 左右ブロック共通 */
.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ナビ */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: .3s;
}

.footer-links a:hover {
    color: #76a7ff;
}

/* SNS */
.footer-sns {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 14px;
}

.sns-icon {
    width: 22px;
    height: 22px;
    transition: .3s;
}

.sns-link:hover .sns-icon {
    transform: translateY(-3px) scale(1.1);
}

/* メール */
.footer-mail a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-weight: 500;
}

.footer-mail a:hover {
    color: #76a7ff;
}

/* キャッチ（PCのみ） */
.footer-catch {
    display: none;
    font-size: 1.05rem;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .55);
}

/* コピーライト */
.footer-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .6);
}

.footer-copy-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ===== PCレイアウト ===== */
@media (min-width:1024px) {

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-left {
        align-items: flex-end;
    }

    .footer-right {
        align-items: flex-start;
        text-align: right;
    }

    .footer-catch {
        display: block;
    }

}

/* フッター上部のアクセントライン */
.site-footer::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(118, 167, 255, .9),
            transparent);
    margin-bottom: 40px;
    box-shadow: 0 0 12px rgba(118, 167, 255, .6);
}

