/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --grad: linear-gradient(to right, #022E6B, #1A88D6);
  --blue-light: #E3ECFA;
  --blue-accent: #1A88D6;
  --blue-dark: #022E6B;
  --border: 1px solid #d7d9dc;
  --text: #344052;
  --serif:"Yu Mincho", "YuMincho", "Shippori Mincho", serif;
}

html { scroll-behavior: smooth; }

body {
      font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}


/* ===== MAIN CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== SECTION WRAPPER ===== */
.section {
  border-bottom: var(--border);
}
.section:last-child {
	border-bottom: none;
    padding-top: 122px;
	padding-bottom: 160px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
margin-bottom: 36px;
    margin-top: 36px;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 主要取引先の上の線なし ===== */
#profile {
  border-bottom: none;
	padding-top: 124px;
	    padding-bottom: 124px;
}

/* ===== TOGGLE BUTTON ===== */
.toggle-btn {
    width: 40px;
    height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--blue-dark);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, border 0.25s;
}
.toggle-btn svg {
  transition: transform 0.35s ease;
}
/* 開いた状態：白背景・濃紺ボーダー・シェブロンが上向きに */
.toggle-btn.open {
  background: #fff;
  border: 1px solid var(--blue-dark);
}
.toggle-btn.open svg { transform: rotate(180deg); }
.toggle-btn.open svg path { stroke: var(--blue-dark); }

/* ===== COLLAPSIBLE CONTENT ===== */
.collapsible-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  opacity: 0;
}
.collapsible-content.open {
  max-height: 4000px;
  opacity: 1;
	margin-bottom: 36px;
}

/* ===== 会社概要 TABLE ===== */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;

    /* ← 表の外枠の線
  border: var(--border); */
}
.profile-table th,
.profile-table td {
  padding:16px 20px;
  border: var(--border);
  vertical-align: top;
  text-align: left;
	line-height: 1.6;
}
.profile-table th {
  background: var(--blue-light);
  font-weight: 600;
  color:#344052;
  width: 240px;
  white-space: nowrap;
	    font-size: 16px;
}
.profile-table td {
  color: var(--text);
  a:hover { text-decoration: underline; }

}
.profile-table .pc_on span {
    margin-right: 1em;
}
.profile-table a { color: var(--blue-accent); }
.profile-table a::after {
  content: "\f08e";                     /* アイコンのユニコード（先頭にバックスラッシュ） */
  font-family: "Font Awesome 6 Free"; /* Font Awesome 6の指定 */
  font-weight: 900;                   /* Solidアイコンを表示するために必須 */
  display: inline-block;              /* アイコンの表示崩れを防ぐ */
  margin-left: 5px;                   /* テキストとアイコンの間の余白（お好みで調整） */
}
.fa-arrow-up-right-from-square {
margin-left:8px;
}
/* ===== 主要取引先 LIST ===== */
.section--no-border-top {
  border-top: none !important;
}
.section--no-border-bottom {
  border-bottom: none !important;
}
/* セクション間の上線を会社概要→主要取引先間だけ消す */
#profile + .section--no-border-top {
  border-top: none;
}
.client-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.client-list li {
      font-size: 16px;
  display: flex;
  align-items: baseline;
  gap: 4px;
	line-height: 1.6;
}
.client-list li::before {
  content: '・';
  color: var(--blue-accent);
  flex-shrink: 0;
}
.client-list li a {
  color: var(--blue-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.client-list li a:after {
content: "\f08e";                     /* アイコンのユニコード（先頭にバックスラッシュ） */
  font-family: "Font Awesome 6 Free"; /* Font Awesome 6の指定 */
  font-weight: 900;                   /* Solidアイコンを表示するために必須 */
  display: inline-block;              /* アイコンの表示崩れを防ぐ */
  margin-left: 5px;
}
.client-list li a:hover { opacity: 0.7; text-decoration: underline; }
.client-note {
line-height: 1.6;
    font-size: 16px;
  color: var(--text);
}

/* ===== 売上高 STATS ===== */
.stats-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}
.stat-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.2;
}
.stat-number {
  font-family: "Yu Gothic", "YuGothic", sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
}
.stat-unit {
  font-size: 14px;
  color: var(--text);
}

/* ===== 売上高 画像 ===== */
.chart-img {
  width: 100%;
  height: auto;
  display: block;
}
.chart-img.pc_on  { display: block; }
.chart-img.sp_on  { display: none; }

/* ===== 組織図 ===== */
.org-chart {
  overflow-x: auto;
  padding-bottom: 8px;
	max-width: 900px;
    margin: 0 auto;
}
.org-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 700px;
}

/* レベル1 (取締役会・社長) */
.org-level1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
}
.org-box {
  border: 1px solid #b0c4db;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--blue-dark);
  white-space: nowrap;
  background: #fff;
  min-width: 100px;
  text-align: center;
}
.org-box.dark {
  background: var(--blue-dark);
  color: #fff;
  border-color: var(--blue-dark);
}
.org-connector-h {
  width: 32px;
  height: 2px;
  background: #b0c4db;
  align-self: center;
  flex-shrink: 0;
  margin-top: 0;
}
/* 縦コネクター */
.org-connector-v {
  width: 2px;
  height: 16px;
  background: #b0c4db;
  margin: 0 auto;
}

