@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
    --maxw: 1200px;
    --gap: 24px;
    --cols: 3;
    --brand-blue: #0A84FF;
    --brand-blue-2: #0A4ECF;
    --brand-red: #9B1C1C;
    --neutral: #3B3B3B;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #222;
}

.page-header {
    background-color: #fafafa;
    text-align: center;
    padding: 60px 20px 20px;
}

.page-header h1 {
    color: #222;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0 0 16px;
}

.page-header p {
    color: #555;
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

#laser-category {
    max-width: var(--maxw);
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.case-tabs {
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    gap: var(--gap);
    max-width: var(--maxw);
    margin: 24px auto 32px;
    width: 100%;
    padding: 0;
}

.case-grid,
.case-gallery {
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    gap: var(--gap);
    max-width: var(--maxw);
    width: 100%;
    margin: 0 auto 40px;
}

.case-tab {
    width: 100%;
    min-height: 56px;
    padding: 0 24px;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--brand-blue-2);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.case-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: var(--brand-blue);
}

.case-tab[data-target="others"] {
    background: var(--neutral);
}

.case-tab[data-target="others"]:hover {
    background: #505050;
}

.case-tab.active,
.case-tab[aria-current="true"] {
    background: var(--brand-red) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); /* ← 白枠を削除 */
}

.category-description {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
    margin-top: 6px;
    margin-bottom: 12px;
}

.category-content {
    display: none;
    padding: 20px 0;
    border-top: 1px solid #eeeeee;
    min-height: 100px;
}

.category-content.active {
    display: block;
}
.case-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.case-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background-color: #f0f0f0;
    display: block;
}

.case-card .text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1rem 1.25rem;
    flex-grow: 1;
}

.case-card h3 {
    min-height: 2.6em;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.case-card p {
    min-height: 3.2em;
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
}

/* 画像縦横比fallback（aspect-ratio未対応ブラウザ用） */
@supports not (aspect-ratio: 4 / 3) {
    .case-card img {
        width: 100%;
        height: auto;
    }
}

.case-card .tag-list {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    text-align: left;
}

.tag {
    display: inline-block;
    background: #B0B0B0;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 9999px;
    margin-right: 6px;
    margin-bottom: 6px;
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0.95;
}

.tag:hover {
    background: #999999;
    opacity: 1;
}

@media (max-width: 1024px) {
    :root {
        --cols: 2;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 20px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    :root {
        --cols: 1;
    }

    .case-tabs {
        margin: 16px auto;
    }

    .case-tab {
        min-height: 52px;
        border-radius: 12px;
    }
}

/* ===== タブレット含めて、スマホ時は背景グレーを見せない（全幅ホワイト） ===== */
@media (max-width: 1024px) {
  /* 背景を完全に白統一 */
  body {
    background-color: #fff;
  }

  /* メインの白カード部分 */
  .report-container,
  #laser-category {
    margin: 0;
    padding: 24px;
    border-radius: 0;
    box-shadow: none;
    background-color: #fff;
  }

  /* 上の見出し帯も白に */
  .page-header {
    background-color: #fff;
  }

}
