@charset "UTF-8";
/* CSS Document */

/*h1アニメーション*/
/* 見出し全体 */
.heading {
  position: relative;
  overflow: hidden;
  text-align: center;
  z-index: 1;
  padding: 20px 0;
  font-size: 1.5rem;
	margin: 50px auto;
	max-width: 800px;
}

/* 見出しテキスト（白→オレンジ） */
.heading span {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: white;
  transition: color 0.2s ease;
}

/* アニメーションで白→オレンジに */
.heading.active span {
  color: #f18b00;
}

/* オレンジ背景アニメーション本体 */
.heading::before {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 0;
  background-color: #f18b00;
  z-index: 1;
  transition: none;
}

/* 左からアニメーション */
.heading.left-slide::before {
  left: 0;
}

.heading.left-slide.active::before {
  animation: slideAndShrinkLeft 1s forwards;
}

/* 右からアニメーション */
.heading.right-slide::before {
  right: 0;
  left: auto;
}

.heading.right-slide.active::before {
  animation: slideAndShrinkRight 1s forwards;
}

/* 左からスライド → 停止 → ライン化 */
@keyframes slideAndShrinkLeft {
  0% {
    left: 0;
    width: 0;
    height: 100%;
    top: 0;
  }
  50% {
    width: 100%;
    height: 100%;
    top: 0;
  }
  80% {
    width: 100%;
    height: 100%;
    top: 0;
  }
  100% {
    width: 100%;
    height: 3px;
    top: calc(100% - 3px);
  }
}

/* 右からスライド → 停止 → ライン化 */
@keyframes slideAndShrinkRight {
  0% {
    right: 0;
    width: 0;
    height: 100%;
    top: 0;
  }
  50% {
    width: 100%;
    height: 100%;
    top: 0;
  }
  80% {
    width: 100%;
    height: 100%;
    top: 0;
  }
  100% {
    width: 100%;
    height: 3px;
    top: calc(100% - 3px);
  }
}

/*h1動きここまで*/





/* メインビジュアル */
.top-img {
  margin-top: 5%;
  height: 50vh;
  background-image: url("../img/shinbi-img/32033057_l.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left center;
  position: relative;
}

.top-img h1 {
  font-size: 4rem;
  font-weight: 500;
  position: absolute;
  bottom: 20px;
  right: 5%;
  color: #fff;
  font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 黒い影を追加 */
}
.top-img span{
	font-size: 2rem;
}
@media screen and (max-width: 700px){
	.top-img h1 {
  font-size: 3rem;
		line-height: 2rem;

}
	.top-img span{
	font-size: 1.5rem;
}
}



.section-01 {
	margin: 0 auto;
	background-image: url("../img/alexander-wende-Hzkp3JPUxVY-unsplash.jpg");
	background-size: cover;
	background-position: center;
	position: relative;
	padding: 50px;
	overflow: hidden; /* 擬似要素はみ出し防止 */
	
}

/* 白いフィルター */
.section-01::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.7); /* 70%白フィルター */
	z-index: 0;
}

/* フィルターの上にコンテンツを出す */
.section-01 > * {
	position: relative;
	z-index: 1;
}


.section-01text img {
  height: 80px;
  display: block;
  margin: 0 auto 20px; /* 横中央＋下に余白 */
	
}


.section-01text{
	max-width: 850px;
	justify-content: center;
	margin: 20px auto;
}
.section-01text h1{
	text-align: center;
	color: #C1B29F;
	font-family:YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
}
.section-01text span{
	font-size: 1rem;
}







/*ホワイトニング*/
.section-02{
	max-width: 1200px;
	margin: 100px auto;
	width: 90%;
}

.section-02-top{
	justify-content: center;
	display: flex;
}
.section-02-top h2{
	color: #f18b00;
	line-height: 3rem;
}
.section-02-top img{
	width: 30%;
	border-radius: 20px;
	object-fit: cover;
}
.section-02-text{
	text-align: left;
	margin: 30px;
	max-width: 510px;
	line-height: 2rem;
}
@media screen and (max-width: 950px){
	.section-02-top {
		display: block;
		text-align: center;
	}
	.section-02 img {
		width: 80%;
		max-height: 300px;
		object-fit: cover;
		margin: 0 auto;
	}
	.section-02-text {
		width: 80%;
		margin: 30px auto;
		text-align: left;
		max-width: 500px;
	}
}
/*フェードイン動き*/
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}


.section-02-type {
	
  margin: 50px auto;
  text-align: left;
	  display: flex;
  justify-content: center; /* 中央に配置 */
}

.section-02-type p {
  display: inline-block; /* 文字幅に合わせる */
  text-align: left;

}

.section-02-type span {
  font-size: 1.5rem;
  font-weight: 700;
}

/*ホワイトニング表*/

.whitening-table {
  width: 90%;
  max-width: 800px;
  margin: 0px auto 50px;
  border-collapse: collapse;
  text-align: left;
}

.whitening-table th,
.whitening-table td {
  border: 1px solid #ccc;
  padding: 10px;
  vertical-align: top;
}

.whitening-table thead th {
  background: #f0e0d0;
  text-align: center;
}

