* {
  box-sizing: border-box;
  font-family: "Roboto", "Arial", "Yu Gothic", "游ゴシック体", YuGothic,
    ”游ゴシック Medium”, “Yu Gothic Medium”, "Hiragino Kaku Gothic ProN",
    "ヒラギノ角ゴ ProN W3", メイリオ, sans-serif;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  width: 100%;
  /* max-width: 1440px; */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}
.flex {
  display: flex;
}
.col {
  flex-direction: column;
}
.a-c {
  align-items: center;
}
.a-b {
  align-items: baseline;
}
.j-c {
  justify-content: center;
}
.j-b {
  justify-content: space-between;
}
.j-a {
  justify-content: space-around;
}
.container {
  width: 960px;
}
.sentence-space {
  display: inline-block;
  width: 20px;
}
a {
  text-decoration: none;
}
/* ==== Header ==== */

/* ==== Hamburger Menu === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: absolute;
  right: 40rem;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 4px;
  background-color: #222;
  border-radius: 2px;
}

/* Sliding menu styles */
.ham_menu {
  position: fixed;
  top: 0;
  right: -600rem;
  width: 265px;
  height: 100%;
  background-color: white;
  border-left: 1px solid #ccc;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: right 0.3s ease-in-out;
  z-index: 20;
}

.ham_menu.show {
  right: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  left: 10px;
  color: #000;
}

.menu-items {
  margin-top: 50px;
}

.menu-items a {
  margin: 15px 0;
  font-size: 16px;
  font-weight: bold;
}
/* ========== */
header {
  width: 100%;
}
header .site_name {
  width: 100%;
  /* max-width: 1440px; */
  height: 27px;
  background-color: #000000;
}
header .site_name p {
  font-size: 14px;
  color: #ffffff;
  font-weight: bold;
}
header .menu_part .num {
  gap: 12px;
}
header .menu_part .num_s {
  width: 100%;
  height: 60px;
  background-color: #eee;
}
header .num_s .data {
  gap: 3px;
}
header .num_s .data p {
  font-size: 12px;
  color: #4d4d4d;
}
header .num_s .data p:nth-of-type(2) {
  font-size: 26px;
}
header .search_c {
  gap: 10px;
}
header .search {
  width: 226px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: #ffffff;
}
header .search_c .s_btn {
  height: 40px;
  padding-inline: 8px;
  border: none;
  background-color: #6782ae;
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
}
header .search_c input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-size: 12px;
  color: #4d4d4d;
  background-color: #ffffff;
  outline: none;
}
header .search_c .search button img {
  width: 20px;
  height: auto;
}
header .search_c .search button {
  background-color: #5b7bb0;
  border: none;
  width: 50px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  cursor: pointer;
}
header .menuBar .t_part {
  position: relative;
  padding-top: 47px;
  padding-bottom: 22px;
  margin-bottom: 12px;
}
header .menuBar .ribbon {
  background: url("../img/ribbon.png") no-repeat center / cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 91px;
  height: 116px;
  padding-top: 16px;
}
header .menuBar .ribbon .heart {
  font-size: 18px;
  margin-bottom: 4px;
  width: 20px;
  height: auto;
}
header .menuBar .ribbon .count {
  font-size: 16px;
  margin-bottom: 2px;
  color: #ffffff;
}
header .menuBar .ribbon .label {
  font-size: 14px;
  color: #ffffff;
}

header .menuBar .title {
  width: 225px;
  height: auto;
}
header .menu_list {
  width: 100%;
  margin-bottom: 20px;
}
header .menu_list .menu {
  border: 1px solid #000;
  width: 111px;
  height: 67px;
  color: #000;
  font-size: 13px;
  text-align: center;
}
header .menu_list .menu:hover {
  background-color: #000;
  color: #ffffff;
}
header .menuBar .ad {
  width: 100%;
  font-size: 12px;
}
header .menuBar .ad .ad_img {
  width: 100%;
  height: auto;
}
header .menuBar .ad p {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
}
header .menuBar .ad .ad_more {
  width: 100%;
  height: fit-content;
  margin-top: -3px;
  justify-content: right;
  padding-right: 40rem;
  background-color: #86a9c0;
}
header .menuBar .ad .ad_more img {
  height: 25px;
}
header .adSp {
  width: 100%;
  height: auto;
  display: none;
}

