body {
    overflow-x: hidden;
}

/* タイトル */
.hero {
    position: relative;
    width: 100%;
    height: 500px;
    background: url('../img/会社概要.webp') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero::before{
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, .55);
    pointer-events: none;
    z-index: 2;
}

.wrap {
    width: 100%;
    padding: 24px;
    text-align: center;
    z-index: 3;

}

.hero-title {
    font-family: "hiragino-kaku-gothic-pron", sans-serif;
    font-weight: 600;
    font-size: 48px;
    margin: 0 auto;
    color: #fff;
    letter-spacing: 0.2em;
}

.hero-subtitle {
    font-family: "hiragino-kaku-gothic-pron", sans-serif;
    font-weight: 600;
    font-size: 32px;
    margin: 0 auto;
    color: #fff;
    letter-spacing: 0.1em;
}

/* 緑色の帯とコンテンツ */
.about {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-content {
    position: relative;
    padding-left: 40px;
    z-index: 2;
}

.section-title {
    font-family: "hiragino-kaku-gothic-pron", sans-serif;
    font-weight: 600;
    font-size: 42px;
    margin: 40px 0 8px;
    padding: 6px 12px;
    display: inline-block;
    position: relative;
    margin-left: 240px;
    color: #fff;
}

/* 白カード（会社概要・アクセスの枠） */
.section-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 24px;
  margin: 40px 0 32px; /* 余白は margin で調整 */
  position: relative;  /* ::before の基準になる */
  border: 1px solid #f4f4f4;
}

/* 帯（カードより上下に長く、左に飛び出す） */
.section-box::before {
  content: "";
  position: absolute;
  top: -80px;          /* 上に80pxはみ出す */
  bottom: -80px;       /* 下に80pxはみ出す */
  left: -240px;        /* 帯220px + 余白20pxぶん左に出す */
  width: 1200px;        /* 帯の幅 */
  z-index: -1;         /* 最背面 */
  display: block;
  background: transparent; /* 色は下で指定 */
}

/* セクションごとの帯の色 */
/*.section-box.company::before { background: #39975c; } */
/*.section-box.access::before  { background: #ccc; } */   /* グレー */

/* コンテンツを帯より前面に */
.section-box > * {
  position: relative;
  z-index: 1;
}

.profile {
    font-family: "hiragino-kaku-gothic-pron", sans-serif;
    font-weight: 600;
    font-size: 24px;
    display: grid;
    grid-template-columns: 140px 1fr 180px;
    gap: 12px 16px;
    column-gap: 80px;
    row-gap: 24px;
    padding-left: 40px;
}

.profile-term {
    grid-column: 1;
    margin: 0;
    width: 200px;
}

.profile-desc {
    grid-column: 2;
    margin: 0;
}

.profile-photo {
    grid-column: 3;
    grid-row: 1 / -1;
    justify-self: end;
    width: 160px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    top: -500px;
}

/* アクセス */

.section-title_access {
    font-family: "hiragino-kaku-gothic-pron", sans-serif;
    font-weight: 600;
    color: #39975c;
    font-size: 42px;
    margin: 40px 0 8px;
    padding: 6px 12px;
    display: inline-block;
    position: relative;
    margin-left: 100px;
}

.access-title {
    font-family: "hiragino-kaku-gothic-pron", sans-serif;
    font-weight: 600;
    font-size: 32px;
    letter-spacing: 0.2em;
}

.access-box {
    padding-left: 40px;
}

.access-map {
    width: 100%;
    height: 400px;
}

.access-addr {
    margin-top: 12px;
    font-family: "hiragino-kaku-gothic-pron", sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    background: #fff;
    color: #39975c;
    border: 1px solid #39975c;
    font-family: "hiragino-kaku-gothic-pron", sans-serif;
    font-weight: 600;
    font-size: 24px;
    padding: 8px 8px;
    border-radius: 20px;
    margin-right: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

.badge-p {
    font-family: "hiragino-kaku-gothic-pron", sans-serif;
    font-weight: 600;
    font-size: 24px;
}


/* 追記 */
.about-content{margin-top: 24px;}
.section-wrapper{
    position: relative;
    z-index: 0;
    padding-bottom: 50px;
}
.section-wrapper::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  margin: auto;
  height: 100%;
  width: 330px;        /* 帯の幅 */
  z-index: -1;         /* 最背面 */
  display: block;
  background: transparent; /* 色は下で指定 */
}
.section-wrapper:has(.company)::before { background: #39975c; } /* 緑 */
.section-wrapper:has(.access)::before { background: #f5f5f5; } /* 緑 */
.section-title{margin-left: 80px;}
.section-box{
    width: calc(100% - 200px);
    margin: 0 auto;
}


@media (max-width: 768px) {

.hero-title{
    font-size: 32px;
}

.hero-subtitle {
    font-size: 20px;
}

.about {
    padding: 0;
    margin: 0 ;
}

.about-content {
    padding-left: 0;
}

.about-content {
    padding: 0;
}

.section-title {
    margin-left: 24px;
}

.section-box {
    width: 90%;
    margin: 0 auto ;
}

.section-title  {
    font-size: 22px;
}

.section-box::before {
    left: 0px;
}

.section-wrapper::before {
    width: 50%;
    top: 0;
    left: 0;
}

.profile {
    display: block;
    font-size: 16px;
    padding-left: 12px;
}

.profile-term {
    color: #39975c;
    margin-bottom: 8px;
}

.profile-desc {
    margin-bottom: 24px;
}

.profile-photo {
    top: 0;
    margin: 0 auto;
    width: 90%;
}

.access-box {
    padding-left: 0;
}

.section-title_access {
    font-size: 22px;
    margin-left: 24px;
}

.access-title {
    font-size: 20px;
}

.access-map {
    width: 90%;
    height: 60%;
}

.badge {
    font-size: 16px;
}

.badge-p {
    font-size: 16px;
}

.access-addr {
    font-size: 16px;
    display: block;
}

}