/*
Theme Name: 京都府立医科大学 皮膚科学教室
Description: 京都府立医科大学 大学院 皮膚科学教室の公式ウェブサイト用WordPressテーマ
Author: 京都府立医科大学 皮膚科学教室
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kpu-dermatology
Tags: medical, university, responsive, accessibility-ready

このテーマは京都府立医科大学 大学院 皮膚科学教室の公式ウェブサイト用に開発されました。
学生・研修医、患者さん、医療関係者の方々に向けた情報を提供するためのテーマです。

主な機能:
- レスポンシブデザイン
- アクセシビリティ対応
- SEO最適化
- カスタムナビゲーションメニュー
- カスタムフィールド対応
- 多言語対応準備

*/

/* WordPressテーマ用のスタイルは既存のCSSファイルを参照 */

/* 追加のWordPress固有スタイル */

/* エディター用スタイル */
.alignleft {
    float: left;
    margin: 0 1em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1em;
}

.aligncenter {
    display: block;
    margin: 0 auto 1em;
}

.alignwide {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ギャラリー用スタイル */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-item {
    flex: 0 0 auto;
}

.gallery-item img {
    border: none;
    border-radius: 4px;
}

/* コメント用スタイル */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2em;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.comment-author {
    font-weight: bold;
}

.comment-meta {
    font-size: 0.9em;
    color: #666;
}

/* ウィジェット用スタイル */
.widget {
    margin-bottom: 2em;
}

.widget-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #42aa65;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}

.widget a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #42aa65;
}

/* 検索フォーム */
.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-submit {
    padding: 8px 16px;
    background-color: #42aa65;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background-color: #369955;
}

/* ページネーション */
.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #42aa65;
    color: white;
    border-color: #42aa65;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {

    .alignwide,
    .alignfull {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .gallery {
        justify-content: center;
    }

    .search-form {
        flex-direction: column;
    }
}

/* WordPress管理画面用スタイル */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* カスタム投稿タイプ用スタイル */
.post-type-archive-news .section-heading,
.post-type-archive-events .section-heading {
    margin-bottom: 2em;
}

.news-item,
.event-item {
    margin-bottom: 2em;
    padding: 1.5em;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.news-item:hover,
.event-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-meta,
.event-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 1em;
}

.news-title,
.event-title {
    margin-bottom: 1em;
}

.news-title a,
.event-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.news-title a:hover,
.event-title a:hover {
    color: #42aa65;
}

/* アクセシビリティ改善 */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* フォーカス表示の改善 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #42aa65;
    outline-offset: 2px;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .nav-link {
        border-bottom: 1px solid transparent;
    }

    .nav-link:hover,
    .nav-link:focus {
        border-bottom-color: currentColor;
    }
}

/* モーション軽減設定対応 */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/*01.NEWS
************************************************************************************/
ul.news-list{
	border-bottom: 1px solid #ccc;
	margin-bottom: 50px;
}
ul.news-list li{
	display: table;
	width: 100%;
	border-top: 1px solid #ccc;
	padding: 1.5em 0;
}

ul.news-list li .date {
	color: #003376;
	font-weight: bold;
	display: table-cell;
	vertical-align: top;
	width: 8em;
}

ul.news-list li .title {
	display: table-cell;
	vertical-align: top;
}
@media screen and (max-width: 599px) {
	ul.news-list li{
		display: block;
	}

	ul.news-list li .date {
		display: block;
		width: auto;
		padding: 0;
	}

	ul.news-list li .title {
		display: block;
		padding: 0;
	}
}

#page_news.page_details .lv_h1{
	padding: .8em .9em;
	font-size: 1.85em;
	line-height: 1.6em;
}
#page_news.page_details .news_date{
	text-align: right;
}


/*04.form
************************************************************************************/
.cms-posts table.contact_table{
	width: 100%;
	border-collapse:collapse;
	border: 0;
	border-top: 1px solid #000;
	margin: 30px auto 50px;
}
.cms-posts table.contact_table th{
	font-weight: bold;
	padding: 1em;
	border: 0;
	background-color: transparent;
	border-bottom: 1px solid #000;
	text-align: left;
	width: 10em;
	background: none;
	color: #000;
    vertical-align: middle;
}
.cms-posts table.contact_table th p{
    padding: 0 !important;
    margin: 0 !important;
}
.cms-posts table.contact_table td{
	padding: 1em;
	border: 0;
	border-bottom: 1px solid #000;
	position: relative;
	padding-left: 70px;
	background: none;
}
.cms-posts table.contact_table td.required:before{
	content: "必須";
	border-radius: 3px;
	padding: 3px 0;
	background: #FF9100;
	font-size: 0.713em;
	color: var(--color-textLight);
	margin-right: 1.5em;
	width: 60px;
	text-align: center;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}

