/* ===== 共通レイアウト ===== */
body {
  font-family: sans-serif;
  line-height: 1.6;
  padding: 1em;
  background: #f9f9f9;
}

h1 {
  font-size: 1.2em;
  text-align: center;
}

form {
  background: #fff;
  padding: 2em;
  border-radius: 8px;
  max-width: 600px;
  margin: auto;
}

/* ===== 入力エリア全体 ===== */
.form-group {
  margin-bottom: 1em;
}

label {
  display: block;
/*  margin-bottom: 0.3em;*/
  font-weight: bold;
}

.form-group label {
  font-weight: bold;
}

.required {
  display: inline-block;
  background-color: red;
  color: white;
  font-size: 0.7em;
  padding: 0.1em 0.5em;
  border-radius: 4px;
  margin-left: 0.5em;
  vertical-align: middle;
}

/* ===== 入力フィールド共通 ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.6em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ===== セレクトボックスのスタイル調整（macOS対応含む） ===== */
select {
  height: 2em;
  padding: 0.4em;
  font-size: 1em;
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ===== 2カラム用行スタイル ===== */
.row {
  display: flex;
  gap: 1em;
}

.row input {
  flex: 1;
  min-width: 0;
}

/* ===== チェック・ラジオ形式 ===== */
.form-check,
.form-check-group {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  line-height: 1.1;
  margin-top: 0.2em;
}

.form-check label,
.form-check-group label,
.form-check span {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-weight: normal;
  margin-bottom: 0.05em;
}

.form-check-group label {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.2;
}

/* ===== ボタン ===== */
.confirm-btn {
  background-color: #005bac;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.8em 2em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.confirm-btn:hover {
  background-color: #004b91;
}

.confirm-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* ===== 応募作品数（カテゴリ別） ===== */
.art-count-group {
  margin-bottom: 2em;
}

.group-label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.art-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1em;
}

.art-label-wrapper {
  flex: 0 0 160px;
  padding-top: 0.4em;
}

.art-label {
  font-weight: normal !important;
  font-size: 1em;
  line-height: 1.4;
}

.art-note {
  font-size: 0.8em;
  color: #555;
  white-space: nowrap;
}

.art-input-group {
  display: flex;
  align-items: center;
}

.art-input {
  width: 80px;
  padding: 6px;
  margin-right: 8px;
}

.art-unit {
  display: inline-block;
  margin-left: 4px;
}


/*作品一覧*/
table.borderTable01{
	border-collapse:collapse;
	width:100%;
	margin:0 0 35px;
}
table.borderTable01 td,table.borderTable01 th{ 
	font-size:	13px; 
	border:1px solid #666;
	color:#333;
	padding:10px;
	line-height:150%;
	vertical-align:top;
}
table.borderTable01 th{
	font-size:	13px; 
	text-align:left;
	font-weight: bold;
	width:30%;
	background:#efefef;
	
}



/* ===== スマホ対応（レスポンシブ） ===== */
@media (max-width: 600px) {
  .row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .row input {
    width: 100%;
  }
}


/* PCでは1行 スマホでは折り返し */
.nowrap-pc {
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .nowrap-pc {
    white-space: normal;
  }
}


/* h1タイトル */
/* 共通スタイル */
.title-main {
  font-weight: bold;
}
.title-sub {
  font-weight: bold;
}

/* PC表示（768px以上）ではコロンを間に入れる */
@media screen and (min-width: 768px) {
  .title-main::after {
    content: "：";
    margin: 0 0.25em; /* コロン前後に少し余白 */
  }
}

/* スマホ表示（767px以下）では改行 */
@media screen and (max-width: 767px) {
  .title-sub {
    display: block; /* 強制改行 */
  }
}




/* 作品登録票ダウンロード行だけスマホは縦並び＆整形 */
@media (max-width: 600px) {
  /* 作品登録票ダウンロード行だけ対象 */
  .borderTable01 tr:has(.pdfFrom) th,
  .borderTable01 tr:has(.pdfFrom) td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .borderTable01 tr:has(.pdfFrom) th br { display: none; }

  .borderTable01 tr:has(.pdfFrom) th {
    position: relative;       /* ← これ必須 */
    white-space: nowrap;
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ccc;
    /* border-right は効かない環境があるので擬似要素で描画 */
  }
  .borderTable01 tr:has(.pdfFrom) th::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: #ccc;         /* 既存の枠線色に合わせて調整 */
  }

  .borderTable01 tr:has(.pdfFrom) .pdfBtn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    white-space: nowrap;
    padding-inline: clamp(12px, 4vw, 24px);
    font-size: clamp(14px, 4vw, 16px);
    box-sizing: border-box;
  }
}

/* ===== 入力フォーム全体のフォントサイズ調整（macOS Safari対応含む） ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
select,
textarea {
  font-size: 1rem;
}
