body {
    font-family: "Noto Sans JP",
    "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif;
}

a,
a:hover,
a:visited,
a:active {
    color: inherit;
    text-decoration: none;
}

.contents {
    padding: 48px;
}

/**********************
  タブ
 *********************/

.tab-list input[type="radio"] {
    display: none;
}

.tab-list {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

/* タブラベル全体 */
.tab-label-list {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 48px;
}

/* タブ */
.tab-label-list label {
    cursor: pointer;
    flex: 1;
    text-align: center;
    padding: 18px 0 18px 0;

    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #fff;
    background: #333;
    position: relative;
}

/* タブとタブの間の縦線 */
.tab-label-list label:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 30%;
    bottom: 30%;
    right: 0;
    width: 1px;
    background: #ddd;
}

/* 選択中のタブの下線 */
#tab1:checked ~ .tab-label-list label[for="tab1"]::after,
#tab2:checked ~ .tab-label-list label[for="tab2"]::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: -12px; /* タブ内の下からの位置 */
    height: 4px; /* 下線の太さ */
    background-color: #D7302D;
    border-radius: 4px;
}

/* 選択中のコンテンツを表示 */
#tab1:checked ~ #tab-content1,
#tab2:checked ~ #tab-content2 {
    display: block;
}

/* コンテンツ */
.tab-content {
    display: none;
    width: 100%;
}

/**********************
  プロダクト一覧
 *********************/

.product-list {
    display: grid;
    gap: 60px;
    grid-template-columns: repeat(2, 1fr);
    margin: 16px 0 48px 0;
}

.product-thumbnail {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 550 / 300;
    object-fit: cover;
    align-self: center;
    display: block;
    margin-bottom: 8px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-thumbnail:hover {
    transform: scale(1.05);
}

/* サ終済みなら拡大を無効化 */
.product-thumbnail.disabled:hover {
    transform: none;
}

.product-thumbnail.border {
    border: 1px solid #ddd;
}

.product-title {
    font-size: 1.7em;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-tag-list {
    display: flex;
    align-items: center;
    gap: 14px;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.product-tag.role {
    background-color: #323232;
    padding: 6px 30px 6px 30px;
}

.product-tag.area {
    background-color: #AA64FF;
    padding: 6px 14px 6px 14px;
}

.product-store-list a,
.product-store-list a:hover,
.product-store-list a:visited,
.product-store-list a:active {
    color: inherit;
    text-decoration: underline;
}

.product-store-list {
    display: flex;
    align-items: center;
    gap: 14px;
}

.product-store {
    display: inline-flex;
    align-items: center;
    font-size: 0.85em;
}

.product-store img {
    height: 2.5em;
    width: auto;
}

/**********************
  アプリ一覧
 *********************/

.app-list {
    display: flex;
    flex-direction: column;
    margin: 32px 0;
}

.app-item {
    padding: 42px 0;
    border-bottom: 1px solid #ddd;
}

.app-container {
    height: 160px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.app-icon img {
    height: 160px;
    width: auto;
}

.app-info {
    flex: 1;
    height: 95%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-title {
    font-size: 1.5em;
    font-weight: 700;
}

.app-description {
    /*font-size: 1.2em;*/
}

.dl-label {
    width: 100%;
    font-size: 0.8em;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.dl-banner-list {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dl-banner {
    height: 40px;
    width: auto;
}

/* ページネーション */
.app-pagination {
    margin-left: auto;
    margin-right: auto;
    border-collapse: separate;
}

.page {
    font-size: 1.4em;
    color: #888;
    padding: 0 14px;
    border-bottom: 2px solid transparent;
}

.page_active {
    color: #333;
    border-bottom: 3px solid #D7302D;
}

/**********************
  レスポンシブ対応
 *********************/

@media (max-width: 1100px) {
    .contents {
        padding: 48px 24px;
    }

    .product-list {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .product-thumbnail {
        width: 550px;
    }

    .product-store-list {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .product-thumbnail {
        width: 100%;
    }
}

@media (max-width: 550px) {
    .product-store {
        display: inline-flex;
        align-items: center;
        font-size: 0.75em;
    }
}