:root {
  --color-teal-50: #f0fdfa;
  --color-teal-100: #ccfbf1;
  --color-teal-200: #99f6e4;
  --color-teal-300: #5eead4;
  --color-teal-400: #2dd4bf;
  --color-teal-500: #14b8a6;
  --color-teal-600: #0d9488;
  --color-teal-700: #0f766e;
  --color-teal-800: #115e59;
  --color-teal-900: #134e4a;
  
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  --font-sans: 'Noto Sans JP', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
}

body {
    margin: 0;
}

.container {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
  color: #555;
}

input[type="text"],
input[type="email"],
input[type="file"],
textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group ul {
  display: flex;
  list-style: none;
  padding-left: 0;
  flex-wrap: wrap;  /* 折り返しを有効にする */
  gap: 12px 24px;    /* アイテム間の余白（縦 横） */
}

.form-group li {
  width: calc(100% / 3 - 24px);
  margin-bottom: 5px;
}
div#id_contact_type {
  display: flex;
}
div#id_user_type {
  display: flex;
}

button[type="submit"] {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  width: 20%;
  display: block;          /* ← インラインをブロックに */
  margin: 20px auto 0;     /* ← 上:20px, 左右:auto（中央揃え） */
  width: 200px;            /* 任意サイズ（必要に応じて） */
  text-align: center;
}

button[type="submit"]:hover {
  background-color: #45a049;
}

.error {
  color: red;
  font-size: 0.9em;
  margin-top: 4px;
}

.agree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center; 
}

.agree-row label {
  margin: 0;
  font-weight: normal;
}

.agree-wrapper {
  text-align: center;
}

.agree-description {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 20px;
    margin: 20px;
  }

  h1 {
    font-size: 22px;
  }
}
/* 共通項目↓ */

.accent {
  color: var(--color-teal-600);
  position: relative;
  display: inline-block;
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
}

.accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--color-teal-200);
  z-index: -1;
  border-radius: var(--radius-sm);
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}

.main-container{
  padding-top: 80px;
  margin: auto;
  padding-bottom: 40px;
}
.hero-small {
  padding: 5rem 0 5rem;
  background: linear-gradient(135deg, #cdfad3, white, #cdfad3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-small::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, #b9fcb8 0%, transparent 70%);
  opacity: 0.4;
  z-index: 0;
}

.hero-small::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, white, transparent);
  z-index: 1;
}

.sub-container{
  max-width: 1200px;
  margin: auto;
}

.main-news-header {
    text-align: center;
    position: relative;
}

.main-news-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.news-large {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 8rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    pointer-events: none;
}

.content-wrapper {
    background: url(../images/noise_pc.png) repeat left top;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    gap: 40px;
    max-width: 1300px;
    margin: auto;
}
/* nav共通化 */
nav#Nav {
		left: 0;
		z-index: 10;
		width: 100%;
		height: 80px;
		overflow: hidden;
		position: absolute;
		background-color: #395246
}

nav#Nav.fixed {
		top: 0;
		left: 0;
		z-index: 10;
		position: fixed;
		overflow: hidden
}

nav#Nav.fixed .navList {
		max-width: 760px
}

nav#Nav.fixed .lineLogo {
		opacity: 1
}

nav#Nav .lineLogo {
		top: 0;
		left: 20px;
		height: 80px;
		z-index: 5;
		position: absolute;
		-webkit-transition: 0.5s ease-in-out;
		-o-transition: 0.5s ease-in-out;
		transition: 0.5s ease-in-out
}

nav#Nav .lineLogo img {
		margin-top: 22px;
		height: calc(100% - 44px)
}

nav#Nav .navList {
		width: 100%;
		margin: 0 auto;
		max-width: 870px;
		text-align: center;
		-webkit-transition: 1s ease-in-out;
		-o-transition: 1s ease-in-out;
		transition: 1s ease-in-out;
    font-weight: 600;
}

nav#Nav .navList a.list {
		width: 12%;
		cursor: pointer;
		display: inline-block;
		-webkit-transition: 1s ease-in-out;
		-o-transition: 1s ease-in-out;
		transition: 1s ease-in-out;
    text-decoration: none;
}

