#custom_about_image .pc-image {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    /* padding-left: 5rem; */
}
#custom_about_image .pc-image img {
    position: relative;
    width: 94%;
    margin: 0 0 0 auto;
    position: static;
    display: block;
}
#message #custom_about_image .pc-image img {
    width: 100%;
    margin: 0 0 0 auto;
    position: static;
    display: block;
}
.column-block-editor h2 {
    text-shadow: 0px 0px 15px rgba(61, 56, 38, 0.45);
    font-family: var(--font-shippori);
    font-size: 2.5rem!important;
    line-height: var(--line-height-base);
    color: var(--color-text);
    font-weight: 700;
    padding: 0;
    background-color: transparent;
    padding-left: 5rem;
    /* margin-top: 32px!important; */
    margin-bottom: 0;
}
.message-lead h3 {
    font-family: var(--font-shippori);
    /* font-size: 1.5rem; */
    margin-top: 6rem;
    left: 0;
    max-width: 100%;
    font-size: 2.5rem;
    letter-spacing: 2px;
    position: relative;
    font-weight: 700;
    margin-top: 0;
}
#custom_about_captionarea {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}
#custom_about_captionarea .area1 .message-lead {
    font-size: 1.5rem;
    margin-top: 0;
    width: 100%;
    max-width: 545px;
    display: block;
    grid-area: heading;
    position: static;
    margin-top: 12rem;
    z-index: 2;
    position: relative;
    left: 11rem;
}
#custom_about_captionarea .area2 .message-lead {
    grid-area: heading;
    position: static;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin: 0;
    position: relative;
    right: 5rem;
}
#custom_about_captionarea .area3 .message-lead {
    grid-area: heading;
    position: static;
    margin: 16rem 0 0 5rem;
    width: 100%;
    max-width: 468px;
    height: 120px;
}
 #custom_about_captionarea .area1 {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "heading  image"
    "deco     image"
    "body     image";
  column-gap: 2rem;
  position: relative; /* z-indexの基準 */
}
#custom_about_captionarea .area2 {
    display: grid;
    grid-template-columns: 1fr minmax(80px, 200px);
    grid-template-rows: auto auto;
    grid-template-areas: "body    heading"
    "image   heading";
    column-gap: 0;
    position: relative;
}
#custom_about_captionarea .area3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "heading image"
    "body    body   ";
    column-gap: clamp(2rem, 4vw, 5rem);
    row-gap: clamp(1rem, 2vw, 2rem);
    position: relative;
    margin-top: clamp(3rem, 6vw, 8rem);
}
#custom_about_captionarea .area4 {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "image  heading"
    "image  body";
    column-gap: clamp(2rem, 4vw, 5rem);
    position: relative;
    margin-top: clamp(3rem, 6vw, 8rem);
    margin-bottom: 120px;
}

