@charset "UTF-8";

/* ========================================
	style
======================================== */

section {
  position: relative;
	overflow: hidden;
}

/* --------- ページ内リンク --------- */

.section-links {
  margin-top: 2rem;
  margin-bottom: 6rem;
}

.links-inner {
  display: grid;
  inline-size: 100%;
  grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
  gap: 2rem 3rem;
}

.link-thumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-base);
  text-decoration: none;
  border-bottom: 1px solid var(--text-second-color);
  line-height: 1.6;
  transition: color .3s ease , border .3s ease;
}
.link-thumb:hover {
  color: var(--nawa-green);
  border-bottom: 1px solid var(--nawa-green);
}


/* --------- CEO MESSAGE section --------- */

.ceomessage {
  padding-bottom: clamp(14rem, 15vw, 22rem);
}

.ceo-message::before {
  content: "";
  position: absolute;
  top: clamp(120px, 12vw, 180px);
  left: 0;
  inline-size: 100vw;
  block-size: min(80vw,1000px);
  background: var(--filter-image-url) var(--filter-image-option),
  url('images/img-ceo.jpg') no-repeat center/cover;
  z-index: 0;
}

.ceo-name {
	z-index: 1;
  position: relative;
	display: flex;
  align-items: flex-end;
	margin-top: min(70vw,880px);;
	padding: 2em 2.4em;
	width: min(480px,80%);
	aspect-ratio: 1.7/1;
	font-weight: 700;
  background: rgba(255,255,255,0.70); 
	backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px); 
}

.ceo-name > div {
	flex-direction: column
}

.campany-name {
	font-size: 1.4rem;
	margin-bottom: 1rem;
}

.position {
	font-size: clamp(1.6rem, 1.7vw, 1.8rem);
}

.name {
	font-size: clamp(2.6rem, 3vw, 4rem);
	line-height: 1.2;
}

.message-text {
	position: relative;
	margin-top: 3em;
	z-index: 0;
}

.message-text::before {
  content: "";
  position: absolute;
  bottom: -6rem;
  right: -14%;
  inline-size: min(740px, 100%); 
  block-size: auto;
  aspect-ratio: 3 / 2;
  background-image: url("images/logo_bg.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  z-index: -1;
}

.message-text p {
	margin-top: 2em;
	max-width: 800px;
}

/* --------- PHILOSOPHY section --------- */

.philosophy-inner {
	/* max-width: 1000px; */
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 3em;
	padding-bottom: 3em;
	border-bottom: solid 1px var(--text-second-color);
}

.philosophy-title {
	border-top: solid 1px var(--text-second-color);
	font-size: clamp(2.4rem, 3vw, 3.6rem);
	font-weight: 700;
	padding-block: 3rem 2rem;
	position: relative;
	text-align: center;
	line-height: 1.6;
}

.philosophy-item p {
	font-weight: 600;
	padding-left: 1rem;
}

.philosophy-title:after {
	position: absolute;
	content: " ";
	display: block;
	inline-size: clamp(10px, 1.2vw, 14px);
	block-size: clamp(46px, 6vw, 70px);
	top: -10px;
	left: clamp(15px, 3vw, 40px);
}

.philosophy-title.green::after {
  background-color: var(--nawa-green);
}

.philosophy-title.red::after {
  background-color: var(--nawa-red);
}

.philosophy-title.blue::after {
  background-color: var(--nawa-blue);
}

/* --------- OUTLINE section --------- */

.outline {
	position: relative;
  margin-top: 6rem; 
	padding-top: clamp(8rem, 13vw, 22rem);
	padding-bottom: 42vw;
  z-index: 0;
}

.outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #DBDBDB;
  clip-path: polygon(0 0, 100% 32vw, 100% 100%, 0% 100%);
  z-index: -2; /* 背景として裏に配置 */
}

.outline-table {
  inline-size: 100%;
  border-collapse: collapse;
	text-align: left;
}