nav#Nav .navList a.list .btn0 {
  color: white;
  display: block;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 2px;
  font-family: 'GothamM';
  padding: 34px 0px;
  text-align: center;
  position: relative;
}
/* アンダーバーの基本状態 */
.navList .list .btn0::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 25px;
  width: 0;                /* 初期は幅ゼロ */
  height: 2px;             /* 線の太さ */
  background-color: #cabd9d;
  transition: width 0.3s ease; /* アニメーション */
}

/* ホバー時にバーを伸ばす */
.navList .list:hover .btn0::after {
  width: 100%;             /* 親要素いっぱいに広げる */
}


nav#Nav .navList a.list.active .btn0,
nav#Nav .navList a.list:hover .btn0 {
		color: #c9bc9c
}

nav#Nav .media {
		top: 0;
		right: 25px;
		height: 100%;
		position: absolute
}

nav#Nav .media a {
		width: 40px;
		height: 100%;
		margin: 0 15px;
		cursor: pointer;
		display: inline-block;
		background-position: center;
		-webkit-transition: 0.5s ease-in-out;
		-o-transition: 0.5s ease-in-out;
		transition: 0.5s ease-in-out
}

nav#Nav .media a.fb {
		background-size: auto 18px;
		background-image: url("../images/FacebookIcon.png")
}

nav#Nav .media a.instergram {
		background-size: 18px auto;
		background-image: url("../images/instagramIcon.png");
    background-repeat: no-repeat;
}

nav#Nav .media a.twitter {
		background-size: 18px auto;
		background-image: url("../images/twitter.png")
}

nav#Nav .media a:hover {
		opacity: 0.5
}

/* footer共通化 */
footer {
		color: #cabc9d;
		font-size: 12px;
		text-align: center;
		padding: 50px 0 60px 0;
		background-color: #395246
}

footer .smallCage {
	max-width: 800px;
	text-align: center;
	margin: 40px auto;
	padding: 0 0 40px;
	border-bottom: 1px solid rgba(202, 188, 157, .3);
}
footer .smallCage a {
	color: #cabc9d;
	margin: 0 30px;
}

.my-4{
  margin-bottom: 5rem;
}
/* 共通項目↑ */

/* モーダル */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.popup-content {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
}
.popup-content button {
  margin-top: 12px;
}

/* 共通項目↓ */

.accent {
  color: var(--color-teal-600);
  position: relative;
  display: inline-block;
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
}

.accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--color-teal-200);
  z-index: -1;
  border-radius: var(--radius-sm);
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}

.main-container{
  padding-top: 80px;
  margin: auto;
  padding-bottom: 40px;
}
.hero-small {
  padding: 5rem 0 5rem;
  background: linear-gradient(135deg, #cdfad3, white, #cdfad3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-small::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, #b9fcb8 0%, transparent 70%);
  opacity: 0.4;
  z-index: 0;
}

.hero-small::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, white, transparent);
  z-index: 1;
}

.sub-container{
  max-width: 1200px;
  margin: auto;
}

.news-header {
    text-align: center;
    position: relative;
}

.news-header h1 {
    font-size: 2.0rem;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    font-family: "Roboto", "M PLUS Rounded 1c", sans-serif;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.news-large {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 8rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    pointer-events: none;
}

.content-wrapper {
    background: url(../images/noise_pc.png) repeat left top;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    gap: 40px;
    max-width: 1300px;
    margin: auto;
}
/* nav共通化 */
nav#Nav {
		left: 0;
		z-index: 10;
		width: 100%;
		height: 80px;
		overflow: hidden;
		position: absolute;
		background-color: #395246
}

nav#Nav.fixed {
		top: 0;
		left: 0;
		z-index: 10;
		position: fixed;
		overflow: hidden
}

nav#Nav.fixed .navList {
		max-width: 760px
}

nav#Nav.fixed .lineLogo {
		opacity: 1
}

nav#Nav .lineLogo {
		top: 0;
		left: 20px;
		height: 80px;
		z-index: 5;
		position: absolute;
		-webkit-transition: 0.5s ease-in-out;
		-o-transition: 0.5s ease-in-out;
		transition: 0.5s ease-in-out
}

nav#Nav .lineLogo img {
		margin-top: 22px;
		height: calc(100% - 44px)
}

nav#Nav .navList {
		width: 100%;
		margin: 0 auto;
		max-width: 870px;
		text-align: center;
		-webkit-transition: 1s ease-in-out;
		-o-transition: 1s ease-in-out;
		transition: 1s ease-in-out;
    font-weight: 600;
}

