@charset "UTF-8";

/* Template & Designed by Orihashi Ren */
/* http://kerry.php.xdomain.jp/ */

/* webフォント */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;1,300&display=swap');

/* 全体設定 */
* {
    padding: 0;
    margin: 0;
}
*, *::after, *::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
* {
    -ms-overflow-style: none;    /* IE, Edge 対応 */
}
/* *::-webkit-scrollbar{
    display: none;
} */
@-ms-viewport {
    width: device-width;
}

/* 基本設定 */

html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;}
html,body {
    padding:0;
    margin:0;
    height: 100%;
}
html {
    font-size: 12px; /* スマホ表示時の基本サイズ */
}



@media screen and (min-width: 768px) {
    html {
        font-size: 15px; /* タブレット表示時 */
    }
}
@media screen and (min-width: 1280px) {
    html {
        font-size: 16px; /* パソコン表示時 */
    }
}

body {
    width: 100%;
    text-align: justify;
    word-wrap: break-word; /* 禁則処理 */
    overflow-wrap: break-word;
    -webkit-text-size-adjust: 100%; /* Safari横向き対策 */
    background-color: #fff;
    color: var(--dark-gray);
    font-family: 'Montserrat',"Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}
@media screen and (max-width: 480px) {
    html, body {
        min-width: 320px;
    }
}
body, input, select, textarea, p {
    font-weight: 300;
    font-size: 1rem;
    line-height: 2rem;
    letter-spacing: 0.075em;
}
@media screen and (min-width: 768px) {
    body, input, select, textarea, p {
        font-size: 1rem
    }
}

/* リンク */
a {
    -moz-transition: color .8s ease-in-out, background-color .8s ease-in-out, border-bottom-color .8s ease-in-out;
    -webkit-transition: color .8s ease-in-out, background-color .8s ease-in-out, border-bottom-color .8s ease-in-out;
    -ms-transition: color .8s ease-in-out, background-color .8s ease-in-out, border-bottom-color .8s ease-in-out;
    transition: color .8s ease-in-out, background-color .8s ease-in-out, border-bottom-color .8s ease-in-out;
    border-bottom: none;
    text-decoration: none;
    outline: none;
    color: var(--red);
}
a:hover {
    border-bottom-color: transparent;
    color: var(--pink);
}

/* 文字装飾 */
strong, b, .b {
    font-weight: 700; /*太字*/
}
strong {
    color: #E20613;
}
em, i {
    font-style: italic; /*斜体*/
}
em {
    border-bottom: 1px dashed #E20613;
}

/* text */
p {
    text-align: justify;
    margin: 0 0;
    padding: 0rem 0;
}
h1, h2, h3, h4, h5, h6 {
    text-align: center;
    font-weight: 300;
    line-height: 1.7rem;
    letter-spacing: 0.075em; /*文字間隔*/
    font-family: 'HiLoDecoDeco',"Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    margin: 1.5rem 0;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    border-bottom: 0;
    color: inherit;
    text-decoration: none;
}
h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 1.5rem;
}
h3 {
    font-size: 1.3rem;
}
h4 {
    font-size: 1.2rem;
}
h5 {
    font-size: 1.1rem;
}
h6 {
    font-size: 1.05rem;
}

/* 上付き */
sub {
    font-size: 0.6rem;
    position: relative;
    top: 0.5rem;
}
/* 下付き */
sup {
    font-size: 0.6rem;
    position: relative;
    top: -0.5rem;
}

/* マーカー */
mark {
    display: inline-block;
    padding: 0rem .5rem;
    margin: 0rem 0;
    background: linear-gradient(transparent 10%, var(--pure-gray) 10%);
    color: var(--dark-gray);
    text-shadow: none;
}

/* 引用 */
blockquote {
    position: relative;
    padding: 5px 15px 5px 55px;
    box-sizing: border-box;
    font-style: italic;
    border-radius: 0px;
    color: #fff;
    background: var(--red);
}
blockquote:before{
    display: inline-block;
    position: absolute;
    top: 0;
    left: 8px;
    width: 38px;
    height: 30px;
    text-align: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    color: var(--dark-gray);
    font-size: 18px;
    line-height: 30px;
    background: var(--pure-gb);
    font-weight: 900;
}
blockquote:after{
    content: '';
    position: absolute;
    left: 8px;
    top: 30px;
    height: 0;
    width: 0;
    border-left: 19px solid var(--pure-gb);
    border-right: 19px solid var(--pure-gb);
    border-bottom: 10px solid transparent;
}
blockquote p {
    position: relative;
    padding: 0;
    margin: 10px 0;
    z-index: 3;
    line-height: 1.7;
}
blockquote cite {
    display: block;
    text-align: right;
    font-size: 0.9em;
    color: #888888;
    opacity: .8;
}

/* コード */
code {
    border: none;
    font-family: "Courier New", monospace !important;
    margin: 0 .25rem;
    padding: .25rem .65rem;
    background: rgba(238, 238, 238, .7);
    border: solid 1px #eeeeee;
    color: var(--dark);
}
pre {
    width :100% !important;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    text-align: left;
    font-family: "Courier New", monospace !important;
    margin: .5rem 0;
}
pre code {
    width: 100% !important;
    overflow-x: auto;
    display: block;
    padding: .25rem 1.5rem;
    box-sizing: border-box !important;
}