.outline-table tr:first-of-type {
  border-top: 1px solid #989898;
}

.outline-table tr {
	border-bottom: 1px solid #989898;
}

.outline-table th,
.outline-table td {
	display: block;
	line-height: 1.8;
	padding-inline: 1em;
}

.outline-table th {
	padding-block: 1em 0.4em;
	width: 20%;
  white-space: nowrap;
	color: var(--text-second-color);
}

/* ISOリンクの装飾 */
.outline-table td {
	padding-block: 0 1em;
}

.outline-table a {
  color: inherit;
  margin-left: 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--black); 
  transition: color 0.3s ease, border-color 0.3s ease;
}

.outline-table a:hover {
  border-bottom-color: var(--nawa-green);
  color: var(--nawa-green);
}

/* --------- GROUP section --------- */

.group {
	position: relative;
  margin-top: -28vw; 
	padding-top: 34vw;
	padding-bottom: 48vw;
  z-index: 0;
}

.group::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--filter-image-url) var(--filter-image-option),
  url('/assets/common/images/bg-header.jpg') no-repeat center/cover;
  clip-path: polygon(0 26vw, 100% 0, 100% 100%, 0% 100%);
  z-index: -2;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); 
  gap: 6rem 4rem;
  max-width: 1200px;
  margin: 5em auto 0;
}

.group-card {
  position: relative;
  padding: 2em 2em 2em 2.5em;
  border-left: 8px solid transparent;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
}

.group-card::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: 0.8rem;
  inline-size: 9px;
  block-size: 44px;
  background-color: var(--nawa-green);
}

.group-card h3 {
  font-weight: bold;
  font-size: clamp(2rem, 2.2vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.group-card p {
	line-height: 1.6;
}

.group-address {
  margin-bottom: 1rem;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 200px;
  font-family: var(--font-family-en);
  line-height: 1;
  color: #fff;
  background-color: var(--black);
  padding: 0.7em 2em 0.8em;
  text-decoration: none;
  transition: background-color 0.3s;
  margin-top: 1em;
}

.link-btn:hover {
  background-color: var(--nawa-green);
}

.link-btn .icon {
  inline-size: 1.2em;
  block-size: 1.2em;
  fill: #fff;
  padding-left: 0.8rem;
}

/* --------- ACCESS section --------- */

.access {
  position: relative;
  margin-top: -32vw; 
	padding-top: 30vw;
  z-index: 0;
}

.access::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--gray-100);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
	clip-path: polygon(0 26vw, 100% 0, 100% 100%, 0% 100%);
  z-index: -2;
}

.office-inner {
  display: flex;
  flex-direction: column;
  gap: 4em;
  margin-inline: auto;
}

.office-unit {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}

.office-img img {
  inline-size: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  display: block;
}

.office-info {
  position: relative;
  display: flex;
  gap: 1em;
  background-color: rgba(255, 255, 255, 0.5);
  background-image: url("images/logo_bg.svg"); 
  background-repeat: no-repeat;
  background-position: top 1.4em right 1.4em;
  background-size: 130px auto;
}

.office-info::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: 64%;
  inline-size: 9px;
  block-size: 44px;
  background-color: var(--nawa-green);
}

.office-info .map {
  flex: 1 1 58%;
  min-width: 300px;
  aspect-ratio: 2/1;
}

.office-info .map iframe {
  inline-size: 100%;
  display: block;
  border: none;

}