/* ============ Footer =============== */
footer {
  width: 100%;
}
footer .container {
  width: 100%;
  background-color: #f2f2f2;
  padding-top: 119px;
  padding-inline: 64px;
}
footer .top {
  margin-bottom: 50px;
}
footer .top img {
  width: 250px;
  height: auto;
}
footer .snsG {
  gap: 15px;
}
footer .snsG img {
  width: 50px;
  height: auto;
}
footer .menuG {
  gap: 15px;
  padding-bottom: 42px;
}
footer .sectionG {
  width: 20%;
}
footer .section .sectionT {
  font-size: 16px;
  color: #737373;
  font-weight: bold;
  margin-bottom: 14px;
}
footer .section .sContents {
  padding-left: 5px;
}
footer .section .sContent:nth-of-type(1) {
  margin-bottom: 14px;
}
footer .section .sContent .contentT {
  font-size: 15px;
  color: #737373;
  font-weight: bold;
  margin-bottom: 3px;
}
footer .section .sContent p:nth-of-type(2) {
  font-size: 13px;
  color: #737373;
}
footer .guide {
  width: 200px;
}
footer .guide_list {
  margin-bottom: 40px;
}
footer .guide_list p {
  font-size: 16px;
  font-weight: bold;
  color: #737373;
}
footer .map_lists {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
footer .maplist {
  gap: 5px;
}
footer .maplist p {
  font-size: 15px;
  font-weight: bold;
  color: #737373;
}
footer .bottom {
  width: 100%;
  height: 66px;
  padding-inline: 72rem;
  justify-content: space-between;
  background-color: #262626;
}
footer .bottom p {
  font-size: 12px;
  color: #ffffff;
}
footer .bottom .btm_list {
  gap: 16px;
}
/* ======== New arising components at SP ========== */
header .ribbonSp {
  display: none;
}
header .ribbonSpimg {
  position: relative;
  background: url("../img/ribbon.png") no-repeat center / cover;
  width: 40px;
  height: 50px;
}
header .ribbonSp p {
  font-size: 8px;
  color: #424031;
  font-weight: bold;
}
header .noti {
  background-color: #ffffff;
  position: absolute;
  top: 10px;
  right: -40px;
  padding-inline: 8px;
  padding-block: 3px;
  border: 1px solid #6782ae;
  border-radius: 10px;
  z-index: 10;
  color: #1c1a10;
  font-size: 20px;
}
footer .guideListG {
  display: none;
}
footer .guideList {
  width: 45%;
}
footer .guideList p {
  font-size: 12px;
  color: #737373;
}
/* ----------- sectionG_sp (dropdown) ------------  */
.sectionG_sp {
  display: none;
  width: 100%;
  margin: auto;
  background-color: #f2f2f2;
}

.section_sp {
  border-bottom: 1px solid #cccccc;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0px;
  cursor: pointer;
}

.menu-header:hover {
  background-color: #f0f0f0;
}

.menu-header span {
  font-size: 16px;
  color: #737373;
  font-weight: bold;
}

.f_arrow {
  transition: transform 0.3s ease;
}

.f_arrow.rotate {
  transform: rotate(90deg);
}

.menu-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fafafa;
  padding: 0 20px;
}

.menu-content p {
  padding: 10px 0;
  margin: 0;
  color: #666;
  font-size: 14px;
}

.section_sp.open .menu-content {
  max-height: 500px;
  height: fit-content; /* Adjust depending on content */
}
footer .bottom_btn {
  display: none;
  background-color: rgba(0, 0, 0, 0.2);
  width: 100%;
  padding-inline: 21px;
  padding-block: 15px;
}
footer .bottom_btn a {
  width: 351px;
  height: 48px;
  background-color: #ff7c00;
  padding-inline: 26px;
  padding-block: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
}