/* 区分線 */
hr {
    border: 0;
    border-bottom: solid 2px;
    margin: 3rem 0rem;
    border-bottom-color: var(--pure-red);
}

/* 文字揃え */
/*  <span class="align-center">例</span> 等と使用してください  */
.align-left {
    text-align: left;
}
.align-center,
.align-center p {
    text-align: center;
}
.align-right {
    text-align: right;
}

/* Box */
.box {
    text-align: left;
    width: 100%;
    height: auto;
    margin: 3rem 0rem;
    padding: 1.5rem;
    border-radius: 0px;
}
.box-1 {
    border: 1px solid var(--pure-gb);
    background: var(--pure-gb);
    color: #888;
}
.box-2 {
    border: 1px solid var(--pure-gray);
    background: var(--pure-gray);
}
.box > p {
    padding: 0 0;
    text-shadow: none;
}
.box a {
    color: #fff;
}

/* lists */
ol, ul {
    text-align: left;
    margin: .5rem 0;
    list-style: none;
}
.list_no {
    list-style: none;
}
.list_un {
    list-style: disc;
}
.list_or {
    list-style: decimal;
}
.list_no > li,
.list_un > li,
.list_or > li {
    margin-left: .5rem;
    padding-left: .5rem;
    text-align: left;
}
.list_or > li,
.list_un > li {
    margin-left: 2rem;
}
.float li {
    float: left;
    padding-left: .5rem;
}
.float:after {
    display: block;
    content: '';
    clear: both
}
.list_no.float li {
    margin-left: .5rem;
}
.list_or.float li {
    margin-left: 2rem;
}
.list_border li:not(:first-of-type) {
    border-left: 1px solid var(--dark-gray);
}

/* dl */
dl {
    text-align: left;
}
.dltype1 {
    text-align: left;
    margin: 0 1rem;
}
.dltype1 > dt a,
.dltype1 > dt {
    color: var(--dark);
    border-bottom: none;
    margin-bottom: .5rem;
}
.dltype1 > dd {
    margin-left: 1.3rem;
    font-size: .97rem;
    line-height: 2rem;
}

/* table */
.table_div {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    margin: 0 0rem;
}
table {
    margin: 0rem 0rem;
    width: 100%;
}
table thead {
    border-bottom: solid 2px #231d25;
}
table tbody tr {
    border: solid 1px;
    border-left: 0;
    border-right: 0;
    border-color: #231d25;
}
table tbody tr:nth-child(odd) {
    background-color: rgba(238, 238, 238, .7);
}
table td {
    padding: 0.75rem 0.75rem;
}
table th {
    font-family: 'Montserrat',"Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    line-height: 1.5;
    padding: 0 0.75rem 0.75rem 0.75rem;
    text-align: left;
}
table tfoot {
    border-top: solid 2px;
    border-top-color: #eeeeee;
}
@media screen and (max-width: 980px) {
    table th {
        font-size: 0.9rem;
    }
}

/* link button */
.link {
    display: inline-block;
    height: 25px;
    line-height: 22px;
    margin: .5rem auto;
    padding: 0 .3rem;
    font-size: 1rem;
    border-radius: 0px;
    background: var(--pure-red) !important;
    border: 1px solid var(--pure-red) !important;
    color: #fff !important;
    transition: all .5s;
}
.link:hover {
    background: var(--red) !important;
    color: #fff !important;
}
.btn {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    touch-action: manipulation;
    position: relative;
    white-space: nowrap;
    border: none;
    margin: 1rem;
    padding: 9px 24px;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.1rem;
    font-weight: 300;
    border-radius: 0 0 0 0;
    text-decoration: none;
    -webkit-transition: all .5s  !important;
    transition: all .5s !important;
    -moz-transition: all .5s !important;
    font-family: 'NemoyMedium',"Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif　!important;
}
.btn-1 {
    background: var(--pure-red);
    border: 1px solid var(--pure-red);
    color: #fff !important;
}
.btn-1:hover {
    background: var(--red);
    border: 1px solid var(--red);
    color: #fff !important;
}
.btn-2 {
    background: var(--pure-gb);
    border: 1px solid var(--red);
    color: var(--red) !important;
}
.btn-2:hover {
    background: var(--pure-red);
    border: 1px solid var(--red);
    color: #fff !important;
}
.btn-3 {
    background: var(--gray);
    border: 1px solid var(--gray);
    color: #fff !important;
}
.btn-3:hover {
    background: #fff;
    border: 1px solid var(--gray);
    color: var(--gray) !important;
}
.btn-1:hover svg {
    fill: #fff;
}
.btn svg {
    position: relative;
    left: -4px;
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: top;
    font-weight: normal;
    margin: 2px 0;
    fill: #fff;
    transition: all .5s;
}

