@charset "UTF-8";

@font-face {
  font-family: "Parisienne";
  src: url("fonts/Parisienne-Regular.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Regular.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Noto Serif JP";
  src: url("fonts/NotoSerifJP-Regular.otf") format("opentype");
  font-display: block;
}


/* リセットcssはここから */
/* Copyright (c) 2021 Elad Shechter - https://github.com/elad2412/the-new-css-reset Released under the MIT license https://opensource.org/license/mit/ */
*:where(:not(html,iframe,canvas,img,svg,video,audio):not(svg *,symbol *)){all:unset;display:revert}*,*::before,*::after{box-sizing:border-box}a,button{cursor:revert}:where(ol,ul){counter-reset:revert}img{max-inline-size:100%;max-block-size:100%}table{border-collapse:collapse}input,textarea{-webkit-user-select:auto}textarea{white-space:revert}meter{-webkit-appearance:revert;appearance:revert}:where(pre){all:revert;box-sizing:border-box}::placeholder{color:unset}:where([hidden]){display:none}:where([contenteditable]:not([contenteditable="false"])){-moz-user-modify:read-write;-webkit-user-modify:read-write;overflow-wrap:break-word;-webkit-line-break:after-white-space;-webkit-user-select:auto}:where([draggable="true"]){-webkit-user-drag:element}:where(dialog:modal){all:revert;box-sizing:border-box}
/* リセットcssここまで */







/* imgを表示した際のズレを解消 */
:where(img) {
    vertical-align: bottom;
}

/* カーソルをポインターに */
a, button, :where([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"], select, optgroup, option, label:has([type="checkbox"], [type="radio"]), summary) {
    cursor: pointer;
}

/* 一部のhtmlタグのスタイルを復元 */
:where(em, strong, small, s, cite, q, dfn, abbr, data, time, code, var, samp, kbd, sub, sup, i, b, u, mark, ruby, rb, rt, rtc, rp, bdi, bdo, span, br, wbr, ins, del, center, font) {
    all: revert;
    box-sizing: border-box;
}

/* ページ内リンクをクリックした後に、上部に余白を作る。不要ならば削除してください。 */
:where(html) {
	scroll-padding-block-start: 3em;
    /* スムーススクロールにしたい場合はここに scroll-behavior: smooth; を追加してください。 */
}





/* CSS変数（カスタムプロパティ）を設定 */
:root {
    --white: #fff;
    --gray: rgb(0 1 2 / 0.065);
    --red: #e81a35;
    --hr-border-color: #ccc;
    --button-border-color: #555;

    --text-color: #222;
    --background-color: #f6f7f8;
    --nav-background-color: var(--background-color);
    --link-color: #1045e4;
    --link-visited-color: rgb(118 118 118);
    --main-color: rgb(105 165 250);
    --main-color-t: rgb(105 165 250 / 0.2);
}





/* bodyで基本の指定 */
body {
    font-family: "EB Garamond", "Noto Serif JP", serif; /* フォントの種類。お好みで変更してください。 */
    font-size: 14px;
    line-height: 1.8;/* 行の高さ */
    overflow-wrap: break-word;
    overflow-wrap: anywhere;/* 文字の折り返し。収まらない場合に折り返す。anywhereが非対応時のフォールバックとしてbreak-wordも指定。 */
    line-break: strict;/* 禁則処理は強めに指定。通常はnormal。 */
    hanging-punctuation: allow-end;/* 句読点のぶら下げ。対応ブラウザは少ない。不要ならば削除してください。 */
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;/* 文字サイズの調整 */
    color: var(--text-color);
    background-color: var(--background-color);
}





/* ヘッダー */
.header {
    display: grid;
    place-content: center;
    place-items: center;
    height: auto;
    overflow-x: hidden;
    padding-top: 3em;     /* 上の余白 */
    padding-bottom: 0em;    /* 下の余白 */
}


@media screen and (max-width: 768px) {

  .header {
    padding-top: 2.0em;  /* ← スマホの上余白 */
    padding-bottom: 0em;/* ← スマホの下余白 */
  }

}





/* h1タグ */
h1 {
  display: inline-block; /* 中央寄せで安全 */
  font-weight: 400;
  font-size: 3.5em;
  letter-spacing: 0.14em;
  font-family: "Parisienne", cursive;
  line-height: 1.05;
 margin-bottom: 0.9em; /* ← 下に余白を追加 */ 
 padding-top: 1.5em; /* 上に余白を追加 */

}


@media screen and (max-width: 768px) {

 h1 {
  font-size: 3.0em;
  }

}




/* 最大幅、余白、1カラム中央寄せを指定 */
.wrap {
    padding-top: 6em;    /* 上の余白 */
    padding-bottom: 10em; /* 下の余白 */

    /* 左右余白を固定して中央寄せ */
    padding-left: 1.5em;
    padding-right: 1.5em;

margin: 0 auto; /* 中央寄せ */
    max-width: 1100px;
}


@media screen and (max-width: 768px) {

.wrap {
    max-width: 27em;
}


}


/* ナビ基本 */
.nav {
  display: flex;
  column-gap: 2.5em;  /* リンク間の幅 */
  justify-content: center;
  width: 100%;
  position: sticky;
  top: 0;
  padding: 0.6em 0;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  z-index: 999;
}

/* リンク基本色 */
.nav a {
  color: #222222;
  transition: color 0.4s ease;
  text-decoration: none;
  font-size: 1.3em;
  letter-spacing: 0.15em;  /* 文字間の幅 */
}

/* 張り付いた瞬間の状態 */
.nav.is-fixed {
  background: rgba(225,228,231,0.96);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  padding: 1.5em 0;
}

/* 文字色変化 */
.nav.is-fixed a {
  color: #222222;
}




:target {
  scroll-margin-top: 130px;
}



/* nav下の余白 */
.nav-space{
  height: 3.5em;   
}



@media screen and (max-width: 768px) {
 .nav {
    column-gap: 1.3em;
  }

  .nav a {
    font-size: 1.2em;
    letter-spacing: 0.08em;
  }


:target {
  scroll-margin-top: 55px;
}


.nav-space{
  height: 2.3em;
}
}




.log {
  max-width: 820px;
  margin: 0 auto 4em;
  padding: 0 1em;
}



.log {
  max-width: 310px;
  margin: 0 auto 4em;
  padding: 0 1em;
}

.log-accordion dd {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.log-main {
  cursor: pointer;
  position: relative;
}

.log-main::after {
  content: "＋";
  position: absolute;
  right: 0;
}

.log-main.open::after {
  content: "－";
}

.log-main.open + dd {
  max-height: 200px;
}


.wrap.two-col {
  padding-top: 50em;   /* ←好きな余白 */
}


/* PC 2カラム */
@media screen and (min-width: 900px) {

  .two-col {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    column-gap: 3em;
  }

  .col-left { grid-column: 1; }
  .col-right { grid-column: 3; }

  /* 縦線 */
  .two-col::before {
    content: "";
    grid-column: 2;
    background: #ddd;
  }

.col-left .section p a {
  text-decoration: none;
  color: inherit;
}
}




@media screen and (max-width: 768px) {

  .col-left {
    margin-bottom: 56px;   /* information の下に余白 */
  }

.col-left .section p a {
  text-decoration: none;
  color: inherit;
}

}



/* H3専用の下線デザイン */
h3 {
  position: relative;
  display: inline-block;
  font-weight: 400;
  letter-spacing: 0.12em;   /* ← 文字間隔 */
  padding-bottom: 0.4em;   /* ← 余白を少しだけ増やす */
  line-height: 1.3;
}


/* 文字の後ろを通る線 */
h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .45em;        /* ← 文字に食い込ませる高さ */
  width: 100%;
  height: 7px;        /* ← 線の太さ */
  background: #cfcfcf; /* ← グレー */
  z-index: -1;
}

/* 線 */
h3[id]::before {
  content: "";
  display: block;
  height: 90px;        /* ← navの高さ */
  margin-top: -90px;
  pointer-events: none;
  visibility: hidden;
}


@media screen and (max-width: 768px) {
.section p {
  padding: 0 0.8em;   /* ← 左右の空白 */
}

.link-wrap {
  padding: 0 0.8em;
}

}


.link {
  display: flex;
  justify-content: flex-start;   /* ← 左寄せ */
  gap: 0.8em;                    /* ← 間隔を狭く */
  list-style: none;          /* ・を消す */
  padding: 0;
  margin: 0;
  flex-wrap: wrap;   /* ← 1行に収まらなければ改行 */
  row-gap: 0.2em;   /* 行と行の間 */
}

.link li {
  display: inline-block;     /* 念のため */
}

.link a {
  text-decoration: none;     /* 下線消す（必要なら） */
  color: inherit;            /* 文字色を親と同じに */
  letter-spacing: 0.08em;    /* ほんのり余白 */
}







/* セクションの余白を指定 */
.section + .section {
    margin-top: 2em;
}



/* スマホのブクマとメルフォの間 */
@media screen and (max-width: 768px) {

  .col-right .section + .section {
    margin-top: 4.5em;   /* ← 好きなだけ広げられる */
  }

}

/* aタグ */
:where(a) {
    text-decoration: underline;
    color: var(--link-color);
}

/* 訪問済みaタグ */
:where(a:visited) {
    color: var(--link-visited-color);
}



/* 強調の赤文字 */
.strong {
    color: var(--red);
}

/* マークタグをカスタマイズする例 */
.mark {
    color: unset;
    background-color: var(--main-color-t);
}

/* ulリスト, olリスト */
:where(ul, ol) {
    margin-block: 1em;/* 上下の余白 */
    padding-inline-start: 2em;/* 左側の余白 */
}

.list-style-position-inside {
    list-style-position: inside;
}

.ul-disc {
    list-style-type: disc;
}

.ul-circle {
    list-style-type: circle;
}

.ul-square {
    list-style-type: square;
}

.ul-moji-ninni-1 {
    list-style-type: "★ ";
}

.ol-decimal {
    list-style-type: decimal;
}

.ol-decimal-leading-zero {
    list-style-type: decimal-leading-zero;
}

.ol-lower-latin {
    list-style-type: lower-latin;
}

.ol-upper-latin {
    list-style-type: upper-latin;
}

.ol-lower-roman {
    list-style-type: lower-roman;
}

.ol-upper-roman {
    list-style-type: upper-roman;
}

.ol-lower-greek {
    list-style-type: lower-greek;
}

.ol-hiragana {
    list-style-type: hiragana;
}

.ol-katakana {
    list-style-type: katakana;
}

.ol-hiragana-iroha {
    list-style-type: hiragana-iroha;
}

.ol-katakana-iroha {
    list-style-type: katakana-iroha;
}

.ol-japanese-informal {
    list-style-type: japanese-informal;
}

.ol-japanese-formal {
    list-style-type: japanese-formal;
}

/* 見出しの余白を統一している。不要ならば削除してください。 */
:where(h2, h3, h4, h5, h6) {
    margin: 2em 0 1em;
}

/* 見出しの装飾。class名で管理している。 */
.h-boldonly {
    font-weight: bold;
    margin-bottom: 0.25em;
}

.h-center {
    text-align: center;
}

.h-underline {
    font-weight: bold;
    border-bottom: solid 2px var(--text-color);
}

.h-leftline {
    font-weight: bold;
    border-left: double 8px var(--text-color);
    padding: 0.5em 1em;
}

.h-fill {
    width: fit-content;
    background-color: var(--main-color-t);
    padding: 0.25em 1em;
}

.h-square {
    width: fit-content;
    border: solid 1px var(--text-color);
    padding: 0.25em 1em;
}

.h-big {
    font-size: 1.25em;
}

.h-center {
    text-align: center;
}

/* hrのスタイル */
.hr {
    border-block-start: solid 1px var(--hr-border-color);
    margin-block: 6em;
}





/* detailsとsummary */
/* summaryのリストスタイルを復元 */
:where(summary) {
    list-style: revert;
}

.summary-span {
    text-decoration: underline;
}

details[open] > .summary-span {
    text-decoration: none;
}

/* dl の横並び */
.dl-yoko {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.5em;
}




/* 必須の赤文字 */
.hissu {
    color: var(--red);
} 




html {
  -webkit-text-size-adjust: 100%;
}

body {
   text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  font-synthesis-style: none;
}