﻿@charset "utf-8";

/*Font Awesomeの読み込み
---------------------------------------------------------------------------*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

/*Google Fontsの読み込み
---------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Reddit+Sans:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');


/*テンプレート専用cssファイルの読み込み
---------------------------------------------------------------------------*/
@import url("slide.css");
@import url("inview.css");

body {
  margin: 0;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ", "Osaka", "MS PGothic", "ＭＳ Ｐゴシック", sans-serif;	/*フォント種類（ゴシック）*/
  background: #2f3332;
  color: #fff;
}

/* ヘッダー */
.header {
  background: linear-gradient(to right, #fff 0%, #fff 50%);
  /* background: #ccc; */
  text-align: center;
  padding: 0px;
  border-bottom: 5px solid #20b2aa;
}

.header h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 2px;
}

.header a {
  text-decoration: none;
}

.logo {
  font-family: "Reddit Sans", sans-serif;
  color: #20b2aa;
  margin-top: 0px;
  margin-bottom: 0px;
}
.logo img{
  height: 60px;
  object-fit: contain;
  padding-top: 5px;
 }

.logo h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 2px;
}

.logo span {
  font-size: 14px;
  display: block;
  margin-top: 4px;
  color: #cfcfcf;
}

/* ナビ */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  gap: 16px;
  padding: 0px 16px;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-end;
}

.nav li {
  flex: 0 0 120px;
}

.nav a {
  display: block;
  text-align: center;
  padding: 15px;
  background: #fff;
  color: #000;
  text-decoration: none;
}

.nav a:hover {
  background: #20b2aa;
  color: #fff;
}

.nav span {
  font-size: small;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  color: #000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

body.nav-open .nav-toggle span {
  background: transparent;
}

body.nav-open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* おすすめポイント */
.recommend {
  padding: 50px;
  background: #2f3332;
}

.recommend-feature {
  position: relative;
  max-width: 1200px;
  height: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #2b2b2b;
}

.recommend-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recommend-feature-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.15) 60%, transparent);
}

.recommend-feature-content h3 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 1px;
}

.recommend-feature-content p {
  margin: 0;
  max-width: 34em;
  line-height: 1.8;
  color: #f0f0f0;
}

.recommend-feature-content .detail-button {
  width: fit-content;
}

/* 事業内容ヒーロー画像 */
.service-hero {
  height: 200px;
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)),
    url('../images/hero-works.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-hero-text {
  text-align: center;
}
.service-hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

/* 会社情報ヒーロー画像 */
.company-hero {
  height: 200px;
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)),
    url('../images/hero-company.JPG');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.company-hero-text {
  text-align: center;
}
.company-hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

/* 問い合わせヒーロー画像 */
.contact-hero {
  height: 200px;
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)),
    url('../images/hero-04.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-hero-text {
  text-align: center;
}
.contact-hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

/* サービス */
.services {
  padding: 50px;
  /* background: #1a1a1a; */
  background: #2f3332;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.service-grid div {
  background: #222;
  padding: 30px;
  transition: 0.3s;
}

.service-grid div:hover {
  background: #333;
  transform: translateY(-5px);
}

/* カード */
.card {
  position: relative;
  height: 280px; /* ← 高さ固定（重要） */
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #2f2f2f;
  border-left: 5px solid #20b2aa;
}

/* 画像 */
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