/* form */
form {
    text-align: center;
}
.box-a {
    max-width: 340px;
    margin: 1rem auto;
    padding: 0rem;
    border: 1px solid transparent;
    background: transparent;
}
input[type=text],
input[type=search],
textarea {
    outline: none;
    display: block;
    width: 100%;
    -webkit-appearance: none;
    background: var(--pure-gb);
    border: 1px solid var(--pure-gb);
    border-radius: 0 0 0 0;
    padding: 8px 16px;
    line-height: 22px;
    color: #888;
}
input[type=text]::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #888;
}
input[type=text]::-moz-placeholder,
textarea::-moz-placeholder {
    color: #888;
}
input[type=text]:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #888;
}
input[type=text]::placeholder,
textarea::placeholder,
.cp_ipselect select::placeholder {
    color: #888;
}
input[type],
textarea,
.cp_ipselect select {
    -moz-transition: border-color .4s ease-in-out, box-shadow .4s ease-in-out, background-color .4s ease-in-out;
    -webkit-transition: border-color .4s ease-in-out, box-shadow .4s ease-in-out, background-color .4s ease-in-out;
    -ms-transition: border-color .4s ease-in-out, box-shadow .4s ease-in-out, background-color .4s ease-in-out;
    transition: border-color .4s ease-in-out, box-shadow .4s ease-in-out, background-color .4s ease-in-out;
    font-family: 'Montserrat',"Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif !important;
}
input[type=text]:focus,
textarea:focus,
.cp_ipselect select:focus {
    outline: none;
    border-color: var(--gray);
    background: var(--gray);
    color: #fff;
}
input[type=text]:focus::-webkit-input-placeholder,
textarea:focus::-webkit-input-placeholder,
.cp_ipselect select:focus::-webkit-input-placeholder {
    color: #888;
}
input[type=text]:focus::-moz-placeholder,
textarea:focus::-moz-placeholder,
.cp_ipselect select:focus::-moz-placeholder {
    color: #888;
}
input[type=text]:focus:-ms-input-placeholder,
textarea:focus::-ms-input-placeholder,
.cp_ipselect select:focus::-ms-input-placeholder {
    color: #888;
}
input[type=text]:focus::placeholder,
textarea:focus::placeholder,
.cp_ipselect select:focus::placeholder {
    color: #888;
}
.form-element {
    margin-bottom: 20px;
}
form label {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    color: var(--dark-blown);
    font-weight: 500;
}
.cp_ipselect {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}
.cp_ipselect select {
    width: 100%;
    padding-right: 1em;
    cursor: pointer;
    text-indent: 0.01px;
    text-overflow: ellipsis;
    border: none;
    outline: none;
    background: transparent;
    background-image: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.cp_ipselect select::-ms-expand {
    display: none;
}
.cp_ipselect.cp_sl01 {
    position: relative;
    border: 1px solid var(--pure-gb);
    border-radius: 0 0 0 0;
    background: var(--pure-gb);
}
.cp_ipselect.cp_sl01::before {
    position: absolute;
    top: 0.8em;
    right: 0.9em;
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #999;
    pointer-events: none;
}
.cp_ipselect.cp_sl01 select {
    padding: 8px 38px 8px 8px;
    color: #999
}
.cp_ipselect select option{
    background-color: #fff;
    color: #888;
}

/*-------------------- index --------------------*/

/* color */
:root {
    --dark: #2d272f;        /* ダークチャコール */
    --dark-gray: #5c5046;   /* モカブラウン */
    --gray: #d5cebc;        /* サンドベージュ（境界線） */
    --pure-gray: #f5f1e8;   /* エクリュ・生成り（ボックス背景） */
    --pure-gb: #e8d9cf;     /* ソフトピンクベージュ（引用枠背景） */
    --pure-white: #fcf9f2;  /* サンドホワイト（サイト全体背景） */
    --red: #c4696a;         /* 朱ローズ・赤（メイン差し色） */
    --pure-red: #d96a58;    /* テラコッタ・朱赤（ホバー時強調） */

    --s_s: .9rem;
    --s_m: .97rem;
    --s_n: 1rem;
    --s_b: 1.1rem;
    --s_bb: 1.2rem;

    --serif: "游明朝", YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    --san-serif: "Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

/* header */
header {
    position: relative;
    display: block;
    width: 100%;
    min-height: auto;  /* 100vh から auto に変更（必要な分だけ広がるようにする） */
    margin: 0 0 2rem;
}

/* メイン写真エリアの設定 */
header > div:first-child {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 83vh; /* 写真の高さの変更 */
}

/* 画面幅が768px以下の場合の高さを調整 */
@media screen and (max-width: 768px) {
    header > div:first-child {
        height: 90vh;
    }
}

header > div:first-child img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -mz-transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    padding: 1.5rem;
    z-index: -2;
}

/* 写真枠の中の白い飾り線（写真の内側に配置） */
header > div:first-child::before {
    display: block;
    content: '';
    position: absolute;
    width: calc(100% - 6rem);  /* 写真の内側に収めるため 6rem 引く */
    height: calc(100% - 6rem); /* 写真の高さに合わせて自動調整 */
    top: 3rem;                  /* 上から3rem（写真の端からさらに1.5rem内側） */
    left: 3rem;                 /* 左から3rem */
    border: 1px solid #fff;
    z-index: 0;
}
header h1 {
    margin: 0 0 .5rem;
    font-size: 1.3rem;
    font-family: 'NemoyMedium';
    color: var(--dark);
}
header h1 span:nth-of-type(1) {
    animation: FadeIn 2s;
}
header h1 span:nth-of-type(2) {
    animation: FadeIn 3s;
}
header h1 span:nth-of-type(3) {
    animation: FadeIn 4s;
}
header h1 span:nth-of-type(4) {
    animation: FadeIn 5s;
}
header h1 span:nth-of-type(5) {
    animation: FadeIn 6s;
}
header h1 span:nth-of-type(6) {
    animation: FadeIn 7s;
}
header h1 span:nth-of-type(7) {
    animation: FadeIn 8s;
}
header aside {
    position: absolute;
    margin: 0;
    padding: 0;
    right: 5rem;
    bottom: calc(5rem);
    border: none;
    color: #fff;
}

/* nav */
nav {
    position: relative;
    text-align: center;
    background: #fff;
    width: 100%;
    font-family: 'HiLoDecoDeco', sans-serif;
    z-index: 100;
}
nav.m_fixed {
    text-align: center;
    position: fixed;
    top: 0;
    -webkit-box-shadow: 0 0 10px 0 rgba(0,0,0,.1);
    box-shadow: 0 0 10px 0 rgba(0,0,0,.1);
}
nav ul {
    display: inline-block;
    margin: .5rem auto;
}
nav ul li {
    display: inline-block;
    margin: 0 1rem;
}
nav a {
    border-bottom: none;
    color: var(--dark);
    font-size: 1.4rem;
}

/* main */
.wrp {
    text-align: center;
    margin: 5rem auto;
    max-width: 800px; /* パソコン表示時の最大幅（左右に広い余白ができます） */
    width: 90%;       /* スマホ・タブレット時も左右に10%（左右各5%）の余白を確保 */
}
main {
    margin: 0 auto;
    padding: 0 1rem;  /* 小さい画面での端づまり防止 */
}
section {
    position: relative;
    text-align: center;
    margin: 0 0 5rem;
}

/* footer */
footer {
    margin: 1rem auto;
    text-align: center;
    font-size: .95rem;
}

/* text */
h1,h2,h3,h4,h5 {
    font-family: 'HiLoDecoDeco', sans-serif;
    color: var(--dark);
}
h3,h4,h5,h6 {
    position: relative;
    font-size: 1.3rem;
    letter-spacing: .2rem;
}
h4.ja, h5.ja, h6.ja, .ja {
    font-size: .9rem;
}
h3.ja {
    font-size: 1rem;
}
h3.ja::first-letter {
    font-size: 1.2rem;
}
h2 {
    position: relative;
    font-size: 1.4rem;
    letter-spacing: .2rem;
}
h2 span {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    font-size: 8rem;
    line-height: 1.2rem;
    font-family: 'NemoyMedium';
    opacity: .3;
    color: var(--pure-red);
}
h3 {
    margin: .5rem auto 2rem;
    font-size: 1.2rem;
}
h3::first-letter {
    font-family: 'NemoyMedium';
    color: var(--red);
}
h4 {
    text-align: left;
    font-size: 1.4rem;
    margin-bottom: 2rem;
}
h4 span:last-child {
    position: relative;
    display: block;
    line-height: 1rem;
    font-size: .97rem;
    color: var(--dark-gray);
}
h4 span:last-child.ja {
    font-size: .87rem;
}
h4 span:last-child::before {
    display: block;
    content: '';
    position: relative;
    left: 0;
    top: 1.5rem;
    width: 3.5rem;
    border-bottom: .9px solid #888;
}
h4::first-letter {
    color: var(--red);
}
h5 {
    text-align: left;
    padding: 0 1rem;
    border: 1px solid var(--dark);
    background: var(--dark);
    color: #fff;
}
h6 {
    display: flex;
    justify-items: center;
    text-align: left;
    padding-left: .7rem;
    border-left: 5px solid var(--red);
}

/* line */
.line {
    display: inline-block;
    margin: 2rem auto .5rem;
    width: 1px;
    height: 3.3rem;
    background-color: var(--dark);
}

/* aside */
aside {
    text-align: left;
    margin: .5rem 0;
    padding: .5rem 1rem;
    border: 1px solid var(--dark-gray);
}

/* scroll box */
.scroll {
    position: relative;
    overflow-y: scroll;
    height: 8rem;
    width: 100%;
    margin: 0 auto 0rem;
    padding: 0;
    font-size: var(--s_s);
    border-radius: 0px;
    border: 1px solid transparent;
    background: transparent;
}
.scroll .list_no {
    margin: 0;
}
.scroll .list_no li {
    margin: 0 0;
    padding-left: 0rem;
}

/* new */
.new::after {
    content: "new";
    color: #888;
    margin-left: 0.5rem;
    opacity: .8;
    font-size: var(--s_s);
    font-family: 'Montserrat',"Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

/* profile */
.image.img-left {
    float: left;
    margin: 0 1rem 1rem 0;
    top: 0.75rem;
}
.ja .image.img-left {
    top: .3rem;
}
.image.img-left, .image.right {
    max-width: 40%;
    max-height: 40%;
}
.image {
    border: 0;
    display: inline-block;
    position: relative;
}
.image.img-left img, .image.right img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    vertical-align: middle;
    padding: 5px;
    border: 1px solid var(--pure-red);
}
.image img {
    display: block;
}
.clear::after {
    display: block;
    content: '';
    clear: both;
}

/* margin */
.m_4r {
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
}
.m_b_1r {
    margin-bottom: 1rem !important;
}
.m_b_5r {
    margin-bottom: 5rem !important;
}
.m_b_9r {
    margin-bottom: 9rem !important;
}
.m_lr_0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.m_lr_1r {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}
.m_lr_2r {
    margin-left: 2rem !important;
    margin-right: 2rem !important;
}

/* padding */
.pd_l_0 {
    padding-left: 0 !important;
}

/* letter spacing */
.l_2 {
    letter-spacing: .2rem;
}

/* max-width */
.max-780 {
    display: block;
    max-width: 780px;
    margin: 0 auto;
}

/* animation */
@keyframes FadeIn {
    0% {
        opacity: 0
    }
    100% {
        opacity: 1
    }
}

@media screen and (min-width: 768px) {
    main {
        padding: 0 1.5rem;
    }
    .flex {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .wrp {
        margin: 7rem auto;
    }
    /* 全てのコンテンツ・カードを基本1カラム（100%幅）に統一 */
    .flex section,
    .flex .flex_m_b50,
    .flex .flex_b_b50,
    .flex .flex_b_b33,
    .flex .flex_b_b25 {
        flex-basis: 100%;
        padding: 0 1.5rem;
    }
    /* 画像バナー（card-1）だけはタブレットで2列（50%幅）に並べる */
    .flex .card-1 {
        flex-basis: 50%;
    }
    .col-1 {
        flex-basis: 100%;
        column-span: all;
    }
    .columns {
        columns: auto;
    }
    .pd_m_lr_1-5r {
      padding-left: 1.5rem !important;
      padding-right: 1.5rem !important;
    }
}
@media screen and (min-width: 1280px) {
    .wrp {
        margin: 7rem auto;
    }
    /* 画像バナー（card-1）だけをPC表示で3列（約33%幅）にする */
    .flex .card-1 {
        flex-basis: calc(100% / 3);
    }
    .flex section,
    .flex .flex_b_b50,
    .flex .flex_b_b33,
    .flex .flex_b_b25 {
        padding: 0 2rem;
    }

}


/*-------------------- main --------------------*/

 /* card 1 */
.card-1 {
    margin: 1rem auto;
}
.card-1 > div {
    position: relative;
    height: 130px;
    width: 250px;
    margin: 0 auto;
}
.card-1 > div img,
.long-img img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -100;
}
.card-1 > div::before,
.long-img::before {
    position: absolute;
    display: block;
    content: '';
    top: 1rem;
    left: 1rem;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    border: 1px solid #fff;
    z-index: -1;
}
.card-1 > div div {
    position: absolute;
    width: 100%;
    height: auto;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}
.card-1 a {
    position: relative;
    z-index: 3;
}
.card-1 h5 {
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 1.2rem;
    line-height: 1.2rem;
    margin: 0;
    border: none;
    background: transparent;
    color: #fff;
}
.card-1 h5 span:first-of-type {
    font-size: .9rem;
}
.card-1 h5.ja span:first-of-type {
    font-size: .85rem;
}

/* card-2 */
.card-2 {
    position: relative;
    width: 100%;
}
.card-2 h5 {
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
    padding-right: 6.5rem;
    color: var(--dark);
}
.card-2 h5 span {
    position: absolute;
    height: 100%;
    right: 1rem;
    top: 0;
    font-size: .75rem;
    letter-spacing: .08rem;
    color: var(--red);
}
.card-2 p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* all */
.card a {
    border-bottom: none;
}

/* card 3 */
.card-3 {
    margin-bottom: 1rem;
}

/* card 4 */
.card-4 img,
.card-5 img {
    display: flex;
    width: 200px;
    height: 40px;
}
.card-4 aside,
.card-5 aside {
    margin: 0;
    padding: .5rem;
    text-align: left;
    border: none;
}

/* form */
.main form {
    display: inline-block;
    margin: 1rem -1rem;
    max-width: 370px;
}
.main input[type] {
    display: inline-block;
}
.main input[type=text] {
    width: 40%;
    padding: .2rem .3rem;
}
.main input[type=submit] {
    -webkit-appearance: none;
    transition: all .5s;
    padding: .1rem .3rem;
    border-radius: 0 0 0 0;
    background: var(--pure-red);
    border: 1px solid var(--pure-red);
    color: #fff !important;
}
.main input[type=submit]:hover {
    background: var(--red);
    border: 1px solid var(--red);
    color: #fff !important;
}

/*-------------------- long --------------------*/

/* aside */
.qo {
    position: relative;
    padding-left: 1.9rem;
    font-style: italic;
    border: none;
}
.qo::before {
    display: inline-block;
    position: absolute;
    top: .1rem;
    left: -1rem;
    width: 38px;
    height: 30px;
    text-align: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    color: var(--pure-red);
    font-size: 2rem;
    font-style: italic;
    line-height: 30px;
    font-weight: 900;
}

/* main image */
.long-img {
    position: relative;
    height: 150px;
    width: 150px;
    margin: 0 auto;
}
.long-img img {
    box-shadow: 1px 1px 10px silver;
}

/* card-5 */
.card-5 > div {
    margin: 1.5rem 0;
}
.card-5 > div span {
    display: block;
    margin: .5rem 0;
    color: var(--red);
    font-family: 'NemoyMedium', sans-serif;
    font-size: .9rem;
}
.card-5 > div p {
    font-size: .75rem;
}
.card-5 aside {
    padding: .5rem 1rem 0;
}

/* right */
.right,
.right ul,
.right ul li,
.right p,
.right aside {
    text-align: right;
}
.right {
    padding-right: .7rem;
    border-right: 10px solid var(--pure-red);
}
.right-img {
    display: flex;
    flex-direction: row-reverse;
}
.right-img img {
    display: block;
    margin: .5rem 0 0;
}

/* left */
.left img {
    margin: .5rem 0 0;
}
.left {
    text-align: left;
    padding-left: .7rem;
    border-left: 10px solid var(--pure-red);
}
.left li {
    padding-left: 0;
    margin-left: 0;
}

@media screen and (min-width:1280px) {
    .long-img {
        width: 200px;
        height: 200px;
    }
}

/*-------------------- novel --------------------*/

/* story */
.novel {
    text-align: center !important;
    padding: 1rem;
    margin: 2rem 0;
    background: #fff
}
.novel > p {
    /*小説部分の段落に間隔を作りたくない場合はmargin-topに0を指定してください*/
    margin-top: 2rem;
    font-size: 1rem;
    line-height: 2.5rem; /*小説部分の行間*/
    letter-spacing: 0.025rem; /*小説部分の文字間隔*/
}
.novel > p:first-of-type {
    margin-top: 0;
}

/* ruby */
[data-ruby] {
    display: inline-block;
    position: relative;
}
[data-ruby]::before {
    content: attr(data-ruby);
    display: inline-block;
    position: absolute;
    transform: translateX(-50%) scale(.5);
    white-space: nowrap;
    top: -1.2rem;
    left: calc(50%);
    text-align: center;
    letter-spacing: 0.25em;
    font-size: 1em;
    font-family: var(--san-serif) !important;
}
[data-ruby] rt {
    display: none;
}

/* pagination */
ul.pagination {
    display: inline-block;
    position: relative;
    text-align: center !important;
    margin: 1.5rem auto;
    padding: .3rem 1rem;
    line-height: 1.9rem;
    transition: all .5s;
    background: transparent;
}
ul.pagination > li {
    display: inline-block;
    margin: 0 5px 0 0;
}
ul.pagination > li a {
    border: none;
}
ul.pagination > li:last-child {
    margin: 0 0;
}
ul.pagination > li img  {
    display: inline-block;
    margin: 0 1rem -.3rem;
}

/*-------------------- note --------------------*/

/* card-2 */
.card-a .card-2 {
    position: relative;
    overflow: hidden;
    max-height: 12rem;
}
.card-a .card-2::before {
    display: block;
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    height: 60px;
    width: 100%;
    background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,1) 100%);
    background: linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,1) 100%);
    z-index: 1;
}
.card-a .card-2 p,
.card-b .card-2 p {
    display: block;
    position: relative;
}
.card-b .card-2 {
    position: relative;
    padding-bottom: 2.5rem;
}

