@charset "utf-8";

body{
    padding-top:125px;
}
body.menu-open {
  overflow: hidden;
  height: 100vh; /* iOS対策 */
}
.inner {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 36px;
    box-sizing: border-box;
}
h2 {
    position: relative;
    line-height: 1;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    padding-top: 32px;
}
h2::after {
    background-image: url(../images/common/onepoint.png);
    position: absolute;
    content: "";
    width: 25px;
    height: 25px;
    background-repeat: no-repeat;
    background-size: cover;
    margin-left: 15px;
}
p {
    font-size: 16px;
    padding-top: 32px;
}
a       { color: #00c; }
a:hover { color: #36F; }
form {
	margin: 0;
	padding: 0;
}
/* ============================================
 * ファイルリンク拡張子別アイコン（サイト共通）
 * ============================================ */
a[href$=".pdf"]::before,
a[href$=".PDF"]::before,
a[href$=".doc"]::before,
a[href$=".DOC"]::before,
a[href$=".docx"]::before,
a[href$=".DOCX"]::before,
a[href$=".xls"]::before,
a[href$=".XLS"]::before,
a[href$=".xlsx"]::before,
a[href$=".XLSX"]::before,
a[href$=".ppt"]::before,
a[href$=".PPT"]::before,
a[href$=".pptx"]::before,
a[href$=".PPTX"]::before,
a[href$=".zip"]::before,
a[href$=".ZIP"]::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
    margin-right: 5px;
    font-size: 0.95em;
    vertical-align: middle;
}

/* PDF — 赤 */
a[href$=".pdf"]::before,
a[href$=".PDF"]::before {
    content: "\f1c1"; /* fa-file-pdf */
    color: var(--color-file-pdf);
}

/* Word — 青 */
a[href$=".doc"]::before,
a[href$=".DOC"]::before,
a[href$=".docx"]::before,
a[href$=".DOCX"]::before {
    content: "\f1c2"; /* fa-file-word */
    color: var(--color-file-word);
}

/* Excel — 緑 */
a[href$=".xls"]::before,
a[href$=".XLS"]::before,
a[href$=".xlsx"]::before,
a[href$=".XLSX"]::before {
    content: "\f1c3"; /* fa-file-excel */
    color: var(--color-file-excel);
}

/* PowerPoint — オレンジ */
a[href$=".ppt"]::before,
a[href$=".PPT"]::before,
a[href$=".pptx"]::before,
a[href$=".PPTX"]::before {
    content: "\f1c4"; /* fa-file-powerpoint */
    color: var(--color-file-powerpoint);
}

/* ZIP — グレー */
a[href$=".zip"]::before,
a[href$=".ZIP"]::before {
    content: "\f1c6"; /* fa-file-zipper */
    color: var(--color-file-zip);
}
sub, sup {
	font-size: 60%;
}
.red {
    color: var(--color-danger);
}
.small {
    font-size: 10px;
}

.no-padding {
    padding: 0 !important;
}
.no-padding-top {
    padding-top: 0 !important;
}
.no-padding-bottom {
    padding-bottom: 0 !important;
}
.padding-bottom-40 {
    padding-bottom: 40px !important;
}

.no-margin {
    margin: 0 !important;
}
.no-margin-top {
    margin-top: 0 !important;
}
.no-margin-bottom {
    margin-bottom: 0 !important;
}

.margin-top-16 {
    margin-top: 16px !important;
}
.width-50 {
    width: 50%;
}

table th, table td {
    padding: 14px 12px;
}

header{
    width: calc(100% - 30px);
    position: fixed;
    top:0;
    left:0;
    z-index:1000;
    background:var(--color-white);
}

#nav{
    position: fixed;
    top:75px;
    left:0;
    width:100%;
    z-index:999;
    background:var(--color-white);
}

#menu-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 998;
}

#menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.sp-links {
  display: none;
}

/* ナビは前面 */

nav {
    margin: 0 auto;
    height: 50px;
    border-bottom: 4px solid var(--color-white);
}
nav .inner {

}
#nav > ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav > ul > li {
    flex: 1;
    background: url(../images/common/nav_bg1.gif) repeat-x;
    border-right: 3px solid var(--color-white);
    cursor: pointer;
    transition: background 0.2s ease;
}
nav > ul > li:hover,
nav > ul > li:focus-within {
    background: url(../images/common/nav_bg2.gif) repeat-x;
    background-color: #86b534;
}
nav > ul > li:first-child {
    border-left: 1px solid var(--color-white);
}
nav ul a {
    text-decoration: none;
    transition: color 0.2s ease;
}
nav ul span {
    font-size: 16px;
    display: block;
    font-weight: bold;
    color: var(--color-primary-accent);
    line-height: 50px;
    text-align: center;
    transition: color 0.2s ease;
}

