@charset "utf-8";

/* ========================================
   Base
======================================== */
:root {
    /* Color */
    --color-text: #403d3c;
    --color-caption: #9e9e9f;
    /* k100 #221815
    k90 #403d3c
    k80 #595858
    k50 #9e9e9f */
    --color-background: #f5f5f5;
    /*eee*/
    /*公開時にはfff*/
    --color-border: #9e9e9f;
    --color-white: #fff;
    --color-black: #221815;
    /*k90 403d3c k100 221815*/
    --color-link: #0068b7;
    /*c100m50 0068b7
    c100 00a0e9*/
    --color-link-hover: #E60012;
    /* Font */
    --font-size-base: 16px;
    --line-height-base: 1.8;
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    /* Border */
    --border-radius: 6px;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    color: var(--color-text);
    background: #fff;
    /*var(--color-background)*/
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Hiragino Sans",
        "Yu Gothic",
        Meiryo,
        sans-serif;
    font-size: 1rem;
    line-height: var(--line-height-base);
}

/* ========================================
   Header
======================================== */
header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

header>div {
    position: relative;
    width: 100%;
    min-height: 72px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Site Title
======================================== */
header>div>a,
header>div>a:link {
    color: var(--color-text);
    font-size: 1.35rem;
    font-weight: bold;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

header>div>a:hover {
    text-decoration: none;
}

/* ========================================
   Hamburger Button
======================================== */
header button {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 44px;
    height: 44px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
}

header button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-text);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

/* ========================================
   Navigation
======================================== */
header nav {
    position: absolute;
    top: 100%;
    right: 20px;
    z-index: 10;
    width: 220px;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

header nav ul {
    margin: 0;
    padding: 8px 0;
    list-style: none;
}

header nav li {
    margin: 0;
}

header nav a,
header nav a:link {
    display: block;
    padding: 14px 18px;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.35;
    text-decoration: none;
}

header nav a:hover {
    background: #f5f5f5;
    text-decoration: none;
    color: var(--color-link-hover);
}

/* ========================================
   Menu Open
======================================== */
header nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

header button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

header button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

header button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Heading
======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 2rem 0 .75rem;
    /*color: var(--color-text);*/
    font-weight: bold;
    line-height: 1.35;
    font-feature-settings: "palt";
    scroll-margin-top: 80px;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}



/* ========================================
   Text
======================================== */
p {
    margin: 0 0 1rem;
}

strong,
b {
    font-weight: bold;
}

small {
    font-size: 0.875rem;
}

/* ========================================
   Link
======================================== */
a,
a:link {
    color: var(--color-link);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
    text-decoration-thickness: calc(1 / 16 * 1rem);
    text-underline-offset: calc(3 / 16 * 1rem);
    color: var(--color-link-hover);
}

a img {
    transition: opacity 0.2s;
}

a:hover img {
    opacity: 0.75;
}

/* ========================================
   List
======================================== */
ul,
ol {
    margin: 0 0 1rem;
    padding-left: 1rem;
}

li>ul,
li>ol {
    margin: .25rem auto;
}

li+li {
    margin-top: 0.25rem;
}

/* すべての ol 要素に対して適用 */
ol {
    /* リストが登場するたびに新しくカウンタを 0 にリセット（初期化） */
    counter-reset: circle-num;
    /* ブラウザ標準の数字を非表示にする */
    list-style: none;
    padding-left: .25rem;
}

/* ol の直下にある li 要素に対して適用 */
ol>li {
    /* li が登場するたびにカウンタの数値を 1 進める */
    counter-increment: circle-num;
}

/* 擬似要素を使って数字を表示 */
ol>li::before {
    /* 現在のカウンタの数値を表示（お好みでドットやカッコをつける） */
    content: counter(circle-num) ". ";
    font-weight: normal;
    margin-right: 5px;
}

/* --- 2階層目（入れ子）のスタイル --- */
ol li ol {
    list-style: none;
    counter-reset: circle-num;
    margin: 0;
    padding-left: 0;
}

ol li ol>li {
    counter-increment: circle-num;
    position: relative;
    margin: 0 0 0 1.25rem;
    padding-left: 1.25rem;
    /* 丸が入るスペース */
    line-height: var(--line-height-base);
}

ol li ol>li::before {
    content: counter(circle-num);
    position: absolute;
    left: 0;
    top: .4rem;
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--color-text);
    ;
    background-color: #fff;
    /* 丸の背景色 */
    color: var(--color-text);
    /* 丸の中の文字色 */
    font-size: 0.75rem;
    font-weight: normal;
    border-radius: 50%;
    /* 正円にする */
    /* --- 中央配置を絶対確実にするための修正項目 --- */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    /* 親要素の行高さを打ち消して文字を上下中央にする */
    box-sizing: border-box;
    /* paddingやborderによる円の歪みを防ぐ */
}