/* テキスト */
.card-text {
  position: absolute;
  bottom: 0;
  width: 80%;
  padding: 20px;
  size: xx-large;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* ホバー */
.card:hover img {
  transform: scale(1.08);
}

/* =============================
 セクション
============================= */
.works-section, .company-section {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

/* セクションタイトル */
.section-title {
  text-align: center;
  font-size: 18px;
  border-bottom: 2px solid #20b2aa;
  /* border-bottom: 2px solid #f39c12; */
  padding-bottom: 10px;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* =============================
 施工ブロック（ここが重要🔥）
============================= */
.item {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.item-link {
  text-decoration: none;
  color: inherit;
}

.works-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.works-card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.works-card-grid .item {
  margin-bottom: 0;
  padding-bottom: 0;
  border: 1px solid #2f2f2f;
  border-bottom: 1px solid #2f2f2f;
  border-radius: 8px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: 100%;
  overflow: hidden;
}

.works-card-grid .gallery,
.works-card-grid .work-text {
  width: 100%;
}

.works-card-grid .gallery {
  margin-bottom: 5px;
}

.works-card-grid .gallery .gallery-thumbnail {
  width: 100%;
}

.works-card-grid .work-text {
  margin: 0 10px;
}

/* =============================
 画像エリア
============================= */
.gallery {
  width: 50%;
  display: flex;
  gap: 10px;
}

.gallery a {
  display: block;
  width: 50%;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  transition: 0.3s;
}

/* ホバーで少し動く */
.gallery .gallery-thumbnail:hover {
  transform: scale(1.05);
}

.gallery--stack-3 {
  flex-direction: column;
}

.gallery--stack-3 a {
  width: 100%;
}

.gallery--stack-3 img {
  width: 100%;
}

.gallery--grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 50%;
}

.gallery--grid-2 a {
  width: 100%;
}

.gallery--grid-2 img {
  width: 100%;
}

.gallery--slide-2 {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 10px) / 2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery--slide-2 a {
  width: 100%;
}

.gallery--slide-2::-webkit-scrollbar {
  display: none;
}

.gallery--slide-2 img {
  width: 100%;
  scroll-snap-align: start;
}

.gallery--slider {
  display: block;
}

.gallery--slider .gallery-viewport {
  position: relative;
  height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 6px;
}

.gallery--slider .gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery--slider .gallery-track {
  display: grid;
  grid-auto-flow: row;
  grid-auto-rows: auto;
}

.gallery--slider .gallery-slide {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: auto;
  scroll-snap-align: start;
}

.gallery--slider .gallery-slide a {
  width: 100%;
}

.gallery--slider .gallery-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  transition: 0.3s;
}

.gallery--slider .gallery-slide img:hover {
  transform: scale(1.05);
}

.gallery--slider .gallery-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  z-index: 2;
}

.gallery--slider .gallery-arrow--prev {
  top: 6px;
}

.gallery--slider .gallery-arrow--next {
  top: auto;
  bottom: 6px;
}

.gallery--slider .gallery-slide--first .gallery-arrow--prev {
  display: none;
}

.gallery--slider .gallery-slide--last .gallery-arrow--next {
  display: none;
}

.gallery--slider .gallery-arrow:hover {
  background: #20b2aa;
  color: #111;
}

@media (max-width: 768px) {
  .gallery--slider .gallery-viewport {
    height: 370px;
  }

  .gallery--slider .gallery-slide {
    gap: 8px;
  }

  .gallery--slider .gallery-slide img {
    height: 180px;
  }

  .gallery--slider .gallery-arrow {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
}

/* =============================
 テキストエリア
============================= */
.work-text {
  width: 50%;
}

/* 工事タイトル */
.work-text h3 {
  font-size: 20px;
  margin-bottom: 15px;
  border-left: 5px solid #20b2aa;
  padding-left: 10px;
}

/* ラベル */
.work-text span {
  color: #20b2aa;
  font-weight: bold;
}

/* 説明 */
.work-text p {
  margin: 5px 0;
  font-size: 14px;
}


/* =============================
 画像エリア（トピック）
============================= */
.topic-gallery {
  width: 100%;
  /* display: flex; */
  gap: 10px;
}

.topic-gallery img {
  width: 100%;
  /* height: 220px; */
  object-fit: cover;
  border-radius: 6px;
  transition: 0.3s;
}

.video-container {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media screen and (min-width:700px) {
  .topic-gallery--stack-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .topic-gallery--stack-2 img {
    width: 100%;
  }
}

/* =============================
 テキストエリア（トピック）
============================= */
.topic-work-text {
  width: 100%;
}

/* 工事タイトル */
.topic-work-text h3 {
  font-size: 20px;
  margin-bottom: 15px;
  border-left: 5px solid #20b2aa;
  padding-left: 10px;
}

/* ラベル */
.topic-work-text span {
  color: #20b2aa;
  font-weight: bold;
}

/* 説明 */
.topic-work-text p {
  margin: 5px 0;
  font-size: 18px;
}


/* =============================
 詳細ページ
============================= */
.detail-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.detail-hero {
  margin: 30px 0 50px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid #2f2f2f;
  border-radius: 18px;
}

.detail-kicker {
  margin: 0 0 12px;
  /* color: #f39c12; */
  color: #20b2aa;
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.detail-lead {
  max-width: 44em;
  margin: 0;
  line-height: 1.9;
  color: #e8e8e8;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.detail-button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: #20b2aa;
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.detail-button--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #5a5a5a;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.detail-panel {
  background: #161616;
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  padding: 22px;
}

.detail-panel h2 {
  margin-top: 0;
}

.detail-gallery {
  display: grid;
  /* grid-template-columns: 1.6fr 1fr; */
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  border-radius: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  background: #161616;
  border: 1px solid #2b2b2b;
  border-left: 4px solid #20b2aa;
  border-radius: 14px;
  padding: 18px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.service-card p {
  margin: 0;
  line-height: 1.8;
  color: #ddd;
}

.flow-list {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 10px;
}

.flow-list li {
  line-height: 1.8;
}

.section-note {
  margin-top: 18px;
  color: #cfcfcf;
  line-height: 1.9;
}

/* =============================
 お問い合わせページ
============================= */
.contact-page {
  max-width: 1100px;
}

.contact-hero-panel {
  margin-bottom: 36px;
}

.contact-bottom-panel {
  margin-top: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field label {
  font-weight: 700;
  color: #f3f3f3;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  background: #111;
  color: #fff;
  padding: 14px 16px;
  font: inherit;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #20b2aa;
  box-shadow: 0 0 0 2px rgba(32, 178, 170, 0.18);
}

.contact-submit {
  border: 0;
  cursor: pointer;
}

.contact-info-list {
  display: grid;
  gap: 14px;
}

.contact-info-item {
  padding: 16px;
  border: 1px solid #2b2b2b;
  border-radius: 12px;
  background: #111;
}

.contact-info-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #20b2aa;
}

.contact-info-item p {
  margin: 0;
  line-height: 1.8;
}


/* フッター */
.footer {
  text-align: center;
  padding: 1px;
  background: #fff;
  color: #111;
  font-size: 14px;
  border-top: 5px solid #20b2aa;
}

/*---------------------------------------------------------------------------*/
/*会社情報テーブル（ta1）
---------------------------------------------------------------------------*/
/*テーブル１行目に入った見出し部分（※caption）*/
.ta1 caption {
	font-weight: bold;		/*太字に*/
	padding: 0.5rem 1rem;	/*ボックス内の余白*/
	background: var(--primary-color);		/*背景色*/
	margin-bottom: 1rem;	/*下に空けるスペース*/
}

/*ta1テーブルブロック設定*/
.ta1 {
	table-layout: fixed;
    /*border-top: 1px solid #ccc;	/*テーブルの一番上の線。幅、線種、色*/
	width: 100%;				/*幅*/
	margin-bottom: 5rem;		/*テーブルの下に空けるスペース。5文字分。*/
}

/*tr（１行分）タグ設定*/
.ta1 tr {
	border-bottom: 1px solid #ccc;	/*テーブルの下線。幅、線種、色*/
}

/*th（左側）、td（右側）の共通設定*/
.ta1 th, .ta1 td {
	padding: 1rem;		/*ボックス内の余白*/
	word-break: break-all;	/*英語などのテキストを改行で自動的に折り返す設定。これがないと、テーブルを突き抜けて表示される場合があります。*/
}

/*th（左側）のみの設定*/
.ta1 th {
	width: 30%;			/*幅*/
	text-align: center;	/*左よせにする*/
}
.ta1 td {
	text-align:center;	/*左よせにする*/
}

/*画面幅1000px以下の追加指定*/
@media screen and (max-width:1000px) {
  .logo-text {
    display: none;
  }
}/*追加指定ここまで*/

/*画面幅899px以下の追加指定*/
@media screen and (max-width:899px) {

  .ta1,
  .ta1 caption,
  .ta1 tbody,
  .ta1 tr,
  .ta1 th,
  .ta1 td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .ta1 tr {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ccc;
  }

  .ta1 th {
    padding: 0.75rem 1rem 0.35rem;
    text-align: left;
    border-bottom: none;
  }

  .ta1 td {
    padding: 0.35rem 1rem 0.75rem;
    text-align: left;
  }
  .ta1 iframe {
    width: 100%;
    height: 300px;
  }

}/*追加指定ここまで*/

.about {
  padding: 50px;
  background: #2f3332;
}
.about-grid {
    max-width: 1200px;
    margin: auto;
}

/*アクセス
---------------------------------------------------------------------------*/
#access * {margin: 0;padding: 0;}
#access ul {list-style: none;}

/*ブロック全体*/
#access {
	/* background: var(--primary-color);		/*背景色。css冒頭のprimary-colorを読み込みます。*/
	color: var(--primary-inverse-color);	/*文字色。css冒頭のprimary-inverse-colorを読み込みます。*/
	padding: var(--content-space);	/*フッター内の余白。css冒頭のcontent-spaceを読み込みます。*/
}

/*ロゴやSNSアイコンが入ったブロック*/
#access div.access1 {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1rem;	/*このブロック内のボックス同士の間に空ける余白。１文字分。*/
}

/*メニューブロック*/
#access div.access2 {
    flex: 1;
}

/*画面700px以上の追加指定*/
@media screen and (min-width:700px) {

    #access {
    	display: flex;
    	gap: 2rem;		/*ロゴのブロックとメニューのブロックとの間の余白。2文字分。*/
    	padding-bottom: 2em;
    }

    /*ロゴやSNSアイコンが入ったブロック*/
    #access div.access1 {
    	text-align: left;
    	width: 40%;	/*幅。40%。*/
    }

}/*追加指定ここまで*/

