/* CSS変数（カスタムプロパティ） を定義 */
:root {
	--border-radius-default: 12px;
	--border-radius-small: 8px;
}

/* 全体 */
*{
	letter-spacing:0.1em;
}
@media (max-width: 640px) {
	html {
		font-size: 16px; /* SP基準16px */
	}
}
body{
	background-color: #f5f2e9;
}
.home .l-contents__inner:first-child{
	padding-top: 0;
}

/* ヘッダー */
.p-global-nav .c-navbar__subitem{
	font-weight: 700;
}
.sm-nav-menu-item-highlight{
	background-color:#3e3a39!important;
	transition: all .5s ease;
}
.sm-nav-menu-item-highlight:hover{
	background-color:#b28247!important;
}
@media screen and (min-width: 1024px) and (max-width: 1210px) {
	.p-global-nav .c-navbar__item > a {
		font-size: 16px;
		padding-left: 12px;
		padding-right: 12px;
	}
}
.c-site-branding__title a{
	position: relative;
	top:-4px;
}

/* ドロワーメニュー（スマートフォン） */
[id=drawer-nav].c-drawer--overall {
	align-items: flex-start;
}
[id=drawer-nav].c-drawer--overall .c-drawer__inner {
	background: #fff;
	margin: 8px;
	border-radius: var(--border-radius-default);
}
.c-drawer a {
	font-weight:bold;
	color: var(--_color-text);
	min-height:32px;
}
.c-drawer .c-ic-angle-right:before {
	border-color: #fff;
}
.c-drawer[aria-hidden="false"] .c-drawer__item--has-submenu>.c-drawer__toggle, .c-drawer[aria-hidden="false"] .c-drawer__subitem--has-submenu>.c-drawer__toggle {
	flex: 0 0 auto;
	overflow: hidden;
	width: 32px;
	height: 32px;
	background: var(--accent-color);
	border-radius: 64px;
}
[id=drawer-nav].c-drawer--overall .c-drawer__toggle {
	padding-right: 10px;
}
.c-drawer__submenu[aria-hidden=false] {
	margin:8px 0 0;
	background:var(--wp--preset--color--sm-lightest-gray);
	padding: 8px 16px;
	border-radius: var(--border-radius-small);
}
.c-drawer .c-drawer__menu .menu-item{
	font-size: 1.25rem;
}
.c-drawer__menu .sm-nav-menu-item-highlight{
	border-radius: 40px;
}
.c-drawer__menu .sm-nav-menu-item-highlight:hover{
	background-color:#3e3a39!important;
}

/* フッター */
.l-footer{
	background-color: #fff;
}
.l-footer--footer-1 .l-footer__footer{
	background-color: transparent;
	font-weight: bold;
	padding-top: 0;
}
.c-copyright{
	text-align: center;
}
.c-footer-issouichimoku p{
	margin-top: 8px!important;
}
#menu-fnav-footer{
	width:100%;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: auto;
	gap: 8px;
	padding:0;
	margin:0;
}
@media (min-width: 40em){
#menu-fnav-footer {
    grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}}
@media (min-width: 64em){
#menu-fnav-footer {
    grid-template-columns: repeat(5, 1fr);
}}
#menu-fnav-footer .menu-item {
	margin:0;
	padding:0;
}
#menu-fnav-footer .menu-item a{
	display: block;
	text-align: center;
	padding:10px;
	border: 1px solid #cecece;
	border-radius: 6px;
	margin:0;
	text-decoration:none;
}
.l-footer-widget-area .c-row .c-row__col:last-child{
	--_item-width: 100%;
}

/* ページヘッダー */
.c-page-header{
	background:var(--wp--preset--color--sm-accent);
	color:#FFF;
}
.c-page-header[data-has-image=true] {
	max-height: 200px;
}
@media (min-width: 40em){
	.c-page-header[data-has-image=true] {
		max-height: 280px;
	}
}
@media (min-width: 64em){
	.c-page-header[data-has-image=true] {
		max-height: 360px;
	}
}
.c-page-header[data-has-image=true] .c-page-header__bgimage{
	background-color: #000;	
}
.c-page-header__bgimage>img, .c-page-header__bgimage>picture>img{
	opacity:0.5;
}

/* メインコンテンツ */
.l-contents__main{
	flex-basis: auto;
}