.office-info .text {
  flex: 1 1 32%;
  padding: 3em 1em 2em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.label {
  font-family: var(--font-family-en);
  color: var(--nawa-green);
}

.text h3 {
  font-size: clamp(2.6rem, 2.8vw, 3.2rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1em;
}

.address {
  margin-bottom: 0.6em;
}

.text p {
  line-height: 1.6;
}

/* ========================================
	1180px未満専用スタイル（TAB&SP）
======================================== */
@media screen and (width < 1180px) {}

/* ========================================
	1024px未満専用スタイル（TAB）
======================================== */
@media screen and (width < 1024px) {

  /* --------- ACCESS section --------- */

  .office-info {
    background-size: 8vw auto;
  }

}

/* ========================================
	768px未満専用スタイル（SP）
======================================== */
@media screen and (width < 768px) {

  /* --------- ページ内リンク --------- */

  .section-links.outer-base-width.small {
    padding-inline: 8%;
  }

  .section-links {
    margin-bottom: 14vw;
  }
  
  /* --------- GROUP section --------- */

  .group-grid {
    padding-inline: 2vw;
    gap: 4rem;
  }

  /* --------- ACCESS section --------- */

  .office-info {
    flex-direction: column;
    background-size: 110px auto;
  }

  .office-info::before {
    content: "";
    position: absolute;
    top: -0.6rem;
    left: 4%;
    inline-size: 9px;
    block-size: 44px;
    background-color: var(--nawa-green);
  }

  .office-info .text {
    order: -1; /* ← textを上に */
    flex-basis: 100%;
    padding: 5em 2em 1em 2em;
  }

  .office-info .map {
    order: 0;
    flex-basis: 100%;
    min-width: auto;
  }
    
}

/* ========================================
	768px以上（PC&TAB）
======================================== */
@media screen and (768px <=width) {

  /* --------- ページ内リンク --------- */

  .section-links {
    margin-top: -6rem;
    margin-bottom: 12rem;
  }
  
  .links-inner {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 2.4em;
  }
  
  .link-thumb {
    display: inline-flex; /* ← 中身に応じて幅を持たせる */
    align-items: center;
    gap: 0.6em;
    color: var(--text-base);
    text-decoration: none;
    border-bottom: 1px solid var(--text-second-color);
    line-height: 1.6;
  }
  
  /* --------- CEO MESSAGE section --------- */
  
  .message-text::before {
    bottom: -0rem;
  }

  /* --------- GROUP section --------- */

  .group {
    margin-top: -28vw;
    padding-top: 26vw;
    padding-bottom: 40vw
  }

  .group-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
  
  /* --------- PHILOSOPHY section --------- */
  
	.philosophy-title {
		padding-left: clamp(4rem, 8vw, 10rem);
		text-align: left;
	}

  .philosophy-item p {
    padding-left: 10rem;
  }  

	.outline-table th,
	.outline-table td {
		display: table-cell;
		padding: 1.6em;
		vertical-align: center;
	}

}

/* ========================================
	768px以上1180px未満専用スタイル（TAB）
======================================== */
@media screen and (768px <=width < 1180px) {

  /* --------- ページ内リンク --------- */

  .section-links {
    margin-top: 0rem;
  }
  
  /* --------- CEO MESSAGE section --------- */
  
  .message-text::before {
    bottom: -2rem;
  }

  /* --------- PHILOSOPHY section --------- */
  
  .philosophy-item p {
    padding-left: 8vw;
  }  

  /* --------- GROUP section --------- */
  
  .group-grid {
    gap: 3rem
  }

}

/* ========================================
	1180px以上専用スタイル（PC）
======================================== */
@media print,
screen and (1180px <=width) {

  /* --------- OUTLINE section --------- */

  .outline {
    margin-top: 0;
    padding-bottom: 32vw;
  }
  
  /* --------- GROUP section --------- */
  
  .group {
    margin-top: -28vw; 
    padding-top: 22vw;
    padding-bottom: 34vw;
  }
  .group::before {
    background-attachment: fixed;
  }

  .link-btn {
    position: absolute;
    bottom: 2em;
    right: 2em;
    display: inline-flex;
    inline-size: auto;
    padding: 0.7em 2em 0.8em;
  }
  
  .link-btn .icon {
    inline-size: 1.2em;
    block-size: 1.2em;
    fill: #fff;
    padding-left: 0.8rem;
  }  

  /* --------- ACCESS section --------- */

  .access {
    padding-top: 22vw;
  }

}