@charset "utf-8";

/* アプリ紹介・ポリシーなどの下層ページ共通スタイル */

.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.page-header {
    padding: 28px 0 24px;
    text-align: center;
}

.page-header a {
    display: inline-block;
}

.page-header img {
    width: 180px;
    height: auto;
}

.page h2 {
    margin: 44px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #CC6B40;
    font-size: 20px;
    font-weight: bold;
}

.page h3 {
    margin: 26px 0 8px;
    font-size: 16px;
    font-weight: bold;
    color: #CC6B40;
}

.page p {
    margin-bottom: 14px;
}

.page ul,
.page ol {
    margin: 0 0 16px 22px;
}

.page ul {
    list-style: disc;
}

.page ol {
    list-style: decimal;
}

.page li {
    margin-bottom: 4px;
}

.page a.link {
    color: #CC6B40;
    text-decoration: underline;
}

.page table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
    font-size: 13px;
}

.page th,
.page td {
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
}

.page th {
    width: 38%;
    background-color: #f3efdd;
    font-weight: bold;
}

/* アプリの見出し */
.app-hero {
    margin: 10px 0 30px;
    padding: 28px 20px;
    background-color: #fff;
    border-radius: 18px;
    text-align: center;
    overflow: hidden;
}

/* ストアのフィーチャーグラフィックを見出しの上端いっぱいに敷く。角丸は .app-hero の overflow で切る */
.app-hero img.banner {
    display: block;
    width: calc(100% + 40px);
    max-width: none;
    height: auto;
    margin: -28px -20px 0;
}

.app-hero img.icon {
    width: 108px;
    height: 108px;
    border-radius: 24px;
}

.app-hero h1 {
    margin: 14px 0 6px;
    font-size: 26px;
    font-weight: bold;
}

.app-hero p.tagline {
    margin-bottom: 0;
    color: #666;
}

.badge {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 18px;
    background-color: #CC6B40;
    border-radius: 999px;
    color: #fff;
    font-weight: bold;
}

/* ストアごとに色を分けて、どのボタンがどこへ飛ぶか一目で分かるようにする */
.badge.ios {
    background-color: #0071e3;
}

.badge.android {
    background-color: #01875f;
}

.badge.soon {
    background-color: #b9b2a0;
}

/* App Store と Google Play のように横に並べたとき、くっつかないようにする。
   スマホで 2 段に折り返しても中央からずれないよう、左右に同じだけ空ける */
.badge {
    margin-left: 4px;
    margin-right: 4px;
}

/* 公開済みのバッジはリンクになる。common.css の a:hover に負けて
   文字色が落ちるので、ここで戻す */
a.badge:hover {
    color: #fff;
}

/* スクリーンショット */
.shots {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 18px;
}

.shots img {
    width: 150px;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.page-footer {
    padding: 26px 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-size: 12px;
    color: #777;
}

.page-footer a {
    color: #777;
    text-decoration: underline;
}

.updated {
    color: #777;
    font-size: 12px;
}

@media screen and (min-width: 768px) {
    .shots img {
        width: 180px;
    }

    .page h2 {
        font-size: 22px;
    }
}

/* スクリーンショットのライトボックス (assets/lightbox.js) */
.shots a {
    display: block;
    cursor: zoom-in;
}

.shots img {
    display: block;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    display: none;
    z-index: 10000;
    user-select: none;
    touch-action: none;
    overscroll-behavior: contain;
    animation: lightbox-fade 0.15s ease-out;
}

.lightbox.lightbox--open {
    display: block;
}

@keyframes lightbox-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox__viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: grab;
}

.lightbox__viewport:active {
    cursor: grabbing;
}

.lightbox__track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
    align-items: center;
}

.lightbox__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 1rem;
}

.lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 90px);
    display: block;
    object-fit: contain;
    border-radius: 4px;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
    background: #111;
}

.lightbox__counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #f5f5f5;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 1;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: fixed;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    z-index: 1;
    transition: background 0.15s ease, transform 0.15s ease;
    font-family: inherit;
    padding: 0;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.lightbox__prev:hover {
    transform: translateY(-50%) scale(1.05);
}

.lightbox__next:hover {
    transform: translateY(-50%) scale(1.05);
}

.lightbox__close {
    top: 1rem;
    right: 1rem;
}

.lightbox__prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 600px) {

    .lightbox__close,
    .lightbox__prev,
    .lightbox__next {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .lightbox__close {
        top: 0.5rem;
        right: 0.5rem;
    }

    .lightbox__prev {
        left: 0.5rem;
    }

    .lightbox__next {
        right: 0.5rem;
    }

    .lightbox__image {
        max-height: calc(100vh - 90px);
    }
}
