@charset "utf-8";
/* CSS Document */
body {
  color: #333333;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400; /* 標準の太さ */
}
/*h1*/
h1, .h2 {
  position: relative;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  font-size: 1.5rem;
  color: #333;
  text-align: center;
  margin: 2em 0; /* 上下余白はお好みで */
}
h1::before, h1::after, .h2::before, .h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #cbc8b4;
  margin: 0 1em; /* テキストとの間隔 */
}
h1 img, .h2 img {
  width: 24px;
  height: auto;
  margin-right: 0.5em;
}
h2 {
  font-weight: normal;
}
p, li, dt, dd {
  font-weight: normal;
  font-size: 1rem; /* = 16px想定 */
  line-height: 1.8; /* 行間（約28〜30px） */
  letter-spacing: 0.05em; /* 文字間 */
  color: #333;
  border-top-left-radius: 0px;
}
/*リンクボタン*/
.button {
  text-align: center; /* ← ボタンを中央寄せ */
  margin: 40px 0 100px 0;
}
/*ふわっとUP*/
.up {
  opacity: 0;
  transform: translateY(30px); /* 下から上 */
  transition: all 0.8s ease;
}
.up.show {
  opacity: 1;
  transform: translateY(0);
}
.info-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  max-width: 100%;
  padding: 12px 16px;
  background: #ECE9D8;
  border-radius: 50px;
  color: #1a1a1a;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04) inset;
  transition: transform .08s ease, box-shadow .12s ease;
  position: relative;
}
.info-box::after {
  content: "→";
  font-size: 18px;
  margin-left: 10px;
  transition: transform .15s ease;
}
.info-box:hover, .info-box:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  outline: none;
}
.info-box:hover::after, .info-box:focus::after {
  transform: translateX(4px);
}
section {
  margin-bottom: 100px;
}
.sectionh1 p {
  position: relative;
  max-width: 550px;
  margin-inline: auto;
  padding: 0 20px;
	text-align: left;
}
.sectionh1 {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  max-width: 100%;
  /* ▼ 2つの背景画像を指定 */
  background-image: url("../img/ha1.svg"), url("../img/ha2.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: calc(50% - 350px) calc(100% - 30px), calc(50% + 350px) calc(100% + 0px);
  background-size: 90px, 120px;
}
/*about*/
.about {
  display: flex;
  align-items: center; /* テキストを縦中央に */
  justify-content: space-between;
	width: 70%;
    margin-inline: auto;
}
/* 左画像ブロック */
.about-img {
  flex-shrink: 0; /* 画像が縮まないように固定 */
  width: 40%
}
/* 右テキストブロック */
.about-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 縦中央配置 */
  width: 30%;
  margin-inline: auto;
}
section.kakari {
  display: flex;
  flex-flow: row-reverse;
  max-width: 70%;
  margin-inline: auto;
  background-image: url(../img/ha3.svg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 90px;
}
.kakari-img {
  flex-shrink: 0;
}
.kakari-img img {
  border-radius: 12px;
  display: block;
  margin: 40px auto;
  box-shadow: -30px 30px 0 #ECE9D8;
}
.kakari-txt {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 40%;
  margin-inline: auto;
}
section.kakari2 {
  display: flex;
  max-width: 70%;
  margin-inline: auto;
}
.kakari2-img {
  flex-shrink: 0;
}
.kakari2-img img {
  border-radius: 12px;
  display: block;
  margin: 40px auto;
  box-shadow: 30px 30px 0 #ECE9D8;
}
.kakari2-txt {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 40%;
  margin-inline: auto;
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 650px;
  margin-inline: auto;
  padding: 0 20px;
}
.news-list li {
  display: flex;
  align-items: flex-start; /* 上を揃える */
  gap: 1em; /* 日付と本文の間のスペース */
  line-height: 1.6;
  margin-bottom: 0.8em;
}
.news-list li:not(:last-child) {
  border-bottom: 1px #cccccc solid;
  padding-bottom: 10px;
}
li .news-link {
  margin-top: auto; /* 上のスペースを自動で埋めて下に寄せる */
}
.news-list .date {
  flex-shrink: 0; /* 日付幅を固定 */
  width: 7em; /* 日付部分の幅（調整可能） */
  color: #666;
}
section.iro {
  padding: 50px;
  background: #ffeadd;
  background-image: url(../img/ha2.svg);
  background-repeat: no-repeat, no-repeat;
  background-position: calc(50% + 150px) calc(0% + 70px);
  background-size: 50px;
  width: 90%;
  margin-inline: auto;
  border-radius: 10px;
}
.time-map {
  border-top: 1px solid #CCCCCC;
  margin-top: 0px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.time-map > div {
  border-right: 1px solid #CCCCCC;
}
.time-map div {
  width: 50%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-content: center;
}
.time-map section {
  margin-bottom: 0px;
}
.table table, .table table td {
  border: 1px solid #5A6B42;
  border-collapse: collapse;
}
.table table th, .table table td {
  padding: 10px;
}
.table th {
  background: #5A6B42;
  color: white;
}
.table tr > th:not(:last-child) {
  border-right: 1px solid #FFFFFF;
}
.table img.hanten {
  transform: scaleX(-1);
}
.footer {
  background: #ece9d8;
  margin-bottom: 0;
  ;
  padding-top: 50px;
  padding-bottom: 50px;
}
.footer div img {
  width: 100px;
  display: block;
  margin-inline: auto;
  margin-bottom: 30px;
}
#footer-menu {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
}
#footer-menu li .reserve {}
#footer-menu li a {
  display: block;
  padding: 10px;
}
.copy {
  text-align: center;
  font-size: 0.8em;
}
.time-map div.map-wrap {
  width: 80%; /* ページ幅の80%に制限 */
  margin: 0 auto; /* 中央寄せ */
  position: relative;
  padding-bottom: 56.25%; /* ← 16:9 の比率（高さ） */
  height: 0; /* 実際の高さはpaddingで作る */
  overflow: hidden;
  margin-bottom: 50px;
}
.map-wrap {
  max-width: 1000px; /* ページ幅の80%に制限 */
  margin: 0 auto; /* 中央寄せ */
  position: relative;
  padding-bottom: 30%; /* ← 16:9 の比率（高さ） */
  height: 0; /* 実際の高さはpaddingで作る */
  overflow: hidden;
  margin-bottom: 50px;
}
.map-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/*診療案内*/
.sec-shinryou p {
  margin-inline: auto;
  padding-left: 50px;
  padding-right: 50px;
  width: fit-content;
}
/*院長紹介*/
.intyou {
  display: flex;
  max-width: 1000px;
  margin-inline: auto;
	margin-bottom: 100px
}
.intyou div {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.intyou p {
  padding: 20px 40px;
}
.intyou p:nth-child(1) {
  background-color: rgba(147, 121, 96, 0.7);
}
.intyou p:nth-child(2) {
  background-color: rgb(236 233 216);
}
.intyou + div {
    padding: 0 20px;
	max-width: 1000px;
	margin-inline:auto;
}
.line {
  background: linear-gradient(transparent 60%, #b0e381b3 60%);
}
.linered {
  background: linear-gradient(transparent 60%, #e38181b3  60%);
}
  
.linered,.linered {
  display: inline;
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 1s ease;
  /* cloneを外す */
  box-decoration-break: initial;
  -webkit-box-decoration-break: initial;
}

.line.active,.linered.active {
  background-size: 100% 100%;
}

/*faq*/
.faq-list{
	max-width: 700px;
    margin-inline: auto;
	margin-bottom: 50px
}
.faq-list li{
	
}
.faq-list li a{
	display: block;
    border-bottom: 1px #cccccc solid;
    padding: 10px;
	transition: 0.5s;
}
.faq-list li a:hover{
	background: #EBEBEB
}
.other {
    max-width: 800px;
    margin-inline: auto;
    padding: 10px;
}
.other p {
    background: beige;
    padding: 10px;
    border-radius: 10px;
}
.qa {
  max-width: min(800px, calc(100% - 40px)); /* 画面幅から左右20px引く */
  margin-inline: auto; /* 中央寄せ */
  background: antiquewhite;
  border-radius: 10px;
  padding: 20px;
	margin-bottom: 100px
}
.qa dl {
    padding: 0;
    margin: 0;
}
.qa dt {
  position: relative;
  padding-left: 50px; /* Qアイコン分の余白 */
  margin-bottom: 20px;
  font-weight: bold;
}
.qa dt:not(:first-of-type) {
  margin-top: 30px; /* 2個目以降に上の余白など */
}
.qa dd {
  position: relative;
  background: white;
  margin: 0;
  padding: 20px 20px 20px 50px; /* Aアイコン分の余白 */
  border-radius: 10px;
}
/* --- Qマーク --- */
.qa dt::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fbc378;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}

/* --- Aマーク --- */
.qa dd::before {
  content: "A";
  position: absolute;
  left: 15px;
  top: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fbc378;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}
/*FAQ今見ているリンク*/
.faq-list li a.current {
  display: block;             /* liの幅いっぱいに背景を伸ばす */
  background-color: #EBEBEB;  /* 背景色 */
  pointer-events: none;       /* クリック無効化 */
  color: #666;                /* 文字色変更 */
  cursor: default;
  padding: 8px 12px;          /* 好みで余白調整 */
  border-radius: 4px;         /* 角丸（任意） */
}
.clinic {
	max-width: 1000px;
	padding-right: 0px;
	margin-inline: auto;
}
.clinic .c1, .clinic .c2 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.c1 {
    flex-direction: row-reverse;
}
.clinic .c1 div, .clinic .c2 div {
	width: 50%;
}
.clinic .c1 div:nth-child(1), .clinic .c2 div:nth-child(1) {
	display: flex;
    flex-direction: column;
    padding: 0 40px;
}
.clinic .c1 img{
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
}
.clinic .c2 img{
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
}
.clinic h2 {
    color: #58836e;
    font-weight: bold;
    margin-bottom: 0;
}
/*頭痛外来*/
section > div {
	max-width: 950px;
	margin-inline:auto;
	padding: 0 20px;
}
.headtop h3 {
	color: #58836e;
	font-weight: bold;
}

.tab-content h3 {
	color: #58836e;
}
.tab-content h4 {
	color: #58836e;
}

.tab-content .kin-img1 {
	float: right;
}

.tab-content .taisyo {
    background-color: #ECE9D8;
    border-radius: 10px;
    padding: 15px;
}
.tab-content .taisyo h3 {
	margin: 0 0 20px 0;
    background: #428B00;
    color: white;
    padding: 10px;
    border-radius: 10px;
}
p.gotoheadmenu a {
    display: block;
    width: fit-content;
    margin-inline: auto;
    padding: 10px 20px;
    background: #ece9d8;
    border-radius: 10px;
    color: #428b00;
}

  .title-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
    padding: 20px;
    margin: 0;
    border-radius: 10px;
    background: #fffdf4;
}
.title-list li {
  position: relative;
    padding-left: 1em;
    display: flex;
    align-items: center;
    border-bottom: 1px #ccc dotted;
}
/* ドットマークをつける */
.title-list li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: #333;
  border-radius: 50%;
  transform: translateY(-50%);
}
/* スマホで1列に */
@media (max-width: 767px) {
  .title-list {
    grid-template-columns: 1fr; /* スマホでは1列 */
  }
}
p.hen-right {
	float: right;
	margin: 20px 20px;
}
p.hen-right img{
	border-radius: 10px;
}
.yoboutouyo {
	background-color: #FFA716;
    padding: 10px 15px;
    width: fit-content;
    border-radius: 10px;
}
.syoujou-title  {
}
/*症候性頭痛*/
.symptom-list {
  margin: 0;
  padding: 0;
}

