@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

body {
    background: #F4F6F9; /* スタイリッシュなライトグレー */
    font-family: 'Arial', 'Hiragino Kaku Gothic ProN', sans-serif;
    color: #333;
    margin: 0;
}

.details-inner { display: flex; flex-direction: column; gap: 4px; padding-bottom: 0.5em; }
.app-feature-item {
    display: flex; align-items: center; gap: 8px;
    background: #f9f9f9; padding: 5px; border-radius: 4px;
}
.app-icon-wrap img { width: 50px; height: auto; display: block; border-radius: 8px; }
.app-desc { font-size: 3.5vw; line-height: 1.3; color: #333; flex: 1; text-align: left; }
.app-desc a { color: inherit; text-decoration: none; }

.container { max-width: 100%; margin: 0 auto; padding: 1px; text-align: center; }

h1 {
  display: inline-block;
  background: linear-gradient(transparent 70%, #fbe8a6 70%);
  padding: 0 5px;
  font-size: 1.5rem;
}
a { text-decoration: none; }

.ranking-item {
    background-color: #fff;
    border: 1px solid #D4AF37;
    padding: 5px; padding-bottom: 1px; margin-bottom: 5px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ranking-item h2 { text-align: center; margin-top: 0.5px; margin-bottom: 0.5px; }
.ranking-item h4 { font-size: 18px; color: #333; margin-top: -0.5px; margin-bottom: 0.5px; }
.ranking-item p { color: #666; }

/* おすすめPOINTボックス (ネイビー基調) */
.ranking-item .osusumebox {
    position: relative; margin: 2em 0; padding: 0.5em 1em;
    border: solid 1px #1A2B4C; text-align: left; position: relative;
}
.ranking-item .osusumebox .box-title {
    position: absolute; top: -27px; left: -3px; z-index: 1;
    display: inline-block; height: 40px; line-height: 26px; 
    padding: 7px 25px 7px 15px; font-size: 17px;
    background: #1A2B4C; color: #ffffff; font-weight: bold; box-sizing: border-box;
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 10px) 50%, 100% 100%, 0% 100%);
}

/* ユーザーの感想ボックス (ゴールド基調) */
.ranking-item .reviewbox {
    position: relative; margin: 2em 0; padding: 0.5em 1em;
    border: solid 1px #D4AF37; text-align: left;
}
.ranking-item .reviewbox .box-title {
    position: absolute; top: -27px; left: -3px; z-index: 1;
    display: inline-block; height: 40px; line-height: 26px; 
    padding: 7px 25px 7px 15px; font-size: 17px;
    background: #D4AF37; color: #ffffff; font-weight: bold; box-sizing: border-box;
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 10px) 50%, 100% 100%, 0% 100%);
}

.ranking-item img { width: 100%; height: auto; vertical-align: top; }
.ranking-item red { color: #e60012; font-weight: bold;}
.ranking-item yellow { color: #c99306; font-weight: bold; }
.ranking-item small { color: gray; font-size: 8px;}

/* 見出し付きボックス */
.ranking-item .type-box-titled {
   --box-color: #1A2B4C;
   margin: 0.5em auto; border: 1px solid var(--box-color); max-width: 800px;
}
.ranking-item .type-box-titled .box-title {
   background-color: var(--box-color); color: #fff; padding: 0.6em 1em; text-align: center; font-weight: bold;
}
.ranking-item .type-box-titled .box-content { padding: 0.15em; }
.ranking-item .type-box-titled p { margin:0; }

.ranking-item .box1 {
    position: relative; padding: 0.5em 1.5em; margin: 1.0em 0 0.25em 0;
    text-align: center; color: #000;
}
.ranking-item .box1 .box1_title {
    position: absolute; display: inline-block; top: -13px; left: 10px;
    padding: 0 10px; line-height: 1; font-size: 2.5em;
    background: #ffffff; color: #1A2B4C; font-weight: bold;
}

.ranking-item .box-top3 { background: #fff; }
.ranking-item .box-top3 .box-title {
    font-size: 18px; background: #1A2B4C; padding: 4px;
    text-align: center; color: #fff; font-weight: bold; letter-spacing: 0.05em;
}

.ranking-item .box-top3 .box-title-date {
    font-size: 18px; background: #fff; padding: 4px;
    text-align: center; color: #fff; font-weight: bold; letter-spacing: 0.05em;
}


/* 順位表示の帯 */
.ranking-item .rank {
    position: relative; padding: 2.0px; background: #1A2B4C; min-height: 40px;
}
.ranking-item .rank a {
    display: block; text-align: center; font-size: 32px; font-weight: 700;
    color: #fff; text-decoration: none; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) { .ranking-item .rank a { font-size: 6.5vw; } }

.ranking-item .rank:before {
    content: attr(data-title); position: absolute; top: -5px; left: 10px;
    width: 40px; height: 70px; background: #ff785b; color: #fff;
    font-size: 16px; font-weight: bold; display: flex; justify-content: center; align-items: center; z-index: 2;
}
.ranking-item .rank:after {
    content: ""; position: absolute; top: 65px; left: 10px;
    border-left: 20px solid #ff785b; border-right: 20px solid #ff785b; border-bottom: 10px solid transparent; z-index: 1;
}
.ranking-item .rank#\31:before { background: #d4af37; }
.ranking-item .rank#\31:after { border-left-color: #d4af37; border-right-color: #d4af37; }
.ranking-item .rank#\32:before { background: #c0c0c0; }
.ranking-item .rank#\32:after { border-left-color: #c0c0c0; border-right-color: #c0c0c0; }
.ranking-item .rank#\33:before { background: #cd7f32; }
.ranking-item .rank#\33:after { border-left-color: #cd7f32; border-right-color: #cd7f32; }

.ranking-item .box-015 {
    position: relative; max-width: 90%; margin: 1em auto; padding: 1em 2.5em 1em 1.5em;
    border-radius: 3px; box-shadow: 0 2px 3px rgb(0 0 0 / 20%);
    background-color: #fffaf0; color: #333333; font-size: clamp(0.75rem, 0.5938rem + 0.5vw, 0.875rem);
}
.ranking-item .box-015 .title { font-size: clamp(0.75rem, 0.5938rem + 0.5vw, 0.875rem); text-align: center; }
.ranking-item .box-015::before {
    position: absolute; content: ''; top: -15px; right: 10px; height: 50px; width: 15px;
    border: 3px solid #D4AF37; border-radius: 10px; box-shadow: 1px 1px 2px rgb(0 0 0 / 30%); transform: rotate(10deg);
}
.ranking-item .box-015::after {
    position: absolute; content: ''; top: 0; width: 10px; right: 20px; border: solid 5px #fffaf0;
}

li { padding-top:10.0px; padding-bottom:10.0px; line-height: 30px; }
ul.custom-listChk, ul.custom-listChk_review { list-style: none; padding-left: 1.5em; }
ul.custom-listChk li, ul.custom-listChk_review li { margin-bottom: 10px; position: relative; }
ul.custom-listChk li img { position: absolute; left: -1.5em; width: 20px; height: 20px; }
ul.custom-listChk_review li { padding-left: 30px; }
ul.custom-listChk_review li img { position: absolute; left: -1.5em; width: 40px; height: 40px; }

/* アプリ詳細テーブル */
table.app-info-table { width: 100%; border-collapse: collapse; overflow-x: auto; font-size: 14px; margin-bottom: 20px; }
table.app-info-table th {
  background-color: #1A2B4C; color: #fff; padding: 10px; border: 1px solid #ccc;
  text-align: center; vertical-align: middle; font-size: 12px;
}
table.app-info-table td {
  padding: 10px; border: 1px solid #ccc; text-align: center; vertical-align: middle; font-size: 12px;
}
table.app-info-table thead th, table.app-info-table th.section-heading { background-color: #1A2B4C; font-weight: bold; }
table.app-info-table td[colspan="4"] { background-color: #fff; text-align: left; word-break: break-word; }
.premium-content { margin: 15px 0; font-weight: bold; }

@media (min-width: 768px) { .container { max-width: 768px; } }
footer { margin-top: 20px; background-color: #fff; color: #333; padding: 20px 0; text-align: center; }

#back-to-top {
  width: 50px; height: auto; display: none; position: fixed; bottom: 180px; right: 20px; z-index: 1000;
  cursor: pointer; font-size: 10px; color: #ffffff;
  background-color: rgba(26, 43, 76, 0.8); padding: 10px; border-radius: 30%; transition: opacity 0.3s ease;
}
#cta-button {
  padding: 1px; position: fixed; bottom: 0px; left: 50%; transform: translateX(-50%);
  background-color: rgba(26, 43, 76, 0.95); color: white; border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); transition: transform 0.3s ease, opacity 0.3s ease; z-index: 999; margin: 0 auto;
}
@media (min-width: 800px) { #cta-button { width: 40%; font-size: 14px; } }
@media (max-width: 767px) { #cta-button { width: 100%; font-size: 14px; } }
.cta-hidden { display: none; opacity: 0; transform: translateX(-50%) translateY(100%); }
.cta-visible { opacity: 1; transform: translateX(-50%); display: block; }

.mf-button-container { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; max-width: 400px; margin: 10px auto; }
.btn {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 15px 10px; border-radius: 12px; font-size: 14px; text-decoration: none; color: #fff;
  font-weight: 600; line-height: 1.2; box-shadow: 2px 2px 6px rgba(0,0,0,0.2); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 4px 4px 10px rgba(0,0,0,0.3); }
.female.young { background: #f48a9a; }
.male.young   { background: #1A2B4C; }

summary {
  position: relative; display: block; padding: 10px 10px 10px 30px; cursor: pointer; font-weight: bold;
  background-color: #f4f6f9; transition: 0.2s;
}
summary:hover { background-color: #eef2f7; }
summary::-webkit-details-marker { display: none; }
summary:before, summary:after { content: ""; margin: auto 0 auto 10px; position: absolute; top: 0; bottom: 0; left: 0; }
summary:before { width: 16px; height: 16px; border-radius: 4px; background-color: #1A2B4C; }
summary:after {
  left: 6px; width: 5px; height: 5px; border: 4px solid transparent; border-left: 5px solid #fff; box-sizing: border-box; transition: .1s;
}
details[open] summary { background-color: #eef2f7; }
details[open] summary:after { transform: rotate(90deg); left: 4px; top: 5px; }

.app-details-btn { margin: 15px 0; }
.app-details-btn summary::-webkit-details-marker { display: none; }
.app-details-btn summary { list-style: none; }
.app-summary-btn {
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background-color: #1A2B4C !important; color: #ffffff !important;
    border-radius: 8px; padding: 12px 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    -webkit-tap-highlight-color: transparent !important; outline: none !important;
}
.app-summary-btn:hover, .app-summary-btn:focus, .app-summary-btn:active {
    background-color: #1A2B4C !important; color: #ffffff !important; outline: none !important;
}
.summary-text-wrap { text-align: center; width: 100%; }
.summary-sub { font-size: 0.75em; margin-bottom: 4px; }
.summary-main { font-size: 1.1em; font-weight: bold; }

.store-btn-wrap { text-align: right; margin-top: 12px; }
.orange-store-btn {
    display: inline-block; background-color: #ff8c00 !important; color: #ffffff !important;
    text-decoration: none !important; font-size: 11px; font-weight: bold;
    padding: 8px 16px; border-radius: 20px; box-shadow: 0 2px 5px rgba(255, 140, 0, 0.3); transition: background-color 0.2s ease;
}
.css-dl-btn {
    display: flex; align-items: center; justify-content: center; width: 90%; max-width: 340px; margin: 15px auto;
    padding: 16px 52px 16px 15px; border-radius: 50px; font-size: clamp(12px, 3.5vw, 15px); white-space: nowrap;
    letter-spacing: -0.5px; font-weight: bold; color: #ffffff !important; text-decoration: none !important;
    position: relative; overflow: hidden; box-sizing: border-box; transition: all 0.1s ease;
}
.css-dl-btn.app-btn, .css-dl-btn.web-btn {
    background: linear-gradient(180deg, #ff7b00 0%, #ea5404 100%);
    box-shadow: 0 5px 0 #c24300, 0 8px 10px rgba(0,0,0,0.15);
}
.css-dl-btn i { margin-right: 6px; font-size: 18px; }
.btn-r18 {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    font-size: 10px; font-weight: 900 !important; background-color: #ffffff !important;
    color: #ff3b30 !important; padding: 3px 5px; border-radius: 3px; line-height: 1;
    letter-spacing: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.app-item-title { margin: 15px 0 10px 0; text-align: left; }
.app-item-title a {
    display: block; font-size: 20px; font-weight: bold; color: #333333 !important; text-decoration: none !important;
    padding: 10px 15px; background-color: #ffffff; border-left: 6px solid #D4AF37;
    border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: relative; transition: all 0.2s ease;
}
.app-item-title a::after {
    content: '＞'; position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    color: #D4AF37; font-size: 16px; font-weight: bold;
}

/* -------------------------------------
   TOP3 縦積みカードデザイン（レイアウト崩れ防止完全対応）
-------------------------------------- */
.top3-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    background: #ffffff;
    box-sizing: border-box;
}

.top3-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    box-sizing: border-box;
    width: 100%;
}
.rank-card-1 { background-color: #fffae6; border: 1px solid #fde073; }
.rank-card-2 { background-color: #f4f7f9; border: 1px solid #d1d5db; }
.rank-card-3 { background-color: #f9f9f9; border: 1px solid #e5e7eb; }

/* アプリアイコン（王冠バッジを重ねるための親要素設定） */
.top3-card-left {
    flex-shrink: 0;
    width: 80px;
    position: relative; /* バッジの基準位置として追加 */
}

/* ★ 王冠をアイコンの左上に配置する設定 */
.top3-crown-badge {
    position: absolute;
    top: -12px;  /* アイコンより少し上にはみ出させる */
    left: -12px; /* アイコンより少し左にはみ出させる */
    width: 36px !important;
    height: auto !important;
    max-width: 36px !important;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2)); /* 立体感を出す影 */
}

.top3-vertical-stack .top3-card-left img.app-icon {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    object-fit: cover;
    display: block;
}

/* 右側コンテンツエリア */
.top3-card-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* タイトル（王冠がなくなったのでスッキリ） */
.top3-title-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.top3-title {
    font-size: 16px;
    font-weight: bold;
    color: #2563eb !important;
    text-decoration: underline !important;
    line-height: 1.3;
    word-break: break-all;
}

/* 赤文字キャッチフレーズ */
.top3-catchphrase {
    font-size: 13px;
    font-weight: bold;
    /* color: #e63b52; */
    margin-bottom: 6px;
    line-height: 1.35;
    word-break: break-all;
}

/* 説明文とマーカー */
.top3-desc {
    font-size: 11.5px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
    word-break: break-all;
}
.top3-desc .marker-yellow {
    background: linear-gradient(transparent 60%, #fff0b3 60%);
    font-weight: bold;
}

/* 3Dダウンロードボタン（他のオレンジボタンと統一） */
.top3-dl-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(180deg, #ff7b00 0%, #ea5404 100%); /* オレンジグラデーション */
    color: #ffffff !important;
    font-size: 15px;
    font-weight: bold;
    padding: 12px 0; /* 押しやすいように少しだけ高さを出しています */
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 5px 0 #c24300, 0 8px 10px rgba(0,0,0,0.15); /* 影も他と統一 */
    transition: transform 0.1s, box-shadow 0.1s;
    margin-top: auto;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.top3-dl-btn:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 transparent, 0 2px 3px rgba(0,0,0,0.15);
}

/* キラッと光るエフェクト（他ボタンと同じ） */
.top3-dl-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: btn-shine 3s infinite;
}


/* ネイビー背景上の文字をパキッとした明るいイエローに変更 */
.box-top3 .box-title yellow {
    color: #FFEA00 !important; /* 鮮やかで目立つイエロー */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* 黒い影を落として文字をクッキリ浮かせる */
    font-weight: 900 !important;
    letter-spacing: 0.5px;
}