@charset "UTF-8";
/*
Theme Name: nissin-dental
Theme URL: 
Description: 
Author: 
Version: 
*/

/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/
*,
*::before,
*::after {
    box-sizing: border-box
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    word-wrap: break-word;
    font-size: 62.5%;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
    color: #333;
    font-size: 100%;
    line-height: 1.7;
    font-family: 'Roboto', 'Hiragino Kaku Gothic ProN', 'Meiryo', 'Hiragino Sans', sans-serif;
    font-weight: 400;
    -webkit-text-size-adjust: 100%;
    font-size: 1.6rem;
    --wp--preset--font-size--small: 1.3rem;
    --wp--preset--font-size--medium: 2.0rem;
    --wp--preset--font-size--large: 3.6rem;
    --wp--preset--font-size--x-large: 4.2rem;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%
}

input,
button,
textarea,
select {
    font: inherit
}

#root,
#__next {
    isolation: isolate
}

body {
    text-align: left;
}

header,
main,
footer {
    width: 100%;
    margin: 0 auto;
}

aside {
    background: #e1e1e1;
}

a {
    text-decoration: none;
}

ul {
    padding: 0;
}

li {
    list-style-type: none;
}

.clearfix:after {
    content: "";
    display: block;
    clear: both;
}

.clearfix:before {
    content: "";
    display: block;
    clear: both;
}

.clearfix {
    display: block;
}

/*//////////////////////////////////////////////////////////
///common
/////////////////////////////////////////////////////////*/
.container {
    width: 1300px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

img {
    max-width: 100%;
}

h1 img {
    display: inline;
    text-align: center;
}

table {
    border-collapse: collapse;
}

a {
    outline: none;
    color: #333;
}

has-small-font-size {
    font-size: 1.3rem !important;
}

has-normal-font-size {
    font-size: 1.6rem !important;
}

has-medium-font-size {
    font-size: 2.0rem !important;
}

has-large-font-size {
    font-size: 3.6rem !important;
}

has-huge-font-size {
    font-size: 4.2rem !important;
}

.onlyPc {
    display: block !important;
}

.onlySp {
    display: none !important;
}

.onlyPc768 {
    display: block !important;
}

.onlySp768 {
    display: none !important;
}

.txtCenter {
    text-align: center !important;
}

.mTop2rem {
    margin-top: 2rem !important;
}

.mTop3rem {
    margin-top: 3rem !important;
}

.mTop4rem {
    margin-top: 4rem !important;
}

.mTop5rem {
    margin-top: 5rem !important;
}

.mTop6rem {
    margin-top: 6rem !important;
}

.mTop7rem {
    margin-top: 7rem !important;
}

.mTop8rem {
    margin-top: 8rem !important;
}

.mTop9rem {
    margin-top: 9rem !important;
}

.mTop10rem {
    margin-top: 10rem !important;
}

.breadcrumb-area {
    font-size: 1.4rem;
    color: #0E2884;
}

.breadcrumb-area a {
    text-decoration: underline;
    color: #0E2884;
}

@media print,
screen and (min-width : 1001px) {
    .breadcrumb-area {
        margin: 5rem 0 7rem 0;
    }

    .breadcrumb-area + .heading10-second {
        margin-top: -2rem;
    }

    .page-template-page-home main {
        padding: 0;
    }
}

@media only screen and (max-width : 1000px) {
    .breadcrumb-area {
        margin: 4rem 0;
    }

    .onlyPc {
        display: none !important;
    }

    .onlySp {
        display: block !important;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 57%;
    }

    .mTop3rem {
        margin-top: 1.5rem !important;
    }

    .mTop4rem {
        margin-top: 2rem !important;
    }

    .mTop5rem {
        margin-top: 2.5rem !important;
    }

    .mTop6rem {
        margin-top: 3rem !important;
    }

    .mTop7rem {
        margin-top: 3.5rem !important;
    }

    /*.mTop8rem {
		margin-top: 4rem !important;
	}

	.mTop9rem {
		margin-top: 4.5rem !important;
	}

	.mTop10rem {
		margin-top: 5rem !important;
	}*/

    .onlyPc768 {
        display: none !important;
    }

    .onlySp768 {
        display: block !important;
    }
}


@media screen and (max-width: 600px) {
    #wpadminbar {
        position: fixed !important;
    }
}

