/* =========================================
   NovelReader マニュアル用スタイルシート
   ========================================= */

/* 全体のコンテナ */
.nr-showcase {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

/* メインタイトル */
.nr-main-title {
    font-size: 32px;
    font-weight: bold;
    color: #1a237e; /* 濃紺 */
    border-bottom: 4px solid #ff0000; /* アクセントの赤 */
    padding-bottom: 10px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.nr-main-title .nr-sub {
    font-size: 18px;
    color: #555;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

/* キャッチフレーズ */
.nr-catchphrase {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #333;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 6px solid #1a237e;
}

/* 概要文 */
.nr-description {
    font-size: 16px;
    margin-bottom: 40px;
}

/* セクションタイトル共通 */
.nr-section-title {
    font-size: 24px;
    font-weight: bold;
    color: #fff !important; /* テーマによる上書き防止 */
    background-color: #1a237e;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    margin-top: 40px;
}

/* 機能リスト */
.nr-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nr-features-list > li {
    margin-bottom: 30px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 20px;
}

.nr-features-list > li:last-child {
    border-bottom: none;
}

/* 機能の見出し */
.nr-feature-head {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #d84315; /* 目立つ赤オレンジ */
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.nr-feature-head::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #1a237e;
}

/* 機能の説明文 */
.nr-feature-body {
    font-size: 16px;
    margin: 0;
    color: #444;
}

/* サブリスト（細かい機能） */
.nr-sub-list {
    margin-top: 15px;
    padding-left: 20px;
    background-color: #fafafa;
    padding: 15px 15px 15px 35px;
    border-radius: 6px;
}

.nr-sub-list li {
    margin-bottom: 8px;
    font-size: 15px;
}

/* スペック表 */
.nr-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 15px;
}

.nr-specs-table th, .nr-specs-table td {
    border: 1px solid #ddd;
    padding: 12px;
}

.nr-specs-table th {
    background-color: #f0f0f0;
    width: 30%;
    text-align: left;
    color: #1a237e;
}

/* 権限注釈 */
.nr-permission-note {
    font-size: 14px;
    color: #666;
    background-color: #fff3e0; /* 薄いオレンジ背景 */
    padding: 15px;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
}

/* スマホ向け調整 */
@media (max-width: 600px) {
    .nr-main-title { font-size: 24px; }
    .nr-main-title .nr-sub { font-size: 14px; }
    .nr-catchphrase { font-size: 18px; }
    .nr-feature-head { font-size: 18px; }
}

/* =========================================
   以下、画像サムネイル・拡大用スタイル（追記分）
   ========================================= */

/* 画像コンテナ */
.nr-img-container {
    display: inline-block;
    position: relative;
    margin: 10px 0;
    transition: all 0.3s ease;
    z-index: 1;
}

/* 通常時（サムネイル表示） */
.nr-thumbnail {
    width: 25% !important; /* 幅を1/4に縮小 */
    min-width: 150px;      /* 最小サイズの確保 */
    cursor: zoom-in;       /* カーソルをズームアイコンに */
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease; /* 滑らかに変化 */
    vertical-align: top;
}

/* マウスオーバー時（拡大表示） */
.nr-thumbnail:hover {
    width: 100% !important; /* 親要素いっぱいに拡大 */
    max-width: 600px;       /* 巨大になりすぎないよう制限 */
    position: relative;
    z-index: 100;           /* 他の要素より手前に表示 */
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3); /* 影を強調 */
    cursor: zoom-out;
}

/* 並列表示（Flexbox）内の画像用ラッパー */
.nr-flex-img-wrapper {
    position: relative; /* 子要素の絶対配置の基準 */
    transition: all 0.3s ease;
}

/* Flexbox内のサムネイル（ラッパーに対して100% = 分割幅） */
.nr-flex-img-wrapper .nr-thumbnail {
    width: 100% !important; 
    min-width: auto;
}

/* Flexbox内でホバーした時の挙動 */
.nr-flex-img-wrapper:hover .nr-thumbnail {
    position: absolute; /* フローから外して上に被せる */
    width: 300% !important; /* 元の枠の約3倍に拡大（適宜調整） */
    max-width: 600px;
    left: 0;
    top: 0;
    z-index: 1000;
}

/* =========================================
   最下部：戻るボタンの配置修正
   ========================================= */

.nr-footer-navigation {
    display: block !important;
    width: 100% !important;
    text-align: center !important; /* 子要素を中央に寄せる */
    margin-top: 60px !important;
    padding-top: 30px !important;
    border-top: 1px solid #eee !important;
    clear: both !important;        /* 回り込みを解除 */
}

.nr-back-link {
    /* 中央配置のための設定 */
    display: inline-flex !important;    /* インラインフレックスに変更 */
    align-items: center !important;     /* 垂直方向（上下）の中央揃え */
    justify-content: center !important; /* 水平方向（左右）の中央揃え */
    
    /* テキストのベースライン干渉を防ぐ */
    line-height: 1 !important;          
    
    /* ボタンのサイズと形状 */
    width: auto !important;
    min-width: 160px !important; 
    height: 48px !important;            /* 高さを明示的に指定すると安定します */
    
    /* 見た目の設定 */
    padding: 0 30px !important;         /* 上下のパディングを0にしてFlexboxに任せる */
    background-color: #f5f5f5 !important;
    color: #333 !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    border: 1px solid #ddd !important;
    font-weight: bold !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

/* アイコンと文字の間に少し隙間を作る */
.nr-back-link span {
    margin-right: 8px !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* ホバー時の挙動も上書き */
.nr-back-link:hover {
    background-color: #1a237e !important;
    color: #ffffff !important;
    border-color: #1a237e !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    transform: translateY(-2px) !important;
}

/* =========================================
   メインページ用：マニュアルリンクボタン
   ========================================= */

.nr-manual-link-container {
    text-align: center !important;
    margin: 40px 0 !important;
    width: 100% !important;
}

.nr-manual-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #1a237e !important; /* 濃紺 */
    color: #ffffff !important;
    padding: 15px 35px !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    font-size: 18px !important;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3) !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
}

.nr-manual-button .nr-icon {
    margin-right: 10px !important;
    font-size: 22px !important;
}

/* ホバー時の動き：少し浮き上がり、明るくなる */
.nr-manual-button:hover {
    background-color: #283593 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.4) !important;
    color: #ffffff !important;
}

/* スマホ向け調整 */
@media (max-width: 600px) {
    .nr-manual-button {
        font-size: 16px !important;
        padding: 12px 25px !important;
        width: 90% !important; /* スマホでは横幅いっぱいに近く */
    }
}