nav#Nav .navList a.list {
		width: 12%;
		cursor: pointer;
		display: inline-block;
		-webkit-transition: 1s ease-in-out;
		-o-transition: 1s ease-in-out;
		transition: 1s ease-in-out
}

nav#Nav .navList a.list .btn0 {
		color: white;
		display: block;
		cursor: pointer;
		font-size: 12px;
		letter-spacing: 2px;
		font-family: 'GothamM';
		padding: 34px 0px;
		text-align: center;
    position: relative;
}
/* アンダーバーの基本状態 */
.navList .list .btn0::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 25px;
  width: 0;                /* 初期は幅ゼロ */
  height: 2px;             /* 線の太さ */
  background-color: #cabd9d;
  transition: width 0.3s ease; /* アニメーション */
}

/* ホバー時にバーを伸ばす */
.navList .list:hover .btn0::after {
  width: 100%;             /* 親要素いっぱいに広げる */
}

nav#Nav .navList a.list.active .btn0,
nav#Nav .navList a.list:hover .btn0 {
		color: #c9bc9c
}

nav#Nav .media {
		top: 0;
		right: 25px;
		height: 100%;
		position: absolute
}

nav#Nav .media a {
		width: 40px;
		height: 100%;
		margin: 0 15px;
		cursor: pointer;
		display: inline-block;
		background-position: center;
		-webkit-transition: 0.5s ease-in-out;
		-o-transition: 0.5s ease-in-out;
		transition: 0.5s ease-in-out
}

nav#Nav .media a.fb {
		background-size: auto 18px;
		background-image: url("../images/FacebookIcon.png")
}

nav#Nav .media a.instergram {
		background-size: 18px auto;
		background-image: url("../images/instagramIcon.png");
    background-repeat: no-repeat;
}

nav#Nav .media a.twitter {
		background-size: 18px auto;
		background-image: url("../images/twitter.png")
}

nav#Nav .media a:hover {
		opacity: 0.5
}

/* footer共通化 */
footer {
		color: #cabc9d;
		font-size: 12px;
		text-align: center;
		padding-bottom: 10px;
		background-color: #395246
}