/* ==========================================================================
   NISSIN 取扱説明書専用スタイル (1rem = 10px 前提)
   ========================================================================== */
/* 1. 標準リストとカスタムリスト両方をターゲットにする */
.nissin-manual-scope .wp-block-list,
.nissin-manual-scope .wp-block-list li,
.nissin-manual-scope ul,
.nissin-manual-scope ul li {
    /* フォントサイズの自動調整を完全にオフ */
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;

    /* 文字サイズを1.6rem(16px)でロック */
    font-size: 1.6rem !important;
}

/* 1. スコープ内リセット：テーマの干渉を強力に防ぐ */
.nissin-manual-scope {
    all: initial;
    /* 他のスタイルをリセット */
    display: block;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 1.6rem;
    /* 標準テキストを16px相当に */
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    max-width: 90rem;
    /* 900px */
    margin: 4.0rem auto;
    padding: 6.0rem;
    border: 0.1rem solid #ddd;
    position: relative;
    text-align: left;
}

.nissin-manual-scope * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. 言語切り替えボタン (ホバーアクション付き) */
.nissin-manual-scope .lang-nav {
    position: absolute;
    top: 3.0rem;
    right: 3.0rem;
    display: flex;
    gap: 0.8rem;
}

.nissin-manual-scope .lang-nav a {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    border: 0.1rem solid #ddd;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    color: #666;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 0.2rem;
}

/* ホバー：枠を青くし、少し上に浮かす */
.nissin-manual-scope .lang-nav a:hover:not(.active) {
    border-color: #0E2884;
    color: #0E2884;
    background: #f0f4ff;
    transform: translateY(-0.2rem);
    box-shadow: 0 0.4rem 0.8rem rgba(14, 40, 132, 0.1);
}

/* アクティブ（現在地）：ニッシンブルー背景 */
.nissin-manual-scope .lang-nav a.active {
    background: #0E2884;
    color: #fff;
    border-color: #0E2884;
    cursor: default;
}

/* 3. ヘッダー設定 (サブタイトル極太) */
.nissin-manual-scope header {
    border-bottom: 0.4rem solid #0E2884;
    padding-bottom: 2.5rem;
    margin-bottom: 4.5rem;
}

.nissin-manual-scope .logo-img {
    height: 4.2rem;
    width: auto;
    display: block;
    margin-bottom: 2.0rem;
}

.nissin-manual-scope h1 {
    font-size: 2.8rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 1.5rem;
    display: block;
}

.nissin-manual-scope .header-subtitle {
    font-size: 2.0rem;
    font-weight: 900;
    /* 極太設定 */
    color: #1a1a1a;
    display: block;
    line-height: 1.5;
    max-width: 100%;
}

/* 4. セクション・見出しデザイン */
.nissin-manual-scope section {
    margin-bottom: 4.0rem;
    display: block;
}

.nissin-manual-scope h2 {
    font-size: 2.0rem;
    background: #f4f4f4;
    padding: 1.0rem 1.8rem;
    border-left: 0.8rem solid #0E2884;
    margin-bottom: 2.0rem;
    display: block;
    color: #0E2884;
    font-weight: bold;
}

.nissin-manual-scope h3 {
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #d32f2f;
    /* 注意喚起の赤 */
    display: block;
}

.nissin-manual-scope p {
    margin-bottom: 1.5rem;
    display: block;
}

/* 5. 特殊リストマーク設定 (ズレ解消版) */

/* 菱形リスト (◆) 1remサイズ固定 */
.nissin-manual-scope ul.mark-diamond {
    list-style: none;
    margin-bottom: 2.5rem;
    display: block;
}

.nissin-manual-scope ul.mark-diamond li {
    position: relative;
    padding-left: 2.8rem;
    margin-bottom: 1.2rem;
    display: block;
    font-size: 1.6rem;
}

.nissin-manual-scope ul.mark-diamond li::before {
    content: "◆";
    position: absolute;
    left: 0.5rem;
    top: 0.95rem;
    /* 1.8行間の中央付近に配置 */
    font-size: 1.0rem;
    /* 1rem (10px) */
    line-height: 1;
    color: #0E2884;
}

/* 番号付きリスト (1. 2. 3.) */
.nissin-manual-scope ul.mark-number {
    list-style: none;
    counter-reset: manual-counter;
    display: block;
}

