@charset "UTF-8";

/* ==========================================================================
   ページ：WORKS (`works.html`) 専用のスタイル
   ========================================================================== */

/* 固定ナビゲーションバーの下にコンテンツが潜り込まないように隙間をあける */
.works-page-container {
    margin-top: 70px !important;
    display: flex;
    flex-direction: column;
}

/* 上部エリア：鮮やかな赤・ピンク系の可愛い市松模様（格子柄） */
.works-top-container {
    background-color: #db97cd; 
    background-image: linear-gradient(45deg, #eda0eb 25%, transparent 25%, transparent 75%, #eda0eb 75%, #eda0eb),
                      linear-gradient(45deg, #eda0eb 25%, transparent 25%, transparent 75%, #eda0eb 75%, #eda0eb);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    padding: 100px 20px 40px 20px;
    text-align: center;
    width: 100%;
}

/* 「# 02」のナンバリング */
.works-num {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 3.5rem;
    color: #1472fc; 
    -webkit-text-stroke: 2px #000000;
    text-shadow: 3px 3px 0px #000000;
    text-align: left;
    margin-bottom: 5px;
    padding-left: 10px;
}

/* 「WORKS」大見出し */
.works-title {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 4.5rem;
    color: #1472fc;
    -webkit-text-stroke: 3px #000000;
    text-shadow: 4px 4px 0px #000000;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 35px;
    letter-spacing: 1px;

    /* 🌟 チクタク揺れる設定 */
    display: inline-block;
    width: 100%;
    transform-origin: center top; /* 文字の上側を中心にして揺らす */
    animation: tick-tock 2.5s infinite ease-in-out;
}

@keyframes tick-tock {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(4deg); }   /* 右に4度傾く */
    75% { transform: rotate(-4deg); }  /* 左に4度傾く */
}

/* 白い丸角のワークスカード */
.works-card {
    background-color: #ffffff;
    border: 4px solid #000000;
    border-radius: 45px;
    padding: 40px 30px; 
    box-shadow: 6px 6px 0px rgba(0,0,0,0.15);
    max-width: 800px;
    margin: 0 auto; 
}

/* 🌟 【新設】真ん中：ギザギザ区切り線（ABOUTのデザインを完全移植） */
.zigzag-divider {
    width: 100%;
    height: 24px;
    background: linear-gradient(135deg, #fc3c3c 25%, transparent 25%) -12px 0,
                linear-gradient(225deg, #fc3c3c 25%, transparent 25%) -12px 0,
                linear-gradient(135deg, #4da6ff 50%, transparent 50%) -12px 0,
                linear-gradient(225deg, #4da6ff 50%, transparent 50%) -12px 0,
                linear-gradient(135deg, #fab400 75%, transparent 75%) -12px 0,
                linear-gradient(225deg, #fab400 75%, transparent 75%) -12px 0;
    background-size: 24px 24px;
    background-color: #fab400;
    border-top: 4px solid #000000;
    border-bottom: 4px solid #000000;
    z-index: 10;
}

/* 下半分の背景色を敷くエリア */
.works-portfolio-section-bg {
    background-color: #db97cd;
    width: 100%;
    padding: 40px 20px 0 20px;
}

/* カテゴリー見出し（黒文字） */
.works-category-title {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 1.6rem;
    color: #000000;
    margin-bottom: 20px;
}

/* アプリカード用の見出し（白フチ文字） */
.works-category-title-white {
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 1.8rem;
    color: #ffffff;
    -webkit-text-stroke: 2px #000000;
    text-shadow: 3px 3px 0px #000000;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
    padding-left: 10px;
}

/* 「おまかせできること」のリスト形式 */
.works-intro-list {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    list-style: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}
.works-intro-list li {
    margin-bottom: 8px;
}

/* セクションごとの小見出し（WEB、名刺など） */
.works-sub-title {
    font-family: 'Holtwood One SC', 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    background-color: #FFFFBA; 
    border: 2px solid #000000;
    display: inline-block;
    padding: 6px 15px;
    border-radius: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    box-shadow: 3px 3px 0px #000000;
}

/* 各画像ギャラリーのグリッド配置 */
.works-portfolio-section {
    max-width: 800px;
    margin: 0 auto;
}

.works-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* 各画像やプレースホルダーの箱 */
.gallery-item-box {
    border: 3px solid #000000;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.15);
    transition: transform 0.1s ease;
}
.gallery-item-box img {
    width: 100%;
    height: auto;
    display: block;
}
.gallery-item-box:hover {
    transform: scale(1.02);
}

/* まだ画像がないテキストプレースホルダー */
.text-placeholder {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #666666;
    padding: 30px 10px;
    text-align: center;
}

/* 自社開発アプリのカードエリア */
.app-cards-section {
    max-width: 800px;
    margin: 0 auto;
}

.app-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* アプリカード単体 */
.app-work-card {
    display: flex;
    flex-direction: column;
    border: 3px solid #000000;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: #000000;
    box-shadow: 5px 5px 0px #000000;
}

.app-card-image {
    padding: 35px 15px;
    text-align: center;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 900;
    border-bottom: 3px solid #000000;
}

.app-card-content {
    padding: 20px;
    background-color: #ffffff;
}

.app-card-tag {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 11px;
    font-weight: 900;
    color: #ffffff;
    padding: 3px 8px;
    border: 1.5px solid #000000;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 10px;
}

.app-card-title {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.app-card-text {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #444444;
    line-height: 1.6;
}

/* 下部エリアのボタンの余白 */
.works-bottom-container {
    padding: 40px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* カプセル型リンクボタン */
.works-footer-btns {
    width: 100%;
    max-width: 250px;
    display: flex;
    justify-content: center;
}

.works-btn {
    width: 100%;
    height: 55px;
    border: 4px solid #000000;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Holtwood One SC', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 4px 4px 0px #000000;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.works-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px #000000; }
.works-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0px #000000; }

.btn-blue { background-color: #1472fc; }

/* 1. 縦に並んでしまうのを防ぎ、横並びのグリッドを維持するための設定 */
.grid-card-set {
    display: flex;
    flex-direction: column; /* 自分の枠と文字だけを縦に並べる */
    align-items: center;    /* 中央寄せ */
    width: 100%;            /* グリッドの横幅に合わせる */
}

/* 2. 画像リンクの枠自体のサイズが崩れないように固定 */
.grid-card-set .gallery-item-box {
    width: 100%;
    margin-bottom: 0;      /* 下の余白を一度リセット */
}

/* 3. 白い枠の下（ピンク背景の隙間）に入る文字のスタイル */
.works-outside-text {
    margin-top: 10px;      /* 白い枠と文字の間の隙間（ここで上下の位置を調整できます） */
    margin-bottom: 15px;   /* 文字の下の隙間（下段の枠との間のクッション） */
    font-size: 15px;       /* 文字の大きさ */
    color: #000000;        /* 文字の色（黒） */
    font-weight: bold;     /* 太字 */
    text-align: center;    /* 中央寄せ */
    white-space: nowrap;   /* 改行させずに1行で表示 */
}


/* 2. 枠内の画像のサイズ調整（文字が入るスペースを確保） */
.gallery-item-box.has-caption img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 3. 画像の下の隙間に入る文字のスタイル */
.works-outside-text {
    margin-top: 12px;     /* 画像と文字の間の隙間 */
    margin-bottom: 0;
    font-size: 14px;      /* 文字の大きさ */
    color: #000000;       /* 文字の色（黒） */
    font-weight: bold;    /* 太字 */
    text-align: center;   /* 中央寄せ */
    width: 100%;
}


/* スマホサイズ調整 */
@media (max-width: 480px) {
    .works-card { padding: 30px 15px; }
    .works-title { font-size: 3.2rem; }
    .works-num { font-size: 2.8rem; }
    .works-category-title { font-size: 1.3rem; }
    .works-gallery-grid { grid-template-columns: 1fr; } 
    .works-portfolio-section-bg { padding: 30px 10px 0 10px; }
}

/* ==================================================
   WORKS / NEW GALLERY
   ================================================== */


/* ------------------------------------------
   共通キャプション
   ------------------------------------------ */

   .work-caption {
    margin-top: 18px;
    text-align: left;
}

.work-caption span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.65);
    margin-bottom: 5px;
}

.work-caption p {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}


/* ------------------------------------------
   WEB DESIGN
   ------------------------------------------ */

.web-design-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 55px 40px;
    margin-bottom: 100px;
}

.web-work {
    min-width: 0;
}

.web-work-image {
    display: block;
    overflow: hidden;
    background: #fff;
}

.web-work-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.web-work-image:hover img {
    transform: scale(1.03);
}


/* ------------------------------------------
   はなまる整骨院 iframe
   ------------------------------------------ */

.web-iframe-preview {
    overflow: hidden;
    background: #fff;
}

.iframe-browser-bar {
    height: 25px;
    background: #e9e9e9;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 9px;
}

.iframe-browser-bar i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #bbb;
}

.iframe-preview-screen {
    height: 330px;
    overflow: hidden;
}

.iframe-preview-screen iframe {
    width: 100%;
    height: 900px;
    border: 0;
    display: block;
    pointer-events: none;
}


/* ------------------------------------------
   BUSINESS CARD
   ------------------------------------------ */

.business-card-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    margin-bottom: 110px;
}

.business-card-work {
    min-width: 0;
}

.business-card-images {
    min-height: 330px;
    padding: 55px 35px;
    background: rgba(255,255,255,0.95);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
}

.business-card-images img {
    width: 44%;
    height: auto;
    display: block;
    

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.business-card-images img:hover {
    transform: translateY(-8px);
}

.business-card-images.single-card img {
    width: 55%;
}


/* ------------------------------------------
   BANNER
   ------------------------------------------ */

   .banner-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
    margin-bottom: 110px;
}

.banner-work {
    width: 78%;
    max-width: 750px;
}

.banner-work > img {
    width: 100%;
    height: auto;
    display: block;

    background: #fff;

    transition: transform 0.4s ease;
}

.banner-work > img:hover {
    transform: translateY(-5px);
}


/* ------------------------------------------
   スマホ
   ------------------------------------------ */

@media (max-width: 768px) {

    .banner-gallery {
        gap: 40px;
        margin-bottom: 80px;
    }

    .banner-work {
        width: 92%;
    }

}

/* ------------------------------------------
   LOGO
   ------------------------------------------ */

.logo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px;
    margin-bottom: 100px;
}

.logo-work {
    min-width: 0;
}

.logo-image {
    background: rgba(255,255,255,0.96);

    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px;
}

.logo-image img {
    max-width: 75%;
    max-height: 220px;
    width: auto;
    height: auto;

    transition: transform 0.4s ease;
}

.logo-image img:hover {
    transform: scale(1.05);
}


/* ------------------------------------------
   スマホ
   ------------------------------------------ */

@media (max-width: 768px) {

    .web-design-gallery {
        grid-template-columns: 1fr;
        gap: 55px;
        margin-bottom: 80px;
    }

    .business-card-gallery {
        grid-template-columns: 1fr;
        gap: 60px;
        margin-bottom: 80px;
    }

    .business-card-images {
        min-height: 260px;
        padding: 40px 20px;
    }

    .banner-gallery {
        gap: 45px;
        margin-bottom: 80px;
    }

    .logo-gallery {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-bottom: 80px;
    }

    .logo-image {
        min-height: 240px;
        padding: 40px;
    }

    .iframe-preview-screen {
        height: 280px;
    }

}

/* ==========================================================================
   ✨ 2026-10 調整
   ========================================================================== */

/* 固定ヘッダーの高さに合わせる（スマホでは2段ヘッダー） */
.works-page-container { margin-top: var(--header-h, 70px) !important; }
.works-top-container { padding-top: 50px; }

.works-portfolio-section { max-width: 900px; }

/* キャプション：ピンク背景でも読めるよう黒文字に */
.work-caption { margin-top: 12px; }
.work-caption span {
    color: #000000;
    opacity: 0.6;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}
.work-caption p {
    color: #000000;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 900;
}

/* WEB DESIGN：サムネのサイズをそろえる */
.web-design-gallery { gap: 40px 30px; margin-bottom: 70px; }
.web-work-image {
    aspect-ratio: 16 / 10;
    border: 3px solid #000000;
    border-radius: 14px;
    box-shadow: 5px 5px 0 #000000;
    transition: transform .15s ease, box-shadow .15s ease;
}
.web-work-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.web-work-image:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #000000; }

/* 名刺・ロゴ・バナーも同じ「黒フチ＋影」の世界観に */
.business-card-gallery { gap: 30px; margin-bottom: 70px; }
.business-card-images,
.logo-image {
    border: 3px solid #000000;
    border-radius: 14px;
    box-shadow: 5px 5px 0 #000000;
    min-height: 0;
    padding: 30px 24px;
}
.business-card-images img { width: 42%; box-shadow: 0 4px 10px rgba(0,0,0,0.18); }
.logo-gallery { gap: 30px; margin-bottom: 70px; }
.logo-image { aspect-ratio: 4 / 3; }
.logo-image img { max-height: 180px; }

/* BANNER：PCでは2列にして大きくなりすぎないように */
.banner-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 30px;
    margin-bottom: 70px;
}
.banner-work { width: 100%; max-width: none; }
.banner-work > img {
    border: 3px solid #000000;
    border-radius: 10px;
    box-shadow: 5px 5px 0 #000000;
}

/* ------------------------------------------
   AI DEVELOPED APPS
   ------------------------------------------ */
.app-lead {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 20px;
}
.app-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
}

/* 1つのアプリ：PCは「画面｜説明」の横並び（互い違い） */
.app-item {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 28px;
    padding: 24px;
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 24px;
    box-shadow: 6px 6px 0 #000000;
}
.app-item:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.app-item:nth-child(even) .app-shot { order: 2; }

/* 画面をのせるブラウザ風フレーム */
.app-shot {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 3px solid #000000;
    border-radius: 14px;
    overflow: hidden;
    background: var(--app-bg, #f3f3f3);
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: zoom-in;
    transition: transform .2s ease;
}
.app-shot:hover { transform: rotate(-1deg) scale(1.02); }
.app-shot:focus-visible { outline: 4px solid var(--app-color, #1472fc); outline-offset: 3px; }

.app-frame-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    background: var(--app-color, #1472fc);
    border-bottom: 3px solid #000000;
}
.app-frame-bar i {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #000000;
}
.app-url {
    flex: 1;
    margin-left: 6px;
    height: 16px;
    line-height: 13px;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    border: 1.5px solid #000000;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 0 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.app-frame-screen {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.app-frame-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* 画面の上側（ヘッダー部分）を優先して見せる */
    display: block;
}

/* 画像がまだない時の表示 */
.app-noimg {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Holtwood One SC', 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--app-color, #1472fc);
    background-image: radial-gradient(rgba(0,0,0,0.06) 20%, transparent 21%);
    background-size: 18px 18px;
}
.app-noimg small { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 11px; color: #555; }
.app-shot.no-image img { display: none; }
.app-shot.no-image .app-noimg { display: flex; }
.app-shot.no-image { cursor: default; }
.app-shot.no-image:hover { transform: none; }
.app-shot.no-image .app-zoom-hint { display: none; }

.app-zoom-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 10px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 20px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 2px 2px 0 #000000;
}

/* スマホアプリ用の縦長フレーム（class="app-shot is-phone"） */
.app-shot.is-phone {
    width: min(230px, 70%);
    margin: 0 auto;
    border-width: 4px;
    border-radius: 30px;
    padding: 10px 8px;
    background: #111111;
}
.app-shot.is-phone .app-frame-bar { display: none; }
.app-shot.is-phone .app-frame-screen {
    aspect-ratio: 9 / 19.5;
    border-radius: 20px;
    background: var(--app-bg, #f3f3f3);
}

/* 説明側 */
.app-body { min-width: 0; }
.app-card-tag {
    background-color: var(--app-color, #1472fc);
    font-size: 12px;
    padding: 4px 10px;
    border: 2px solid #000000;
    border-radius: 20px;
}
.app-card-title {
    font-size: 1.35rem;
    margin: 4px 0 8px;
}
.app-card-text { font-size: 14px; line-height: 1.8; color: #333333; }
.app-link {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 16px;
    background: var(--app-bg, #f3f3f3);
    border: 3px solid #000000;
    border-radius: 30px;
    box-shadow: 3px 3px 0 #000000;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #000000;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.app-link:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #000000; }

/* ------------------------------------------
   ライトボックス（画像拡大）
   ------------------------------------------ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 16px;
    background: rgba(20, 10, 30, 0.85);
    animation: lbIn .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lb-img {
    max-width: min(1100px, 100%);
    max-height: 100%;
    object-fit: contain;
    border: 3px solid #000000;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 6px 6px 0 #000000;
}
.lb-close, .lb-prev, .lb-next {
    position: absolute;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 3px solid #000000;
    background: #fcd400;
    box-shadow: 3px 3px 0 #000000;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    color: #000;
}
.lb-close { top: 12px; right: 12px; background: #ff9ebb; }
.lb-prev  { left: 12px;  top: 50%; transform: translateY(-50%); display: none; }
.lb-next  { right: 12px; top: 50%; transform: translateY(-50%); display: none; }
.lightbox.is-multi .lb-prev,
.lightbox.is-multi .lb-next { display: block; }
.lb-count {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 900;
}

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 768px) {
    .app-item,
    .app-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    .app-item:nth-child(even) .app-shot { order: 0; }
    .banner-gallery { grid-template-columns: 1fr; gap: 30px; }
    .banner-work { width: 100%; }
    .web-design-gallery,
    .business-card-gallery,
    .banner-gallery,
    .logo-gallery { gap: 30px; margin-bottom: 50px; }
}

@media (max-width: 480px) {
    .works-top-container { padding: 40px 16px 30px; }
    .works-portfolio-section-bg { padding: 30px 16px 0; }
    .works-intro-list { font-size: 14px; text-align: left; }
    .app-card-title { font-size: 1.2rem; }
    .app-card-text { font-size: 13px; }
    .business-card-images { padding: 24px 16px; gap: 14px; }
    .logo-image { padding: 24px; }
    .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}

/* --- ロゴギャラリー内の文字メリハリ調整 --- */

/* 1. 一番上の小さなカテゴリ名 (LOGO DESIGN) */
.work-caption span {
    font-size: 11px;
    letter-spacing: 2px;
    color: #999999;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

/* 2. ロゴのタイトル (〇〇のLOGO) */
.logo-title {
    font-size: 18px;       /* しっかり大きく */
    font-weight: 800;      /* 太字で強調 */
    color: #222222;       /* 濃い黒でパッと目立たせる */
    margin: 0 0 12px 0;
}

/* 3. クリックするボタン (制作意図を見る) */
.details-summary {
    font-size: 13px;       /* タイトルより一回り小さく */
    color: #0076df;       /* リンクだとわかる青色 */
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    list-style: none;
    border: 1px solid #0076df; /* ボタンらしく枠線をつける */
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;   /* 丸みのある可愛いボタンに */
    transition: all 0.3s;
}

/* マウスを乗せた時の変化 */
.details-summary:hover {
    background-color: #0076df;
    color: #ffffff;
}

/* 三角矢印を消す（Chrome, Safari等用） */
.details-summary::-webkit-details-marker {
    display: none;
}

/* 4. 開いた後の説明本文エリア */
.work-description {
    font-size: 13px;       /* 読みやすい小ぶりなサイズ */
    color: #4f4f4f;       /* 真っ黒ではなく少し優しいグレーに */
    line-height: 1.7;      /* 行間をあけて読みやすく */
    background-color: #f6f8fa; /* 薄いグレーの背景で「枠」を意識させる */
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
    text-align: left;      /* 本文は左揃えが読みやすいです */
    font-family: "Hiragino Maru Gothic ProN", "Yu Gothic UI", sans-serif; /* ほのぼのフォント */
}

/* 開いたときのボタンの見た目を少し変える（任意） */
.work-details[open] .details-summary {
    background-color: #eeeeee;
    color: #666666;
    border-color: #cccccc;
}

/* ==========================================
   仕上げ調整（提出前）
========================================== */
/* カテゴリ名（WEB / LP など）がピンク背景で読めなかったのを修正 */
.work-caption span {
    color: #4a2a4a;
    opacity: 1;
}
/* 横型の名刺（はなや）は表裏を上下に並べる */
.business-card-images.is-horizontal {
    flex-direction: column;
}
.business-card-images.is-horizontal img {
    width: 62%;
}

/* ページ外側（左右の余白）の背景色 */
body { background-color: #db97cd; }

/* AIアプリ：紹介画像（3:2）が切れずに全体表示されるように */
.app-frame-screen { aspect-ratio: 3 / 2; }
.app-frame-screen img { object-fit: contain; object-position: center; background: #ffffff; }

.app-card-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--app-color, #1472fc);
}
.app-card-points {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}
.app-card-points li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.6;
    color: #333333;
}
.app-card-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--app-color, #1472fc);
    font-weight: 900;
}