.whitening-table th {
  background: #f9f5f0;
  width: 25%;
}

.whitening-table tbody th {
  font-weight: normal;
}

.whitening-table td {
  width: 37.5%;
}

@media screen and (max-width: 768px) {
  .whitening-table {
    font-size: 0.9rem;
  }
}


/*ホワイトニングQ&A*/
.section-03{
	background-color: #f8f8ff;
	padding: 50px;
	
}
.section-03 h1 {
  text-align: center;
  font-size: 1.5rem;
  color: #f18b00;
	margin-bottom: 20px;
}

.section-03 h1 span {
  display: inline-block;
  border-bottom: 2px solid #f18b00;
}
.qa-section{
		background-color: #fff;
	border-radius: 15px;
	padding: 50px;
}
.Qa-Box {
  width: 80%;
  margin: 0 auto;

}

.Qa-Box .Qa {
  padding: 20px 0;
  border-bottom: 1px solid #c8c8c8;
}

.Qa-Box .Qa dt,
.Qa-Box .Qa dd {
  display: flex;
  align-items: baseline;
  margin: 15px 0;
}

.Qa-Box .Qa dt p {
  margin: 0;
  padding-left: 15px;
  font-weight: bold;
  width: 100%;
}

.Qa-Box .Qa dd p {
  margin: 0;
  padding-left: 15px;
  width: 100%;
}

.Qa-Box .Qa:last-of-type {
  border-bottom: none;
}

.Qa-Box .Qa dt::before {
  content: "Q";
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: #6699b7;
  width: 2em;
  height: 2em;
}

.Qa-Box .Qa dd::before {
  content: "A";
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: #d65556;
  width: 2em;
  height: 2em;
}

@media screen and (max-width: 960px) {
  .Qa-Box {
    width: 95%;
  }
}

/*被せ物の種類*/


.section-04-top{
	justify-content: center;
	display: flex;
	flex-direction: row-reverse; 
	margin-bottom: 50px;
}
.section-04-top h2{
	color: #f18b00;
	line-height: 3rem;
}
.section-04-top img{
	width: 30%;
	border-radius: 20px;
	object-fit: cover;
}
.section-04-text{
	text-align: left;
	margin: 30px;
	max-width: 510px;
	line-height: 2rem;
}
@media screen and (max-width: 950px){
	.section-04-top {
		display: block;
		text-align: center;
	}
	.section-04 img {
		width: 80%;
		max-height: 300px;
		object-fit: cover;
		margin: 0 auto;
	}
	.section-04-text {
		width: 80%;
		margin: 30px auto;
		text-align: left;
		max-width: 500px;
	}
}



/*素材の表*/
.section-04{
	width: 80%;
	margin: 50px auto;
}




/* コンテナ全体 */
.crown-table-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

/* 横スクロール用ラッパー */
.crown-table-wrap {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
}
/* テーブル本体 */
.crown-table {
  table-layout: auto; /* ← 固定をやめる */
  border-collapse: collapse;
  width: 100%;
  min-width: 800px;
}

/* セル共通 */
.crown-table th,
.crown-table td {
  border: 1px solid #ccc;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  white-space: normal; /* ← nowrap をやめて折り返し有効 */
  background: #fff;
  word-break: break-word;
}
/* ヘッダー */
.crown-table th {
  background-color: #f2f2f2;
  font-weight: bold;
  text-align: center;
}

/* 偶数行の背景色 */
.crown-table tr:nth-child(even) {
  background-color: #fafafa;
}

/* 金属不使用・審美性 列を中央揃え */
.crown-table td:nth-child(5),
.crown-table th:nth-child(5),
.crown-table td:nth-child(6),
.crown-table th:nth-child(6) {
  text-align: center;
}
/* 固定列（種類） */
.sticky-col {
  position: sticky;
  left: 0;
  background-color: #fff;
  z-index: 1;
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
  min-width: 150px;
  max-width: 200px;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

/* ヘッダーの固定列はz-indexを強く */
.crown-table thead .sticky-col {
  background-color: #f2f2f2;
  z-index: 2;
}

/* スマホ表示（幅700px以下）のとき、種類列をコンパクトに・折り返し可 */
@media screen and (max-width: 700px) {
  .sticky-col {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    white-space: normal;            /* 折り返し許可 */
    overflow-wrap: break-word;      /* 自然な折り返し */
    word-break: break-word;
    line-height: 1.4;
  }

  /* テーブル内の文字サイズ少し小さくする */
  .crown-table {
    font-size: 0.9rem;
  }

  .crown-table th,
  .crown-table td {
    padding: 10px 8px;
  }
}

/* スクロール表示用の矢印（シンプル） */
.scroll-indicator {
  position: absolute;
  right: 0;
  bottom: -26px; /* 表の外に表示 */
  font-size: 0.85rem;
  color: #f28c28; /* オレンジ */
  font-weight: bold;
  display: none;
  background: none;
  border: none;
  padding: 0;
}

/* スクロール矢印：幅1500px以下で表示 */
@media screen and (max-width: 1000px) {
  .scroll-indicator {
    display: block;
  }
}