﻿@charset "UTF-8";

/* =================================================== */
/* 💡 共通部分                                         */
/* =================================================== */
html {
  font-size: 100%;
}

body {
  background-color: #FCFCF9;
  font-family: "游ゴシック体", "Yu Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.7;
  color: #432;
}

h1 {
  color: #1A5276;
  font-family: "Yu Gothic";
}

h2 {
  color: #1A5276;
  font-family: "Yu Gothic";
  margin-left: 30px;
}

h3 {
  color: #1A5276;
  font-family: "Yu Gothic";
  margin-left: 100px;
}

p {
  font-size: 100%;
  font-family: "游ゴシック体";
  margin-left: 30px;
}

a {
  font-size: 100%;
  text-decoration: none;
  font-family: "游ゴシック体";
}

img {
  max-width: 100%;
}

/* =================================================== */
/* 💡 HEADER                                           */
/* =================================================== */
logo {
  width: 210px;
  margin-top: 14px;
}

.main-nav {
  display: flex;
  font-size: 100%;
  text-transform: uppercase;
  margin-top: 34px;
  list-style: none;
}

.main-nav li {
  margin-left: 36px;
}

.main-nav a {
  color: #432;
}

.main-nav a:hover {
  color: #0bd;
}

.page-header {
  display: flex;
  justify-content: space-between;
  margin-top: 20px !important;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
}

/* =================================================== */
/* 💡 HOME                                             */
/* =================================================== */
.content {
  background: #F4F4F4;
  text-align: center;
  margin-top: 5%;
}

.content p {
  font-size: 100%;
  margin: 10px 0 42px;
}

.page-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: bold;
  color: #07078C;
}

.container {
  background: #E3E9E5;
  margin: 20px;
  padding: 20px;
  display: grid;
  grid-template-columns: 50% 50%;
}

/* =================================================== */
/* 💡 ボタン                                           */
/* =================================================== */
.button {
  max-width: 450px;
  background: #1A5276;
  border: 1px #dddddd outset;
  padding: 10px 50px 10px 50px;
  margin: 1rem;
  font-size: 80%;
  text-align: center;
  color: #fff;
　display: inline-block;
　cursor: pointer;
}

.button:hover {
  background: #2980B9;
  color: #fff;
}

.button2 {
  max-width: 450px;
  background: #7F8C8D;
  border: 1px #dddddd inset;
  padding: 10px 50px 10px 50px;
  margin: 1rem;
  font-size: 80%;
  text-align: center;
  color: #fff;
  display: inline-block;
  cursor: pointer;
}

.button2:hover {
  background: #626567;
  color: #fff;
}

/* =================================================== */
/* 💡 フォーム基本パーツ                               */
/* =================================================== */
form div {
  margin-bottom: 14px;
}