/*dl dt ddはあとで再設定*/
dl {
    display: grid;
    /* 左（dt）は最小で単語の最小幅、最大でも200pxまでの成り行き */
    grid-template-columns: minmax(min-content, 10em) 1fr;
    row-gap: 0;
    column-gap: 0;
    width: 100%;
    margin: 0 0 1.5rem 0;
    padding: 0;
    border-top: 1px solid var(--color-caption);
}

dt,
dd {
    padding: 12px 0;
    /* 上下の余白 */
    border-bottom: 1px solid var(--color-caption);
    /* 各要素の下の区切り線 */
}

dt {
    grid-column: 1;
    /* 必ず1列目に配置 */
    font-weight: bold;
}

dd {
    grid-column: 2;
    /* 必ず2列目に配置 */
    margin-left: 0;
    /* デフォルトの左インデントをリセット */
    padding-left: 2em;
    /* column-gapの代わりにここで横の隙間を作る */
}

@media (max-width: 768px) {
    dl {
        display: block;
        /* グリッドを解除して縦並びに */
        border-top: none;
        /* スマホ時は一番上の線を消す */
    }

    dt {
        padding: 8px 0 2px 0;
        /* スマホ用の余白 */
        border-bottom: none;
        /* スマホ時はdtの下線を消す */
    }

    dd {
        padding: 0 0 12px 0;
        /* スマホ用の余白 */
        padding-left: 0;
        /* スマホ時は左余白をリセット */
        margin-bottom: 0;
    }

    /* 最後のペア以外にスマホ用の区切り線を入れる */
    dd:not(:last-child) {
        border-bottom: 1px solid var(--color-caption);
    }

    /* 最後の要素は線を消す */
    dd:last-child {
        border-bottom: none;
    }
}

/* ========================================
   Image
======================================== */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0 0 1rem;
}

figure img {
    display: block;
    max-width: 100%;
    height: auto;
    padding: 0;
    margin: auto;
}

figcaption {
    margin-top: 0.125rem;
    font-size: 0.875rem;
    text-align: right;
    color: var(--color-caption);
    line-height: 1.35;
}

figcaption+p {
    margin-top: .75rem;
}

/* ========================================
   Table
======================================== */
table {
    width: 100%;
    margin: 0 0 1rem;
    border-collapse: collapse;
    table-layout: fixed;
}

caption {
    padding: 0 0 0.5rem;
    text-align: left;
    font-weight: bold;
}

th,
td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-caption);
    line-height: 1.35;
}

th {
    font-weight: bold;
    background: var(--color-background);
    text-align: center;
    vertical-align: middle;
}

td {
    text-align: left;
    vertical-align: middle;
    vertical-align: top;
}

tfoot td {
    font-size: 0.875rem;
    color: var(--color-caption);
}

/* ========================================
   Footer
======================================== */
footer {
    margin: 1rem auto 1rem;
    text-align: center;
}


