@charset "utf-8";

/*------------------------------
サイト名：Tristone.
作成日：2017.11.06
修正日：2017.11.06
ガイドライン：Ver.01
------------------------------*/

/* ------------------------------------
 * 標準スタイルのリセット＋共通CSS読み込み
 * ------------------------------------ */
@import "css/html5reset-1.6.1.css";
@import "css/common.css";
/* ------------------------------------

 * HEADER

 * ------------------------------------ */

@counter-style zenkaku-decimal {
  system: numeric;
  symbols: "０" "１" "２" "３" "４" "５" "６" "７" "８" "９";
}



:root {
  --color-text: #222;
  --color-subtext: #313131;
  --color-border: #ddd;
  --color-bg: #f6f6f6;
  --color-card: #fff;
  --color-main: #111;
  --color-accent: #b08a3c;
  --radius: 14px;
}


* {
  box-sizing: border-box;
}

.red {
  color: rgb(255, 0, 0);
}


html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

.attention p {
  color: var(--color-subtext);
  /* text-align:right; */
  font-size: 0.8rem;
  line-height: 1.3;
  padding-left: 20px;
  padding-right: 30px;
  margin-bottom: 5px;
}

.attention p:last-child {
  margin-bottom: 0;
}

.closing-text {
  margin-top: 36px;
}

body.special {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "YuGothic",
    "Meiryo",
    sans-serif;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

/* Container
------------------------------ */
#container {
  width: min(100% - 32px, 880px);
  margin: 40px auto;
  padding: 48px 56px;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

/* Headings
------------------------------ */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-main);
}

h1 {
  margin-bottom: 40px;
  padding-bottom: 20px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  border-bottom: 2px solid var(--color-main);
}

h2 {
  margin-top: 48px;
  margin-bottom: 18px;
  padding-left: 14px;
  padding-right: 14px;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  border-left: 5px solid var(--color-accent);
}

h2:first-of-type {
  margin-top: 0;
}

h3,
h4 {
  position: relative;
  display: inline-block;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-left: 20px;
  padding-bottom: 4px;
  font-size: 1.05rem;
  border-bottom: none;
}

h3::after {
  content: "";
  position: absolute;
  left: 20px;
  /* 文字の左から線を開始 */
  bottom: 0;
  width: calc(100% - 20px + 24px);
  /* 文字より少し右まで伸ばす */
  border-bottom: 3px dotted var(--color-accent);
}


.h4-p {
  padding-left: 20px;
  padding-right: 30px;
}


/* margin bottom reset
------------------------------ */
p:has(+ :is(h3, h4, h5, h6)),
ul:has(+ :is(h3, h4, h5, h6)),
ol:has(+ :is(h3, h4, h5, h6)),
.attention:has(+ :is(h3, h4, h5, h6)),
.h3-ul:has(+ :is(h3, h4, h5, h6)) {
  margin-bottom: 0;
}


/* Text
------------------------------ */
p {
  margin: 0 16px 16px;
  font-size: 0.96rem;
  line-height: 1.6;
}

small {
  font-size: 0.8rem;
  color: var(--color-subtext);
}

/* Lists
------------------------------ */
ul {
  margin: 0 0 28px;
  padding-left: 1.8em;
  list-style: none;
}

li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 1.4em;
  padding-right: 2.0em;
  font-size: 0.96rem;
}

li::before {
  content: "●";
  position: absolute;
  left: 0.1em;
  top: 0.8em;

  font-size: 0.45em;
}


.h3-ul {
  margin: 0 0 28px;
  padding-left: 1.8em;
  list-style: none;
}

.bracket-list {
  margin: 0 0 28px;
  padding-left: 1em;
  list-style: none;
  counter-reset: bracket-counter;
}

.bracket-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 3.2em;
  font-size: 0.96rem;
  counter-increment: bracket-counter;
}

.bracket-list li::before {
  content: "【" counter(bracket-counter, zenkaku-decimal) "】";
  position: absolute;
  left: 0;
  top: 0;
  width: 3em;
  font-size: 0.96rem;
}

/* Notes
------------------------------ */
.note {
  margin: 18px 0 28px;
  padding: 18px 8px;
  background: #faf7ef;
  border: 1px solid #eadfca;
  border-radius: 10px;
}

.note p {
  margin-bottom: 10px;
  color: var(--color-subtext);
  font-size: 0.9rem;
  line-height: 1.3;
}

.note p:last-child {
  margin-bottom: 0;
}

/* Footer
------------------------------ */
footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

/*===============================================
●smart.css  画面の横幅が640pxまで
===============================================*/
@media screen and (max-width:640px) {
  body.special {
    line-height: 1.3;
  }

  #container {
    width: 100%;
    margin: 0;
    padding: 32px 20px;
    border-radius: 0;
    box-shadow: none;
  }

  h1 {
    margin-bottom: 32px;
    padding-bottom: 16px;
    text-align: center;
  }

  h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    padding-left: 12px;
  }

  h3 {
    margin-top: 28px;
  }

  ul {
    padding-left: 1.2em;
  }

  li,
  p {
    font-size: 0.94rem;
  }

  .note {
    padding: 16px;
  }
}