/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --text:      #1A1311;
  --white:     #ffffff;
  --bg-gray:   #F2F2F0;
  --gray:      #C1C1C1;
  --sub:       #4D5357;
  --grad:      linear-gradient(135deg, #188378 0%, #137479 30%, #05467E 70%, #003580 100%);
  --header-h:  80px;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
}

/* ===== CONTAINER ===== */
#container {
  width: 90%;
  max-width: 1640px;
  margin: 0 auto;
}

/* ===== SECTION HEADINGS ===== */
section h2 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(14px, 0.73vw, 16px);
/*  font-weight: 300;*/
  letter-spacing: 0.14em;
  padding: 10px 3px;
  border: 2px #000 solid;
  border-top: none;
  border-left: none;
/*  color: var(--sub);*/
  align-self: flex-start;
  flex-shrink: 0;
}

.section-content {
  flex: 1;
  min-width: 0;
}
section h2 span {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(14px, 0.8vw, 14px);
  font-weight: 400;
  letter-spacing: 0.2em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--sub);
  text-orientation: mixed;
  writing-mode: vertical-rl;
	margin-top:10px;

}
/*.main-text h2 {
  font-size: clamp(10px, 0.73vw, 13px);
  font-weight: 300;
  color: var(--sub);
  letter-spacing: 0.14em;
  /*margin-bottom: 24px;*/
  /*padding-bottom: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  /*transform: rotate(180deg);*/
  /*align-self: flex-start;
	border: 1px #000 solid;
	padding: 10px 3px;
	border-top: none;
	border-left: none;
}*/

/*.main-text h2 span {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--sub);
}*/
.main-text,#service,#vision,#company,.client-top,#contact{
	border-top:2px #000 solid;
	border-left:2px #000 solid;
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  background: var(--white);
/*  border-bottom: 1px solid var(--gray);*/
  z-index: 100;
}

#header .header-inner {
  width: 90%;
  max-width: 1640px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 40px; width: auto; }

h1 {
    font-size: 12px;
    letter-spacing: 0.3em;
    text-align: center;
}

#header-button {
  display: flex;
  gap: 12px;
}

.nav-link {
  font-size: clamp(14px, 0.83vw, 16px);
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 7px 20px;
  border: 2px solid var(--text);
  border-radius: 30px;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover {
  background: var(--text);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* ===== VALUE ===== */
#value {
  margin-top: calc(var(--header-h) + 50px);
	
  margin-bottom: 60px;
  /*display: flex;*/
  gap: 0;
  min-height: 520px;
}

.main-text {
  flex: 0 0 38%;
  display: flex;
  gap: 20px;
  /*padding: 64px 48px 64px 0;*/
	margin-bottom: 20px;
}

.main-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
	padding: 50px 0px;
}