#custom_about_captionarea .area1::before {
    grid-area: deco;
    content: "";
    background: url("../../../kyobunkwan@site/images/about/about_us_pc.png") no-repeat left center;
    background-size: contain;
    position: absolute;
    top: 7rem;
    left: 0;
    width: 55%;
    height: 80px;
    z-index: 1;
}
#custom_about_captionarea .area1 .media1 {
    grid-area: image;
    grid-row: 1 / 4;
    position: static;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    z-index: 3;
    align-self: start;
    margin-top: clamp(0rem, 2vw, 3rem);
    position: relative;
    top: 0;
    right: 8rem;
}
#custom_about_captionarea .area2 .media2 {
    grid-area: image;
    position: static;
    width: 100%;
    max-width: 200px;
    margin: 5rem 0 0 200px;
    align-self: end;
    justify-self: start;
}
#custom_about_captionarea .area3 .media3 {
    grid-area: image;
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-width: 592px;
    position: relative;
    right: 5rem;
}
#custom_about_captionarea .area4 .media4 {
  grid-area: image;
  grid-row: 1 / 3; /* 2行分またがる */
  position: static;
  width: 100%;
  align-self: start;
  margin: 0;
}
#custom_about_captionarea .area4 .media4 {
    grid-area: image;
    grid-row: 1 / 3;
    position: static;
    width: 100%;
    align-self: start;
    margin: 0 auto 0 80px;
    /* max-width: 280px; */
}
#custom_about_captionarea .area1 .caption1 {
    grid-area: body;
    position: static;
    margin: 8rem auto 0;
    z-index: 2;
    padding-bottom: 4rem;
    width: 100%;
    max-width: 36rem;
}
#custom_about_captionarea .area2 .caption1 {
    grid-area: body;
    position: static;
    margin: 0;
    padding: 0;
    align-self: start;
    width: 100%;
    max-width: 624px;
    position: relative;
    top: 19rem;
    right: -32rem;
}
#custom_about_captionarea .area3 .caption1 {
    grid-area: body;
    position: static;
    margin: 2rem auto 0 360px;
    align-self: start;
    padding-bottom: 4rem;
    display: inline;
    width: 100%;
    max-width: 660px;
}
#custom_about_captionarea .area4 .caption1 {
    grid-area: body;
    position: static;
    margin: 10rem auto 0 160px;
    align-self: start;
    text-align: left;
    padding: 0;
    width: 100%;
    max-width: 643px;
}
#custom_about_captionarea .caption1 p,
#custom_about_captionarea .caption1 span {
    font-family: var(--font-shippori);
    font-size: 1rem;
    font-weight: 600;
    line-height: 30px;
}
#custom_about_captionarea .area2 .message-lead h3 {
    writing-mode: vertical-rl;
    text-orientation: upright;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    height: auto;
}

/* 各行の段差 */
#custom_about_captionarea .area2 .message-lead h3 span {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-shippori);
    font-weight: 700;
    line-height: 3.5rem;
    letter-spacing: 0.2em;
}
#custom_about_captionarea .area2 .message-lead h3 span.line2 {
  margin-top: clamp(1.5rem, 3vw, 4rem);
}
#custom_about_captionarea .area2 .message-lead h3 span.line3 {
  margin-top: clamp(3rem, 6vw, 8rem);
}
#custom_about_captionarea .area3 .message-lead h3 {
  font-family: var(--font-shippori);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 700;
  line-height: var(--line-height-base);
  margin: 0;
}
/* 各行の段差 */
#custom_about_captionarea .area3 .message-lead h3 span {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-shippori);
    font-weight: 700;
}
#custom_about_captionarea .area3 .message-lead h3 span.line2 {
    margin: 0 0 0 3rem;
}
#custom_about_captionarea .area4 .message-lead {
    grid-area: heading;
    position: static;
    margin: 0 80px 0 auto;
    padding-top: clamp(2rem, 4vw, 5rem);
    text-align: right;
    width: 100%;
    max-width: 500px;
}
#custom_about_captionarea .area4 .message-lead h3 {
  font-family: var(--font-shippori);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: var(--line-height-base);
  margin: 0;
  text-align: right;
}

#message {
    background: var(--color-green-base);
    color: var(--color-white);
}
#message .column-block-editor h2 {
    font-family: var(--font-shippori);
    font-size: 1.875rem!important;
    line-height: var(--line-height-base);
    color: var(--color-white);
    font-weight: 700;
    padding: 0;
    background-color: transparent;
    margin:0;
}

#marble-bg {
    background-image: url('../../images/background/background_marble.png');
    background-repeat: repeat;
    /* z-index: -2; */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
#ceo-message{
    width: 100%;
    max-width: 1280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 150px 80px;
    margin: 0 auto;
    box-sizing: border-box;
}

#custom_about_message .title1 {
    margin-bottom: 104px;
}
#custom_about_message .title1 h2{
    font-weight: 600;
    font-size: 1.875rem;
}
#custom_about_message .caption1  {
    margin-bottom: 87px;
}
#custom_about_message .caption1 p,
#custom_about_message .caption1 span {
    font-size: 1rem;
    font-weight: 400;
}

