@charset "UTF-8";

/* body {
    display: block;
    margin: 10px 50px 10px 50px;
    padding: 5px;
} */
html {
  scroll-behavior: smooth;
}

section {
    display: block;
    padding: 60px 0;
    width: 1200px;
    align-items: center;
}

.inner {
    margin: 50px auto;
    padding: 10px;
    max-width: 1200px;
}

h1 {
    margin-bottom: 60px;
    font-size: 4rem;
    color: #333;
    font-family: "sans-serif";
    font-weight: 400;
    font-style: normal;
    text-align: center;
}
ul {
    list-style: none;
}

.anchor-list{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    row-gap: 10px;
    width: 1200px;
}
nav {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}
.anchor-list .anchor-link {
  display: inline-block;
  padding: 10px;
  width: 100%;
  color: #4d5156;
  text-align: center;
  text-decoration: none;
  border: 2px solid #ccc;
  border-radius: 5px;
  transition: all .6s ease;
}
.anchor-list .anchor-link:hover{
    background-color: #646363;
    color: #eff0ee;
}

h2 {
    display: block;
    font-size: 1.8rem;
    color: #333;
    font-weight: 400;
    font-style: normal;
    margin: 0 auto;
    margin-bottom: 60px;
    width: 1200px;
    text-align: left;
}

p {
  display: block;
  color: #333;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  margin-top: 20px;
  letter-spacing: 0.2em;
  text-align: left;
  padding: 10px 0 20px 0;
}

span {
  display: inline-block;
  padding-bottom: 20px;
}

p.parts-name{
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
}


details.sauce {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f9f9f9;
    overflow-x: scroll;
}


code {
    font-family: monospace;
}
pre {
    font-size: 1.3rem;
}
pre {
    display: block;
    font-family: monospace;
    unicode-bidi: isolate;
    white-space: pre;
    margin-block: 1em 1em;
    margin-inline: 0px;
}
/* --------------------------------------------------------------------------------------------------- */
.comment {
    background-color: #f0f2ff;
    padding: 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.accordion-wrap {
    display: grid;
    grid-auto-rows: min-content;
    row-gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}

summary.sum-container{
    display: block;
    list-style: none;
}
summary.sum-container {
  display: grid;  /* 初期値の display: list-item 以外を指定したので、デフォルトの三角形アイコンは非表示になる */
  grid-template-columns:  1fr 24px;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  padding: 16px 24px;
  border: 1px solid #333;
  font-weight: bold;
  color: #333;
  /* Safariで表示されるデフォルトの三角形アイコンを消します */
  &::-webkit-details-marker {
    display: none;
  }
}
.icon {
  display: block;
  position: relative;
  width: 24px;
  transform-origin: center 43%;
  transition: transform 0.4s;
  /* アイコンのバーのスタイル */
  &::before, &::after {
    content: "";
    position: absolute;
    display: block;
    width: 15px;
    height: 3px;
    background-color: #7050ff;
  }
  &::before {
    left: 0;
    transform: rotate(45deg);
  }
  &::after {
    right: 0;
    transform: rotate(-45deg);
  }
}
/* アコーディオンが開いた時のスタイル */
details[open] .icon {
  transform: rotate(180deg);
}

details.accordion {
  /* --------アコーディオンの中身のスタイル-------- */
  &::details-content {
    transition:
      height 0.4s,
      opacity 0.4s,
      content-visibility 0.4s allow-discrete;
    height: 0;
    opacity: 0;
    overflow: clip;
    background-color: #f0f2ff;
  }

  /* --------アコーディオンの中身のスタイル（開いている時）-------- */
  &[open]::details-content {
    opacity: 1;
  }

  /* アコーディオンが開いた時のスタイル */
  &[open] .icon {
    transform: rotate(180deg);
  }
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords; /* height:0（数値型） → auto（文字型） のアニメーションを可能にするための指定 */
  }
  details[open]::details-content {
    height: auto;
  }
}

/* height:0→autoへのアニメーションが対応していない場合は、固定値にアニメーションさせる */
@supports not (interpolate-size: allow-keywords) {
  details[open]::details-content {
    height: 150px;
    overflow-y: scroll;
  }
}
/*--------------------------------------------------------------------------*/

.contents-wrap {
    margin-top: 70px ;
}

.copy-btn{
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
}

.copy-btn{
  display: inline-block; /* ボタンを横並びにする */
  border: none; /* 枠線をなくす */
  border-radius: 5px; /* 角丸をつける */
  padding: 10px 15px; /* ボタンの内側の余白 */
  margin: 5px; /* ボタン同士の余白 */
  background-color: #5a5a5a; /* ボタンの背景色 */
  color:#eff0ee; /* ボタンの文字色 */
  text-align: center; /* ボタンのテキストを中央揃えにする */
  text-decoration: none; /* テキストに下線をつけない */
  font-size: 15px; /* テキストのフォントサイズ */
  cursor: pointer; /* マウスポインタを変更する */
  transition: background-color 0.3s, color 0.3s; /* 色の変化を滑らかにする */
}

.copy-btn:hover{
    background-color: #2e2e2e;
    color: #eff0ee;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card-list .card {
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
}

.card-list .card  .dummy-img {
    height: 200px;
    background-color: #ccc;
}
.card-list .card  .card-title {
    margin-top: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0;
    color: #4d5156;
}
.card-list .card  .card-text {
    margin-top: 10px;
    font-size: 1.0rem;
    padding: 0;
    color: #4d5156;
}
.card-list.type02 .card{
    position: relative;
    overflow: hidden;
}
.card-list.type02 .card::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* o.3s を 0.3s に修正 */
    transition: background-color 0.3s, color 0.3s;
    background-color: transparent;
}
.card-list.type02 .card:hover::after {
 background-color: #333
}

.card-list.type02 .card:hover .card-title,
.card-list.type02 .card:hover .card-text {
    color: #ffffff; /* ホバーで少し濃い色にするなど */
}