:root {
    /* テーマ変更で変更可能部分 */
    --bg: #FFFCF7;
    --sub_bg: #494D53;
    --sub_bg2: #A4B8B1;
    --sub_bg05: #494D53aa;
    --sub_bg08: #494D5366;
    --sub_bg01: #494D533f;
    --white: #FFFFFF;

    --hover_bg: #F4F4F4;
    --placeholder: #878787;

    /* テキストカラー */
    --fnt: #544739;
    --sub_fnt: #3c3c3c;
    --tm_fnt: #FFFCF7;

    /* アクセントカラー */
    --tm_cl: #859A93;

    /* ベースサイズ */
    /* laptopと同じ */
    --base_width: 1024px;
    --max_width: calc(100vw - 3rem);
    --calc_min_width: min(var(--base_width), var(--max_width));



    /* 色 */
    --inputGray: #DDDDDD;
    --inputTextGray: #999999;
    --textGray: #707070;
    --cancelButtonColor: #F3F3F6;

    --red: #ff4b4b;
    --error: var(--red);

    /* フォント */
    --fontSize: clamp(9px, 100vw / 75, 14px);
    --Robot: "Robot", 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', Arial, Verdana, sans-serif;
    --MarugoW6: "ヒラギノUD丸ゴ Std W6", 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', Arial, Verdana, sans-serif;
    --ZenMaru: "Zen Maru Gothic", 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', Arial, Verdana, sans-serif;
    --MochiyPop: "Mochiy Pop One", 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', Arial, Verdana, sans-serif;
    --NotoSans: "Noto Sans JP", 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', Arial, Verdana, sans-serif;

    /* アニメーションの時間 */
    --transitionSec: 0.4s ease;

    --radius: calc(infinity * 1px);
    --radius_card: 10px;

    --shadow: 0 0 5px rgba(175, 175, 175, 0.4);

}


.sp {
    display: none !important;
}

.pc {
    display: inherit;
}


center {
    position: relative;
    width: 100%;
    display: block;
    min-height: 100vh;
    margin: auto;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    background-color: var(--bg);

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    /* overflow-x: hidden; */
    /* 必須 */
    /* overflow-y: scroll; */
    /* 必須 */
}

/* ----------------------------
レスポンシブデザイン
※max-widthでしていなので、値が小さいのが一番下になるように設定する
  ---------------------------- */
/* 大型デスクトップ */
@media screen and (max-width: 1440px) {}

/* デスクトップ */
@media screen and (max-width: 1200px) {}

/* 小型ノートパソコン */
@media screen and (max-width: 1024px) {}

/* タブレット */
@media screen and (max-width: 768px) {}

/* 大きめのスマートフォン */
@media screen and (max-width: 480px) {

    /* sp,pc表示切り替え */
    .sp {
        display: inherit !important;
    }

    .pc {
        display: none !important;
    }
}

/* 小さなスマートフォン */
@media screen and (max-width: 320px) {}

/* ----- */



.icon_white {
    filter: brightness(100) !important;
}

.hover_action {
    background-color: var(--tm_cl) !important;
    color: var(--tm_fnt);
    position: relative;

    &::after {
        content: "";
        position: absolute;
        inset: 0;
        background-color: transparent;
        height: 100%;
        width: 100%;
        margin: auto;
        clip-path: circle(0% at left center);
        transition: var(--transitionSec);
        background-color: var(--sub_bg);
    }

    &:hover {

        &::after {
            clip-path: circle(150% at left center);
        }
    }
}

/*****************************************/
/* ↓↓↓↓初期設定 */
/*****************************************/
body,
dd,
div,
dl,
dt,
h1,
h2,
h3,
html,
li,
p,
table,
td,
tr,
ul {
    margin: 0;
    padding: 0;
}

html {
    font: var(--fontSize) 'Robot', 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', Arial, Verdana, sans-serif;
    font-weight: normal;
    color: var(--fnt);
    line-height: 1.2;
    scroll-behavior: smooth;
}