#custom_about_message .caption2 {
    text-align: right;
}


#company {
    display: flex;
    justify-content: space-between;
    margin: 144px auto -96px;
    padding: 0 80px;
    gap: 3rem;
    max-width: 1280px;
    /* width: 100%; */
}

#company h2 {
    text-shadow: unset;
    font-family: var(--font-shippori);
    font-size: 1.875rem!important;
    line-height: var(--line-height-base);
    color: var(--color-text);
    font-weight: 700;
    padding: 0;
    background-color: transparent;
    margin-top: 0;
    margin-bottom: 0;
}
#company .column-block-editor:nth-child(1){
    /* width: 30%; */
    min-width: 125px;
}
#company .column-block-editor:nth-child(2){
    width: 100%;
    max-width: 840px;
}

#company table td {
    white-space: normal;
}
#company table tr:nth-child(7) td:first-child{
  white-space: nowrap;
}

#custom_about_link {
    max-width: 1440px;
    width: 90%;
    margin: 0 auto;
    padding: 120px 0;
}
#custom_about_link .card-text span {
    display: inline-flex;
    font-family: var(--font-shippori);
    font-size: 1.125rem;
    align-items: anchor-center;
    white-space: nowrap;
    font-weight: 600;
}
#custom_about_link .card-text:after {
    content: "";
    background: url("../../../kyobunkwan@site/images/about/link-arrow.svg") no-repeat center center;
    background-size: cover;
    background-position: top center;
    display: inline-block;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 2rem;
    height: .5rem;
    z-index: 1;
    display: block;
    margin-top: 3.5rem;
}
#custom_about_link .link4 .card-text:after {
    margin-top: 0.5rem;
}

/* コンテナの設定 */
.about-link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 33px;
    padding: 0;
    width: 100%;
    max-width: 1280px;
    box-sizing: border-box;
    margin: 0 auto;
}
/* 各段（グループ）の基本設定 */
.about-link-group {
    display: flex;
    justify-content: center;
    width: 100%;
}
/* 上の段：横幅64pxのgap */
.row-top {
    gap: 64px;
}
/* 下の段：横幅40pxのgap */
.row-bottom {
    gap: 40px;
}
/* 各カードの基本設定 */
.about-card {
    background-color: rgba(255, 255, 255, 0.1); /* 透過背景 */
}

.about-card a {
    display: flex;
    text-decoration: none;
    position: relative;
    /* padding: 10px; */
    border: 1px solid rgba(255, 255, 255, 0.6);
    align-items: stretch;
    transition: background 0.3s;
    box-sizing: border-box;
}

/* 内側の二重線（擬似要素で実装） */
.about-card a::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.6); /* 内側の線 */
    pointer-events: none;
}

/* テキストエリア */
.card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
    margin: 1rem auto;
    padding: 0 1rem;
    color: #fff;
    min-width: 200px;
    width: 100%;
    box-sizing: border-box;
}
.link1 .card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
    margin: 1rem auto;
    padding: 0 2rem;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    min-width: 266px;
}
.link2 .card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
    margin: 1rem auto;
    padding: 0 2rem;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    min-width: 208px;
}
.link3 .card-text,
.link4 .card-text,
.link5 .card-text {
    flex: 1 1 50%;
    min-width: 0;
}
.link1,.link2 {
    width: 100%;
    max-width: 608px;
}
.link1 .card-image,
.link2 .card-image {
    flex: 1 1 50%;
    min-width: 0;
    /* width: 50%; */
}
.link3 .card-image,
.link4 .card-image,
.link5 .card-image {
    flex: 0 1 50%;
    /* max-width: 200px; */
    width: 100%;
}
.link1 .card-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 342 / 200;
    object-fit: cover;
}
.link2 .card-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}
.link3 .card-image img, 
.link4 .card-image img,
.link5 .card-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.about-card a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.link1 a, .link2 a { width: 100%; max-width: 608px; height: 100%; max-height: 200px;}
.link3 a, .link4 a, .link5 a { width: 100%; max-width: 400px; height: 100%; max-height: 200px;}