/* read more */
.more {
    position: absolute;
    right: 9%;
    bottom: 0;
    z-index: 2;
}
.card-b .more {
    margin-bottom: 0rem;
}

/*-------------------- article --------------------*/

/* image */
.a-img img {
    display: inline-block;
    height: 15rem;
    width: auto;
    max-width: 90%;
    object-fit: cover;
    margin: .5rem auto;
    padding: 5px;
    border: 1px solid var(--pure-red);
}

.a-img img {
    max-width: 100% !important;   /* 横幅は枠からはみ出さない */
    max-height: 25rem !important; /* ★縦の長さの上限（お好みで 400px や 70vh に変更可能） */
    width: auto !important;       /* アスペクト比を崩さない */
    height: auto !important;      /* アスペクト比を崩さない */
    display: block;
    margin: 1.5rem auto;          /* 中央寄せと上下余白 */
}


.a-img,
[id^="figure-"] a {
    border-bottom: none;
}
figure{
    margin: 0;
    display: none;
}
figure:target{
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}
figure:target [id^="overlay-"]{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: inherit;
}
figure:target img{
    height: 20rem;
    max-width: none;
    max-height: none;
    width: auto;
    object-fit: fill;
    animation: fadein .3s;
}
[id^="overlay-"] .align-center {
    color: var(--dark);
}