.nissin-manual-scope ul.mark-number li {
    position: relative;
    padding-left: 3.0rem;
    margin-bottom: 1.2rem;
    display: block;
    counter-increment: manual-counter;
}

.nissin-manual-scope ul.mark-number li::before {
    content: counter(manual-counter) ".";
    position: absolute;
    left: 0.5rem;
    font-weight: bold;
    color: #333;
}

/* 6. 注意事項の枠（info-box） */
.nissin-manual-scope .info-box {
    border: 0.1rem solid #ddd;
    background: #fafafa;
    padding: 2.5rem;
    margin-top: 2.0rem;
    margin-bottom: 3.0rem;
    display: block;
}

/* 1. 外枠：一本の線と全体の右寄せ */
footer.nissin-manual-footer {
    border-top: 0.1rem solid #eee !important;
    margin-top: 6.0rem !important;
    padding-top: 4.0rem !important;
}

footer.nissin-manual-footer > .wp-block-group__inner-container {
    display: flex;
    justify-content: flex-end;
    /* 全体を右寄せ */
    align-items: center;
    /* 上下中央 */
    gap: 4.0rem;
    /* テキストとロゴの距離 */
    border: none !important;
    margin: 0 !important;
}

/* 2. 左側：テキストエリア（メリハリ設定） */
.nissin-manual-footerLeft {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right;
    /* 右端に揃える */
}

/* 社名を極太にして目立たせる */
.nissin-manual-footerLeft .copyright {
    font-size: 1.6rem;
    font-weight: 900;
    /* 極太 */
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

/* リンクエリア：青文字＋アンダーラインで分かりやすく */
.nissin-manual-footerLeft .nissin-manual-footer {
    border: none !important;
    margin: 0 !important;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #666;
}

.nissin-manual-footerLeft .nissin-manual-footer a {
    color: #0E2884 !important;
    /* ニッシンブルー */
    font-weight: 500;
}

.nissin-manual-footerLeft .nissin-manual-footer a:hover {
    text-decoration: underline;
}

/* 3. 右側：ロゴ（カラーのまま） */
.footer-logo {
    margin: 0 !important;
    flex-shrink: 0;
}

.footer-logo img {
    width: 160px;
    height: auto;
    display: block;
    opacity: 1;
}

.nissin-manual-scope {
    position: relative;
    overflow: hidden;
    /* 画像がはみ出さないように */
    background-color: #fff;
    /* 背景画像の設定 */
    background-image: url("/cms_nissin/wp-content/themes/nissin-dental/images/manualBg.png");
    background-repeat: no-repeat;
    background-position: right -1.0rem top -2.0rem;
    /* 右上に配置（少し外にはみ出させる） */
    background-size: 40.0rem;
    background-attachment: scroll;
    z-index: 1;
    /* コンテンツ全体をレイヤーの前に出す */
}

/* 白黒・薄くするためのレイヤー */
.nissin-manual-scope::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.90);
    /* 95%白で覆う（極薄にする） */
    z-index: -1;
    /* 画像とコンテンツの間に配置 */
}

/* コンテンツレイヤー */
.nissin-manual-scope::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* CSSで画像を白黒にする効果 */
    backdrop-filter: grayscale(100%);
    z-index: 0;
    pointer-events: none;
    /* コンテンツ操作を邪魔しない */
}

/* 全コンテンツを背景より前に出す */
.nissin-manual-scope > * {
    position: relative;
    z-index: 2;
}

/* 7. レスポンシブ対応 (スマホ) */
@media screen and (max-width: 768px) {
    .nissin-manual-scope {
        padding: 4.0rem 0rem;
        margin: 0 auto;
        border: none;
        max-width: 100%;
    }

    .nissin-manual-scope .lang-nav {
        position: static;
        justify-content: flex-end;
        margin-bottom: 2.5rem;
    }

    .nissin-manual-scope .header-subtitle {
        font-size: 1.8rem;
    }

    .nissin-manual-scope h1 {
        font-size: 2.4rem;
    }

    footer.nissin-manual-footer > .wp-block-group__inner-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 2.0rem;
    }

    .nissin-manual-footerLeft {
        text-align: center;
    }

    .footer-logo img {
        width: 130px !important;
    }

    .nissin-manual-scope {
        background-position: right 0.0rem top 8.0rem;
        /* 右上に配置（少し外にはみ出させる） */
        background-size: 28.0rem;
    }
}
