*,
::before,
::after {
    box-sizing: border-box;
    border-style: solid;
    border-width: 0;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    font-feature-settings: "palt";
}

body {
    margin: 0;
}

main {
    display: block;
}

p,
table,
blockquote,
address,
pre,
iframe,
form,
figure,
dl {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

dt {
    font-weight: bold;
}

dd {
    margin-left: 0;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    border-top-width: 1px;
    margin: 0;
    clear: both;
    color: inherit;
}

pre {
    font-family: monospace, monospace;
    font-size: inherit;
}

address {
    font-style: inherit;
}

a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

abbr[title] {
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: inherit;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

svg,
img,
embed,
object,
iframe {
    vertical-align: bottom;
}

button,
input,
optgroup,
select,
textarea {
    -webkit-appearance: none;
    appearance: none;
    vertical-align: middle;
    color: inherit;
    font: inherit;
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
    text-align: inherit;
    text-transform: inherit;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    cursor: pointer;
}

button:disabled,
[type="button"]:disabled,
[type="reset"]:disabled,
[type="submit"]:disabled {
    cursor: default;
}

:-moz-focusring {
    outline: auto;
}

select:disabled {
    opacity: inherit;
}

option {
    padding: 0;
}

fieldset {
    margin: 0;
    padding: 0;
    min-width: 0;
}

legend {
    padding: 0;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

[type="number"] {
    -moz-appearance: textfield;
}

label[for] {
    cursor: pointer;
}

details {
    display: block;
}

summary {
    display: list-item;
}

[contenteditable]:focus {
    outline: auto;
}

table {
    border-color: inherit;
    border-collapse: collapse;
}

caption {
    text-align: left;
}

td,
th {
    vertical-align: top;
    padding: 0;
}

th {
    text-align: left;
    font-weight: bold;
}
/*リセット　ここまで*/

html,
body {
    /* min-width: 360px; */
    font-family: "zen-maru-gothic", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #000;
}

.medium {
    font-family: "zen-maru-gothic", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.bold {
    font-family: "zen-maru-gothic", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.black {
    font-family: "zen-maru-gothic", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.kinuta {
    font-family: "yamamotoan-stdn", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/*----------------------------------------
  header
----------------------------------------*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 100%;
    background: #fff;
}

.header__inner {
    position: relative;
    /* max-width: 1600px; */
    height: 135px;
    margin: 0 auto;
}

main {
    padding-top: 135px;
}

/* ロゴ */
.header__logo {
    position: absolute;
    top: 22px;
    left: 25px;
    display: block;
    width: 120px;
}

.header__logo img {
    width: 100%;
    height: auto;
}

/* 掲載件数／掲載企業 */
.header__count {
    position: absolute;
    top: 41px;
    left: 170px;
    display: flex;
    align-items: baseline;
    color: #231815;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1;
    white-space: nowrap;
}

.header__count-num {
    margin: 0 4px;
    color: #f08278;
    font-size: 28px;
    letter-spacing: 0.113em;
}

.header__count-line {
    display: contents;
}

.header__count-line:first-child::after {
    content: "／";
}

/* 右上ボタン群 */
.header__actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.header__lead {
    margin-right: 3px;
    padding-top: 14px;
    color: #f08278;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.045em;
    line-height: 26px;
}

/* お気に入り */
.header__fav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 87px;
    height: 77px;
    padding-top: 14px;
    color: #fff;
    text-align: center;
    transition: opacity 0.3s;
}

.header__fav--company {
    background: #a7ce7a;
}

.header__fav--works {
    background: #8cb4eb;
}

.header__fav-icon {
    width: 26px;
    height: auto;
}

.header__fav-label {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 15px;
}

/* 一括資料請求 */
.header__request {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 227px;
    height: 77px;
    padding-right: 8px;
    background: #e28383;
    color: #fff;
    transition: opacity 0.3s;
}

.header__request-icon {
    width: 29px;
    height: auto;
    margin-right: 10px;
}

.header__request-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1;
}

/* グローバルナビ */
.header__nav {
    position: absolute;
    right: 46px;
    bottom: 19px;
}

.header__nav-list {
    display: flex;
    align-items: center;
}

.header__nav-list > li {
    display: flex;
    align-items: center;
}

.header__nav-list > li + li::before {
    content: "";
    display: block;
    width: 1px;
    height: 15px;
    margin: 0 28px;
    background: #231815;
}

.header__nav-list a {
    color: #231815;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.3s;
}

/* サブメニュー（IEHIMEについて） */
.header__nav-parent {
    position: relative;
}

/* リンクではなく開閉ボタン。見た目は他のナビ項目に揃える */
.header__nav-toggle {
    padding: 0;
    color: #231815;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.3s;
}

/* padding-top の分だけ親との隙間を埋め、カーソル移動中に閉じないようにする */
.header__subnav {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 10;
    padding-top: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    filter: drop-shadow(0 4px 12px rgba(35, 24, 21, 0.1));
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.header__subnav > li {
    display: block;
    min-width: 190px;
    background: #fff;
}

.header__subnav > li:first-child {
    padding-top: 6px;
    border-radius: 8px 8px 0 0;
}

.header__subnav > li:last-child {
    padding-bottom: 6px;
    border-radius: 0 0 8px 8px;
}

.header__subnav a {
    display: block;
    padding: 13px 24px;
    font-size: 15px;
}

/* is-open はタップ・キーボード操作用（common.js で付け外しする） */
.header__nav-parent.is-open .header__subnav {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (hover: hover) {
    .header__nav-parent:hover .header__subnav {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    .header__fav:hover,
    .header__request:hover,
    .header__logo:hover,
    .header__nav-toggle:hover,
    .header__nav-list a:hover {
        opacity: 0.7;
    }}

/* ピッタリ診断ボタン（右端に固定表示） */
.pittari-btn {
    position: fixed;
    top: 305px; /* ヘッダー下辺（135px）から170px */
    right: 0;
    z-index: 30;
    display: block;
    width: 84px;
    transition: opacity 0.3s;
}

.pittari-btn img {
    display: block;
    width: 100%;
    height: auto;
}

@media (hover: hover) {
    .pittari-btn:hover {
        opacity: 0.7;
    }
}

/*----------------------------------------
  SEARCH（一覧ページの絞り込みパネル）
  色とページ固有の余白は各ページのCSSで上書きする
----------------------------------------*/
.search {
    border: 1.24px solid rgba(179, 179, 179, 0.78);
    border-radius: 0 40.7px 40.7px 0;
    background: #fff;
}

.search__head {
    display: flex;
    align-items: center;
    width: 100%;
    height: 65px;
    padding-left: 23px;
    border-radius: 0 39.5px 0 0;
    background: #8cb4eb;
    color: #fff;
}

/* PCではアコーディオンにしないので、矢印は出さずボタンらしい見た目にもしない */
.search__head:disabled {
    cursor: default;
}

.search__head-arrow {
    display: none;
}

.search__head-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
}

.search__head-sub {
    margin-left: 12px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.search__inner {
    padding: 26px 35.4px 62.35px;
}

.search__group-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.search__group + .search__group {
    margin-top: 41px;
}

.search__options {
    margin-top: 15px;
    padding-left: 52px;
}

/* 行の高さはチェックボックスの19.2pxに固定し、行間を12.71pxに保つ */
.search__option {
    position: relative;
    display: flex;
    align-items: center;
    height: 19.2px;
    cursor: pointer;
}

.search__option + .search__option {
    margin-top: 12.71px;
}

/* input自体は隠し、見た目は .search__checkbox-box で作る
   （チェックマークが枠の右上にはみ出すため、背景画像では表現できない） */
.search__checkbox {
    position: absolute;
    width: 19.2px;
    height: 19.2px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.search__checkbox-box {
    position: relative;
    flex: 0 0 auto;
    width: 19.2px;
    height: 19.2px;
    border: 1px solid #231815;
    background: #fff;
}

/* チェック時：枠内をグレーで塗り、チェックマークを重ねる */
.search__checkbox:checked + .search__checkbox-box {
    background: #b3b3b3;
}

.search__checkbox:checked + .search__checkbox-box::before {
    content: "";
    position: absolute;
    top: -2.31px;
    left: 2.62px;
    width: 16.17px;
    height: 15.56px;
    background: url("../img/check.svg") no-repeat center / contain;
}

/* キーボード操作時のフォーカス表示 */
.search__checkbox:focus-visible + .search__checkbox-box {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.search__option-label {
    margin-left: 8.6px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* 検索するボタン */
.search__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 73.53px;
    margin-top: 41px;
    border-radius: 13.92px;
    background: #8cb4eb;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1;
    text-indent: 0.05em;
    transition: opacity 0.3s;
}

/*----------------------------------------
  キーワード検索（「条件で絞り込む」の枠の外・その上に置く）
  絞り込みとは別のフォームなので、送信すると keyword だけが付く
----------------------------------------*/
.keyword-search {
    margin-bottom: 21.76px;
}

.keyword-search__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.keyword-search__field {
    position: relative;
    margin-top: 11px;
}

.keyword-search__input {
    width: 100%;
    height: 55.49px;
    /* 右端の虫眼鏡ボタンに文字がかからないよう余白をとる */
    padding: 0 60px 0 20px;
    border: 0.99px solid gray;
    border-radius: 27.75px;
    background: #e6e6e6;
    font-size: 16px;
    line-height: 1;
}

.keyword-search__input::placeholder {
    color: #999;
}

.keyword-search__submit {
    position: absolute;
    top: 50%;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    transition: opacity 0.3s;
}

.keyword-search__submit img {
    display: block;
    width: 27.01px;
    height: auto;
}

@media (hover: hover) {
    .search__submit:hover,
    .keyword-search__submit:hover {
        opacity: 0.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .search__head-arrow {
        transition: none;
    }
}

/*----------------------------------------
  スライダー／関連実例（詳細ページ共通）
----------------------------------------*/
.slider {
    max-width: 1600px;
    margin: 13.6px auto 0;
}

/* 矢印の基準。キャプションやドットを含めないので画像の高さの中央に置ける */
.slider__main {
    position: relative;
}

.slider__track:not(.slick-initialized) {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

/* slick-theme.css の .slick-dotted.slick-slider { margin-bottom: 30px } を打ち消す
   （親から抜けてキャプション・ドットとの余白を押し広げてしまうため）。
   slick-theme.css はこのファイルより後に読まれるので、詳細度を1つ上げておく */
.slider .slider__track.slick-slider {
    margin-bottom: 0;
}

.slider__track .slick-list,
.slider__track .slick-track,
.slider__track .slick-slide {
    height: auto;
}

.slider__item {
    width: 1058px;
    margin: 0 20.5px;
    /* contain で余る左右（または上下）の帯。
       画像プレースホルダーの #c4c2c3 と同系の暖かいグレーを明るくしたもの */
    background: #eae8e9;
}

/* 縦位置・横位置どちらの写真も切らずに全体を見せる */
.slider__item img {
    display: block;
    width: 100%;
    aspect-ratio: 1058 / 700;
    object-fit: contain;
}

/* 矢印は中央スライドの内側に重ねる */
.slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 20.05px;
    height: 82.55px;
    transform: translateY(-50%);
    transition: opacity 0.3s;
}

.slider__arrow img {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.85));
}

.slider__arrow--prev {
    left: calc(50% - 502px);
}

.slider__arrow--next {
    right: calc(50% - 502px);
}

/* スライダーと連動して切り替わるキャプション */
.slider__caption {
    max-width: 1000px;
    margin: 10.3px auto 0;
    font-size: 15px;
    letter-spacing: 0.02em;
    line-height: 27px;
}

/* ドット */
.slider .slick-dots {
    position: static;
    display: flex;
    justify-content: center;
    gap: 17.6px;
    width: auto;
    margin-top: 23.4px;
    line-height: 0;
}

.slider .slick-dots li {
    width: 14.4px;
    height: 14.4px;
    margin: 0;
}

.slider .slick-dots li button {
    width: 14.4px;
    height: 14.4px;
    padding: 0;
}

.slider .slick-dots li button::before {
    width: 14.4px;
    height: 14.4px;
    border-radius: 50%;
    background: #ccc;
    content: "";
    opacity: 1;
}

.slider .slick-dots li.slick-active button::before {
    background: #8cb4eb;
}

/* 1600px以上では、デザイン幅1600pxでの比率を保ったまま画面幅いっぱいに広げる。
   各値は「デザイン上のpx ÷ 1600」を vw に置き換えたもの。
   画像は aspect-ratio で高さが決まるので、縦横比はそのまま維持される */
@media screen and (min-width: 1600px) {
    .slider {
        max-width: none;
    }

    .slider__item {
        width: 66.125vw; /* 1058 / 1600 */
        margin: 0 1.28125vw; /* 20.5 / 1600 */
    }

    .slider__arrow {
        width: 1.253125vw; /* 20.05 / 1600 */
        height: 5.159375vw; /* 82.55 / 1600 */
    }

    .slider__arrow--prev {
        left: calc(50% - 31.36vw); /* 中央から 501.76 / 1600 */
    }

    .slider__arrow--next {
        right: calc(50% - 31.36vw);
    }
}
/*----------------------------------------
  関連実例カード（詳細ページ共通）
----------------------------------------*/
.related-works {
    padding: 73.44px 0 83.9px;
    background: #fcf5e3;
}

.related-works-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
    text-indent: 0.02em;
}

.related-works-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    column-gap: 26.17px;
    row-gap: 40px;
    max-width: 1198.51px;
    margin: 33.77px auto 0;
}

/* お気に入りボタンをカードのリンクの外に出すための入れ物 */
.related-works-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.related-works-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

/* min-height: 0 が無いと、flexアイテムの自動最小サイズ（画像の高さ）が
   aspect-ratio より優先されて、画像によって数px高くなってしまう */
.related-works-thumb {
    position: relative;
    min-height: 0;
    aspect-ratio: 1;
}

/* 拡大したときにはみ出す分はここで隠す */
.related-works-thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.related-works-thumb-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* サムネイルと同じ正方形の領域を重ねて、その右下に置く */
.related-works-fav-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1;
    pointer-events: none;
}

.related-works-fav {
    position: absolute;
    right: 8.8px;
    bottom: 7.6px;
    pointer-events: auto;
    width: 52.41px;
    height: 52.41px;
    transition: opacity 0.3s;
}

.related-works-fav img {
    display: block;
    width: 100%;
    height: auto;
}

.related-works-name {
    margin-top: 18.7px;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 25.4px;
}

/* 白背景のバリエーション（同じテイストの実例） */
.related-works--plain {
    padding: 91.44px 0 54.5px;
    background: #fff;
}

/* 他の実例を探す（枠線ボタン） */
.related-works-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 412px;
    height: 70px;
    margin: 87.4px auto 0;
    border: 1px solid gray;
    border-radius: 7.73px;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.25em;
    line-height: 1;
    text-indent: 0.25em;
    transition: opacity 0.3s;
}
/*----------------------------------------
  カードのホバー（施工実例カード・建築会社カード共通）
  トップページ・一覧ページ・詳細ページの関連実例で同じ動きにする
----------------------------------------*/
/* 名前は下線を左から伸ばす。背景のグラデーションで描いているので
   アニメーションでき、text-decoration と違って太さも位置も指定できる。
   box-decoration-break は既定の slice のままにして、折り返したときに
   1行目を引き終えてから2行目が左から始まるようにする */
.works__name span,
.company__name span,
.related-works-name span {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.4s ease;
}

@media (hover: hover) {
    /* カードは透過させず、サムネイルを少し寄せて名前に下線を引く */
    .works__card:hover .works__thumb-img img,
    .company__card:hover .company__thumb-img img,
    .related-works-card:hover .related-works-thumb-img img {
        transform: scale(1.1);
    }

    .works__card:hover .works__name span,
    .company__card:hover .company__name span,
    .related-works-card:hover .related-works-name span {
        background-size: 100% 1px;
    }

    .event__card:hover .event__figure img {
        transform: scale(1.1);
    }

    .slider__arrow:hover,
    .works__fav:hover,
    .company__fav:hover,
    .related-works-fav:hover,
    .related-works-more:hover {
        opacity: 0.7;
    }
}

/*----------------------------------------
  イベント見学会カード（イベント一覧・イベント詳細で共用）
----------------------------------------*/
.event__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 46.9px 24px;
}

.event__card {
    display: flex;
    flex-direction: column;
}

/* min-height: 0 が無いと、flexアイテムの自動最小サイズ（画像の高さ）が
   aspect-ratio より優先されて、画像によって数px高くなってしまう */
.event__figure {
    min-height: 0;
    aspect-ratio: 1;
    overflow: hidden;
    background: #c4c2c3;
}

.event__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* 下線はタイトルの文字幅ぶんだけ引くので、幅を内容に合わせる */
.event__title {
    align-self: flex-start;
    /* line-height のぶん上下に余白が付くので、その半分を差し引いておく */
    margin-top: 15.6px;
    padding: 0 6px;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* 罫線だと2行になったとき、短い2行目の下にも枠いっぱいの線が引かれてしまう。
   背景で描いて box-decoration-break: clone にすると、行ごとに文字幅だけ線がつく */
.event__title span {
    padding-bottom: 2.5px;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.event__date {
    margin-top: 7.1px;
    padding-left: 6px;
    font-size: 20px;
    letter-spacing: 0.02em;
    line-height: 28px;
}

.event__empty {
    grid-column: 1 / -1;
    padding: 40px 0;
    font-size: 16px;
    text-align: center;
}

/*----------------------------------------
  パンくずリスト
----------------------------------------*/
.breadcrumb {
    padding: 32.7px 47px 0;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb__list > li {
    display: flex;
    align-items: center;
    color: #231815;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1;
}

/* HOME などの英字は少し広めのトラッキング */
.breadcrumb__list > li:first-child {
    letter-spacing: 0.08em;
}

.breadcrumb__list > li + li::before {
    content: "";
    display: block;
    width: 1px;
    height: 14px;
    margin: 0 24.5px 0 30px;
    background: #231815;
}

.breadcrumb__list a {
    transition: opacity 0.3s;
}

/*----------------------------------------
  ページネーション
----------------------------------------*/
.pagination {
    margin-top: 60px;
}

.pagination__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5.51px;
}

.pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #999;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    transition: opacity 0.3s;
}

.pagination__link.is-current {
    background: #000;
}

.pagination__link img {
    display: block;
    width: 6.5px;
    height: auto;
}

/* 「前へ」は矢印を反転させる */
.pagination__link--prev img {
    transform: rotate(180deg);
}

.pagination__ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #999;
    font-size: 14px;
    line-height: 1;
}

@media (hover: hover) {
    .breadcrumb__list a:hover,
    a.pagination__link:hover {
        opacity: 0.7;
    }
}

/*----------------------------------------
  footer
----------------------------------------*/
.footer__main {
    padding: 62px 0 90px;
    background: #fcf5e3;
    text-align: center;
}

/* ロゴ */
.footer__logo {
    display: block;
    width: 196px;
    margin: 0 auto;
}

.footer__logo img {
    width: 100%;
    height: auto;
}

/* ナビ */
.footer__nav {
    margin-top: 57px;
}

.footer__nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__nav-list > li {
    display: flex;
    align-items: center;
}

.footer__nav-list > li + li::before {
    content: "";
    display: block;
    width: 1px;
    height: 15px;
    margin: 0 28px;
    background: currentColor;
}

.footer__nav-list a {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.3s;
}

/* ボタン */
.footer__btns {
    display: flex;
    justify-content: center;
    gap: 17.5px;
    margin-top: 54px;
}

.footer__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 391.5px;
    height: 66px;
    border-radius: 7.32px;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1;
    text-indent: 0.2em;
    transition: opacity 0.3s;
}

.footer__btn--contact {
    border: 1px solid gray;
    background: #fff;
    color: #2f2725;
}

.footer__btn--request {
    background: #f08278;
    color: #fcf5e3;
}

/* SNS */
.footer__sns {
    display: flex;
    justify-content: center;
    gap: 62px;
    margin-top: 50px;
}

.footer__sns a {
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.footer__sns img {
    width: 43px;
    height: auto;
    margin-right: 17px;
}

.footer__sns span {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1;
}

/* 下部（白背景） */
.footer__bottom {
    padding: 22px 0 45px;
    background: #fff;
}

.footer__bottom-row {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 34px 0 44px;
    align-items: center;
    justify-content: space-between;
}

.footer__links {
    display: flex;
    gap: 34px;
}

.footer__links a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.09em;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.footer__spc {
    display: block;
    width: 180px;
    transition: opacity 0.3s;
}

.footer__spc img {
    width: 100%;
    height: auto;
}

.footer__copyright {
    margin-top: 65px;
    color: #999;
    font-size: 14px;
    letter-spacing: 0.2em;
    line-height: 1;
    text-align: center;
}

@media (hover: hover) {
    .footer__nav-list a:hover,
    .footer__btn:hover,
    .footer__sns a:hover,
    .footer__links a:hover,
    .footer__spc:hover {
        opacity: 0.7;
    }
}

/* PCではドロワーの箱を透過させて、中の要素を header__inner 直下として扱う */
.header__drawer {
    display: contents;
}

.header__hamburger,
.header__overlay {
    display: none;
}

/*----------------------------------------
  スタッフ紹介のページ見出し（一覧・詳細で共用）
  アイコン→英字→罫線→日本語見出しの順。
  アイコンと罫線の大きさは他の一覧ページと揃えている
----------------------------------------*/
.staff-head {
    padding-top: 33.3px;
    text-align: center;
}

.staff-head__icon {
    display: block;
    width: 40px;
    height: auto;
    margin: 0 auto;
}

.staff-head__title {
    margin-top: 9.5px;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
    text-indent: 0.08em;
}

.staff-head__line {
    display: block;
    width: 153.23px;
    height: auto;
    margin: 24.5px auto 0;
}

/*----------------------------------------
  画像モーダル（施工実例詳細・建築会社詳細は1023px以下、イベント詳細は全幅で開く）
----------------------------------------*/
.is-image-modal-open {
    overflow: hidden;
}

.image-modal {
    position: fixed;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 32px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    inset: 0;
}

.image-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.image-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 1.5px solid #fff;
    background: transparent;
}

.image-modal__close::before,
.image-modal__close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 1.5px;
    background: #fff;
    content: "";
}

.image-modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.image-modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.image-modal__content {
    width: 100%;
    max-width: 600px;
    margin: auto;
    color: #fff;
}

.image-modal__image {
    width: 100%;
    /* background: #000; */
}

.image-modal__image img {
    display: block;
    width: 100%;
    max-height: 60vh;
    margin: 0 auto;
    object-fit: contain;
}

.image-modal__pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 16px 0 14px;
    font-size: 14px;
    letter-spacing: 0.08em;
    line-height: 1;
}

