@charset "UTF-8";

/* 施工事例：アーカイブは TOP #index .works と同マークアップ・同等レイアウト（セレクタは body#works .works） */

/* ========================================
   @media screen and (min-width: 768px), print
======================================== */
@media screen and (min-width: 768px), print {
  #works .works .works__inner {
    width: min(95%, 1760px);
    margin-inline: auto;
    padding-top: 50px;
    /* padding-bottom: clamp(150px, 50px + 13.021vw, 300px); */
  }
  #works .works .works__title-wrap {
    text-align: center;
  }
  #works .works .works__sub-title {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    width: 65px;
  }
  #works .works .works__sub-title img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }
  #works .works .works__title {
    margin-top: 16px;
    font-size: clamp(26px, 16.67px + 1.215vw, 40px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #222;
  }
  #works .works .works__content-area {
    display: grid;
    grid-template-areas: "tag btn" "list list";
    grid-template-columns: 70% 30%;
    grid-template-rows: auto 1fr;
    row-gap: 24px;
    margin-top: 12px;
  }
  #works .works .works__content-area--archive {
    grid-template-areas: "tag" "list";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  #works .works .works__tag-area {
    grid-area: tag;
    align-self: end;
    width: 80%;
    max-width: 1000px;
  }
  #works .works .works__tag-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    column-gap: clamp(8px, 2.67px + 0.694vw, 16px);
    row-gap: 6px;
  }
  #works .works .works__tag-list.is-collapsible {
    overflow: hidden;
    transition: max-height 0.35s ease;
    will-change: max-height;
  }
  #works .works .works__tag-item {
    line-height: 1;
  }
  #works .works .works__tag-area .works__tag-link {
    display: inline-block;
    padding-block: 4px;
    padding-inline: 16px;
    font-size: clamp(10px, 6px + 0.521vw, 16px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #222;
    border: 1px solid #222;
    border-radius: 5px;
    text-decoration: none;
  }
  #works .works .works__tag-toggle {
    display: none;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #222;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
  }
  #works .works .works__tag-toggle:hover {
    opacity: 0.7;
  }
  #works .works .works__tag-toggle::after {
    content: " ＋";
  }
  #works .works .works__tag-toggle.is-open::after {
    content: " －";
  }
  #works .works .works__tag-list.has-overflow + .works__tag-toggle {
    display: inline-block;
  }
  #works .works .works__btn-area {
    grid-area: btn;
    justify-self: end;
    align-self: end;
  }
  #works .works .works__btn-area a {
    padding-block: clamp(10px, 3.33px + 0.868vw, 20px);
    padding-inline: clamp(20px, -50px + 9.115vw, 125px);
    font-size: clamp(12px, 9.33px + 0.347vw, 16px);
    min-width: 200px;
    text-align: center;
  }
  #works .works .works__list {
    grid-area: list;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    column-gap: clamp(16px, 0px + 2.083vw, 40px);
    row-gap: 40px;
  }
  #works .works .works__list-item {
    min-width: 0;
  }
  #works .works .works__list-link {
    display: block;
    color: inherit;
    text-decoration: none;
  }
  /* 記事0件：page-topics.css の .topics-empty と同じ見た目（グリッドの list 領域に配置） */
  #works .works--archive .topics-empty {
    grid-area: list;
    background: #fff;
    margin-block: 50px;
    padding: 40px 20px;
    text-align: center;
    color: #222;
    font-size: 22px;
    line-height: 1.6;
  }
  #works .works .works__list-img {
    display: block;
    width: 100%;
    aspect-ratio: 560 / 380;
    overflow: hidden;
  }
  #works .works .works__list-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #works .works .works__list .works__list-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    column-gap: clamp(8px, 2.67px + 0.694vw, 16px);
    row-gap: 6px;
    margin: 0;
    margin-top: clamp(10px, -3.33px + 1.736vw, 30px);
  }
  #works .works .works__list .works__list-tag {
    display: inline-block;
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 0;
    padding-block: 4px;
    padding-inline: 16px;
    font-size: clamp(10px, 6px + 0.521vw, 16px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #222;
    border: 1px solid #222;
    border-radius: 5px;
  }
  #works .works .works__list-title {
    margin-top: clamp(4px, -4px + 1.042vw, 16px);
    font-size: clamp(16px, 13.33px + 0.347vw, 20px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: #222;
  }
  #works .works .works__list-area {
    margin-top: clamp(12px, 4px + 1.042vw, 24px);
    font-size: clamp(12px, 10.67px + 0.174vw, 14px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #9c9c9c;
  }
  #works .works .works__bnr-area {
    margin-top: clamp(60px, 33.33px + 3.472vw, 100px);
  }
  #works .works .works__bnr-link {
    display: block;
    width: min(95%, 1440px);
    margin-inline: auto;
  }

  #works main .works--archive .works-archive-pagenavi {
    margin-top: 56px;
    text-align: center;
  }
  #works main .works--archive .cate-list {
    position: relative;
    z-index: 1;
    margin-top: 48px;
  }
  #works main .works--archive .tag-list {
    position: relative;
    z-index: 1;
    margin-top: 0;
  }

  /* single-works：詳細 */
  #works .system-contents {
    background: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border: solid #ccc 1px;
  }
  #works .system-contents .system-category-set {
    margin-top: 0;
    margin-bottom: 0;
  }
  /* single-works：カテゴリタグ（page-system の塗りつぶしを上書き・アーカイブカードのタグと同一トーン） */
  #works .system-contents .system-category {
    margin: 0 0 clamp(10px, 6px + 0.52vw, 16px);
    padding: 0;
    font-size: inherit;
    color: inherit;
    text-align: left;
    width: auto;
    line-height: 1;
  }
  #works .system-contents .system-category > span {
    display: inline-block;
    box-sizing: border-box;
    margin: 0 10px 8px 0;
    padding: 5px 12px;
    font-size: clamp(12px, 10.67px + 0.174vw, 14px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #222;
    background-color: #fff;
    border: 1px solid #222;
    border-radius: 5px;
  }
  #works .system-contents .system-category > span.icon01,
  #works .system-contents .system-category > span.icon02 {
    background-color: #fff;
    color: #222;
    border: 1px solid #222;
  }
  #works .system-contents-inner {
    background: #fff;
    padding: 40px 20px;
  }
  #works .system-contents .system-date {
    font-size: 16px;
    margin-bottom: 15px;
    display: block;
  }
  #works .system-contents .system-ttl {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px #ccc solid;
    line-height: 1.4;
    letter-spacing: 0.9px;
  }
  #works .num-bx.num-bx--has-meta .system-ttl {
    margin-bottom: 0;
  }
  /* single-works：voice と同じタイトル下メタ（エリア・お客様名） */
  #works .num-bx .voice-meta-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    margin-bottom: 32px;
  }
  #works .num-bx .voice-meta-row .system-area,
  #works .num-bx .voice-meta-row .system-name {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.4;
  }
  #works .num-bx .voice-meta-row .system-area {
    color: #6b6b69;
  }
  #works .num-bx .voice-meta-row .system-area + .system-name {
    margin-top: 0;
  }
  /* single-works：価格（page-land.css #land .price-frame と同一ルール） */
  #works .system-contents-inner1 .price-frame {
    border-bottom: 1px solid #aaa;
    width: 700px;
    max-width: 100%;
    margin: 0 auto 40px;
    padding: 0 0 10px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    box-sizing: border-box;
  }
  #works .system-contents-inner1 .price-frame .sale-info-row-left {
    margin: 10px 20px 0 20px;
    text-align: center;
    width: 80px;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 1px;
  }
  #works .system-contents-inner1 .price-frame .sale-price {
    width: 580px;
    max-width: calc(100% - 120px);
    font-size: 26px;
    line-height: 1.6;
    letter-spacing: 1px;
    text-align: center;
  }
  #works .system-contents .system-i-pic {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 50px;
  }
  #works .system-contents .system-i-pic img {
    max-width: 100%;
    width: auto;
    height: auto;
  }
  #works .system-gallery {
    background: #eeefef;
    padding: 30px 20px;
    box-sizing: border-box;
  }
  #works .system-gallery h2,
  #works .system-gallery h3.system-ttl-02 {
    text-transform: uppercase;
  }
  #works .system-gallery h3.system-ttl-02 {
    margin: 0 0 24px;
    text-align: center;
    font-size: clamp(18px, 14px + 0.52vw, 24px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.05em;
    color: #222;
  }
  #works .system-gallery .theme-scf-gallery-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(16px, 8px + 1.04vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  #works .system-gallery .theme-scf-gallery-list > li {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  #works .system-gallery .theme-scf-gallery-list > li > span.system-Frame {
    display: block;
    width: 100%;
  }
  #works .system-gallery .theme-scf-gallery-list .img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8e8e8;
  }
  #works .system-gallery .theme-scf-gallery-list .img-wrap > a {
    position: absolute;
    inset: 0;
    display: block;
  }
  #works .system-gallery .theme-scf-gallery-list .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  #works .system-gallery .theme-scf-gallery-list > li > p {
    margin: 8px 0 0;
    font-size: clamp(12px, 10.67px + 0.174vw, 14px);
    line-height: 1.65;
    letter-spacing: 0.03em;
    color: #333;
    text-align: left;
  }
}