/* トップ項目：hover時に文字色を白に */
nav > ul > li:hover > a,
nav > ul > li:hover.has-child,
nav > ul > li:focus-within > a,
nav > ul > li:focus-within.has-child {
    color: var(--color-white);
}
nav > ul > li:hover > a,
nav > ul > li:focus-within > a {
    color: var(--color-white) !important;
}

/* サブメニュー：親hover時のみ表示 */
nav ul li ul {
    display: none;
    z-index: 999;
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-top: 2px solid #86b534;
}
nav ul li ul li {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: var(--color-white);
    transition: background 0.2s ease;
}
nav ul li ul li:hover {
    background: #eef8de;
}
nav ul li:hover ul,
nav ul li:focus-within ul {
    display: block;
    width: 100%;
}

/* サブメニュー内リンク */
nav li li a {
    color: var(--color-primary-accent);
    display: block;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    line-height: 46px;
    border-bottom: 1px solid #eef1f4;
    font-weight: normal;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
nav li li:last-child a {
    border-bottom: none;
}
nav li li a:hover,
nav li li a:focus {
    color: #86b534;
    text-decoration: none;
    font-weight: bold;
    padding-left: 4px;
}

/* has-child（矢印付き） */
nav li.has-child {
    position: relative;
    font-size: 16px;
    display: block;
    font-weight: bold;
    color: var(--color-primary-accent);
    line-height: 50px;
    text-align: center;
}
nav li.has-child > a::after,
nav li.has-child::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--color-primary-accent);
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.25s ease, border-top-color 0.2s ease;
}
nav li.has-child:hover::after,
nav li.has-child:focus-within::after {
    transform: rotate(180deg);
    border-top-color: var(--color-white);
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
}

nav li.has-no-child a {
    font-size: 16px;
    display: block;
    font-weight: bold;
    color: var(--color-primary-accent);
    line-height: 50px;
    text-align: center;
}

/********** Header **********/
header {
    height: 75px;
    margin: 0 auto 0 auto;
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}
#menu-toggle {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
}

#menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* 3本線の位置 */
#menu-toggle span:nth-child(1) { top: 0; }
#menu-toggle span:nth-child(2) { top: 9px; }
#menu-toggle span:nth-child(3) { top: 18px; }

/* ===== 押した後（×になる） ===== */
#menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

#menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}
header h1 img {
	height: 75px;
}
header ul {
	display: flex;
	gap: 15px;
}
a.btn {
	font-size: 14px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-white);
}
a.btn-search-clinic {
    background-color: #a2c32d;
}
a.btn-login {
    background-color: #ff896f;
}

/********** page **********/
.page-title {
    font-size: 26px;
    line-height: 1.4;
    font-weight: 700;
    color: #1f2937;
}
.page_head {
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
}

.page_head_wrap {
    position: relative;
    height: 260px;
    color: #333;
    background-image: url(../images/common/page_head.jpg);
    background-size: cover;
    background-position: top center;
}

.page_head_ttl {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 10%;
    font-feature-settings: "palt";
    transform: translateY(-50%);
}

.page_head_ttl span {
    display: block;
    margin-bottom: 20px;
    font-size: 32px;
    color: #64b3b5;
    padding-bottom: 20px;
    position: relative;
    line-height: 1;
    font-weight: bold;
}

.page_head_ttl span::after {
    position: absolute;
    content: "";
    width: 290px;
    height: 3px;
    background: rgb(1, 75, 146);
    background: linear-gradient(90deg, rgb(194 206 116) 0%, rgb(170 193 76) 100%);
    bottom: 0;
    left: 0;
    margin: 0;
}
.bread_crumb {
    background: #f7f8fa;
}

.bread_crumb ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 30px 10px 0;
}

.bread_crumb ul li {
    position: relative;
    z-index: 0;
    margin-right: 25px;
    line-height: 1;
    font-size: 13px;
}
.bread_crumb ul li a {
    display: block;
    font-size: 13px;
}

.bread_crumb ul li::after {
    position: absolute;
    z-index: 0;
    top: 5px;
    right: -13px;
    content: "/";
    color: #999;
}

.bread_crumb ul li:last-child {
    margin-right: 0;
}
.bread_crumb ul li:last-child::after {
    content: none;
}

/********** Footer **********/
footer {
	background-image: url(../images/common/footer.gif);
    margin: 0 auto;
}
footer .inner {
    padding-bottom: 0;
}
footer i {
	color: #a2c32d;
}
footer h2::after {
	content: none;
}
footer span{
	font-size: 14px;
}
footer #addr{
	display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
}
footer #addr .name{
}
footer #addr .detail{
	padding: 20px 0;
}
footer #addr .detail p {
	padding:0;
}
footer .copy-right {
	text-align: center;
	padding: 0 0 20px 0;
	font-size: 14px;
}