/* サイドバー */
[data-has-sidebar=true] .l-contents__sidebar{
	flex-basis: 280px;
}
.l-contents__inner .l-contents__sidebar .wp-block-heading{
    background-color: var(--wp--preset--color--sm-accent);
    display: block;
    padding: 8px 16px;
    color: #fff;
}

/* タイトル（背景色） */
.u-iwuaf-section-title-bg .smb-section__header{
	background-color: var(--wp--preset--color--sm-accent);
	padding: 40px 0;
}
.u-iwuaf-section-title-bg .smb-section__header .smb-section__subtitle{
	color: #FFF;
}
.u-iwuaf-section-title-bg .smb-section__header .smb-section__title{
	color: #FFF;
}
.u-iwuaf-section-title-bg .smb-section__body{
	margin-top: 0;
}

/* タイトル（ボーダー） */
.u-iwuaf-section-title-line .smb-section__header{
	border-top: #000 2px solid;
	border-bottom: #000 2px solid;
	padding: 40px 0;
}
.u-iwuaf-section-title-line .smb-section__header .smb-section__subtitle{
	color:#000;
}
.u-iwuaf-section-title-line .smb-section__header .smb-section__title{

}

/* お知らせ */
.c-entries--panel .c-entry-summary{
	background-color: #fff;
}
.c-entries--text2 .c-entry-summary__body {
	display: flex;
}
@media (max-width:40em) {
	.c-entries--text2 .c-entry-summary__body {
		display: flex;
		flex-direction: column;
	}
}
.c-entries--text2 .c-entry-summary__header {
	order: 2;
	flex: 1;
}
.c-entries--text2 .c-entry-summary__meta {
	order: 1;
	width: 280px;
	margin-top: 0;
}
.c-entries--text2 .c-entry-summary__meta .c-entry-summary__term {
	width: 11em;
	font-size: 12px;
	padding: 0px 8px 1px;
	text-align: center;
	/* border-radius: 40px; */
}
.c-entries--text2 .c-meta__item:not(:last-child) {
	width: 118px;
}
.c-entries--simple,.c-entries--text,.c-entries--text2 {
    border-top: 1px solid #000;
}
:is(.c-entries--simple,.c-entries--text,.c-entries--text2) .c-entries__item {
    border-bottom: 1px solid #000;
}

/* パネル */
.smb-panels__item__action, .smb-panels__item__content {
    text-align: left;
}

/* 研究室について */
.c-iwuaf-about .smb-media-text__figure{
	padding-left:4vw;
	padding-right:4vw;
}
.c-iwuaf-about .smb-media-text__contents-wrapper{
	margin:0;
}
@media (max-width: 1024px) {
	.c-iwuaf-about .smb-media-text__figure{
		max-width: 480px;
		margin: 0 auto;
		padding-left:0;
		padding-right:0;
	}
}
@media (max-width: 640px) {
	.c-iwuaf-about .smb-media-text__figure{
		max-width: 280px;
		margin: 0 auto;
		padding-left:0;
		padding-right:0;
	}
}

/* 研究テーマ */
.c-iwuaf-themes .smb-media-text__figure{
	padding-left:6vw;
}
.c-iwuaf-themes .smb-media-text__contents-wrapper{
	margin:0;
}
@media (max-width: 1024px) {
	.c-iwuaf-themes .smb-media-text__figure{
		max-width: 240px;
		margin: 0 auto;
		padding-left:0;
		padding-right:0;
	}
}
@media (max-width: 640px) {
	.c-iwuaf-themes .smb-media-text__figure{
		max-width: 160px;
		margin: 0 auto;
		padding-left:0;
		padding-right:0;
	}
}

/* 研究テーマ（番号付き） */
.c-iwuaf-theme {
	counter-reset: item-number;
}
.c-iwuaf-theme .smb-items__item.has-background > .smb-items__item__body {
	position: relative;
	counter-increment: item-number;
}
.c-iwuaf-theme .smb-items__item.has-background > .smb-items__item__body::after {
	content: counter(item-number);
	position: absolute;
	background-color: #f39800;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	top: -16px;
	left: -16px;

	display: flex;
	align-items: center;
	justify-content: center;

	color: #fff;
	font-weight: bold;
	font-size: 24px;
	line-height: 1;
}

/* 特長 */
.c-iwuaf-list-benefit{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: auto;
	gap: 16px 4%;
	padding: 0;
	list-style: none;
}
.c-iwuaf-list-benefit li{
	font-size: 1.2rem;
	line-height:1.4;
	font-weight: 800;
	border-bottom: #231815 2px solid;
	padding: 0 0 8px;
	margin:0;
}
@media (max-width: 640px) {
	.c-iwuaf-list-benefit{
		grid-template-columns: repeat(1, 1fr);
	}
	.c-iwuaf-list-benefit li{
		font-size: 1rem;
	}
}
.c-iwuaf-list-benefit li:last-child {
	border-bottom: 0 none;
}

