html,
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family:
    "Yu Mincho",
    "YuMincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    serif;
    font-size: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
    line-height: 2;
    letter-spacing: 0.03em;
}

body.sub {
    background: #fefefe;
    padding-top: 50px;
}

img {
    max-width: 100%;
    height: auto;
}

h3 {
  margin: 0;
}

h3 img {
  display: block;
  width: 100%;
  height: auto;  
}

.top-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

/* fixed背景 */
.top-hero::before {
  content: "";
  position: fixed;

  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;

  background-image: url("img/top-pc.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  z-index: -1;
  transform: translateZ(0);
}

.top-hero-sub {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,1);
  backdrop-filter: blur(10px);
  z-index: 9999;
  box-sizing: border-box;
}

.top-hero-sub img{
  display: block;
  width: 40%;
  height: auto;
  margin: 0 auto;
}

.top-hero-sub h1 {
    margin: 0 auto;
}
/*子ページ 共通用 */

.sub-main {
    width: 100%;
    overflow-x: hidden;
}

.sub-main h1 {
    margin-bottom: 40px;
}

.sub-main h1 img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}


/*子ページ用 */

section.sub-lead {
    width: 65%;
    height: auto;
    margin-left: 3%;
    line-height: 2;
    font-size: 18px;
}

section.sub-content {
    width: 65%;
    height: auto;
    margin-left: 3%;
    line-height: 2;
    font-size: 18px;
}

section.sub-content h2 {
    margin: 80px 0 30px;
}

section.sub-content h2 img {
    width:100%;
    height: auto;
    display: block;
}

.koumoku-head{
    position: relative;
    background-image: url("img/mizu-koumoku-head-img.jpeg");
    background-size: cover;
    background-position: center;
    aspect-ratio: 1720 / 500;
		margin:120px 0 0;
}

.koumoku-head h2{
    position: absolute;
    left: 3%;
    top: 15%;
    transform: translateY(-50%);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: normal;
    letter-spacing: 0.15em;
		color: #134836;
}

section.koumoku {
    width: 100%;
    height: auto;
	background: #134836;
}

section.koumoku ul {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  box-sizing: border-box;
  padding: 0 3% 120px;
  margin: 0 auto;
}

section.koumoku ul li {
  background: #fefefe;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 12px;
}

/* SEO用 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.company-section {
  padding: 60px 30px;
  background-image: url("img/bg-company-section.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: solid 2px #316745;
}

.company-section h2 {
  margin-bottom: 40px;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.08em;

  color: #2f5d50;
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.company-item {
  padding-bottom: 18px;
}

.company-item h3 {
  margin:0;

  font-size: 0.9rem;
  color: #2f5d50;
}

.company-item p {
  line-height: 1.8;
  color: #333;
}

.analysis-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 60px 30px;
  background-image: url("img/bg-analysis.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.analysis-banner {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.analysis-banner:hover {
  transform: translateY(-4px);
  opacity: 0.92;
}

.analysis-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.cta-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 60px 30px;
  background-image: url("img/bg-cta.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-banner {
  display: block;
	border: 1px solid #999;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.cta-banner:hover {
  transform: translateY(-4px);
  opacity: 0.92;
}

.cta-banner img {
  display: block;
  width: 100%;
  height: auto;
}



.contact-section {
  width: 80%;
  margin: 0 auto;
  padding: 48px 20px;
  line-height: 1.8;
}

.contact-section h1 {
  font-size: 28px;
  margin-top: 50px;
  margin-bottom: 24px;
}

.privacy-box {
  border: 1px solid #ddd;
  padding: 20px;
  margin: 24px 0 32px;
  background: #fafafa;
}

.privacy-box h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

form label {
  display: block;
  margin-bottom: 22px;
  font-weight: 600;
}

form span {
  font-size: 12px;
  color: #fff;
  background: #555;
  padding: 2px 6px;
  margin-left: 6px;
}

input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
}

textarea {
  min-height: 180px;
}

.note {
  padding: 14px;
  background: #f5f5f5;
  border-left: 4px solid #999;
}

.agree {
  display: flex;
  gap: 8px;
  align-items: center;
}

.agree input {
  width: auto;
  margin: 0;
}

button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  cursor: pointer;
}

.hp-field{
    display:none;
}

/* =========================
   お問い合わせ確認画面
========================= */

.confirm-list {
  width: 100%;
  margin: 40px auto;
  border-top: 1px solid #ddd;
}

.confirm-list dt,
.confirm-list dd {
  margin: 0;
  padding: 20px 24px;
  box-sizing: border-box;
  border-bottom: 1px solid #ddd;
}

.confirm-list dt {
  font-weight: 600;
  background-color: #f5f5f5;
  border-right: 1px solid #ddd;
}

.confirm-list dd {
  line-height: 1.8;
  word-break: break-word;
}

/* スマホ */
@media screen and (max-width: 768px) {
    
body.sub {
    padding-top: 0;
}

.sub-main h1 img {
    margin-top: 80px;
}
    
.top-hero::before {
    background-image: url("img/top-sp.jpeg");
    background-size: cover;
  }

.top-hero-sub img{
  width: 70%;
}

section.sub-lead {
    width: 90%;
    height: auto;
    margin: 0 auto;
	padding: 40px 0 0;
}

section.sub-content {
    width: 90%;
    height: auto;
    margin: 0 auto;
}

section.sub-content h2 img{
    width: 160%;
}

.koumoku-head h2{
    left: 5%;
    top: 5%;
}

section.koumoku {
	padding:50px 0 120px;
}

section.koumoku ul {
	width:90%;
    grid-template-columns: repeat(1, 1fr);
	gap: 5px;
	background: #fefefe;
	padding:20px 0 40px;
	border-radius: 12px;
}

section.koumoku ul li {
  padding: 0 20px;
  box-sizing: border-box;
  border-radius: none;
}

.analysis-section {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
	
.company-grid {
    grid-template-columns: 1fr;
  }
	
.cta-section {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  
.contact-section {
  width: 100%;
  box-sizing: border-box;
  }

.confirm-list {
    margin: 30px 0;
  }

.confirm-list dt {
    padding: 14px 16px;
    border-right: none;
  }

.confirm-list dd {
    padding: 16px;
  }

}
