@charset "utf-8";

/* =====================================================
   Design Tokens  ―  メインサイト（index.html）と統一
===================================================== */
:root {
  --color-primary:      #0a3d6b;
  --color-primary-dark: #072d52;
  --color-accent:       #e8a020;
  --color-accent-dark:  #c8861a;
  --color-text:         #1a1a2e;
  --color-text-light:   #555566;
  --color-bg:           #f8f9fc;
  --color-white:        #ffffff;
  --color-border:       #d8dde8;
  --color-section-alt:  #eef2f8;
  --color-error:        #c53030;
  --color-error-bg:     #fff5f5;
  --font-base: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --shadow-sm: 0 2px 8px rgba(10,61,107,.08);
  --shadow-md: 0 4px 20px rgba(10,61,107,.12);
  --radius:    10px;
  --radius-lg: 18px;
  --transition: 0.22s ease;
}

/* =====================================================
   Reset & Base
===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  overflow-y: scroll;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.75;
  word-wrap: break-word;
  font-feature-settings: "pkna";
  -moz-font-feature-settings: "pkna";
  -webkit-font-feature-settings: "pkna";
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}
p   { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; vertical-align: middle; }
a   { color: var(--color-primary); }
a:hover { text-decoration: none; }
table { border-collapse: collapse; border-spacing: 0; }
th, td { font-weight: normal; text-align: left; }

/* =====================================================
   Form Elements
===================================================== */
input,
textarea,
select {
  margin: 0;
  font-family: var(--font-base);
  font-size: inherit;
}

/* テキスト系インプット */
input[type=text],
input[type=password],
input[type=email],
input[type=tel],
input[type=number],
input[type=url] {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-size: .93rem;
  font-family: var(--font-base);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=number]:focus,
input[type=url]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10,61,107,.1);
  background: var(--color-white);
}

/* テキストエリア */
textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-size: .93rem;
  font-family: var(--font-base);
  resize: vertical;
  min-height: 130px;
  overflow: auto;
  vertical-align: top;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10,61,107,.1);
}

/* セレクト */
select {
  width: 100%;
  padding: 10px 38px 10px 14px;
  background-color: var(--color-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a3d6b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-size: .93rem;
  font-family: var(--font-base);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10,61,107,.1);
}

/* ラジオ・チェックボックス */
input[type=radio],
input[type=checkbox] {
  accent-color: var(--color-primary);
  cursor: pointer;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 5px;
  flex-shrink: 0;
}

label { cursor: pointer; }

/* 送信ボタン */
input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 52px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: .06em;
  box-shadow: 0 4px 16px rgba(232,160,32,.35);
  appearance: none;
  -webkit-appearance: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

input[type=submit]:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(232,160,32,.45);
}

input[type=submit]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(232,160,32,.3);
}

input[type=button] {
  cursor: pointer;
  font-family: var(--font-base);
}

/* disabled */
input[type=submit]:disabled,
input[type=button]:disabled,
input[type=checkbox]:disabled {
  cursor: default;
  opacity: .55;
}

/* =====================================================
   Layout
===================================================== */
#wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 24px 20px 44px;
  background: var(--color-bg);
}

#main {
  max-width: 680px;
  margin: 0 auto;
}

/* =====================================================
   Section カード
===================================================== */
.section {
  margin-bottom: 28px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.section:last-child { margin-bottom: 0; }

/* セクションタイトル */
.section__ttl {
  padding: 18px 28px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary) 0%, #1056a0 100%);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section__body {
  padding: 28px;
}

/* =====================================================
   説明文
===================================================== */
#txt_explain {
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--color-section-alt);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  color: var(--color-text-light);
  font-size: .9rem;
  line-height: 1.8;
}
#txt_explain p { margin-bottom: 0; }

/* =====================================================
   エラー文
===================================================== */
.red_txt {
  color: var(--color-error);
  background: var(--color-error-bg);
  border: 1px solid #fc8181;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: .9rem;
  line-height: 1.7;
}
.red_txt:empty { display: none; }

/* =====================================================
   フォームテーブル
===================================================== */
.table {
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table tr {
  border-bottom: 1px solid var(--color-border);
}
.table tr:last-child {
  border-bottom: none;
}

/* ラベルセル */
.table th {
  padding: 15px 16px;
  background: var(--color-section-alt);
  color: var(--color-primary);
  font-weight: 700;
  font-size: .875rem;
  width: 34%;
  vertical-align: top;
  border-right: 1px solid var(--color-border);
  line-height: 1.6;
}

/* 入力セル */
.table td {
  padding: 12px 16px;
  background: var(--color-white);
  color: var(--color-text);
  font-size: .9rem;
  vertical-align: top;
}

/* 必須ラベル（mailformが生成する .hissu / span 等に対応） */
.table th .hissu,
.table th .required,
.table th span[class*="hissu"],
.table th span[class*="required"] {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e53e3e;
  color: #fff;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
}

/* 任意ラベル */
.table th .any,
.table th span[class*="any"] {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--color-text-light);
  color: #fff;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
}

/* =====================================================
   送信ボタンエリア
===================================================== */
.button_box {
  clear: both;
  text-align: center;
  padding: 20px 8px 4px;
}

/* =====================================================
   Block（block__ を使う場合に備えて）
===================================================== */
.block { margin-bottom: 14px; }
.block:last-child { margin-bottom: 0; }
.block__ttl {
  margin-bottom: 8px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* =====================================================
   汎用ユーティリティ（元ファイルとの後方互換）
===================================================== */
.left_txt  { text-align: left  !important; }
.tac       { text-align: center !important; }
.tar       { text-align: right  !important; }
.dispN     { display: none !important; }
.dispB     { display: block !important; }
.dispI     { display: inline !important; }
.dispIB    { display: inline-block !important; }
.fontBold  { font-weight: bold !important; }
.fontNormal{ font-weight: normal !important; }
.colorBlack{ color: #000; }
.fl { float: left  !important; }
.fr { float: right !important; }
.clear, .cf { clear: both; }
.clearfix::before, .clearfix::after,
.cf::before, .cf::after { content: " "; display: table; }
.clearfix::after, .cf::after { clear: both; }

/* マージン系（よく使うものだけ保持） */
.m0  { margin: 0 !important; }
.mt5 { margin-top: 5px !important; }
.mt10{ margin-top: 10px !important; }
.mt20{ margin-top: 20px !important; }
.mb5 { margin-bottom: 5px !important; }
.mb10{ margin-bottom: 10px !important; }
.mb20{ margin-bottom: 20px !important; }

/* =====================================================
   Responsive
===================================================== */
@media (max-width: 560px) {
  #wrapper {
    padding: 16px 12px 36px;
  }

  .section__ttl {
    padding: 15px 18px;
    font-size: .95rem;
  }

  .section__body {
    padding: 20px 16px;
  }

  /* スタック表示：th → td をブロックに */
  .table th,
  .table td {
    display: block;
    width: 100%;
    border-right: none;
  }
  .table th {
    padding: 11px 14px 5px;
    background: var(--color-section-alt);
    border-bottom: none;
    font-size: .85rem;
  }
  .table td {
    padding: 6px 14px 14px;
  }

  /* iOS ズーム防止（16px 以上） */
  input[type=text],
  input[type=password],
  input[type=email],
  input[type=tel],
  input[type=number],
  input[type=url],
  textarea,
  select {
    font-size: 16px;
  }

  input[type=submit] {
    width: 100%;
    padding: 14px 20px;
  }
}