/* ==================================================
一般歯科ブロック
================================================== */
section.top-gd-section {
  --top-gd-orange: #f7931e;
  --top-gd-light-orange: #ffd1a1;
  --top-gd-card-bg: #fff4e5;
  --top-gd-card-frame: #ddb991;
  --top-gd-navy: #4c5c75;
  --top-gd-text: #333333;
  --top-gd-underline: #dfa367;


  position: relative;
  overflow: hidden;
  padding: 105px 20px 95px;
  background-color: #fffaf3;
  background-image: url("https://fukushima-higuchidc.jp/wp-content/uploads/2026/07/top_general_bg.png");
  background-repeat: no-repeat;
background-position: 20% top;
  background-size: cover;
  font-family: "Noto Serif JP", serif;
}

.top-gd-section,
.top-gd-section * {
  box-sizing: border-box;
}

.top-gd-section__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* ==================================================
見出し
================================================== */
.top-gd-section__heading {
  text-align: center;
}

.top-gd-section__title {
  margin: 0;
  color: #252525;
font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.06em;
}

/* H2下部のオレンジマーカー */
.top-gd-section__title-marker {
  display: inline;
  padding: 0 0.05em 0.06em;
  background: linear-gradient(
    transparent 70%,
    var(--top-gd-light-orange) 70%
  );
}

/* 「一般歯科」のみ太字・ネイビー */
.top-gd-section__title-keyword {
background: var(--gradient-shiny-navy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    color: transparent;
font-size: 67px;
  font-weight: 700;
}

.top-gd-section__lead {
  max-width: 970px;
  margin: 34px auto 0;
  color: var(--top-gd-text);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.05em;
}

/* スマホ */
@media screen and (max-width: 768px) {
  .top-gd-section__title-keyword {
    font-size: 36px;
  }
}

/* ==================================================
カード一覧
================================================== */
.top-gd-section__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 68px;
}

/* ==================================================
カード
================================================== */
.top-gd-card {
  position: relative;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  background: var(--top-gd-card-bg);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 左上のオレンジ三角形 */
.top-gd-card::before {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  background: #ffad69;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  content: "";
  pointer-events: none;
}

/* 右下の大きな淡い三角形 */
.top-gd-card::after {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  height: 300px;
  background: #ffe0bf80;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  content: "";
  pointer-events: none;
}

/* カード内枠 */
.top-gd-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 9px 9px 20px;
  background: transparent;
  border: 0.4px solid #532500;
}

/* ==================================================
カード画像
================================================== */
.top-gd-card__image {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  margin: 0;
  background: #ffffff;
}

.top-gd-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  object-fit: cover;
}

/* ==================================================
カード本文
================================================== */
.top-gd-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 9px 0;
}

.top-gd-card__title {
  min-height: 88px;
  margin: 0;
  color: var(--top-gd-navy);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 600;
  line-height: 1.65;
  text-align: center;
  letter-spacing: 0.04em;
}