footer .smallCage {
	text-align: center;
	margin: 20px 0 10px 0;
	padding-top: 10px;
    font-family: "Roboto", "M PLUS Rounded 1c", sans-serif;
}
footer .smallCage a {
	color: #cabc9d;
	margin: 0 30px;
  text-decoration: none;
}
.my-4{
  margin-bottom: 5rem;
}
@media only screen and (min-width:641px) and (max-width:1025px) {
  .main-container{
    padding-bottom:0;
    padding-top: 60px;
  }
  nav#Nav {
		height: 60px;
	}
  nav#Nav .navList {
      max-width: 700px
  }
  nav#Nav .navList a.list {
      width: auto
  }
  nav#Nav .navList a.list .btn0 {
      padding: 34px 24px
  }
  nav#Nav.fixed .navList {
      max-width: 600px
  }

  nav#Nav {
      top: 0;
      position: fixed;
      -webkit-transition: 1s ease-in-out;
      -o-transition: 1s ease-in-out;
      transition: 1s ease-in-out;
      -webkit-box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.2);
      -moz-box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.2);
      box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.2)
  }
  nav#Nav .lineLogo {
      opacity: 1;
      top: -8px;
  }
  nav#Nav .media,
  nav#Nav .navList {
      opacity: 0;
      pointer-events: none
  }
  nav#Nav .navList {
      padding-top: 11%
  }
  nav#Nav .navList a.list {
      width: 100%;
      display: block
  }
  nav#Nav .navList a.list .btn0 {
      font-size: 20px;
      padding: 15px 40px
  }
  nav#Nav .media {
      right: 0;
      width: 100%;
      height: 80px;
      position: relative;
      text-align: center;
      -webkit-transition: 0.8s ease-in-out;
      -o-transition: 0.8s ease-in-out;
      transition: 0.8s ease-in-out
  }
  nav#Nav .media a {
      margin: 0 15px
  }
  nav#Nav .menu {
      top: 22px;
      right: 30px;
      width: 30px;
      position: absolute
  }
  nav#Nav .menu .bar {
      height: 2px;
      width: 100%;
      background-color: #c9bc9d;
      -webkit-transition: 0.3s ease-in-out;
      -o-transition: 0.3s ease-in-out;
      transition: 0.3s ease-in-out
  }
  nav#Nav .menu .bar.middle {
      margin: 7px 0
  }
  nav#Nav.fixed .lineLogo {
      opacity: 1
  }
  nav#Nav.openMenu {
    height: 100%;
    z-index: 3;
  }
  nav#Nav.openMenu .media,
  nav#Nav.openMenu .navList {
      opacity: 1;
      display: block;
      pointer-events: auto
  }
  nav#Nav.openMenu .menu .bar {
      height: 2px;
      width: 100%;
      background-color: #c9bc9d
  }
  nav#Nav.openMenu .menu .bar.top {
      width: 34px;
      position: relative;
      -webkit-transform: rotate(31deg);
      -ms-transform: rotate(31deg);
      transform: rotate(31deg);
      -webkit-transform-origin: 0px 1px;
      -ms-transform-origin: 0px 1px;
      transform-origin: 0px 1px
  }
  nav#Nav.openMenu .menu .bar.middle {
      width: 0;
      margin: 7px 0
  }
  nav#Nav.openMenu .menu .bar.bottom {
      position: relative;
      width: 34px;
      -webkit-transform: rotate(-31deg);
      -ms-transform: rotate(-31deg);
      transform: rotate(-31deg);
      -webkit-transform-origin: 0px 1px;
      -ms-transform-origin: 0px 1px;
      transform-origin: 0px 1px
  }
  footer .smallCage{
    width: 100%;
    margin: 0;
    padding: 10px;
    justify-content: space-around; /* 中央寄せや左右バランス調整に応じて変更可 */
  }
  footer .smallCage a {
    margin: 0 12px;
  }
  .hero-description {
    width: 80%;
    margin: 0 auto;
  }
  .scale-110 {
    --tw-scale-x: 1.2;
    --tw-scale-y: 1.2;
  }
  img.transform.scale-110.md\:scale-100.mx-auto.w-howto.h-auto.object-cover.rounded-lg
  {
    margin: 30px 0;
  }
  svg.w-8.h-8.text-gray-500.animate-bounce {
    margin-top: 45px;
  }
  .my-4 {
    margin-bottom: 30px;
  }
  .container {
    padding: 0;
  }
  .notice-section {
    padding-top: 0;
  }
  .notice-title {
    margin-bottom: 0;
  }
}

/* 共通項目↑ */

/* ========== Mobile (≤640px) 専用 ========== */
@media (max-width: 640px) {
  .main-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .content-wrapper form .form-group {
    margin-bottom: 28px;
  }

  #id_contact_type > div,
  #id_user_type > div {
    flex: 0 1 calc(50% - 10px);  /* 2列 */
  }

  /* ラジオを少し大きく・タップしやすく */
  #id_contact_type input[type="radio"],
  #id_user_type input[type="radio"] {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }

  /* ラベルは画像通り “バッジ + 項目名” を縦方向に余白をとって表示 */
  .content-wrapper form label {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .content-wrapper form input[type="text"],
  .content-wrapper form input[type="email"],
  .content-wrapper form input[type="tel"],
  .content-wrapper form input[type="file"],
  .content-wrapper form select,
  .content-wrapper form textarea {
    font-size: 16px;      /* モバイルで拡大防止 */
    padding: 14px 16px;   /* 画像に近い余白 */
    border-radius: 6px;
  }

  /* 画像添付（3つ）は縦に間隔をつける */
  .content-wrapper form input[type="file"] {
    margin-bottom: 10px;
  }

  /* 同意説明は少し小さめに */
  .content-wrapper .agree-wrapper .agree-description {
    font-size: 13px;
  }

  /* 送信ボタンは全幅 */
  .content-wrapper form button[type="submit"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }
}

/* ===== アクセシビリティ向上（フォーカス） ===== */
.content-wrapper form input:focus,
.content-wrapper form textarea:focus,
.content-wrapper form select:focus {
  outline: 2px solid #2563eb33; /* blue focus with transparency */
  border-color: #2563eb;        /* blue-600 */
}

/* ===== 送信完了ポップアップの最低限の見た目（既存HTMLに対応） ===== */
.popup {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.4);
  z-index: 50;
}
.popup .popup-content {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  max-width: 90vw;
  text-align: center;
}
.popup .popup-content button {
  margin-top: 12px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}