/* メンバー */
@media (max-width: 640px) {
	.c-iwuf-member-wrap{
		padding:40px 20px!important;
	}
}
/* メンバー 教授紹介 */
.c-iwuaf-prof .smb-media-text__figure {
	max-width: 320px;
	margin: 0 auto;
	padding-left: 0;
	padding-right: 0;
}
@media (max-width: 640px) {
	.c-iwuaf-prof .smb-media-text__figure {
		max-width: 240px;
		margin-bottom: 24px;
	}
}
.c-iwuaf-prof .smb-media-text__figure img{
	width: 100%;
	height: auto;
}
/* メンバー アドレス */
.c-iwuaf-address .c-row .smb-information__item__label,
.c-iwuaf-address .c-row .smb-information__item__body{
	padding-top:8px;
	padding-bottom:8px;
}

/* 画像リンク */
.c-iwuaf-image-link a{
	display: block;
	transition: .3s ease;
}
.c-iwuaf-image-link a:hover{
	transform: translateY(-4px);
	box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.2);
}

/* お問い合わせフォーム */
.c-iwuaf-contact .smf-item__label{
	color: #FFF;
}
/* Snow Monkey Forms */
.smf-form--letter .smf-text-control__control,
.smf-form .smf-textarea-control__control{
	border: none;
}
.smb-form__control::placeholder {
	color: #999999;
}
.smf-text-control__control::placeholder,
.smf-textarea-control__control::placeholder {
	color: #999999;
}
/* 進捗 */
.smf-progress-tracker__item__number {
	padding-top: 4px;
	height: 40px;
	width: 40px;
	color: #b28247;
	background-color: #FFF;
}
.smf-progress-tracker__item--input{
	color: #FFF;
}
.c-iwuaf-section .smf-progress-tracker__item:after,
.c-iwuaf-section .smf-progress-tracker__item:before {
    background-color: #FFF;
    height: 1px;
	  top:20px;
}
.smf-progress-tracker__item__text {
    color: #FFF;
}
.smf-form [data-invalid="1"] {
    background-color:#FFEBEB;
}
.smf-error-messages{
	font-size: 0.8rem;
	background-color: #FFEBEB;
	padding: 8px 8px 2px;
	border-radius: 7px;
}
.snow-monkey-form--button-has-accent-color .smf-button-control__control{
	font-size: 1.25rem;
	font-weight: bold;
	border-radius: 8px;
	padding: 16px 48px;
	background: #3e3a39;
}
.snow-monkey-form[data-screen="confirm"] .agreement-text, .snow-monkey-form[data-screen="confirm"] .smf-item__description{display:none;}
.snow-monkey-form[data-screen="confirm"] .smf-placeholder{
    padding: 8px;
    background-color: #f5f5f5;
}

/* その他 */
.smb-media-text.smb-media-text--mobile-image>.c-row .smb-media-text__contents-wrapper, .smb-media-text.smb-media-text--mobile-image>.c-row--reverse .smb-media-text__contents-wrapper, .smb-media-text:where(:not(.smb-media-text--mobile-text):not(.smb-media-text--mobile-text))>.c-row--reverse .smb-media-text__contents-wrapper{
	margin:0;
}

/* テーブル */
.c-iwuaf-table table tr:not(:first-child) > th:first-child,
.c-iwuaf-table table tr:not(:first-child) > td:first-child {
  width: 25%;
}
@media (max-width: 640px) {
  .c-iwuaf-table table tr:not(:first-child) th,
  .c-iwuaf-table table tr:not(:first-child) td {
    font-size: 15px;
  }
.c-iwuaf-table table tr:not(:first-child) > th:first-child,
.c-iwuaf-table table tr:not(:first-child) > td:first-child {
    width: 38%;
  }
}

/* テキスト */
@media (max-width: 640px) {
	.u-sp-align_left{
		text-align:left!important;	
	}
}
.u-text-underline {
	background-image: linear-gradient(
		to bottom,
		transparent calc(100% - 1px),
		#232323 calc(100% - 1px),
		#232323 100%
	);
	background-size: 100% 1.8em;
	background-repeat: repeat-y;
}