@keyframes fadein{
    0%{
        transform: scale(0.2);
        opacity: 0.2;
    }
    100%{
        transform: scale(1);
        opacity: 1;
    }
}
@media screen and (min-width:768px) {
    figure:target img{
        height: 30rem;
    }
}
@media screen and (min-width:1280px) {
    figure:target img{
        height: 40rem;
    }
}




/* スマホ表示時（767px以下）の note 内本文サイズ調整 */
@media screen and (max-width: 767px) {
    note p,
    note p.ja,
    .note p,
    .note p.ja {
        font-size: 1rem !important;
    }
}

@media screen and (min-width: 767px) {
    note p,
    note p.ja,
    .note p,
    .note p.ja {
        font-size: 1.1rem !important;
    }
}




/*-------------------- elements --------------------*/

.sub {
    display: inline-block;
    margin: .5rem 0;
}

/*-------------------- other --------------------*/

/* pagetop button */
#page-top {
    position: fixed;
    bottom: 1%;
    left: 1%;
    z-index: 100;
}
#page-top a {
    display: block;
    padding: .1rem .4rem;
    border-bottom: none;
}
#page-top img,
.pagination img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    padding: 3px;
    border: 1px solid var(--pure-red);
}

/* loader */
.page-loader {
    display: inline-block;
    position: fixed;
    height: 100vh;
    width: 100%;
    background: var(--pure-white); /* サイト背景と同じ落ち着いた背景色 */
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    z-index: 9998;
}
.intersecting-circles-spinner, .intersecting-circles-spinner * {
    box-sizing: border-box;
}
.intersecting-circles-spinner {
    height: 70px;
    width: 70px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    margin:0;
    padding:0;
}
.intersecting-circles-spinner .spinnerBlock {
    animation: intersecting-circles-spinners-animation 1200ms linear infinite;
    transform-origin: center;
    display: block;
    height: 35px;
    width: 35px;
}
.intersecting-circles-spinner .circle {
    display: block;
    border: 2px solid var(--red); /* アイコンの輪郭を差し色（赤系）に変更して見やすくします */
    border-radius: 50%;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
}
.intersecting-circles-spinner .circle:nth-child(1) {
    left: 0;
    top: 0;
}
.intersecting-circles-spinner .circle:nth-child(2) {
    left: calc(35px * -0.36);
    top: calc(35px * 0.2);
}
.intersecting-circles-spinner .circle:nth-child(3) {
    left: calc(35px * -0.36);
    top: calc(35px * -0.2);
}
.intersecting-circles-spinner .circle:nth-child(4) {
    left: 0;
    top: calc(35px * -0.36);
}
.intersecting-circles-spinner .circle:nth-child(5) {
    left: calc(35px * 0.36);
    top: calc(35px * -0.2);
}
.intersecting-circles-spinner .circle:nth-child(6) {
    left: calc(35px * 0.36);
    top: calc(35px * 0.2);
}
.intersecting-circles-spinner .circle:nth-child(7) {
    left: 0;
    top: calc(35px * 0.36);
}
@keyframes intersecting-circles-spinners-animation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media screen and (min-width:768px) {
    #page-top img,
    .pagination img {
        width: 30px;
        height: 30px;
    }
}