/* ========================================
   @media screen and (max-width: 767px)
======================================== */
@media screen and (max-width: 767px) {
  #works .works .works__inner {
    padding-top: 10vw;
  }
  #works .taxttl {
    margin-bottom: 7vw;
  }
  #works .works .works__title-wrap {
    padding-inline: 8.94vw;
    text-align: center;
  }
  #works .works .works__sub-title {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    width: 65px;
  }
  #works .works .works__sub-title img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }
  #works .works .works__title {
    margin-top: 4.83vw;
    font-size: 7.25vw;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #222;
  }
  #works .works .works__content-area {
    display: grid;
    grid-template-areas: "tag" "list" "btn";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  #works .works .works__content-area--archive {
    grid-template-areas: "tag" "list";
    grid-template-rows: auto auto;
  }
  #works .works .works__tag-area {
    grid-area: tag;
    margin-bottom: 10vw;
    padding-inline: 3.86vw;
  }
  #works .works .works__tag-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    column-gap: 1.93vw;
    row-gap: 1.45vw;
  }
  #works .works .works__tag-list.is-collapsible {
    overflow: hidden;
    transition: max-height 0.35s ease;
    will-change: max-height;
  }
  #works .works .works__tag-item {
    line-height: 1;
  }
  #works .works .works__tag-area .works__tag-link {
    display: inline-block;
    padding-block: 1.93vw;
    padding-inline: 4.83vw;
    font-size: 3.14vw;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #222;
    border: 1px solid #222;
    border-radius: 1.21vw;
    text-decoration: none;
  }
  #works .works .works__tag-toggle {
    display: none;
    margin-top: 2.9vw;
    font-size: 3.38vw;
    font-weight: 500;
    line-height: 1.4;
    color: #222;
    text-decoration: underline;
    text-underline-offset: 0.48vw;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
  }
  #works .works .works__tag-toggle::after {
    content: " ＋";
  }
  #works .works .works__tag-toggle.is-open::after {
    content: " －";
  }
  #works .works .works__tag-list.has-overflow + .works__tag-toggle {
    display: inline-block;
  }
  #works .works .works__btn-area {
    grid-area: btn;
    justify-self: center;
    margin-top: 9.66vw;
  }
  #works .works .works__btn-area a {
    width: 77.29vw;
    padding-block: 4.83vw;
    font-size: 3.38vw;
    text-align: center;
  }
  #works .works .works__list {
    grid-area: list;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    row-gap: 7.25vw;
    margin-top: 7.25vw;
    padding-inline: 3.86vw;
  }
  #works .works .works__list-item {
    min-width: 0;
    margin-bottom: 15vw;
  }
  #works .works .works__list-link {
    display: block;
    color: inherit;
    text-decoration: none;
  }
  /* 記事0件：page-topics.css の .topics-empty（SP）と同じ見た目 */
  #works .works--archive .topics-empty {
    grid-area: list;
    background: #fff;
    margin-bottom: 10vw;
    padding: 8vw 0;
    text-align: center;
    color: #222;
    font-size: 3.6vw;
    line-height: 1.6;
  }
  #works .works .works__list-img {
    display: block;
    width: 100%;
    aspect-ratio: 340/200;
    overflow: hidden;
  }
  #works .works .works__list-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  #works .works .works__list .works__list-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    column-gap: 1.93vw;
    row-gap: 1.45vw;
    margin: 0;
    margin-top: 4.83vw;
  }
  #works .works .works__list .works__list-tag {
    display: inline-block;
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 0;
    padding-block: 1.93vw;
    padding-inline: 4.83vw;
    font-size: 3.14vw;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #222;
    border: 1px solid #222;
    border-radius: 1.21vw;
  }
  #works .works .works__list-title {
    margin-top: 3.38vw;
    font-size: 4.35vw;
    font-weight: 500;
    line-height: 1.66666;
    letter-spacing: 0.05em;
    color: #222;
  }
  #works .works .works__list-area {
    margin-top: 2.9vw;
    font-size: 3.38vw;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #9c9c9c;
  }
  #works .works .works__bnr-area {
    margin-top: 19.32vw;
    padding-inline: 5.31vw;
  }
  #works .works .works__bnr-link {
    display: block;
    width: 100%;
  }

  #works main .works--archive .works-archive-pagenavi {
    margin-top: 12vw;
    text-align: center;
  }
  #works main .works--archive .cate-list {
    position: relative;
    z-index: 1;
    margin-top: 10vw;
  }

  #works .system-contents .system-category-set {
    margin-top: 0;
  }
  #works .system-contents {
    background: #fff;
    padding: 3vw;
    margin-bottom: 10vw;
  }
  #works .system-contents-inner {
    background: #fff;
    padding: 5vw 3vw;
  }
  #works .system-contents .system-date {
    font-size: 3.2vw;
    margin-bottom: 5vw;
    display: block;
    line-height: 1.4;
  }
  #works .system-contents .system-category {
    margin: 0 0 3vw;
    padding: 0;
    font-size: inherit;
    color: inherit;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    line-height: 1;
  }
  #works .system-contents .system-category > span {
    display: inline-block;
    box-sizing: border-box;
    margin: 0 2vw 2vw 0;
    padding: 1.2vw 3vw;
    font-size: 3.38vw;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #222;
    background-color: #fff;
    border: 1px solid #222;
    border-radius: 1.21vw;
  }
  #works .system-contents .system-category > span.icon01,
  #works .system-contents .system-category > span.icon02 {
    background-color: #fff;
    color: #222;
    border: 1px solid #222;
  }
  #works .system-contents .system-category-set {
    margin-bottom: 5vw;
    margin-top: 0;
  }
  #works .system-contents .system-ttl {
    font-size: 4.2vw;
    font-weight: bold;
    margin-bottom: 4.5vw;
    padding-bottom: 1vw;
    border-bottom: 1px #ccc solid;
    line-height: 1.6;
  }
  #works .num-bx.num-bx--has-meta .system-ttl {
    margin-bottom: 0;
  }
  #works .num-bx .voice-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 4vw;
    row-gap: 1.5vw;
    margin-top: 3vw;
    margin-bottom: 5vw;
  }
  #works .num-bx .voice-meta-row .system-area,
  #works .num-bx .voice-meta-row .system-name {
    margin-bottom: 0;
    font-size: 3.38vw;
    line-height: 1.4;
  }
  #works .num-bx .voice-meta-row .system-area {
    color: #6b6b69;
  }
  #works .num-bx .voice-meta-row .system-area + .system-name {
    margin-top: 0;
  }
  /* single-works SP：page-land.css #land .price-frame（767px以下）と同一 */
  #works .system-contents-inner1 .price-frame {
    border-bottom: 1px solid #aaa;
    width: 100%;
    margin: 0 auto 9.66vw;
    padding: 0 0 2.41vw 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.41vw 4.83vw;
    box-sizing: border-box;
  }
  #works .system-contents-inner1 .price-frame .sale-info-row-left {
    margin: 0;
    text-align: center;
    width: auto;
    flex: 0 0 auto;
    font-size: 3.86vw;
    line-height: 1.6;
    letter-spacing: 0.25vw;
  }
  #works .system-contents-inner1 .price-frame .sale-price {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    font-size: 6.28vw;
    line-height: 1.6;
    letter-spacing: 0.25vw;
    text-align: center;
  }
  #works .system-contents .system-i-pic {
    text-align: center;
    margin-bottom: 8vw;
  }
  #works .system-contents .system-i-pic img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
  }

  #works .system-gallery {
    background: #eeefef;
    padding: 5vw 4vw;
    box-sizing: border-box;
  }
  #works .system-gallery h3.system-ttl-02 {
    margin: 0 0 5vw;
    text-align: center;
    font-size: 4.35vw;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.05em;
    color: #222;
    text-transform: uppercase;
  }
  #works .system-gallery .theme-scf-gallery-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6vw 2vw;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  #works .system-gallery .theme-scf-gallery-list > li {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  #works .system-gallery .theme-scf-gallery-list > li > span.system-Frame {
    display: block;
    width: 100%;
  }
  #works .system-gallery .theme-scf-gallery-list .img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8e8e8;
  }
  #works .system-gallery .theme-scf-gallery-list .img-wrap > a {
    position: absolute;
    inset: 0;
    display: block;
  }
  #works .system-gallery .theme-scf-gallery-list .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  #works .system-gallery .theme-scf-gallery-list > li > p {
    margin: 3vw 0 0;
    font-size: 2.9vw;
    line-height: 1.65;
    letter-spacing: 0.03em;
    color: #333;
    text-align: left;
  }
}