.symptom-list .item {
  display: flex;
  align-items: center; /* 上下中央揃え */
  margin-bottom: 8px; /* 各行の間隔 */
}

.symptom-list dt {
	flex: 1;
	text-align: center;
	position: relative;
	padding-right: 10px;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
	padding: 10px;
	background-color: #FFDFDF;
}


.symptom-list dd {
	flex: 1;
	margin: 0;
	padding-left: 10px;
	text-align: center;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	padding: 10px;
	background: #a52102;
	color: white;
}
h3.cap {
	background: #ece9d8;
    width: fit-content;
    margin-inline: auto;
    padding: 10px 40px;
    border-radius: 10px;
}


@media (max-width:1200px) {
  .about {
    display: block;
    margin-bottom: 0;
  }
  /* 左画像ブロック */
  .about-img {
    width: 90%
  }
  /* 右テキストブロック */
  .about-text {
    width: 80%;
  }
  section.kakari, section.kakari2 {
    display: block;
    max-width: 80%;
    background-position: right 300px;
  }
  .kakari-txt, .kakari2-txt {
    width: 100%;
  }
}
@media (min-width:769px) {.os{display: none}}
@media (max-width:768px) {
	.op{
		display: none;
	}
  h1 {
    font-size: 5vw;
  }
  h2 {
    font-size: 5vw;
  }
  .main-right img { /*画像を右にずらす*/
    margin-left: 20px;
  }
  .sectionh1 {
    background-position: calc(0% + 20px) calc(100% - 30px), calc(100% - 20px) calc(100% + 0px);
    background-size: 10%, 10%;
  }
  .sectionh1 {
    padding-top: 0;
  }
  .main-right {
    margin: 0;
  }
  .news-list li {
    display: block;
  }
  .news-list .date {
    flex-shrink: 0;
    width: 7em;
    color: #666;
    display: block;
  }
  section.iro {
    padding: 10px 0 20px 0;
  }
  .time-map {
    display: block;
  }
  .time-map > div {
    border-right: none;
  }
  .time-map div {
    width: 100%;
  }
  .time-map div.map-wrap {
    width: 95%;
  }
  .map-wrap {
    width: 95%;
    padding-bottom: 90%;
  }
	.intyou {
	display: block;
	position: relative;
	margin-bottom: 100px;
}
	.intyou div {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0;
}
	.intyou p:nth-child(1) {
  background-color: rgba(147, 121, 96, 0.7);
		color: white;
}
.qa {
  max-width: min(800px, calc(100% - 20px)); /* 画面幅から左右20px引く */
	padding: 10px;
}	
	.qa dd {
    padding: 60px 10px 10px 10px;
}
/*クリニック*/	
.clinic .c1, .clinic .c2 {
	display: block;
	margin-bottom: 50px;
}
.clinic .c1 div, .clinic .c2 div {
	width: 100%;
}
.clinic .c1 img {
    width: 90%;
    margin-left: auto;
}
.clinic .c2 img {
    width: 90%;
    margin-right: auto;
}
	.tab-content .kin-img1 {
    float: none;
}
	.kin-img1 img {
    margin-inline: auto;
}
/*頭痛*/
	p.hen-right {
    float: none;
    margin: 20px;
}
	p.hen-right img {
    border-radius: 10px;
    margin-inline: auto;
}
	.symptom-list .item {
    display: block;
    align-items: center;
    margin-bottom: 8px;
}
	.symptom-list dt {
    border-top-right-radius: 10px;
    border-bottom-left-radius: 0;
}
	.symptom-list dd {
    border-top-right-radius: 0;
    border-bottom-left-radius: 10px;
}
	
}