/*-------------------- color --------------------*/

/* white */
.white {
    color: #fff !important;
    display: inline;
}
/* pure-white */
.pure-white {
    color: var(--pure-white) !important;
    display: inline;
}
/* red */
.red {
    color: var(--red) !important;
    display: inline;
}
.pure-red {
    color: var(--pure-red) !important;
    display: inline;
}
/* gray */
.dark-gray {
    color: var(--dark-gray) !important;
    display: inline;
}
.gray {
    color: var(--gray) !important;
    display: inline;
}
.pure-gray {
    color: var(--pure-gray) !important;
    display: inline;
}
.pure-gb {
    color: var(--pure-gb) !important;
    display: inline;
}
.dark {
    color: var(--dark) !important;
    display: inline;
}

/*-------------------- font size --------------------*/

.inline {
    display: inline;
}
.s_s {
    font-size: var(--s_s);
    line-height: .9rem !important;
}
.s_m {
    font-size: var(--s_m) !important;
}
.s_n {
    font-size: var(--s_n) !important;
}
.s_b {
    font-size: var(--s_b) !important;
}
.s_bb {
    font-size: var(--s_bb) !important;
}


/*-------------------- font family --------------------*/

.serif {
    font-family: var(--serif);
}

/*-------------------- opacity --------------------*/