/* フェードインアニメーション */
.fade_in_animation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}
.fade_in_animation.show {
    opacity: 0;
    opacity: 1;
    transform: translateY(0);
}

.fade_in_animation_slow {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}
.fade_in_animation_slow.show {
    opacity: 0;
    opacity: 1;
    transform: translateY(0);
}
/* フェードインアニメーション */

@media (max-width: 1132px) {
    #custom_about_captionarea .area2 .caption1 {
        width: 60%;
    }
    #custom_about_captionarea .area4 .caption1 {
        width: 75%;
    }

    #custom_about_image .sp-image img {
        width: 94%;
        margin: 4.5rem 0 0 auto;
        position: static;
        display: block;
    }
    .column-block-editor h2 {
        font-size: 28px!important;
        padding: 0;
        margin: 2rem 0 0 auto;
        width: 94%;
    }
    #caption {
        width: 90%;
        margin: 0 auto;
    }
    #custom_about_captionarea .area4 .message-lead h3 {
        font-size: 1.5rem;
    }
    #company table tr {
        display: grid;
        grid-template-columns: 1fr;
        border-top: 1px solid var(--color-border-line);
        padding: 1rem 0;
    }
    #company table tr:last-child {
        border-bottom: 1px solid var(--color-border-line);
    }
    #company table td {
        white-space: normal;
        border: none;
        padding: 0;
    }
    #company table td:first-child {
    white-space: normal;
    border: none;
    padding: 0 0 0.5rem;
    }
}
@media (max-width: 1099px) {
    .message-lead h3 {
        font-size: 24px;
    }
    #custom_about_captionarea .area1 {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
        "image"
        "heading"
        "body";
    }
    #custom_about_captionarea .area1 .caption1 {
        margin: 3.5rem auto 0;
        padding-bottom: 4rem;
    }

  #custom_about_captionarea .area1 .media1 {
    grid-row: auto;
    max-width: 192px;
    margin: 1rem 0 0 auto;
    width: 100%;
    top: 0;
    right: 0;
  }
  #custom_about_captionarea .area1::before {
    display: none;
  }