/*Google Map用
---------------------------------------------------------------------------*/
#access .iframe {
	width: 100%;
	height: 0;
	padding-top: 56.25% !important;	/*マップの高さを増やしたい場合は、ここの数値を上げてみて下さい。*/
	position: relative;
	overflow: hidden;
}
#access .iframe iframe {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
}


@media (max-width: 768px) {

  .header {
    text-align: center;
  }

  .nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    order: 3;
  }

  body.nav-open .nav {
    display: block;
  }

  .nav ul {
    flex-wrap: wrap;
    flex-direction: column;
  }

  .nav li {
    flex: 1 1 auto;
  }

  .nav a {
    padding: 12px 8px;
    font-size: 13px;
  }

  .logo {
    width: auto;
    flex: 0 0 auto;
    order: 1;
    margin: 12px 0 8px;
  }

  .logo img {
    max-width: 100%;
    height: 52px;
  }

  .logo-text {
    display: none;
  }

  .logo h1 {
    font-size: clamp(22px, 7vw, 34px);
  }

  .logo span {
    font-size: 12px;
  }

  .recommend {
    padding: 32px 16px;
  }

  .recommend-feature {
    height: 300px;
    border-radius: 12px;
  }

  .recommend-feature-content {
    padding: 22px 18px;
    gap: 10px;
  }

  .recommend-feature-content h3 {
    font-size: clamp(22px, 6vw, 30px);
  }

  .recommend-feature-content p {
    font-size: 14px;
    line-height: 1.7;
  }

  .services {
    padding: 32px 16px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-grid div {
    padding: 20px;
  }

  .card {
    height: 220px;
  }

  .item {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .gallery {
    width: 100%;
    flex-direction: column;
  }

  .gallery img {
    width: 100%;
    height: 220px;
  }

  .work-text {
    width: 100%;
  }

  .about {
    padding: 32px 16px;
  }

  .about-grid {
    max-width: 100%;
  }

  #access {
    display: block;
    padding: 0;
  }

  #access div.access1,
  #access div.access2 {
    width: 100%;
  }

  #access div.access1 {
    margin-bottom: 1.5rem;
  }

  #access .iframe {
    padding-top: 75% !important;
  }

  .detail-page {
    padding: 0 15px 60px;
  }

  .detail-hero {
    padding: 24px 20px;
  }

  .detail-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-grid {
    gap: 20px;
    padding: 0 15px;
  }

  .detail-grid {
    gap: 24px;
  }

  .detail-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .works-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid {
    gap: 20px;
  }

  .contact-form {
    gap: 14px;
  }

}