/* 右側の部門ツリー */
.org-tree {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
/* 左の縦線 */
.org-tree::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 2px;
  background: #b0c4db;
  /* 高さはJSで不要、最後の行まで伸ばす */
  bottom: 60px; /* コミッティ行の上まで */
}

.org-row {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 8px 0;
}
/* 横線（左縦線→中間ボックスへ） */
.org-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 2px;
  background: #b0c4db;
}
.org-row.no-hline::before { display: none; }

.org-dept {
  margin-left: 32px;
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.org-dept-box {
  border: 1px solid #b0c4db;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--blue-dark);
  white-space: nowrap;
  background: #fff;
  min-width: 120px;
  text-align: center;
  align-self: flex-start;
}

/* 右側の子部署 */
.org-children {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  margin-left: 0;
}
.org-children::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: #b0c4db;
}
.org-child-row {
  display: flex;
  align-items: center;
  position: relative;
  padding: 5px 0;
}
.org-child-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  background: #b0c4db;
}
.org-child-box {
  margin-left: 28px;
  border: 1px solid #b0c4db;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--blue-dark);
  white-space: nowrap;
  background: #fff;
  min-width: 120px;
  text-align: center;
}

/* 水平コネクター（dept→children） */
.org-hconn {
  width: 24px;
  height: 2px;
  background: #b0c4db;
  align-self: flex-start;
  margin-top: 16px;
  flex-shrink: 0;
}

/* コミッティ（組織図下部） */
.org-committee-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-left: 32px;
}
.org-committee-box {
  border: 1px solid #b0c4db;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--blue-dark);
  white-space: nowrap;
  background: #fff;
  display: inline-block;
  align-self: flex-start;
}

/* ===== 沿革 ===== */
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.history-item {
  display: flex;
  align-items: baseline;
  gap: 36px;
  /*border-bottom: var(--border);*/
}
.history-item:last-child { border-bottom: none; }
.history-year {
  flex-shrink: 0;
      font-size: 16px;
  color: var(--text);
  white-space: nowrap;
	line-height: 1.6;
}
.history-desc {
      font-size: 16px;
  color: var(--text);
 line-height: 1.6;
}
.history-desc a {
  color: var(--blue-accent);
  text-decoration: none;
}
.history-desc a:after {
content: "\f08e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
    margin-left: 5px;
}
.history-desc a:hover { text-decoration: underline; }

/* ===== 所在地 ===== */
.address-block {
  margin-bottom: 34px;
}
.address-block p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 4px;
}
.access-line {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.access-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: var(--text);
	    line-height: 1.6;
}
.access-item .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--blue-dark);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  border-radius: 2px;
  flex-shrink: 0;
}
.map-area {
  overflow: hidden;
  margin-top: 0;
}
.map-area iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: none;
}

/* ===== FOOTER ===== */
.page-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 32px 20px;
  font-size: 13px;
  margin-top: 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Container */
  .container { padding: 0 20px; }

  /* Section */
#profile {
    padding-top: 44px;
	        padding-bottom: 50px;
	}
  /* H2 */
	.section-header{
margin-bottom: 30px;
    margin-top: 30px;
	}
  .section-header h2 { font-size: 32px; }
#performance .section-header {
margin-bottom: 24px;
        margin-top: 24px;
    }
#performance h2{
    line-height: 1.6;
}
.collapsible-content.open {
    margin-bottom: 27px;
}
.org-inner {
        min-width: initial;
    }

 /* 会社概要テーブル（SPカードデザイン） */
.profile-table {
  border: none;
}
 /* 
.profile-table,
.profile-table tbody {
  display: block;
}
*/
.profile-table tr {
  border: var(--border);
    margin-bottom: 0;
  

}

.profile-table tr:last-child {
  margin-bottom: 0;
}



.profile-table th,
.profile-table td {
  display: block;
  width: 100%;
  border: none;
}
	.sp_on.age_box_cover{
display: flex;
	}
/* 見出し（青） */
.profile-table th {
  background: var(--blue-light);
          padding: 8px 20px;
  font-weight: 600;
   border-bottom: var(--border);
}

/* 内容（白） */
.profile-table td {
  background: #fff;
padding: 16px 20px;
        line-height: 1.6;
}





  /* 売上高 画像 切り替え */
  .chart-img.pc_on { display: none; }
  .chart-img.sp_on { display: block; }

  /* 売上高数値 */
  .stat-number { font-size: 48px; }

  /* 組織図 */
  .org-inner { min-width: initial; }

  /* 沿革 → 縦並び */
  .history-item {
    flex-direction: column;
        gap: 0;
        padding: 0 0 16px;
  }
li.history-item:last-child {
    padding-bottom: 0;
}
  .history-year {
    width: auto;
    font-weight: 600;
  }

  /* 所在地 */
	#location .section-header {
    margin-bottom: 24px;
}
  .map-area iframe { height: 457px; }
  .access-line { flex-direction: column; gap: 8px; }

.toggle-btn {
    width: 32px;
    height: 32px;
}
.toggle-btn svg{
    width: 10px;
}
.section:last-child {
    padding-top: 50px;
    padding-bottom: 80px;
}
}