/**** 事業内容ページ ****/
.services-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}

.service-btn {
  padding: 16px 32px;
  border: 3px solid #002c72;
  background-color: white;
  color: #002c72;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold; 
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 44, 114, 0.2);
  margin: 0 10px;
}

.service-btn.active,
.service-btn:hover {
  background-color: #002c72;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 44, 114, 0.3);
}

.service-block {
  display: none; /* 非表示がデフォルト */
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.service-block.active {
  display: block; /* アクティブなブロックだけ表示 */
}

/* カード型事業ブロック */
.service-block {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.service-block h3 {
  color: #003366;
  margin-bottom: 15px;
}

.simulation-flow h5{
	color: #002c72;
}
.simulation-flow .step-list{
	background: #f8f9fc;
    padding: 20px;
}
.simulation-flow .step-list p{
	margin-top: 10px;
}
/*
.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.step-card {
  background: #f8f9fc;
  border-left: 5px solid #ccc;
  padding: 20px;
  border-radius: 6px;
  text-align: left;
  transition: all 0.3s;
}

.step-card h5 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #002c72;
}

.step-card p {
  margin: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.step-card.highlight {
  border-left-color: #002c72;
  background: #e8eef9;
}
*/

.simulation-flow .note {
  font-size: 14px;
  color: #555;
  margin-top: 20px;
}

.section-block {
  background: #fff;
  padding: 40px 20px;
  border-radius: 8px;
  margin-bottom: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-block h4 {
  font-size: 20px;
  color: #002c72;
  margin-bottom: 20px;
}

.ecm-scm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.ecm-scm-grid h5 {
  margin-bottom: 10px;
}

.ecm-scm-grid .block {
  flex: 1;
  min-width: 280px;
  background: #f1f5fa;
  padding: 20px;
  border-radius: 6px;
  text-align: left;
  display: flex;
  flex-direction: column;
  margin-top: 0 !important;
}

.section-note {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

.target-comparison {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.service-style1 {
  flex: 1;
  min-width: 260px;
  background: #f5f8fc;
  border-left: 5px solid #002c72;
  padding: 20px;
  border-radius: 6px;
  margin-top: 0 !important;
}

.service-style1 h5 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #002c72;
}

.service-style1 h5 span {
  font-size: 14px;
  color: #666;
}

.service-style1 ul {
  padding-left: 20px;
  margin: 0;
}

.service-style2 {
  background: #eef3f8;
  padding: 20px;
  margin: 30px 0 20px;
  border-radius: 6px;
}
.service-style2 h5 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #003366;
}

.service-style3{
  background: #002c72;
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 6px;
  margin-top: 30px;
  font-weight: bold;
  line-height: 1.6;
}
.three-box{
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.three-box .service-style2{
  flex: 1;
  min-width: 250px;
  max-width: 32%; 
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  box-sizing: border-box;
  margin-top: 0 !important;
  height: 165px;
}

/*
.solution-problem-box {
  background: #f8f8f8;
  border-left: 5px solid #cdcdcd;
  padding: 20px;
  margin: 30px 0;
  border-radius: 6px;
}

.solution-problem-box h5 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #004080;
}

.solution-problem-box ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
}

.section-message {
  margin: 30px 0 10px;
  font-size: 15px;
  color: #002c72;
  font-weight: bold;
  text-align: center;
}

.wp-block-group.solution-three-pillars {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.pillar {
  flex: 1;
  min-width: 250px;
  max-width: 32%; 
  background: #f5f8fc;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  box-sizing: border-box;
  margin-top: 0 !important;
  height: 165px;
}


.pillar h6 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #002c72;
  line-height: 1.4;
}

.pillar h6 span {
  display: block;
  font-size: 14px;
  color: #555;
  font-weight: normal;
}

.pillar p {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}
*/

.use-case-section {
  background: #f5f8fc;
  padding: 20px;
  border-left: 5px solid #002c72;
  border-radius: 6px;
  margin-bottom: 30px;
}

.use-case-section h5,
.use-data-section h5 {
  font-size: 16px;
  color: #002c72;
  margin-bottom: 10px;
}

.use-case-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.use-case-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 10px;
  color: #333;
}

.use-case-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0070c0;
  font-size: 14px;
}

.use-data-section {
  margin-top: 20px;
}

.data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.data-tags span {
  background-color: #e0ecf7;
  color: #003366;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
}

/* 仮説検証の革新 */
/* 全体のレイアウト */
.service-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 左カラム */
.left-column {
    flex: 1 1 35%;
    border: 2px solid #007acc;  /* 青枠 */
    padding: 20px;
    background-color: #fff;
}

/* 右カラム */
.right-column {
    flex: 1 1 60%;
    padding: 20px;
    background-color: #fff;
}

/* タイトルの左線＆デザイン */
.right-column h4 {
    font-size: 1.2em;
    margin-bottom: -8px;
    margin-left: 150px;
}

/* 左側の説明矢印 */
/*
.left-label::before {
	content: '';
    position: absolute;
    top: 114%;
    right: -10px;
    transform: translateY(-50%);
    width: 216px;
    height: 30px;
    background: linear-gradient(to right, #ccc, #888);
    clip-path: polygon(0% 0%, 90% 0%, 90% 30%, 100% 50%, 90% 70%, 90% 100%, 0% 100%);
}
*/
.left-label{
    position: absolute;
    top: 15%;
    font-weight: bold;
    display: inline-block;
    color: red;
    vertical-align: middle;
    text-decoration: none;
    font-size: 12px;
    text-align: left;
    line-height: 1.3;
    margin-bottom: 10px;
    margin-left: -10px;
}
.left-label::before,
.left-label::after{
	position: absolute;
	margin: auto;
	content: "";
	vertical-align: middle;
}
.left-label::before {
    top: 53px;
    left: 117px;
    box-sizing: border-box;
    border: 20px solid transparent;
    border-left: 22px solid #8aafc0;
}
.left-label::after {
    top: 61px;
    left: -30px;
    height: 23px;
    border-left: 150px solid #8aafc0;
}
.left-label span{ 
	background-color: #ffff00;
}
/* 図全体のレイアウト */
.diagram-section {
    align-items: center;
    position: relative;
    margin-top: 15px;
}

/* ボックスエリア */
.diagram-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 40px;
    margin-bottom: 35px;
}

.diagram-img{
    width: 80%;
    margin-left: 90px;	
}

/* 矢印 */
.down-arrow {
	position: relative;
	display: inline-block;
	padding: 0 0 0 16px;
	color: #000;
	vertical-align: middle;
	text-decoration: none;
	margin: 15px 0 30px;
}
.down-arrow::before,
.down-arrow::after{
    position: absolute;
    top: 15px;
    bottom: 0;
    left: 255px;
    margin: auto;
    content: "";
    vertical-align: middle;
}
.down-arrow::before{
    box-sizing: border-box;
    width: 4px;
    height: 4px;
    border: 42px solid transparent;
    border-top: 30px solid #8aafc0;
}

/* 注釈・説明 */
.notes {
    line-height: 1.6;
}

.notes .highlight {
    background-color: yellow;
    font-weight: bold;
    padding: 3px 5px;
    color: red;
    border-bottom: 1px solid red;
}

/* リストのマージン調整（左カラム） */
.left-column ol, .left-column ul {
    margin-left: 20px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
	.service-style1{
	    padding: 15px;
	    max-width: 100%;
	}
	.service-style1 h5{
		margin-left: 0 !important;
		margin-bottom: 5px;
	}
	.service-style1 ul{
		margin-left: 0 !important;
    	margin-right: 0 !important;
		max-width: 100%;
	}
	.three-box .service-style2{
		max-width: 100%;
		height: 140px;
	}
	.service-content {
        flex-direction: column;
    }
    .diagram {
        flex-direction: column;
    }
	.left-label{
	    display: contents;
	}
	.left-label::before {
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
        border: 22px solid transparent;
        border-top: 22px solid #8aafc0;
	}
	.left-label::after {
		top: -55px;
        left: 50%;
        transform: translateX(-50%);
		width: 26px;
		border-bottom: 62px solid #8aafc0;
		border-left: none;
	}
	.left-label span {
		position: absolute;
		top: -40px;
		left: 28%;
        transform: translateX(-80%);
	}
	.diagram-box {
		margin-bottom: 35px;
		padding-top: 33px;
		margin-left: 0;
	}
	.right-column h4 {
		margin-bottom: -8px;
		text-align: center;
        margin-left: 0;
	}
	.diagram-img {
		width: auto;
		margin-left: 0;
	}
    .down-arrow {
        margin-left: 0;
        position: relative;
        width: 100%;
        text-align: center;
    }
	.down-arrow::before, .down-arrow::after {
		left: 50%;
        transform: translateX(-50%);
	}
}



@media (max-width: 1024px) {
  .section-block h4 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
	.service-btn {
		padding: 5px 10px;
		font-size: 14px;
		margin: 0;
	}
	.services-buttons{
		margin-bottom: 45px;
	}
	.service-block{
		border: none;
		padding: 0;
		box-shadow: none;
	}
	.wp-block-group.service-block.is-layout-constrained{
		margin: auto !important;
	}

  .ecm-scm-grid {
    flex-direction: column;
  }

  .ecm-scm-grid .block {
    min-height: auto;
    width: 100%;
  }
	
  .solution-three-pillars {
    flex-direction: column;
  }

  .data-tags {
    flex-direction: column;
    gap: 8px;
  }
  .data-tags span {
    width: 100%;
    text-align: center;
  }
  .use-data-section {
  	margin-bottom: 60px !important;
  }
}