label {
  font-size: 80%;
  padding-right: 30px;
  display: block;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
  background: rgba(255, 255, 255, .5);
  border: 1px #dddddd solid;
  font-size: 100%;
  height: 30px;
  font-family: "游ゴシック体";
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select {
  width: 100%;
  height: 30px;
  max-width: 200px;
  font-family: "游ゴシック体";
}

input[type="submit"] {
  max-width: 450px;
  margin-bottom: 15px;
  border: 1px #dddddd solid;
  padding: 10px 50px 10px 50px;
  background: #1A5276;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  color: #fff;
}

input[type="submit"]:hover {
  background: #2980B9;
  color: #fff;
}

input[type="button"] {
  max-width: 450px;
  margin-bottom: 15px;
  border: 1px #dddddd solid;
  padding: 10px 50px 10px 50px;
  background: #7F8C8D;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  color: #fff;
}

input[type="button"]:hover {
  background: #626567;
  color: #fff;
}

/* =================================================== */
/* 💡 Patient 2カラムレイアウト                         */
/* =================================================== */
.main-contents {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  padding-left: 10%;
  padding-right: 8%;
  box-sizing: border-box;
  gap: 40px;
}

.main-contents > div {
  flex: 0 0 calc(50% - 20px);
}

@media (max-width: 767px) {
  .main-contents {
    flex-direction: column;
    height: auto;
  }
  .main-contents > div {
    flex: 0 0 100%;
  }
}

.item1 {
  background: #F6F6F6;
  padding: 10px;
  border-style: outset;
  border: 4px 0px 0px 4px solid #1A5276;
}

.item2 {
  background: #EFEFEF;
  padding: 10px;
  border-style: outset;
  border: 4px 0px 0px 4px solid #1A5276;
}

/* =================================================== */
/* 💡 複数選択ドロップダウン                           */
/* =================================================== */
td .custom-select-container {
  position: relative !important;
  width: 200px !important;
  display: inline-block !important;
}

td .styled-select-trigger {
  width: 100% !important;
  padding: 8px !important;
  text-align: left !important;
  background-color: #fff !important;
  border: 1px solid #ccc !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

td .styled-select-trigger::after {
  content: ' ▼' !important;
  float: right !important;
}

td .styled-select-options {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background-color: #fff !important;
  border: 1px solid #ccc !important;
  z-index: 9999 !important;
  max-height: 200px !important;
  overflow-y: auto !important;
  padding: 5px !important;
  box-sizing: border-box !important;
}

td .custom-select-container.open .styled-select-options {
  display: block !important;
}

td .styled-select-options label {
  display: block !important;
  padding: 5px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  background: none !important;
}

td .styled-select-options label:hover {
  background-color: #EBF5FB !important;
}

td .styled-select-options input[type="checkbox"] {
  margin-right: 5px !important;
  vertical-align: middle !important;
}

/* =================================================== */
/* 💡 カルテ縦テーブル・入力欄の引き算                   */
/* =================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  line-height: 26px;
  font-size: 95%;
  font-family: "游ゴシック体";
  text-align: right;
  table-layout: fixed;
}

th, td {
  border-collapse: collapse;
  border: 1px solid #ccc;
  line-height: 26px;
  font-size: 95%;
  font-family: "游ゴシック体";
}

table.type td .radio-group {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 15px 30px;
}

table.type td .radio-group label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer;
}

table.type td .radio-group input[type="radio"] {
  width: auto !important;
  display: inline-block !important;
  margin: 0 !important;
}

table.type td input[type="text"],
table.type td input[type="email"],
table.type td input[type="tel"] {
  width: calc(100% - 40px) !important;
  max-width: 100% !important;
  box-sizing: border-box;
  display: inline-block !important;
  text-align: left !important;
  padding: 4px 8px;
  vertical-align: middle;
}

table.type {
  border-bottom: 1px solid #1A5276;
}

table.type th {
  width: 30%;
  padding: 1px;
  vertical-align: middle;
  background: #1A5276;
  color: #ffffff;
  font-family: "游ゴシック体";
}

table.type td {
  width: 70%;
  padding: 1px 5px 1px 1px;
  vertical-align: middle;
  text-align: left;
  font-size: 95%;
  font-family: "游ゴシック体";
}

table.type tr:nth-child(even) {
  background: #EBF5FB;
}

.styled-select {
  width: 100%;
  max-width: 300px;
}

.item1 table.type td,
.item2 table.type td {
  padding: 5px 8px !important;
  line-height: 20px !important;
}

.pcontainer input[type="button"],
.pcontainer input[type="submit"] {
  width: 120px !important;        /* ボタンの横幅を120ピクセルに広く固定 */
  height: 38px !important;        /* ボタンの縦幅（高さ）を38ピクセルに高く固定 */

  line-height: 38px !important;   /* 💡 高さと全く同じ38pxに設定することで、上下中央揃えに */
  text-align: center !important;  /* 💡 左右中央揃え */
  padding: 0 !important;          /* 💡 邪魔な内側の余白を一度ゼロにリセット */
  
  font-size: 14px !important;     /* ボタンの中の文字を大きくはっきり */
  font-family: "游ゴシック体" !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  display: inline-block !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

/* =================================================== */
/* 💡 リスト・共通パーツ                               */
/* =================================================== */
ul li {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-items: center;
  align-items: center;
}

ul span:first-of-type {
  -webkit-flex-basis: 200px;
  flex-basis: 200px;
}

ul span:nth-of-type(2) {
  -webkit-flex-basis: 210px;
  flex-basis: 210px;
  -webkit-flex-grow: 1;
  flex-grow: 1;
}

ul input[type="text"],
ul textarea {
  width: 100%;
  max-width: 200px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

ul li a {
  margin-left: 1rem;
}

.pcontainer {
  background: #EBF5FB;
  width: 100%;
  height: 60px;
  margin: 2px;
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pcontainer > input[type="submit"] {
  max-width: 450px;
  border: 1px #dddddd solid;
  width: 200px;
  height: 40px;
  padding: 10px 50px 10px 50px;
  background: #1A5276;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  color: #fff;
}

.pcontainer > input[type="submit"]:hover {
  background: #2980B9;
}

.pcontainer > input[type="button"] {
  max-width: 450px;
  border: 1px #dddddd solid;
  width: 200px;
  height: 40px;
  padding: 10px 50px 10px 50px;
  background: #7F8C8D;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  color: #fff;
}

.pcontainer > input[type="button"]:hover {
  background: #626567;
  color: #fff;
}
/* =================================================== */
/* 💡 結果一覧画面（list.php）                         */
/* =================================================== */
.list.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
}

.list {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 20px 0 20px 0;
  text-align: center;
}

.list th {
  padding: 8px 5px;
  width: auto;
  text-align: center;
  background: #1A5276;
  color: #ffffff;
  font-size: 90% !important;
  font-weight: bold;
}

.list td {
  padding: 8px 5px;
  width: auto;
  text-align: center;
  border: 1px solid #ccc;
  font-size: 90% !important;
}

.list tr:nth-child(even) {
  background-color: #EBF5FB;
}

.list tr:nth-child(odd) {
  background-color: #ffffff;
}

/* =================================================== */
/* 💡 マニュアル                                       */
/* =================================================== */
.item {
  background: #DBEEFF;
  width: 80%;
  padding: 50px 50px 50px 50px;
  margin: 50px 50px 50px 50px;
  border-style: outset;
  border: 4px 0px 0px 4px solid #1A5276;
  text-align: center;
}

.item p {
  font-family: "游ゴシック体";
  color: #333333;
  text-align: left;
}

/* =================================================== */
/* 💡 フッター                                         */
/* =================================================== */
.footer {
  width: 100%;
  text-align: center;
}

.footer p {
  font-size: 80% !important;
  font-family: "游ゴシック体";
  text-align: center;
  color: #666;
}