body {
    overflow: hidden;
    overflow-y: auto;
    overflow-wrap: anywhere;
    /* メアドやURLの改行を許可 */
    width: 100%;
}

center * {
    text-align: inherit;
}

span.bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* 模様の感じを出すための blend mode */
    opacity: 0.6;
}

* {
    box-sizing: border-box;
    user-select: none;
    /* ドラッグ中のカーソルを無効にする */
}

img {
    display: block;
    width: 100%;
    margin: 0;
}

section {
    display: block;
    width: 100%;
    overflow: hidden;
}

a {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    max-width: 100%;
    overflow-wrap: break-word;
}

a:hover {
    opacity: 1;
}

*.circle {
    border-radius: calc(infinity *1px);
}

table {
    border-collapse: collapse;
}

th {
    font-weight: normal;
}

ul,
li {
    list-style: none;
}

dialog {
    padding: 0;
    height: max-content;
    width: max-content;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    cursor: auto;
}

svg {
    max-width: 0.9em;
    width: 100%;
    height: 0.9em;
    object-fit: contain;
}

use {
    display: block;
}

* {
    /* スクロールバーを非表示にする */
    /*IE(Internet Explorer)・Microsoft Edgeへの対応*/
    -ms-overflow-style: none;
    /*Firefoxへの対応*/
    scrollbar-width: none;
}

/* スクロールバーを非表示にする */
/*Google Chrome、Safariへの対応*/
*::-webkit-scrollbar {
    display: none;
}

/* タイトル */
h2.content_title {
    font-family: var(--ZenMaru);
    margin-bottom: 10px;
}

/* フォームタグ */
label {
    display: block;
    cursor: pointer;

}

input,
select,
textarea {
    text-align: left;
}

:where(input,
    select,
    textarea,
    fieldset)[disabled="disabled"],
fieldset[disabled="disabled"] :where(input,
    select,
    textarea) {
    border: none !important;
    box-shadow: none !important;
    resize: none !important;
    padding: 0 !important;
}

fieldset[disabled="disabled"] legend {
    display: none;
}

