/* Reset & base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    padding: 0;
    margin: 0;
  word-wrap: break-word;     /* 長い単語でも折り返す（旧指定） */
  overflow-wrap: break-word; /* 標準仕様 */
  word-break: normal;        /* 英語など通常の単語切れで改行 */
  white-space: normal;       /* 連続スペースを1つにして、改行を有効に */
  font-size: clamp(12px, 1.2vw, 15px); /* 画面幅に応じて文字サイズ調整 */
    
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  padding-bottom: 0.4rem;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
  border-left: 5px solid var(--green2);
  padding-left: 0.75rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text);
  border-left: 3px solid var(--green1);
  padding-left: 0.5rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text);
  padding-left: 0.3rem;
  border-left: 3px solid var(--white);
}

/* Layout */
.site-header {
    background-color: var(--blue3); /* 背景色つける */
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
 font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    display: inline-block;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 0.5px;
}

.nav a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
}

.nav a:hover {
    text-decoration: underline;
}

.layout2 .site-main {
    padding: 2rem;
    min-height:95vh;
    max-width:1000px;
    margin-left:auto;
    margin-right: auto;
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-style: normal;
}
.layout3 .site-main {
    min-height:95vh;
    max-width:768px;
    margin-left:auto;
    margin-right: auto;
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-style: normal;
}
.listlinkArea ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.listlinkArea li {
    flex: 1 1 200px; /* 最小200pxで、余裕あれば広がる */
    max-width: 300px; /* 最大でもこれ以上は広がらない */
}

.listlinkArea li a {
    display: block;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: background-color 0.2s, box-shadow 0.2s;
}

.listlinkArea li a:hover {
    background-color: #e0f7e9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.site-footer {
    background: #eee;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

select {
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--yellow2);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background-color: #fff;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  text-align: right;
}

input[type="number"],input[type="text"] {
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--yellow2);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background-color: #fff;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 80px;
  text-align: right;
}

input[type="number"]:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 3px rgba(103, 150, 235, 0.2);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: var(--white);
  border-radius: 4px;
  margin-top: 1rem;
  outline: none;
}

/* スライダーのバー部分 */
input[type="range"]::-webkit-slider-runnable-track {
  height: 15px;
  background: var(--blue2);
  border-radius: 4px;
}

/* つまみ（ハンドル） */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 36px;
  height: 36px;
  background-color: var(--yellow2); /* 色をここで指定 */
  -webkit-mask-image: url('/assets/img/tool/gear.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  mask-image: url('/assets/img/tool/gear.svg');
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  border: none;
  cursor: pointer;
  margin-top: -10px; /* ← ここで上方向に調整 */
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--yellow2);
}

/* Firefox対応 */
input[type="range"]::-moz-range-track {
  height: 15px;
  background: var(--blue2);
  border-radius: 4px;
}

input[type="range"]::-moz-range-thumb {
  width: 36px;
  height: 36px;
  background-color: var(--yellow2);
  mask-image: url('/assets/img/tool/gear.svg');
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  border: none;
  cursor: pointer;
}
table td, table th {
  word-wrap: break-word;     /* 長い単語の折り返し */
  overflow-wrap: break-word; /* 標準指定 */
  white-space: normal;       /* 折り返しを有効に */
  word-break: break-word;    /* 単語途中の折り返し（必要に応じて） */
}
/* Responsive */
@media (max-width: 768px) {
    .site-main {
    padding: 0.5rem;
    min-height:95vh;
    max-width:1000px;
    margin-left:auto;
    margin-right: auto;
}
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        margin-top: 0.5rem;
    }

    .nav a {
        display: block;
        margin: 0.5rem 0;
    }
}