.main-text h3 {
  font-size: clamp(30px, 6vw, 60px);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.main-text h3 span{
	white-space: nowrap;
		border-bottom: 3px solid #000;
}
.main-text h4 {
  font-size: clamp(18px, 1vw, 18px);
  font-weight: 300;
  color: var(--sub);
  line-height: 2;
  letter-spacing: 0.06em;
}
.main-text h4 span{
	white-space: nowrap;
}

.imgbox {
  flex: 1;
  background-image: url('images/hero.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
	height: 280px;
}

.imgbox::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
}

.imgbox,.imgbox::after {
border-radius: 20px;
}

.imgbox-text {
  position: absolute;
  z-index: 1;
  padding: 40px 48px;
  color: var(--white);
  font-size: clamp(25px, 3vw, 72px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
	right: 0;
}

.imgbox-text span{
	  white-space: nowrap;
}

/* ===== VALUE ISSUES ===== */
.value-issues {
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.issues-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.issues-list li {
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 300;
  color: var(--sub);
  padding: 10px 0 10px 20px;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px dotted var(--gray);
}

.issues-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 10px;
    height: 10px;
    background: var(--gray);
    border-radius: 5px;
}

.issues-conclusion {
  font-size: clamp(24px, 2.2vw, 40px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-align: right;
  padding: 24px 32px;
  background: var(--grad);
  color: var(--white);
	width: 100%;
}

.issues-conclusion span{
	white-space: nowrap;
}

@media (max-width: 768px) {
  .value-issues {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 36px 0;
  }
}

@media (max-width: 400px) {
  .issues-conclusion {
    padding: 20px;
    width: calc(100% - 20px);
  }
}

/* ===== SERVICE + VISION WRAP ===== */
#service-vision-wrap {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}

/* ===== SERVICE ===== */
#service {
  width: 50%;
/*  background: var(--bg-gray);*/
/*  padding: 56px 40px;*/
  display: flex;
  gap: 20px;
}

.servicebox {
  display: flex;
  align-items: center;
  gap: 10px;
    /* padding: 18px 0; */
    /* border-bottom: 2px solid var(--gray); */
    border-radius: 43px;
    border: 2px solid;
    border-left: none;
    margin: 30px 5px;

}
/*.servicebox:first-of-type { border-top: 1px solid var(--gray); }*/

.servicebox picture {
  flex-shrink: 0;
}
.servicebox img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid;
  display: block;
}

.service-tx_box {
  display: flex;
  flex-direction: column;
  gap: 4px;
    width: 100%;
    padding-right: 20px;
}

.service-title {
  font-size: clamp(16px, 1vw, 18px);
  font-weight: 400;
  letter-spacing: 0.04em;
	    border-bottom: 2px solid;

}

.service-text {
  font-size: clamp(14px, 0.73vw, 14px);
    line-height: normal;

	font-weight: 300;
  color: var(--sub);
  letter-spacing: 0.04em;
}

/* ===== VISION ===== */
#vision {
  width: 50%;
/*  padding: 56px 0 56px 40px;*/
  display: flex;
  gap: 20px;
}

.vision-tx_box {
  width: 100%;
  padding: 20px 10px;
  margin-bottom: 16px;
/*  border-left: 3px solid transparent;*/
/*  border-image: var(--grad) 1;*/
/*  background: var(--bg-gray);*/
	    border-bottom: 2px solid;
}

.vision-tx_box:first-child {
padding-top:36px;
}

.vision-tx_box:last-child {
	border-bottom: none;
}

.vision-title {
  font-size: clamp(18px, 1.04vw, 20px);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
	line-height: normal;
	border-bottom: 2px dotted;
	    padding-bottom: 15px;

}

.vision-tx {
  font-size: clamp(14px, 0.73vw, 14px);
  font-weight: 300;
  color: var(--sub);
  line-height: 1.9;
}

/* ===== COMPANY ===== */
#company {
  margin-bottom: 30px;
/*  padding: 56px 0;
  border-top: 1px solid var(--bg-gray);*/
  display: flex;
  gap: 20px;
}

.company-inner {
  display: flex;
/*  gap: 64px;*/
}

.company-inner div{
	padding-top: 30px;
}

.company-box01 {
	flex: 0 0 50%;
    padding-right: 40px;
}

.company-box01 > img{
	width: 80%;
	margin: 0 auto 20px;
}

.company-box01 table {
  width: 100%;
  border-collapse: collapse;
}
.company-box01 th,
.company-box01 td {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray);
  font-size: clamp(16px, 0.83vw, 16px);
  font-weight: 300;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
.company-box01 th {
	width: auto;
  min-width: 110px;
  color: var(--sub);
  white-space: nowrap;
}

.company-box02 { flex: 1; }

.company-box02 h3 {
  font-size: clamp(18px, 1.04vw, 18px);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  border-image: var(--grad) 1;
}

.business-list li {
  font-size: clamp(16px, 0.73vw, 16px);
  font-weight: 300;
  color: var(--sub);
  padding: 10px 0 10px 14px;
  border-bottom: 1px solid var(--gray);
  position: relative;
  line-height: 1.8;
}
.business-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: var(--gray);
}

/* ===== CLIENT ===== */
#client {
  margin: 110px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.client-top {
  display: flex;
  gap: 20px;
	padding-bottom: 20px;
}

#client::before {
  content: '';
  position: absolute;
  top: -50px;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--bg-gray);
  z-index: -1;
}

#client > .slider-wrap {
  width: 100%;
}

#client-tx {
  font-size: clamp(16px, 0.73vw, 16px);
  font-weight: 300;
  color: var(--sub);
  line-height: 2;
  margin: 36px 0;
}

#client-tx span{
	  white-space: nowrap;
}