@media screen and (max-width: 768px){
	table.smartphone{
		display: block;
		width: 100%;
	}
	table.smartphone thead{
		display: none;
	}
	table.smartphone tbody{
		display: block;
		width: 100%;
	}
	table.smartphone tr{
		display: block;
		margin-bottom: 1.5em;
		width: 100%;
	}
	table.smartphone th,
	table.smartphone td{
		display: list-item;
		width: 100%;
		padding: 5px 10px !important;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		-o-box-sizing: border-box;
		-ms-box-sizing: border-box;
		box-sizing: border-box;
		display: block;
		border: 0;
	}
	table.smartphone th{
		list-style-type: none;
		display: block;
		background: #ededed;
		color: var(--color-textNormal);
	}

	table.smartphone td{
		margin-left: 0;
		list-style-type: none;
		border: 0;
		padding-left: 25px;
	}

	.cms-posts table.contact_table td{
		position: static;
		padding-left: 25px;
	}
	.cms-posts table.contact_table td.required:before{
		position: static;
		display: block;
		transform: none;
		margin-bottom: 3px;
	}

	.form input[type=text],
	.form input[type=tel],
	.form input[type=email],
	.form textarea{
		background: #FFF;
		border: 1px solid #ededed;
	}
}
/*form
************************************************************************************/
.error_msg{
	color:#F00;
}
.privacyBox{
	padding: 2em 0;
	text-align: center;
}
.wpcf7-list-item{
	margin: 0 1em 0 0;
}

/*form
----------------------------------------------------------------------*/
.form td li{
	display: inline-block;
	padding: 0 15px 0 0;
}

.form input{
	margin: 2px;
	padding: .5em;
	background: #f6f6f6;
	border: 0;
	outline: none;
}
.form input:focus,
.form select:focus,
.form textarea:focus{
	outline: none;
	box-shadow: 0px 0px 15px -5px #7a7a7a;
	background: #f1f1f1;
}


.form input[type=text],
.form input[type=tel],
.form input[type=email],
.form input[type=url]{
	width: 450px;
}

.form input.m[type=text],
.form input.m[type=tel]{
	width: 200px;
}

.form input.s[type=text],
.form input.s[type=tel]{
	width: 100px;
}

.form input.zip{
	width: 100px;
}

.form label{
	padding-right: 1em;
}

.form textarea{
	width: 500px;
	height: 150px;
	padding: 15px;
	background: #f6f6f6;
	border: 0;
}

.form select{
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: .5em 40px .5em .5em;
	background: url("../img/common/ar_dwn.svg") no-repeat right 15px center #f6f6f6;
	-moz-background-size: 10px auto;
	background-size: 10px auto;
	border: 0;
	margin: 5px 0;
}

.btnSend{
	text-align: center;
	padding: 20px 0;
}

.btnSend input[type=submit]{
	padding: 15px 3em;
	background: #1157c0;
	color: #FFF;
	border: 1px;
	cursor: pointer;
	margin: 0 3px;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	font-size: 16px;
}

.screen-reader-response,
.wpcf7-not-valid-tip,
.wpcf7-response-output{
	color: #F00;
	display: block;
	padding: 0.3em 0;
}


@media screen and (max-width: 979px) {
/*tablet*/
}

@media screen and (max-width: 768px){
.form input{
	padding: 15px 1%;
}

.form input[type=text],
.form input[type=tel],
.form input[type=email],
.form input[type=url]{
	width: 100%;
	font-size: 15px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}

.form input.m[type=text],
.form input.m[type=tel]{
	width: 50%;
	font-size: 15px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}

.form input.s[type=text],
.form input.s[type=tel]{
	width: 30%;
	font-size: 15px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}


.form textarea{
	width: 100%;
	padding: 5px 1%;
	height: 150px;
	font-size: 15px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}

.form select{
	padding: 15px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 20px 40px 20px 15px;
	background: url("../../common/img/common/ar_black_dwn.svg") no-repeat right 15px center #e6f2f7;
	-moz-background-size: 10px auto;
	background-size: 10px auto;
	border: 0;
}
.btnSend input[type=submit]{
	padding: 15px 0;
	width: 95%;
	background: #1157c0;
	color: #FFF;
	border: 1px;
	cursor: pointer;
	margin: 3px;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-appearance: none;
	border-radius: 0;
	font-size: 16px;
}
}



/*06.error-page
************************************************************************************/
#error-page{
	width: 100%;
	max-width: 800px;
	margin: auto;
}
#error-page .cover-img{
	text-align: center;
}
#error-page .cover-img img{
	max-width: 100%;
	height: auto;
}
#error-page .title{
	text-align: center;
	font-size: 19px;
	font-weight: bold;
	margin: 1.5em 0;
	color: #5F5F5F;
}
#error-page .error-message{
	text-align: center;
	color: #5F5F5F;
	margin-bottom: 3em;
}

#error-page .btn{
	text-align: center;
    background-color: transparent;
}
#error-page .btn a{
	display: inline-block;
	border-radius: 3px;
	background: #4D4D4D;
	padding: .8em 2em !important;
	color: #FFF;
	text-decoration: none;
}