@media (max-width: 480px) {

  .nav li {
    flex-basis: 100%;
  }

  .service-grid div {
    padding: 18px;
  }

  .detail-hero {
    padding: 20px 16px;
  }

  .detail-grid,
  .service-grid {
    gap: 16px;
  }

}


/*詳細ページのサムネイル切り替えブロック
---------------------------------------------------------------------------*/
/*大きな画像が表示されるブロック*/
.thumbnail-view-parts {
	max-width: 1000px;		/*最大幅*/
	margin: 0 auto 1rem;	/*ブロック要素を中央に配置。下に1文字分のマージンをとる。*/
	text-align: center;		/*画像が小さい場合でもセンタリングされるように*/
}

/*サムネイル全体を囲むブロック*/
.thumbnail-parts {
	display: flex;				/*flexを使う指定*/
	justify-content: center;	/*並びかたの種類の指定。これはセンタリングする指定。*/
	margin-bottom: 2rem;		/*下に空けるスペース。２文字分。*/
}

/*サムネイル画像*/
.thumbnail-parts img {
	width: 100px;		/*サムネイルの幅*/
	margin: 2px;		/*サムネイル間のスペース*/
	cursor: pointer;	/*リンクタグではないが、クリックできる事をわかりやすくする為にリンクと同じポインターにしておきます。*/
	transition: 0.3s;	/*マウスオンまでにかける時間。3秒。*/
}
.thumbnail-parts img:hover {
	opacity: 0.8;	/*マウスオン時に80%だけ色を出す。つまり薄くなります。*/
}