.top-gd-card__marker {
    background: linear-gradient(135deg, #f7961d, #ffb347, #ffc371);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  font-size: 1.6em;
  font-weight: 700;
	  position: relative;
  display: inline-block;
}

/* 診療名の黄色マーカー */
.top-gd-card__marker::before {
  position: absolute;
  z-index: -1;
  right: 0.88em;
  bottom: 0.12em;
  left: 0.88em;
  height: 0.4em;
  background-color: #ffe19a80;
  content: "";
	  pointer-events: none;
}

/* H3下の細い線 */
.top-gd-card__title::after {
  display: block;
  width: 70%;
  height: 1px;
  margin: 13px auto 0;
  background: #d6c2ad;
  content: "";
}

.top-gd-card__text {
  flex: 1;
  margin: 14px 0 0;
  color: var(--top-gd-text);
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
  letter-spacing: 0.025em;
}

/* 本文内の下線 */
.top-gd-card__underline {
  text-decoration-line: underline;
  text-decoration-color: var(--top-gd-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: none;
}

/* ==================================================
詳細ボタン
================================================== */
.top-gd-card__button {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 90%);
  min-height: 44px;
  margin: 25px auto 0;
  padding: 10px 42px 10px 24px;
  color: #ffffff;
  font-size: 14px;
	font-weight:600;
	line-height: 1.4;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.05em;
  background: var(--top-gd-orange);
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(247, 147, 30, 0.2);
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.top-gd-card__button::after {
  position: absolute;
  top: 50%;
  right: 20px;
  color: #ffffff;
  font-family: sans-serif;
  font-size: 18px;
  line-height: 1;
  content: "›";
  transform: translateY(-52%);
}

.top-gd-card__button:hover {
  color: #ffffff;
  background: #e9820f;
  box-shadow: 0 7px 15px rgba(247, 147, 30, 0.28);
  transform: translateY(-3px);
}

/* ==================================================
タブレット
================================================== */
@media screen and (min-width: 769px) and (max-width: 1100px) {
  .top-gd-section {
    padding: 85px 20px 80px;
  }

  .top-gd-section__cards {
    gap: 14px;
    margin-top: 55px;
  }

  .top-gd-card {
    padding: 9px;
  }

  .top-gd-card::before {
    width: 42px;
    height: 42px;
  }

  .top-gd-card::after {
    width: 125px;
    height: 125px;
  }

  .top-gd-card__inner {
    padding: 7px 7px 17px;
  }

  .top-gd-card__body {
    padding: 14px 6px 0;
  }

  .top-gd-card__title {
    min-height: 82px;
    font-size: 17px;
  }

  .top-gd-card__text {
    font-size: 13px;
  }

  .top-gd-card__button {
    width: 92%;
    padding-right: 34px;
    padding-left: 18px;
    font-size: 13px;
  }

  .top-gd-card__button::after {
    right: 15px;
  }
}

/* セクション背景の三角形 */
section.top-gd-section::before,
section.top-gd-section::after {
  position: absolute;
  z-index: 0;
  display: none;
  content: "";
  pointer-events: none;
}

/* 中身を装飾より前面に配置 */
.top-gd-section__inner {
  position: relative;
  z-index: 1;
}

/* ==================================================
スマホ
================================================== */
@media screen and (max-width: 768px) {
  section.top-gd-section {
    padding: 22px 16px 70px;

    /* PC用の背景画像を解除 */
    background-color: #fff8ef;
    background-image: none;
    background-repeat: no-repeat;
    background-position: initial;
    background-size: auto;
  }

  /* 左上の三角形 */
  section.top-gd-section::before {
    top: 0;
    left: 0;
    display: block;
    width: 120px;
    height: 120px;
    background-color: rgba(247, 147, 30, 0.2);
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }

  /* 右下の三角形 */
  section.top-gd-section::after {
    right: 0;
    bottom: 0;
    display: block;
    width: 190px;
    height: 190px;
    background-color: rgba(255, 193, 132, 0.65);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
  }

  .top-gd-section__inner {
    max-width: 520px;
  }

  .top-gd-section__title {
    font-size: 26px;
line-height: 1.35;
        font-weight: 400;
    letter-spacing: 0.03em;
  }

  .top-gd-section__title-keyword {
    font-size: 36px;
  }

  .top-gd-section__title-marker {
    padding-bottom: 0.04em;
    background: linear-gradient(
      transparent 72%,
      var(--top-gd-light-orange) 72%
    );
  }

  .top-gd-section__lead {
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
    letter-spacing: 0.02em;
  }

  .top-gd-section__lead-break {
    display: none;
  }

  .top-gd-section__cards {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 45px;
  }

  .top-gd-card {
    padding: 10px;
  }

  .top-gd-card::before {
    width: 45px;
    height: 45px;
  }

  .top-gd-card::after {
    width: 145px;
    height: 145px;
  }

  .top-gd-card__inner {
    padding: 8px 8px 20px;
  }

  .top-gd-card__body {
    padding: 16px 10px 0;
  }

  .top-gd-card__title {
    min-height: 0;
    font-size: 19px;
  }

  .top-gd-card__text {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.9;
  }

  .top-gd-card__button {
    width: min(240px, 90%);
    min-height: 46px;
    margin-top: 24px;
    font-size: 14px;
  }
	 .top-gd-section__heading {
    position: relative;
    padding-top: 52px;
  }

  .top-gd-section__heading::before {
    position: absolute;
        top: 5%;
        left: 50%;
        width: 100%;
        color: rgba(76, 92, 117, 0.1);
        font-family: "Noto Serif JP", serif;
        font-size: 33px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0.03em;
        white-space: nowrap;
        text-align: center;
        content: "General Dentistry";
        transform: translateX(-59%);
        pointer-events: none;
  }
}