.o_8 {
    opacity: .8;
}

/*--------------------アンダーライン--------------------*/
.dot {
    border-bottom: dotted 1px var(--red);
    display: inline;
}
.none {
    border-bottom: none;
}

/*--------------------マーカー--------------------*/
.marker {
    padding: 0;
    height: 2rem;
}
.marker1 {
    background: linear-gradient(transparent 60%, var(--pure-white) 60%);
    color: var(--dark);
}
.marker2 {
    background: linear-gradient(transparent 60%, var(--pure-gray) 60%);
    color: var(--dark);
}
.marker3 {
    background: linear-gradient(transparent 60%, var(--pure-gb) 60%);
    color: var(--dark);
}
.marker4 {
    padding: 0 .5rem;
    background: linear-gradient(transparent 0%, var(--pure-red) 0%);
    color: #fff;
}

.marker5 {
    display: inline;
    /* 上部60%は透明、下部40%に薄い赤（ピンク）のマーカーライン */
    background: linear-gradient(transparent 60%, rgba(226, 105, 110, 0.35) 60%);
    color: inherit;         /* リンク本来の文字色をそのまま継承 */
    padding: 0 0.2rem;       /* 文字の左右にほんの少し余白をつける */
    text-decoration: none;  /* 念のため標準下線を消去 */
}

/*--------------------横線--------------------*/
.border-r {
    padding-right: .5rem;
    margin-right: .5rem;
    border-right: 5px solid var(--pure-red);
}
.border-l {
    padding-left: .5rem;
    border-left: 5px solid var(--pure-red);
}
.border-a {
    position: relative;
    margin-right: 4.5rem;
}
.border-a::after {
    position: absolute;
    display: block;
    content: '';
    top: 50%;
    left: 115%;
    width: 3rem;
    height: 1px;
    background: var(--dark);
}