input:where([type="email"],
    [type="number"],
    [type="password"],
    [type="text"],
    [type="url"],
    [type="search"]) {
    margin: auto;
    width: 100%;
    padding: 10px 8px;
    background-color: white;
    border: none;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

input:focus-visible {
    outline: none;
}

input[type="time"] {
    width: max-content;
    padding: 4px;
    background-color: white;
    border: none;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

:where(input, select, textarea).error {
    outline: 1px solid var(--error) !important;
    color: var(--error);
}

/* フィールドセットを使った表示 */
fieldset {
    border-radius: 3px;
    border: solid 1px rgba(0, 0, 0, 0.2);
    min-inline-size: auto;
    text-align: left;
}

fieldset legend {
    display: flex;
    gap: 4px;
    align-items: center;
    /* font-family: var(--ZenMaru); */
    color: #3c3c3c;
}

fieldset> :where(input:where([type="email"],
        [type="number"],
        [type="password"],
        [type="text"],
        [type="url"],
        [type="search"],
        [type="time"])) {
    margin: auto;
    width: 100%;
    padding: 8px;
    background-color: inherit;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

fieldset>textarea {
    border: none !important;
    box-shadow: none;
    background-color: inherit;
    padding: 0;
}

fieldset>textarea:focus {
    outline: none;
}

fieldset:focus-within {
    border: solid 2px var(--tm_cl);
}

fieldset:focus-within legend {
    color: var(--tm_cl);
}

fieldset label> :where(input:where([type="email"],
        [type="number"],
        [type="password"],
        [type="text"],
        [type="url"],
        [type="search"])) {
    padding: 10px 8px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    border-radius: 3px;
    border: solid 1px rgba(0, 0, 0, 0.2);
}

*.button {
    width: min(480px, var(--max_width));
    height: 3.6rem;
    white-space: nowrap;
    display: flex;
    place-items: center;
    place-content: center;
    gap: 8px;
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    font-family: var(--ZenMaru);
    font-size: 1.2rem;
}

input::placeholder,
textarea::placeholder {
    color: var(--inputGray);
}

textarea {
    width: 100%;
    min-height: 100px;
    /* 最小の高さを設定（必要に応じて調整） */
    height: auto;
    /* 高さを自動調整 */
    padding: 10px 8px;
    background-color: white;
    border: none;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    resize: vertical; /* 縦方向のみリサイズ可能 */
}

select {
    padding: 2px 4px;
    cursor: pointer;
    font-size: 1rem;
}

select.disabled {
    color: #A5A5A5;
}

fieldset select {
    border: none;
    width: 100%;
    background-color: inherit;
    margin-right: 4rem;
}

fieldset select:focus-visible {
    outline: none;
}


/* ------------
  クラスをつけるだけでcss対応させる
  ------------- */
.margin-top-24 {
    margin-top: 24px;
}

[data-text] {
    position: relative;

    &::before {
        content: attr(data-text);
        position: absolute;
        inset: 0;
        z-index: 1;
        width: max-content;
        height: max-content;
        margin: auto;
        color: currentColor;
    }
}

[data-error] {
    font-size: 0.9em;
    color: var(--error);
    text-align: left;
}

[data-error]::before {
    content: '※';
    display: inline-block;
    padding-right: 2px;
}


[data-hidden] {
    font-size: 0.9em;
    color: var(--red);
    text-align: left;
}

[data-yet] {
    font-size: 0.9em;
    color: var(--green);
    text-align: left;
}

[data-already] {
    font-size: 0.9em;
    color: var(--textGray);
    text-align: left;
}

[data-fin] {
    font-size: 0.9em;
    color: var(--textGray);
    text-align: left;
}

[data-tips] {
    position: relative;
}

[data-tips]:hover::after {
    content: attr(data-tips);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.8rem;
    padding: 8px;
    border-radius: 3px;
    position: absolute;
    top: 100%;
    left: 0%;
}

.red {
    color: var(--red) !important;
}

.flex {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    white-space: nowrap;
    width: max-content;
}

.align-start {
    align-items: start;
}

.buttonWrap {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    gap: 2%;
}

.prevButton,
.nextButton {
    color: white;
}

.prevButton {
    background-color: var(--inputTextGray);
}

.nextButton {
    background-color: var(--lightBlue);
}

.buttonWrap .prevButton,
.buttonWrap .nextButton {
    width: 50%;
    height: 40px;
    display: flex;
    align-items: center;
    margin: auto;
    justify-content: center;
    line-height: 0;
}

.buttonWrap a.cancel {
    background-color: var(--cancelButtonColor);
    color: black;
}
.underline {
    text-decoration: underline;
}
.pageLink {
    display: flex;
    place-items: center;
    place-content: center;
    text-decoration: underline;
    background: none;
    height: auto;
    width: max-content;
    margin: 16px auto 0;
}

.arrowL {
    filter: brightness(100);
    display: inline-block;
    height: 0.8rem;
    width: max-content;
    padding-right: 8px;
}

.arrowR {
    filter: brightness(100);
    display: inline-block;
    height: 0.8rem;
    width: max-content;
    padding-left: 8px;
}

.close_bg {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    margin: auto;
    cursor: pointer;

    background-color: rgba(80, 80, 80, 0.2);
    backdrop-filter: blur(2px);
    border: none;
    border-right: 1px solid rgba(80, 80, 80, 0.2);
    border-bottom: 1px solid #fff;
    color: #3c3c3c;
    z-index: 0;
}


/* 検索ボックス */
.search {
    display: flex;
    align-items: center;
    gap: 0.6em;
    border: none;
    border-radius: var(--radius);
    padding: 0 0.9em;
    border: solid 1px var(--textGray);
    transition: all var(--transitionSec);
    background-color: white;

    input[type="search"] {
        font-size: 1em;
        padding: 0.8em 0;
        line-height: 1;
        width: 100%;
        transition: all var(--transitionSec);
        outline: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
    }
}

.search:focus-within,
.search:hover {
    border: solid 1px var(--tm_cl);
}

.search svg {
    max-width: 1em;
    height: 1em;
    color: var(--textGray);
    transform: translateY(-4%);
    transition: all var(--transitionSec);
}

.search:where(:focus-within, :hover) svg {
    color: var(--tm_cl);
}


.flexColumn {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.w-100 {
    width: 100%;
}

span.fileComment {
    font-size: 0.85em;
    line-height: 1;
}

span.fileComment.blue {
    color: #295d72;
}

label.fileButton {
    padding: 8px 16px;
    color: #fff;
    background-color: #295d72;
    cursor: pointer;
    border-radius: 2px;
    transition: .3s;
    font-size: 0.9rem;
}

.fileDelete {
    color: var(--textGray);
    width: 1rem;
    height: 1rem;
    margin-left: 8px;
    cursor: pointer;
}

label.button:hover {
    opacity: 0.8;
}

.textGray {
    color: var(--textGray);
}

.blue {
    color: var(--tm_cl);
}

.bold {
    font-weight: bold;
}

.small {
    font-size: 0.85em;
}

.shrink {
    flex-shrink: 0;
    /* 縮小しない */
}

a.counter {
    width: max-content;
    padding: 5px 8px;
    font-size: 11px;
    line-height: 1;
    border-radius: calc(infinity * 1px);
    background-color: var(--green);
    color: white;
    display: flex;
    place-items: center;
    place-content: center;
}

.kaigyou {
    white-space: pre-wrap;
}

.pankuzu {
    display: flex;
    font-size: 0.9rem;
    align-items: center;
    padding: 1.6rem 0;
    gap: 0.6rem;
    line-height: 1;

    a {
        &:hover{
            text-decoration: underline;
            opacity: 0.8;
        }

    }
}

/* 未登録時のデザイン */
.empty {
    width: max-content;
    height: max-content;
    margin: auto;
    font-family: var(--ZenMaru);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--pink);
}

.empty span {
    white-space: nowrap;
}

.empty svg {
    max-width: 1.2em;
    height: 1.2em;
}

.pointer {
    cursor: pointer !important;
}

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

.t-left {
    text-align: left !important;
}

.m-auto {
    margin: auto;
    width: max-content;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 1rem !important;
}

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

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

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

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.8rem !important;
}

.p-2 {
    padding: 1.6rem !important;
}

.p-3 {
    padding: 2.4rem !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pt-1 {
    padding-top: 0.8rem !important;
}

.pt-2 {
    padding-top: 1.6rem !important;
}

.pt-3 {
    padding-top: 2.4rem !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pb-1 {
    padding-bottom: 0.8rem !important;
}

.pb-2 {
    padding-bottom: 1.6rem !important;
}

.pb-3 {
    padding-bottom: 2.4rem !important;
}

.pl-0 {
    padding-left: 0 !important;
}

.pr-0 {
    padding-right: 0 !important;
}

.g-0 {
    gap: 0 !important;
}

.g-1 {
    gap: 0.2rem !important;
}

.g-2 {
    gap: 0.4rem !important;
}

.g-3 {
    gap: 0.6rem !important;
}

.zenmaru {
    font-family: var(--ZenMaru) !important;
}

.b-0 {
    border: none !important;
}

.relative {
    position: relative !important;
}

.break {
    white-space: break-spaces;
}

.ellipsis {
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    width: 100%;
    text-align: left;
}

.radius {
    border-radius: calc(1px * infinity);
    overflow: hidden;
}