html {
  scroll-behavior: smooth;
}

body {
  font-family: sans-serif;
  margin: 2em;
  background: #f9f9f9;
  line-height: 1.6;
}

h1 {
  text-align: center;
  margin-bottom: 1em;
}

h2 {
  margin-top: 2em;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.2em;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 1em;
}

.gallery a {
  width: calc(25% - 1em);
  display: block;
}

.gallery img {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.gallery.single {
  display: flex;
  justify-content: center;
}

.gallery.single a {
  display: block;
  max-width: 600px;
  width: 100%;
}

.gallery.single img {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.links {
  margin-top: 1em;
  padding-left: 1em;
}

.links li {
  margin-bottom: 0.5em;
}

@media (max-width: 768px) {
  .gallery img {
    width: calc(50% - 1em);
  }
}

@media (max-width: 480px) {
  .gallery img {
    width: 100%;
  }
}

.text-large {
  font-size: 1.2em;
}

.text-xlarge {
  font-size: 1.4em;
}

strong {
  color: #c00; /* 赤色にすることで、より注意を引く */
  font-weight: bold;
}


/* フロー全体のコンテナ */
.flow-diagram-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
    font-family: sans-serif;
    padding: 2em;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

/* 各ステップの箱 */
.flow-step-line {
    padding: 0.5em 1em;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
}

/* 矢印のコンテナ */
.flow-arrow-line {
    flex-grow: 1;
    position: relative; /* ラベルを配置する基準 */
    height: 2px;
    background-color: #555;
    min-width: 50px;
    margin: 0 0.5em;
}

/* 矢印の先端部分 (三角形) */
.flow-arrow-line::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #555;
}

/* ★★★ ここからが修正箇所 ★★★ */
/* 矢印の上のラベル（以前の ::before指定から変更）*/
.arrow-label {
    display: block;
    position: absolute;
    top: -.4em;
    left: 50%;
    transform: translate(-50%, -100%); /* 位置を微調整 */
    background-color: transparent;
    /* background-color: #fff; */
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
    color: #c0392b;
    white-space: nowrap;
    text-align: center;
}