.image-modal__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.image-modal__counter {
    min-width: 60px;
    text-align: center;
}

.image-modal__desc {
    font-size: 13px;
    letter-spacing: 0.02em;
    line-height: 1.8;
}

.image-modal__desc:empty {
    display: none;
}

/*----------------------------------------
  1600px 未満 〜 1024px：デザインを等比縮小して破綻を防ぐ
----------------------------------------*/
@media screen and (min-width: 1024px) and (max-width: 1599px) {
    body {
        overflow-x: hidden;
        zoom: calc(100vw / 1600px);
    }
}

/*----------------------------------------
  SP / タブレット（1023px 以下）
----------------------------------------*/
@media screen and (max-width: 1023px) {
    /* ---- イベント見学会カード ---- */
    /* 3列だと1枚が小さくなりすぎるので2列にする */
    .event__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }

    .event__title {
        margin-top: 9px;
        padding: 0 4px;
        font-size: 15px;
    }

    .event__title span {
        padding-bottom: 3px;
    }

    .event__date {
        margin-top: 5px;
        padding-left: 4px;
        font-size: 13px;
        line-height: 1.6;
    }

    .event__empty {
        padding: 24px 0;
        font-size: 14px;
    }

    /* ---- header ---- */
    .header__inner {
        display: flex;
        align-items: center;
        height: 64px;
        padding: 0 16px;
    }

    main {
        padding-top: 64px;
    }

    /* ピッタリ診断ボタン：ヘッダーが低くなる分、位置とサイズを縮める */
    .pittari-btn {
        top: 96px; /* ヘッダー下辺（64px）から32px */
        width: 52px;
    }

    /* ドロワーを開いている間は邪魔にならないよう隠す */
    .is-drawer-open .pittari-btn {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .header__logo {
        position: static;
        width: 74px;
    }

    .header__count {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        margin-left: 16px;
        color: #231815;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.03em;
        line-height: 1.2;
        white-space: nowrap;
    }

    .header__count-line {
        display: block;
    }

    .header__count-line:first-child::after {
        content: none;
    }

    .header__count-num {
        margin: 0 2px;
        font-size: 14px;
        letter-spacing: 0.06em;
    }

    /* ハンバーガー */
    .header__hamburger {
        position: relative;
        z-index: 30;
        margin-left: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
    }

    .header__hamburger-bar {
        display: block;
        width: 26px;
        height: 2px;
        background: #231815;
        transition:
            transform 0.3s,
            opacity 0.3s;
    }

    .header__hamburger-text {
        margin-top: 2px;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.06em;
        line-height: 1;
    }

    .is-drawer-open .header__hamburger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .is-drawer-open .header__hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .is-drawer-open .header__hamburger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ドロワー */
    .header__drawer {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 20;
        display: block;
        width: min(320px, 86%);
        height: 100dvh;
        padding: 84px 24px 40px;
        overflow-y: auto;
        background: #fff;
        transform: translateX(100%);
        transition: transform 0.3s;
        visibility: hidden;
    }

    .is-drawer-open .header__drawer {
        transform: none;
        visibility: visible;
    }

    .header__overlay {
        position: fixed;
        inset: 0;
        z-index: 10;
        display: block;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .is-drawer-open .header__overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .is-drawer-open {
        overflow: hidden;
    }

    /* ドロワー内：ナビ */
    .header__nav {
        position: static;
    }

    .header__nav-list {
        display: block;
    }

    .header__nav-list > li {
        display: block;
        border-bottom: 1px solid #eee;
    }

    .header__nav-list > li + li::before {
        display: none;
    }

    .header__nav-list a {
        display: block;
        padding: 16px 4px;
        font-size: 15px;
    }

    /* ドロワー内：サブメニューは開閉させず、通常の項目として並べる */
    .header__nav-parent {
        border-bottom: 0 !important;
    }

    .header__nav-toggle {
        display: none !important;
    }

    .header__subnav {
        position: static;
        padding-top: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        filter: none;
        transition: none;
    }

    .header__subnav > li,
    .header__subnav > li:first-child,
    .header__subnav > li:last-child {
        min-width: 0;
        padding: 0;
        border-top: 0;
        border-bottom: 1px solid #eee;
        border-radius: 0;
    }

    .header__nav-parent:hover .header__subnav,
    .header__nav-parent.is-open .header__subnav {
        transform: none;
    }

    /* ドロワー内：お気に入り・資料請求 */
    .header__actions {
        position: static;
        display: block;
        margin-bottom: 24px;
    }

    .header__lead {
        margin: 0 0 8px;
        padding-top: 0;
        font-size: 13px;
        line-height: 1.6;
    }

    .header__lead br {
        display: none;
    }

    .header__fav {
        width: 100%;
        height: 52px;
        margin-bottom: 8px;
        padding-top: 0;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .header__fav-icon {
        width: 20px;
    }

    .header__fav-label {
        margin-top: 0;
        font-size: 13px;
        line-height: 1.3;
    }

    .header__fav-label br {
        display: none;
    }

    .header__request {
        width: 100%;
        height: 56px;
        padding-right: 0;
    }

    .header__request-text {
        font-size: 16px;
    }

    /* ---- footer ---- */
    .footer__main {
        padding: 40px 16px 48px;
    }

    .footer__logo {
        width: 150px;
    }

    .footer__nav {
        margin-top: 28px;
    }

    .footer__nav-list {
        flex-wrap: wrap;
        gap: 12px 0;
        justify-content: flex-start;
    }

    .footer__nav-list > li {
        width: 50%;
        justify-content: center;
    }

    .footer__nav-list > li + li::before {
        display: none;
    }

    .footer__nav-list a {
        font-size: 14px;
    }

    .footer__btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 32px;
    }

    .footer__btn {
        width: min(340px, 100%);
        height: 56px;
        font-size: 15px;
        letter-spacing: 0.12em;
        text-indent: 0.12em;
    }

    .footer__sns {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 28px;
        margin: 32px auto 0;
        max-width: 270px;
    }

    .footer__sns li {
        width: calc(calc(100% - 28px) / 2);
    }

    .footer__sns img {
        width: 34px;
        margin-right: 10px;
    }

    .footer__sns span {
        font-size: 13px;
    }

    .footer__bottom {
        padding: 24px 16px 32px;
    }

    .footer__bottom-row {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }

    .footer__links a {
        font-size: 13px;
    }

    .footer__spc {
        width: 150px;
    }

    .footer__copyright {
        margin-top: 24px;
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    /* ---- SEARCH（アコーディオン） ---- */
    /* 行の高さを 0fr → 1fr にすることで、高さを決め打ちせずに開閉させる。
       align-content: start が無いと、開閉の途中で見出し側の auto 行が
       余った高さを吸収して伸び、中身が下からせり上がって見えてしまう */
    .search {
        display: grid;
        grid-template-rows: auto 0fr;
        align-content: start;
        max-width: 600px;
        margin: 0 auto;
        border-radius: 8px;
        overflow: hidden;
        transition: grid-template-rows 0.3s ease;
    }

    .search.is-open {
        grid-template-rows: auto 1fr;
    }

    .search__head {
        height: 52px;
        padding-left: 16px;
        padding-right: 16px;
        border-radius: 7px 7px 0 0;
    }

    .search__head-title {
        font-size: 24px;
    }

    .search__head-sub {
        margin-left: 12px;
        font-size: 14px;
    }

    /* 開閉の矢印。開いている間は上向きにする */
    .search__head-arrow {
        display: block;
        width: 14px;
        height: auto;
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .search.is-open .search__head-arrow {
        transform: rotate(180deg);
    }

    /* 閉じている間は読み上げ・タブ移動の対象から外す */
    .search__body {
        overflow: hidden;
        visibility: hidden;
        transition: visibility 0s 0.3s;
    }

    .search.is-open .search__body {
        visibility: visible;
        transition: visibility 0s 0s;
    }

    .search__inner {
        padding: 20px 16px 28px;
    }

    .search__group-title {
        font-size: 17px;
    }

    .search__group + .search__group {
        margin-top: 28px;
    }

    .search__options {
        margin-top: 12px;
        padding-left: 8px;
    }

    .search__option {
        height: auto;
    }

    .search__option + .search__option {
        margin-top: 10px;
    }

    .search__option-label {
        font-size: 15px;
    }

    .search__submit {
        height: 56px;
        margin-top: 28px;
        font-size: 17px;
    }

    /* ---- キーワード検索（枠の外） ---- */
    .keyword-search {
        margin: 0 auto 20px;
        max-width: 600px;
    }

    .keyword-search__title {
        font-size: 17px;
    }

    .keyword-search__field {
        margin-top: 8px;
    }

    .keyword-search__input {
        height: 46px;
        padding: 0 48px 0 16px;
        border-radius: 23px;
        font-size: 15px;
    }

    .keyword-search__submit {
        right: 4px;
        width: 38px;
        height: 38px;
    }

    .keyword-search__submit img {
        width: 20px;
    }

    /* ---- スライダー／関連実例 ---- */
    /* スライダー：スライド幅をCSSで決めるので variableWidth のまま追従する */
    .slider {
        margin-top: 16px;
    }

    .slider__item {
        width: calc(100vw - 72px);
        margin: 0 6px;
    }

    .slider__arrow {
        width: 12px;
        height: 50px;
    }

    .slider__arrow--prev {
        left: 22px;
    }

    .slider__arrow--next {
        right: 22px;
    }

    .slider__caption {
        margin-top: 12px;
        padding: 0 16px;
        font-size: 13px;
        line-height: 1.8;
    }

    .slider .slick-dots {
        gap: 10px;
        margin-top: 16px;
    }

    .slider .slick-dots li,
    .slider .slick-dots li button,
    .slider .slick-dots li button::before {
        width: 10px;
        height: 10px;
    }

    /* 関連実例カード */
    .related-works {
        padding: 40px 16px 48px;
    }

    .related-works-title {
        font-size: 18px;
    }

    .related-works-list {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 12px;
        row-gap: 24px;
        max-width: 600px;
        margin-top: 20px;
    }

    .related-works-fav {
        right: 5px;
        bottom: 5px;
        width: 34px;
        height: 34px;
    }

    .related-works-name {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.6;
    }

    .related-works--plain {
        padding: 40px 16px;
    }

    .related-works-more {
        width: 100%;
        max-width: 340px;
        height: 56px;
        margin-top: 32px;
        font-size: 14px;
        letter-spacing: 0.12em;
        text-indent: 0.12em;
    }

    /* ---- パンくずリスト ---- */
    .breadcrumb {
        padding: 14px 16px 0;
    }

    .breadcrumb__list > li {
        font-size: 12px;
    }

    .breadcrumb__list > li + li::before {
        height: 12px;
        margin: 0 10px;
    }

    /* ---- ページネーション ---- */
    .pagination {
        margin-top: 32px;
    }

    .pagination__list {
        gap: 5px;
    }

    .pagination__link,
    .pagination__ellipsis {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    /* ---- スタッフ紹介のページ見出し ---- */
    .staff-head {
        padding-top: 8px;
    }

    .staff-head__icon {
        width: 34px;
    }

    .staff-head__title {
        margin-top: 10px;
        font-size: 20px;
    }

    .staff-head__line {
        width: 110px;
        margin-top: 12px;
    }

    /* ---- 画像モーダル ---- */
    /* スライダーをタップすると開く */
    .image-modal {
        display: flex;
    }

    .slider__item {
        cursor: zoom-in;
    }
}

/*----------------------------------------
  プレビュー表示の案内バー（管理画面から開いたときだけ出る）
----------------------------------------*/
.preview-bar {
    padding: 12px 16px;
    background: #231815;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.04em;
    line-height: 1.6;
    text-align: center;
}