/* カテゴリ／TAG 一覧（page-system と同等・works ページのみ読込） */
.cate-list {
  max-width: 1920px;
  margin-inline: auto;
  background: #f1ede7;
  margin-bottom: 20px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 16px;
}
.cate-list .cate-ttl {
  border-bottom: 1px dotted #333;
  padding-bottom: 10px;
  margin-bottom: 0;
  flex: 0 0 100%;
  width: 100%;
  font-size: clamp(18px, 15.333px + 0.347vw, 22px);
  font-weight: 700;
  text-align: center;
}
.cate-list span {
  display: inline-block;
  margin-right: 0;
}
.cate-list span a {
  display: inline-block;
  padding: 8px 20px;
  font-size: clamp(12px, 9.333px + 0.347vw, 16px);
  color: #fff;
  background-color: #4b4035;
}
.cate-list span a:hover {
  text-decoration: none;
}
.tag-list {
  background: #f8f8f8;
  margin-bottom: 20px;
  padding: 20px;
}
.tag-list .tag-ttl {
  border-bottom: 1px dotted #222;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
}
.tag-list span {
  display: inline-block;
  margin-right: 20px;
}
.tag-list span a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #333;
}
.tag-list span a:hover {
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  .cate-list {
    padding: 5vw 4vw;
    gap: 3vw 2vw;
    margin-bottom: 6vw;
  }
  .tag-list {
    padding: 5vw 4vw;
    margin-bottom: 6vw;
  }
  .tag-list .tag-ttl {
    font-size: 4.2vw;
    margin-bottom: 4vw;
  }
}