/* idタグが付いた位置へスクロールした際、上部に余白を作る設定 */
[id] {
    scroll-margin-top: 170px; /* タブバーの高さに合わせてpx数やremで微調整してください */
}

@media screen and (max-width: 600px) {
    [id] {
        scroll-margin-top: 100px; /* タブバーの高さに合わせてpx数やremで微調整してください */
    }
}






/* ---------- 1. ジャンル名 ---------- */
h3.genre-title {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 5rem 5rem 2.5rem;
    font-family: 'NemoyMedium', 'HiLoDecoDeco', var(--san-serif);
    font-size: 2rem;                           /* ← ここでジャンル名の大きさを調整 */
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .25em;
    color: var(--dark);
}
h3.genre-title::before,
h3.genre-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray);
}
h3.genre-title span {
    padding-left: .25em;                       /* letter-spacing 分の位置補正 */
}




/* =====================================================
   main.html 専用スタイル（style.css の後に読み込む）
   フォントは既存の NemoyMedium / HiLoDecoDeco のみ使用
   サイズはすべて rem

   階層
   1. .genre-title   ジャンル名（RKRN / WT ...）
   2. h4.kind        Long story / Short story
   3. h6.group       グループ名（忍術学園 など）
   4. .cast          キャラクター名（marker3 を使用）
   5. .stories       各話リンク
   ===================================================== */



/* ---------- 上部：注意書きとジャンルナビ ---------- */

/* 注意書き（文字幅に縮めて主張を抑える） */
.notice {
    display: block;
    width: fit-content;          /* 中身の文字幅ぴったりに縮める */
    margin: 1.5rem auto 0.5rem;  /* 中央寄せ & 下との余白 */
    padding: 0;                  /* 余分な内側余白をリセット */
    font-size: 0.78rem;          /* 控えめな小さめサイズ */
    line-height: 1.4;
    letter-spacing: 0.12em;
    color: var(--dark-gray, #888);    /* 落ち着いたグレー */
    border: none;                /* asideデフォルトの太枠線を消去 */
    background: transparent;     /* 背景色なし */
}

/* もし少しだけ枠線で囲みたい場合は、上の border: none; を以下に変更できます
   border: 1px solid var(--gray);
   padding: 0.1rem 0.6rem;
*/

/* ジャンルナビ */
.genre-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0 0;
}
.genre-nav a {
    padding: 0 1.2rem;
    font-family: 'NemoyMedium', 'HiLoDecoDeco', var(--san-serif);
    font-size: 0.95rem;
    line-height: 1.6rem;
    letter-spacing: .15em;
    color: var(--dark);
    border-bottom: 0;
}
.genre-nav a + a {
    border-left: 1px solid var(--gray);
}
.genre-nav a:hover {
    color: var(--red);
}






/* ==========================================
   キャッチコピー用スタイル（左右ドット線タイプ）
   ========================================== */
.catch-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 1.5rem auto;
    font-size: 0.9rem;
    color: var(--dark-gray);
    letter-spacing: 0.1em;
    text-align: center;
}

/* 左右の点線 */
.catch-line::before,
.catch-line::after {
    content: "";
    flex: 1;
    /* 線の太さ・種類・色（1px～2pxで雰囲気が変わります） */
    border-top: 1px dashed var(--dark-gray, #888);
}

/* 言葉と点線の間隔 */
.catch-line::before {
    margin-right: 1rem;
}
.catch-line::after {
    margin-left: 1rem;
}
/* ==========================================
   全体リンク付き作品ボックス（枠線消え対策版）
   ========================================== */

/* ボックス全体のリンク化と基本スタイル */
a.box-link {
    display: block;                  /* 全体をブロック化して押しやすくする */
    text-decoration: none;           /* リンクの下線を消す */
    color: var(--dark, #333);        /* 文字色を通常テキストに合わせる */
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    box-sizing: border-box;
}

/* マウスを乗せた時の演出 */
a.box-link:hover {
    transform: translateY(-3px);     /* ふわっと3px上に浮き上がる */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* 上品な影をつける */
    opacity: 0.95;
}

/* ホバー時にタイトル（h4）の色をほんのりアクセントカラーに変える */
a.box-link:hover h4 {
    color: var(--c-rose, #c4696a);
}


/* ==========================================
   作品ごとの背景色指定（:hover時も枠線を保持）
   ========================================== */

/* 作品1：まほろばのくに用 */
.box-bg-mahoroba,
.box-bg-mahoroba:hover {
    background-color: #f9f1f6;
    border: 1px solid #d8bacd;       /* :hover を併記して下の枠線消えを防止 */
}

/* 作品2：新しい作品用（複製用） */
.box-bg-syura,
.box-bg-syura:hover {
    background-color: #fffaf5;
    border: 1px solid #e4e7d9;
}

/* 作品2：新しい作品用（複製用） */
.box-bg-blue,
.box-bg-blue:hover {
    background-color: #effbfe;
    border: 1px solid #c7dade;
}

/* ダッシュ（──）の字間を詰めて繋げる。main.js が自動で付ける */
.dash {
    letter-spacing: 0;
    white-space: nowrap;   /* 行末でダッシュが途中で切れないように */
}