.slider-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-outer {
  flex: 1;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 24px;
  width: max-content;
  transition: transform 0.6s ease;
}

.slide-item {
  flex: 0 0 220px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
  border: 2px solid;
  border-radius: 30px;
}
.slide-item img {
  height: 72px;
  width: auto;
  object-fit: contain;
}
.slide-item p {
  font-size: clamp(12px, 0.73vw, 13px);
  font-weight: 300;
  color: var(--sub);
}

.slide-btn {
  display: none;
}

/* ===== CONTACT ===== */
#contact {
  margin-bottom: 30px;
/*  padding: 56px 0;*/
  display: flex;
  gap: 20px;
}

#contact-tx {
  font-size: clamp(18px, 1.98vw, 36px);
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.04em;
  margin: 48px 0;
}

#contact-tx span{
	white-space: nowrap;
}

#contactForm {
/*  max-width: 640px;*/
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-size: clamp(14px, 0.83vw, 16px);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 1px dotted var(--gray);
  background: transparent;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(13px, 0.83vw, 15px);
  font-weight: 400;
  color: var(--sub);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus { border-color: #188378; }

.form-submit { display: flex; justify-content: flex-end; }
.form-submit button {
  padding: 16px 60px;
  background: var(--text);
  color: var(--white);
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(13px, 0.83vw, 15px);
  font-weight: 300;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s;
	border-radius: 30px;
}
.form-submit button:hover { background: #188378; }
.form-submit button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.required {
  color: #c0392b;
  font-weight: 400;
}

#form-status {
  font-size: clamp(13px, 0.83vw, 15px);
  line-height: 1.6;
  white-space: pre-line;
}
#form-status.form-success { color: #188378; }
#form-status.form-error   { color: #c0392b; }

.field-error {
  font-size: clamp(12px, 0.73vw, 13px);
  color: #c0392b;
  min-height: 1.4em;
  display: block;
}

.form-row input.is-invalid,
.form-row textarea.is-invalid {
  border-color: #c0392b;
}

/* プライバシーポリシー同意 */
.form-agree {
  gap: 4px;
}
.agree-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(13px, 0.83vw, 15px);
  font-weight: 300;
  cursor: pointer;
  min-height: 48px;
}
.agree-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #188378;
  cursor: pointer;
  flex-shrink: 0;
}
.agree-label a {
  color: #188378;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.agree-label a:hover {
  color: #05467E;
}

/* ハニーポット（ボットトラップ） */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 送信完了メッセージ */
#form-thankyou {
  padding: 48px 0;
}

.thankyou-title {
  font-size: clamp(20px, 1.98vw, 36px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 36px;
}

.thankyou-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.thankyou-list li {
  font-size: clamp(13px, 0.83vw, 15px);
  font-weight: 300;
  color: var(--sub);
  line-height: 1.9;
  padding-left: 20px;
  position: relative;
}

.thankyou-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

/* ===== FOOTER ===== */
#footer {
  border-top: 1px solid var(--gray);
  padding: 32px 0;
  margin-bottom: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#footer .logo img { height: 32px; }

#footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-size: 12px;
  font-weight: 300;
  color: var(--sub);
  letter-spacing: 0.06em;
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text); }

#footer-copy {
  font-size: 12px;
  font-weight: 300;
  color: var(--sub);
  letter-spacing: 0.06em;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  #header-button {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--white);
    padding: 0 20px;
    border-bottom: 1px solid transparent;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, border-color 0.3s ease;
  }
  #header-button.open {
    max-height: 300px;
    opacity: 1;
    padding: 20px;
    border-bottom-color: var(--gray);
    pointer-events: auto;
  }
  .nav-link { text-align: center; }

  #value { flex-direction: column; min-height: auto; }
/*  .main-text { flex: none; padding: 40px 0 32px; }*/
  .imgbox { height: 280px; }

  #service-vision-wrap { flex-direction: column; gap: 0; }
  #service, #vision { width: 100%; }
  #vision { /*padding: 40px 0;*/ margin:40px 0; }

  .company-inner { flex-direction: column; gap: 32px; }
  .company-box01 { flex: none; padding: 0;}


  .slide-item { flex: 0 0 160px; }

}

@media (max-width: 510px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  #footer-right {
    align-self: flex-end;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
}