#custom_about_captionarea .area1 .message-lead::before {
    grid-area: deco;
    content: "";
    background: url("../../../kyobunkwan@site/images/about/about_us_sp.png") no-repeat left center;
    background-size: contain;
    position: absolute;
    top: -5rem;
    left: 0;
    width: 100%;
    height: 110px;
    z-index: 1;
}
  #custom_about_captionarea .area1 .message-lead {
    margin: 6.5rem 0 0;
    top: 0;
    left: 0;
  }
    #custom_about_captionarea .area2 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "image"
      "body";
  }
    #custom_about_captionarea .area2 .caption1 {
        width: 100%;
        top: 0;
        left: 0;
        margin: 2.5rem 0 4rem;
    }
    #custom_about_captionarea .area2 .message-lead {
        right: 0;
    }
  /* SP時は縦書きを解除して横書きに */
  #custom_about_captionarea .area2 .message-lead h3 {
    /* writing-mode: horizontal-tb; */
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
    #custom_about_captionarea .area2 .message-lead h3 span {
        font-size: 1.5rem;
    }
    #custom_about_captionarea .area2 .message-lead h3 span.line2,
    #custom_about_captionarea .area2 .message-lead h3 span.line3 {
    /* margin-top: 0; */
    display: inline;
    }
    #custom_about_captionarea .area2 .message-lead h3 span.line1,
    #custom_about_captionarea .area2 .message-lead h3 span.line2,
    #custom_about_captionarea .area2 .message-lead h3 span.line3 {
    letter-spacing: 0.5rem;
    line-height: 2rem;
    }



  #custom_about_captionarea .area2 .media2 {
    max-width: 160px;
    margin-top: 1.5rem;
    width: 100%;
    margin: 0;
  }
   #custom_about_captionarea .area3 {
    grid-template-columns: 1fr;
    grid-template-areas: 
        "image"
      "heading"
      "body";
    margin-top: clamp(2rem, 5vw, 4rem);
    position: static;
  }
    #custom_about_captionarea .area3 .message-lead {
        margin: 2rem 0 0;
        width: 100%;
        max-width: unset;
        height: unset;
    }
    #custom_about_captionarea .area3 .caption1 {
        margin: 2rem auto 1rem;
        padding: 0;
        width: 100%;
        max-width: unset;
    }
    #custom_about_captionarea .area3 .message-lead h3 {
    font-size: 1.5rem;
    }
    
    #custom_about_captionarea .area3 .message-lead h3 span {
        font-size: 1.5rem;
    }
    #custom_about_captionarea .area3 .media3 {
    grid-area: image;
    width: 100%;
    max-width: 304px;
    position: relative;
    right: -1rem;
    margin: 0 0 0 auto;
    }
  #custom_about_captionarea .area4 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "heading"
      "body";
    margin-top: clamp(2rem, 5vw, 4rem);
  }
    #custom_about_captionarea .area4 .caption1 {
        width: 100%;
        margin: 3.5rem 0 0;
    }
  #custom_about_captionarea .area4 .media4 {
    grid-row: auto;
    width: 100%;
    max-width: 192px;
    margin: 0;
  }

  #custom_about_captionarea .area4 .message-lead {
    padding-top: 0;
    margin: 3.5rem 0 0 auto;
  }
    #ceo-message {
        width: 90%;
        max-width: unset;
        box-sizing: border-box;
        display: block;
        padding: 104px 0 128px;
    }
    #message .column-block-editor h2 {
        font-size: 1.5rem!important;
        margin:0;
    }
    #custom_about_message .title1 {
        margin: 0;
    }
    #custom_about_message .title1 h2{
        font-size: 1.5rem;
        margin: 3.5rem 0 0;
    }
    #custom_about_message .caption1 {
        margin: 2.5rem 0 3.5rem;
    }
    #message #custom_about_image .sp-image img {
        width: 100%;
        margin: 0 0 0 auto;
        position: static;
        display: block;
    }
    .about-link-container {
        display: block;
    }
    .about-link-group {
        display: block;
    }
    #company {
        display: block;
        margin: 104px auto -96px;
        padding: 0;
        width: 90%;
    }
    #company .column-block-editor:nth-child(2) {
        margin-top: 2.5rem;
    }
    #company h2 {
        font-size: 1.5rem!important;
        margin: 0;
    }
    .link1, .link2 {
        width: 100%;
        max-width:none;
    }
    .link1 a,
    .link2 a,
    .link3 a, 
    .link4 a, 
    .link5 a {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
    }
    .link1 .card-text, 
    .link2 .card-text, 
    .link3 .card-text, 
    .link4 .card-text, 
    .link5 .card-text {
        flex: 1 1 38%;
        min-width: 147px;
        padding: 0 1rem;
    }
    .link1 .card-image, 
    .link2 .card-image,
    .link3 .card-image,
    .link4 .card-image,
    .link5 .card-image {
        flex: 1 1 62%;
        min-width: 0;
    }
    .link1 .card-image img, 
    .link2 .card-image img,
    .link3 .card-image img, 
    .link4 .card-image img, 
    .link5 .card-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 23 / 15;
        object-fit: cover;
        display: block;
    }
    #custom_about_link .card-text span {
        font-size: 0.875rem;
        font-weight: 700;
    }
    .about-card {
        margin-bottom: 1rem;
    }
    #custom_about_link .card-text:after {
        width: 1rem;
        height: 0.35rem;
        z-index: 1;
        display: block;
        margin-top: 2.2rem;
    }
}