/* ========================================
   Form / Button
======================================== */
button,
input,
select,
textarea {
    font: inherit;
    line-height: 1.5;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    color: var(--color-text);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* ----------------------------------------
   Button : Hover
---------------------------------------- */
button:hover:not(:disabled),
input[type="button"]:hover:not(:disabled),
input[type="submit"]:hover:not(:disabled),
input[type="reset"]:hover:not(:disabled) {
    /*background-color: #f0f0f0;*/
    box-shadow: inset 0 0 0 999px rgb(128 128 128 / 15%);
}

/* ----------------------------------------
   Button : Active
---------------------------------------- */
button:active:not(:disabled),
input[type="button"]:active:not(:disabled),
input[type="submit"]:active:not(:disabled),
input[type="reset"]:active:not(:disabled) {
    background-color: #eee;
}

/* ----------------------------------------
   Button : Focus
---------------------------------------- */
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* ----------------------------------------
   Button : Disabled
---------------------------------------- */
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ----------------------------------------
   Input / Select / Textarea
---------------------------------------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),
select,
textarea {
    max-width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    color: var(--color-text);
    vertical-align: middle;
}

/* ----------------------------------------
   Checkbox / Radio
---------------------------------------- */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0 6px 0 0;
    vertical-align: middle;
}

/* ----------------------------------------
   Textarea
---------------------------------------- */
textarea {
    min-height: 120px;
    line-height: 1.6;
    resize: vertical;
}

/* ----------------------------------------
   Input / Select / Textarea : Focus
---------------------------------------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]):focus,
select:focus,
textarea:focus {
    border-color: var(--color-text);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #333;
    outline-offset: 1px;
}


/* ----------------------------------------
   Button : Primary　class="primary"で黒色のボタン
---------------------------------------- */
button.primary,
input[type="button"].primary,
input[type="submit"].primary,
input[type="reset"].primary {
    border-color: #333;
    background: #333;
    color: #fff;
}

button.primary:hover:not(:disabled),
input[type="button"].primary:hover:not(:disabled),
input[type="submit"].primary:hover:not(:disabled),
input[type="reset"].primary:hover:not(:disabled) {
    border-color: #555;
    background: #555;
}

button.primary:active:not(:disabled),
input[type="button"].primary:active:not(:disabled),
input[type="submit"].primary:active:not(:disabled),
input[type="reset"].primary:active:not(:disabled) {
    border-color: #666;
    background: #666;
}

/* ----------------------------------------
   Button Size
---------------------------------------- */
button.small,
input[type="button"].small,
input[type="submit"].small,
input[type="reset"].small {
    min-height: 32px;
    padding: 4px 12px;
    font-size: 0.875rem;
}

button.large,
input[type="button"].large,
input[type="submit"].large,
input[type="reset"].large {
    min-height: 48px;
    padding: 10px 20px;
}


/* ========================================
   Code
======================================== */
/* ----------------------------------------
   Inline Code
---------------------------------------- */
code {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;
    font-size: 0.875rem;
    line-height: 1;
    color: #595858
}

:not(pre)>code {
    display: inline-block;
    padding: 2px 6px;
    vertical-align: 0.125rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-background);
    overflow-wrap: break-word;
}

/* ----------------------------------------
   Code Block
---------------------------------------- */
pre {
    margin: 1em 0;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-background);
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #595858;
    white-space: pre-wrap;
    overflow-x: auto;
}

dl pre {
    margin: 0;
}

dl dd pre {
    margin: 0 0 0.25rem 0;
}

pre code {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ========================================
   Font Awesome アイコン用
======================================== */
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa-brands {
    display: inline-block;
    font-style: normal;
    line-height: 1;
    text-align: center;
    font-size: 0.8em;
    margin-left: 1px;
    margin-right: 1px;
    vertical-align: 0.125em;
}

/*
header nav a .fa-solid {
    position: relative;
    top: -.15em;
}*/
/* ========================================
   Other
======================================== */
hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--color-border);
}

blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--color-border);
    border-radius: 0 6px 6px 0;
    background: var(--color-background);
    font-size: 0.875rem;
    line-height: 1.5;
}

blockquote p {
    margin: 0;
}

blockquote p+p {
    margin-top: 0.75rem;
}

details {
    margin-bottom: 1rem;
}

summary {
    cursor: pointer;
}

/* ========================================
   Mobile
======================================== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    input,
    select,
    textarea {
        margin: 0.5rem auto;
    }

    input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),
    select,
    textarea {
        font-size: 16px;
    }
}