/* ************************* New Page &&&&&&&&&&&&&&&&&&&&&& */
main {
  width: 100%;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
main .container {
  margin-bottom: 80px;
  padding-bottom: 20px;
}
main .form-wrapper {
  max-width: 100%;
  margin: auto;
  background: #ffffff;
}

main .form-group {
  display: flex;
  padding-inline: 20px;
  padding-block: 16px;
}

main .form-label {
  margin-bottom: 5px;
  width: 240px;
}
main .form-label p {
  font-size: 15px;
  color: #333333;
  width: 180px;
}

main .required-badge {
  background: #c00;
  color: #fff;
  font-size: 10px;
  padding: 3px 5px;
  border-radius: 4px;
  margin-left: 8px;
  height: fit-content;
}

main .optional-badge {
  background: #aaa;
  color: #fff;
  font-size: 12px;
  padding: 3px 5px;
  border-radius: 4px;
  margin-left: 8px;
  height: fit-content;
}

main input {
  padding: 10px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 70%;
  background-color: rgba(195, 13, 35, 0.05);
}

main .inputC {
  width: 70%;
}
main .inputC input {
  width: 100%;
}

main .hint {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* ---- Privacy More ----- */
.accordion-wrapper {
  max-width: 1000px;
  margin-top: 12px;
  font-family: sans-serif;
  line-height: 1.6;
  color: #333;
}

.accordion-header {
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 10px;
  background: none;
  border: none;
  width: 100%;
}

.accordion-chevron {
  transition: transform 0.3s ease;
  font-size: 20px;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: #f9f9f9;
  padding: 0 10px;
  border-left: 3px solid #ccc;
  font-size: 10px;
}

.accordion-content.open {
  /* padding handled via JS for smoother collapse */
}

.accordion-chevron.rotate {
  transform: rotate(180deg);
}

.accordion-content ul {
  padding-left: 20px;
  margin: 10px 0;
}
main .pageT {
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  padding-inline: 10px;
  padding-block: 16px;
  border-top: 2px solid #cccccc;
  box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}
main .bBar {
  display: none;
  background-color: #fafaf5;
  width: 100%;
  padding-inline: 21px;
  padding-block: 12px;
  font-size: 10px;
}

main .tel {
  width: 235px;
}
main .postCode {
  width: 155px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 8px;
  justify-content: center;
  margin-block: 50px;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 25px 16px 25px 16px;
  width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card-label {
  background: #6c7ba1;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  margin-bottom: 7px;
  align-self: flex-start;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #222;
  align-self: flex-start;
}

.card-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}

.card-btn {
  width: 90%;
  padding: 12px 0;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #b3aea3;
  cursor: pointer;
  transition: background 0.2s;
}

.card-btn.selected {
  background: #ff9800;
}

.card-btn:not(.selected):hover {
  background: #a39e92;
}
main .cardGT {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  text-align: center;
}
main .cardGT span {
  color: #c30d22;
}
main .formT {
  width: 100%;
  padding-inline: 11px;
  font-size: 18px;
  font-weight: 500;
  border-left: 3px solid #5b7bb0;
  margin-bottom: 18px;
}
main .second select {
  width: 200px;
  padding: 8px 3px;
}
main .second .inputC span {
  font-size: 15px;
  margin-right: 7px;
}
main .second .s_area {
  margin-bottom: 12px;
}
main .privacy p {
  font-size: 13px;
}
main .privacy input {
  width: fit-content;
  margin-right: 6px;
}
main .privacy label {
  font-size: 15px;
  display: flex;
  align-items: center;
}
.submit-btn {
  background: #FF7C00;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  width: 320px;
  margin: 0 auto;
  display: block;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #e68900;
}
/* ===================== 建設予定地アコーディオン用CSS ===================== */

/* 大阪府アコーディオンのスタイル */
.prefecture-accordion {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.prefecture-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prefecture-header.open .accordion-arrow {
    transform: rotate(180deg);
}

/* 新しい4列グリッドレイアウト */
.osaka-city-grid,
.sakai-city-grid,
.other-cities-grid,
.toyono-gun-grid,
.mishima-gun-grid,
.kobe-city-grid,
.hyogo-other-cities-grid,
.kyoto-city-grid,
.kyoto-other-cities-grid,
.tsuzuki-gun-grid,
.soraku-gun-grid,
.kyotanba-town-grid,
.yosa-gun-grid,
.nara-cities-grid,
.wakayama-cities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.mishima-gun-grid:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.city-header-cell {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.checkbox-cell {
    display: flex;
    align-items: center;
    padding: 2px 0;
}

.checkbox-cell label {
    display: flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    width: 100%;
    padding: 0;
    margin: 0;
}

.checkbox-cell input[type="checkbox"] {
    margin-right: 4px;
    margin-top: 0;
    margin-left: 0;
    flex-shrink: 0;
    width: auto;
}

.checkbox-cell input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-cell label:has(input[type="checkbox"]:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.empty-cell {
    /* 空のセル */
}

/* アコーディオンのスタイル調整 */
.prefecture-header {
    background-color: #fff;
    padding: 12px 15px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-bottom: none;
}

.prefecture-header:hover {
    background-color: #f8f8f8;
}

.prefecture-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.prefecture-content {
    display: none;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
}

/* エラーメッセージスタイル */
.error-message {
  font-size: 12px;
  color: #c00;
  margin-top: 4px;
  display: none;
}

.error-message.show {
  display: block;
}

.form-group.error input {
  border-color: #c00;
  background-color: rgba(195, 13, 35, 0.1);
}

/* ================== Responsive ============================= */
@media (max-width: 1024px) {
  html {
    scroll-behavior: smooth;
    font-size: calc(1 / 1024 * 100vw);
  }
  header .menu_list {
    display: none;
  }
  header .search_c {
    display: none;
  }
  header .menu_part .num {
    gap: 40rem;
    width: 100%;
    justify-content: center;
  }
  .hamburger {
    display: flex;
  }
}
@media (max-width: 1000px) {
  .card-container {
    flex-wrap: wrap;
  }
}
@media (max-width: 965px) {
  html {
    font-size: calc(1 / 965 * 100vw);
  }
  .slider-container {
    height: 300px;
  }
  .container {
    width: 750px;
  }
  footer .top {
    flex-direction: column;
    gap: 25px;
  }
  footer .bottom {
    flex-direction: column;
    justify-content: center;
  }
  footer .menuG {
    flex-wrap: wrap;
    justify-content: center;
  }
  footer .sectionG {
    width: 90%;
  }
  footer .guide {
    width: 90%;
  }
  footer .map_lists {
    padding-top: 20px;
    padding-bottom: 40px;
  }
  footer .guideListG {
    display: flex;
  }
  footer .guide_list {
    display: none;
  }
  /* ======== New Page ====== */
  main input {
    width: 60%;
  }
  main .inputC {
    width: 60%;
  }
}
@media (max-width: 768px) {
  html {
    font-size: calc(1 / 768 * 100vw);
  }
  .container {
    width: 100%;
  }
  header .topBar {
    display: none;
  }
  header .menuBar .t_part {
    padding-inline: 19px;
    justify-content: space-between;
  }
  .hamburger {
    position: unset;
  }
  header .ribbon {
    display: none;
  }
  header .ribbonSp {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  header .ad {
    display: none;
  }
  header .adSp {
    display: block;
  }
  main {
    margin-top: 0;
  }
  footer .container {
    padding-inline: 49px;
  }
  footer .sectionG {
    display: none;
  }
  footer .guide {
    width: 100%;
  }
  footer .snsG img {
    width: 40px;
  }
  footer .bottom .btm_list {
    display: none;
  }
  footer .sectionG_sp {
    display: block;
  }
  footer .bottom p {
    width: 245px;
    text-align: center;
  }
  footer .bottom_btn {
    display: flex;
  }
  /* ======== New Page ========= */
  main .container {
    background-color: #fafaf5;
    margin-bottom: 0;
  }
  main .form-group {
    flex-direction: column;
  }
  main input,
  main .inputC {
    width: 100%;
  }
  main .bBar {
    display: block;
  }
  main .pageT {
      text-align: center;
      box-shadow: unset;
      border: none;
      font-size: 26px;
      margin-bottom: 0;
  }
  .card {
    width: 45%;
    min-width: 150px;
  }
  main .form-label {
    width: 100%;
    justify-content: space-between;
  }
  .card-container {
    margin-bottom: 0;
    padding-bottom: 50px;
    justify-content: space-around;
  }
  main .cardGT {
    width: 95%;
  }
  main .cardG{
    width: 95%;
    margin: 0 auto;
  }
  main .form-wrapper {
    padding-top: 50px;
    padding-bottom: 15px;
  }

  /* 建設予定地アコーディオンのモバイル対応 */
  .osaka-city-grid,
  .sakai-city-grid,
  .other-cities-grid,
  .toyono-gun-grid,
  .mishima-gun-grid,
  .kobe-city-grid,
  .hyogo-other-cities-grid,
  .kyoto-city-grid,
  .kyoto-other-cities-grid,
  .tsuzuki-gun-grid,
  .soraku-gun-grid,
  .kyotanba-town-grid,
  .yosa-gun-grid,
  .nara-cities-grid,
  .wakayama-cities-grid {
      grid-template-columns: 1fr 1fr;
      gap: 5px 8px;
  }

  .city-header-cell {
      grid-column: 1 / -1;
      font-size: 15px;
      padding: 6px 0;
  }

  .osaka-city-grid .empty-cell,
  .sakai-city-grid .empty-cell,
  .kobe-city-grid .empty-cell,
  .kyoto-city-grid .empty-cell,
  .tsuzuki-gun-grid .empty-cell,
  .soraku-gun-grid .empty-cell,
  .yosa-gun-grid .empty-cell {
      display: none;
  }

  .checkbox-cell label {
      font-size: 14px;
      padding: 0;
      margin: 0;
  }
}
@media (max-width: 500px) {
  header .menuBar .title {
    width: 117px;
  }
  header .hamburger {
    width: 24px;
    height: 24px;
  }
  header .menuBar .t_part {
    padding: 16px;
    margin: 0;
  }
  header .ribbonSpimg {
    width: 20px;
    height: 25px;
  }
  header .noti {
    top: 3px;
    right: -25px;
    padding-inline: 5px;
    padding-block: 2px;
    border-radius: 3px;
    font-size: 10px;
  }
  footer .snsG {
    flex-wrap: wrap;
    width: 300px;
    justify-content: center;
  }
  /* ==== New Page ==== */
  main .form-group {
    padding-inline: 0;
  }
  main .form-wrapper {
    padding-inline: 20px;
  }
}

@media (max-width: 768px) {
    .card-btn {
        font-size: 12px;
    }
}
@media (max-width: 768px) {
    .card{
        padding: 12px;
    }
    .card-container{
        gap: 18px 8px;
    }
}

