@charset "UTF-8";
/* ==========================================================================
   With サイト共通デザイン（トップ・About・お問い合わせで読み込み）
   - モノトーン基調＋余白大きめ、英字の巨大見出し＋明朝の和文
   - 縦書き、「おうち窓」の写真枠（With オリジナル）、ペン画、ぼかし背景の事業パネル
   すべて .wg 配下にスコープ（ヘッダーのみ body.wg-page で上書き。wg-page は functions.php で付与）
   ========================================================================== */

.wg {
  --wg-ink:   #212121;
  --wg-sub:   #5c5c5c;
  --wg-sand:  #ededE8;
  --wg-gray:  #e7e7e7;
  --wg-line:  #a5a5a5;
  --wg-en:  'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wg-min: 'Zen Old Mincho', 'Yu Mincho', YuMincho, 'Hiragino Mincho ProN', serif;
  --wg-go:  'Zen Kaku Gothic New', YuGothic, 'Yu Gothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --wg-wrap: 1250px;
  --wg-gutter: clamp(1rem, 4vw, 3rem);

  background: #fff;
  color: var(--wg-ink);
  font-family: var(--wg-go);
  font-weight: 500;
  line-height: 1.8;
  font-feature-settings: "palt";
  letter-spacing: .04em;
}
.wg a { color: inherit; text-decoration: none; }
.wg a:hover { opacity: 1; }
/* リセットは :where で詳細度0にして、各コンポーネントの margin/padding を優先させる */
.wg :where(figure, h2, h3, p) { margin: 0; }
.wg :where(ul, ol) { list-style: none; margin: 0; padding: 0; }

/* フッター直前の Arkhe の余白を消す */
body.wg-page .l-content,
body.wg-page .l-content__body { padding-bottom: 0 !important; margin-bottom: 0 !important; }

.wg-wrap {
  width: 100%;
  max-width: calc(var(--wg-wrap) + var(--wg-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--wg-gutter);
}
.wg-section { padding: clamp(5rem, 10vw, 9rem) 0; }
.wg-bg-sand { background: var(--wg-sand); }
.wg-bg-gray { background: var(--wg-gray); }


/* ---------- 見出し：「with ◯◯」＋明朝の和文 ----------
   社名にかけて、各セクションを「with you / with town …」で名付ける。
   with は細く小さく、上に「おうち窓」と同じ浅い屋根を載せる（色は墨色のみ） */
.wg-title { margin: 0 0 2.5rem; }
.wg-title b {
  display: block;
  padding-top: .2em; /* 屋根のぶん */
  font-family: var(--wg-en);
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.wg-title b i {
  position: relative;
  display: inline-block;
  margin-right: .16em;
  font-size: .5em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .01em;
}
.wg-title b i::before {
  content: '';
  position: absolute;
  left: -6%;
  right: -6%;
  top: -.42em;
  height: .36em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpolyline points='2,18 50,2 98,18' fill='none' stroke='%23212121' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}.wg-title > span:not(.wg-title__lead) {
  display: block;
  margin-top: .75rem;
  font-family: var(--wg-min);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: .2em;
}
.wg-title__lead {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--wg-min);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: .14em;
}


/* ---------- ボタン：円＋シェブロン ---------- */
.wg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .25rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: currentColor;
  cursor: pointer;
}
.wg-btn::before {
  content: '';
  flex: 0 0 2.6em;
  width: 2.6em;
  height: 2.6em;
  border: 2px solid currentColor;
  border-radius: 50%;
  transition: background-color .4s ease, border-color .4s ease;
}
.wg-btn::after {
  content: '';
  position: absolute;
  left: 1.05em;
  top: 50%;
  width: .5em;
  height: .5em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-25%, -50%) rotate(45deg);
  transition: transform .4s ease;
}
/* ホバーで円が墨色に塗られ、矢印が白く抜ける */
.wg-btn:hover::before,
a:hover > .wg-btn::before { background-color: currentColor; }
.wg-btn:hover::after,
a:hover > .wg-btn::after { border-color: #fff; transform: translate(10%, -50%) rotate(45deg); }
.wg-btn--ext span::after {
  content: '↗'; /* 外部リンク */
  margin-left: .35em;
  font-family: var(--wg-en);
  font-weight: 500;
}


/* ---------- 写真枠：「おうち窓」 ----------
   浅い屋根の頂点と角を丸めた家のかたち（住み慣れた家・地域の居場所）。
   縦横比ごとに屋根の高さを揃えたパスを用意し、mask で切り抜く */
.wg-frame {
  --wg-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400' preserveAspectRatio='none'%3E%3Cpath d='M0 62Q0 50 10 45L140 3.5Q150 0 160 3.5L290 45Q300 50 300 62V380Q300 400 280 400H20Q0 400 0 380Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--wg-shape) center / 100% 100% no-repeat;
          mask: var(--wg-shape) center / 100% 100% no-repeat;
}
.wg-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--wg-sand);
}
.wg-frame--wide {
  aspect-ratio: 4 / 3;
  --wg-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath d='M0 56Q0 45 11 40L188 2.8Q200 0 212 2.8L389 40Q400 45 400 56V282Q400 300 382 300H18Q0 300 0 282Z'/%3E%3C/svg%3E");
}
.wg-frame--side {
  aspect-ratio: 16 / 9;
  --wg-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180' preserveAspectRatio='none'%3E%3Cpath d='M0 32Q0 26 6 23.5L151 1.5Q160 0 169 1.5L314 23.5Q320 26 320 32V170Q320 180 310 180H10Q0 180 0 170Z'/%3E%3C/svg%3E");
}
.wg-frame--square {
  aspect-ratio: 1;
  --wg-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' preserveAspectRatio='none'%3E%3Cpath d='M0 50Q0 40 10 36L139 3Q150 0 161 3L290 36Q300 40 300 50V282Q300 300 282 300H18Q0 300 0 282Z'/%3E%3C/svg%3E");
}
.wg-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
/* ペン画イラスト：枠も塗りも付けず、ページの地に直接描いた挿絵として置く。
   白地は乗算で背景色に溶かし、線は真っ黒にせず少しだけ柔らかく */
.wg-frame.wg-frame--ink {
  -webkit-mask: none;
          mask: none;
  background: transparent;
  overflow: visible;
}
.wg-frame--ink > img {
  mix-blend-mode: multiply;
  filter: brightness(1.1) contrast(1.15); /* 画像の白地はわずかに灰色なので純白に飛ばし、四角が見えないように */
  opacity: .85;
}
.wg-frame__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.wg-frame__empty img { width: 38%; opacity: .35; }


/* ---------- 左に見出し、右に本文の2カラム ---------- */
.wg-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.wg-split__text {
  white-space: pre-line;
  font-size: clamp(.95rem, 1.15vw, 1.05rem);
  line-height: 2.3;
  letter-spacing: .1em;
}
.wg-split__head .wg-title { margin-bottom: 1.75rem; }


/* ---------- スクロールで表示 ---------- */
.wg.is-anim .wg-reveal,
.wg.is-anim .wg-title {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}
.wg.is-anim .wg-reveal.is-in,
.wg.is-anim .wg-title.is-in { opacity: 1; transform: none; }


/* ==========================================================================
   01. HERO
   ========================================================================== */
.wg-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #1a1a1a;
  color: #fff;
}
.wg-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.wg-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 背景は一段引かせる：少しぼかして色味を抑え、タイトルを主役に */
  filter: blur(.8px) saturate(.75);
  transform: scale(1.12);
  transition: transform 9s cubic-bezier(.25,.1,.25,1);
}
.wg-hero__slide.is-active { opacity: 1; z-index: 1; }
.wg-hero__slide.is-active img,
.wg-hero__slide.is-leaving img { transform: scale(1.04); } /* ぼかしの縁が見えないよう少し拡大を残す */
.wg-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* タイトル側（左）だけ落とし、右は明るく残して明暗の差をつける。
     黒だと沈むので、フッターと同じ温かいこげ茶（#3b3434）を薄めに */
  background:
    linear-gradient(90deg, rgba(59,52,52,.55) 0%, rgba(59,52,52,.32) 30%, rgba(59,52,52,.06) 58%, rgba(59,52,52,0) 75%),
    linear-gradient(180deg, rgba(59,52,52,.3) 0%, rgba(59,52,52,0) 18%);
}
/* 縦書きタイトルと英字の副題を 1 つのかたまりに */
.wg-hero__copy {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: clamp(3.5rem, 9vw, 9rem);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vh, 2.25rem);
  color: #fff;
  animation: wgHeroIn 1.8s cubic-bezier(.2,.7,.2,1) .4s both;
}
.wg-hero__title {
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--wg-min);
  font-size: clamp(2.4rem, min(5vw, 7.4vh), 4.4rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .24em;
  text-shadow: 0 0 2px rgba(40,32,30,.35), 0 0 28px rgba(40,32,30,.55); /* 暗い膜を薄くしたぶん、文字の影で読ませる */
}
.wg-hero__en {
  display: flex;
  align-items: center;
  gap: .9em;
  font-family: var(--wg-en);
  font-size: clamp(.74rem, .9vw, .86rem);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .92;
}
.wg-hero__en::before { /* タイトルとつなぐ短い線 */
  content: '';
  flex: 0 0 28px;
  height: 1px;
  background: currentColor;
}
.wg-hero__count {
  position: absolute;
  z-index: 3;
  right: clamp(1.25rem, 3vw, 3rem);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--wg-en);
  font-size: .78rem;
  letter-spacing: .1em;
}
.wg-hero__count-bar {
  position: relative;
  width: 72px;
  height: 1px;
  background: rgba(255,255,255,.35);
}
.wg-hero__count-bar i {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.wg-hero__count-bar.is-run i { animation: wgBar 6s linear forwards; }
@keyframes wgBar { to { transform: scaleX(1); } }
@keyframes wgHeroIn {
  from { opacity: 0; filter: blur(6px); }
  to   { opacity: 1; filter: blur(0); }
}


/* ==========================================================================
   02. COMPANY
   ========================================================================== */
.wg-about .wg-split { align-items: center; }


/* ==========================================================================
   03. NEWS
   ========================================================================== */
.wg-news__head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "title ctrl" "cats ctrl";
  align-items: end;
  gap: 0 2rem;
  margin-bottom: 3rem;
}
.wg-news__head .wg-title { grid-area: title; margin-bottom: 1.25rem; }
.wg-cats { grid-area: cats; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.wg-cats a { font-weight: 700; font-size: .95rem; }
.wg-cats a::before { content: '›'; margin-right: .4em; font-family: var(--wg-en); }
.wg-news__ctrl {
  grid-area: ctrl;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}
.wg-news__arrows { display: flex; gap: .75rem; }
.wg-arrow {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--wg-ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color .3s ease;
}
.wg-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: .55rem;
  height: .55rem;
  border-left: 1.5px solid var(--wg-ink);
  border-bottom: 1.5px solid var(--wg-ink);
  transform: translate(-30%, -50%) rotate(45deg);
}
.wg-arrow--next::after { transform: translate(-70%, -50%) rotate(-135deg); }
.wg-arrow:hover { background: var(--wg-gray); }

.wg-news__track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--wg-gutter), calc((100vw - var(--wg-wrap)) / 2));
  padding: 0 max(var(--wg-gutter), calc((100vw - var(--wg-wrap)) / 2)) 1rem;
  scrollbar-width: none;
}
.wg-news__track::-webkit-scrollbar { display: none; }
.wg-news__card {
  flex: 0 0 clamp(230px, 22vw, 300px);
  scroll-snap-align: start;
}
.wg-news__card a { display: block; }
.wg-news__card .wg-frame { margin-bottom: 1.1rem; background: #fff; }
.wg-news__card a:hover .wg-frame > img { transform: scale(1.08); }
.wg-news__card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wg-news__card time {
  display: block;
  margin-top: .6rem;
  font-family: var(--wg-en);
  font-size: .82rem;
  color: var(--wg-sub);
  letter-spacing: .08em;
}
.wg-news__empty { color: var(--wg-sub); }


/* ==========================================================================
   05. TOWN — 町の通り（4 軒の建物が 1 本の地面の線に並ぶ）
   ========================================================================== */
.wg-town .wg-split { margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.wg-street {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: calc(var(--wg-wrap) + var(--wg-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--wg-gutter);
}
/* 各事業のサイトの色（カーソルを当てた建物だけ色づく） */
.wg-street__house {
  --svc: var(--wg-ink);
  --svc-soft: #ece8df;
  display: flex;
  flex-direction: column;
}
.wg-street__house--nozomi  { --svc: #cd6d8c; --svc-soft: #f7e4ea; } /* のぞみ：ピンク */
.wg-street__house--them    { --svc: #3f97c4; --svc-soft: #e0f0f9; } /* Them.：空色 */
.wg-street__house--puratto { --svc: #c48d6b; --svc-soft: #f6ebe2; } /* ぷらっとカフェ：ロゴの木の色 */
.wg-street__house--daidara { --svc: #1a1a1a; --svc-soft: #e9e5dc; } /* daidara：墨と紙 */

/* 建物：下端の線を隣とつなげて 1 本の通りにする */
.wg-street__bldg {
  position: relative;
  isolation: isolate; /* 乗算を建物ごとの色の窓とだけ重ねる */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0 1rem;
  border-bottom: 1px solid var(--wg-ink);
  transition: border-color .4s ease;
}
/* 建物の後ろに浮かぶ、事業の色の「おうち窓」 */
.wg-street__bldg::before {
  content: '';
  position: absolute;
  inset: 10% 7% 0;
  z-index: -1;
  background: var(--svc-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' preserveAspectRatio='none'%3E%3Cpath d='M0 50Q0 40 10 36L139 3Q150 0 161 3L290 36Q300 40 300 50V300H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' preserveAspectRatio='none'%3E%3Cpath d='M0 50Q0 40 10 36L139 3Q150 0 161 3L290 36Q300 40 300 50V300H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.wg-street__bldg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: multiply; /* 白地が窓の色に染まり、線はそのまま */
  filter: brightness(1.1) contrast(1.15);
  transform-origin: center bottom;
  transition: transform .5s cubic-bezier(.3,1.4,.5,1);
}
/* 建物の画像が未設定の間はサービスカード画像を窓の形で */
.wg-street__bldg .wg-frame { display: block; width: 82%; margin-bottom: 1rem; }
/* 地面の上の屋根マーク */
.wg-street__bldg::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid var(--svc);
  border-left: 1.5px solid var(--svc);
  background: #fff;
  opacity: 0;
  transform: translateX(-50%) rotate(45deg);
  transition: opacity .3s ease;
}

/* カーソルを当てた事業（建物でも文字でも）：色の窓が浮かび、足元の線・番号・事業名の下線がその色に */
.wg-street__house:hover .wg-street__bldg::before,
.wg-street__house:focus-within .wg-street__bldg::before { opacity: 1; transform: none; }
.wg-street__house:hover .wg-street__bldg img,
.wg-street__house:focus-within .wg-street__bldg img { transform: translateY(-6px); }
.wg-street__house:hover .wg-street__bldg::after,
.wg-street__house:focus-within .wg-street__bldg::after { opacity: 1; }
.wg-street__house:hover .wg-street__bldg,
.wg-street__house:focus-within .wg-street__bldg { border-bottom-color: var(--svc); }
.wg-street__house:hover .wg-street__num,
.wg-street__house:focus-within .wg-street__num { color: var(--svc); }
.wg-street__house:hover .wg-street__name,
.wg-street__house:focus-within .wg-street__name { border-bottom-color: var(--svc); }
/* タッチ端末はカーソルが無いので、最初から色づけておく */
@media (hover: none) {
  .wg-street__bldg::before { opacity: 1; transform: none; }
  .wg-street__name { border-bottom-color: var(--svc); }
  .wg-street__num { color: var(--svc); }
}

.wg-street__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 1.75rem clamp(.75rem, 1.5vw, 1.5rem) 0;
}
.wg-street__num {
  font-family: var(--wg-en);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--wg-sub);
}
.wg-street__body h3 {
  margin: .5rem 0 1rem;
  font-family: var(--wg-min);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .08em;
}
.wg-street__name {
  display: block;
  margin-bottom: .9rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--wg-ink);
  transition: border-color .4s ease;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.wg-street__body p { font-size: .92rem; line-height: 2; }
.wg-street__subs { margin: .9rem 0 0; font-size: .88rem; line-height: 1.9; }
.wg-street__subs a { border-bottom: 1px dotted currentColor; }
.wg-street__subs a:hover { border-bottom-style: solid; }
.wg-street__subs li::before { content: '・'; }
.wg-street__body .wg-btn { margin-top: auto; font-size: .95rem; }
.wg-street__body > :nth-last-child(2) { margin-bottom: 1.5rem; } /* ボタンの上の余白（padding だと矢印位置がずれる） */
.wg-street__house:nth-child(2) { transition-delay: .1s; }
.wg-street__house:nth-child(3) { transition-delay: .2s; }
.wg-street__house:nth-child(4) { transition-delay: .3s; }


/* ==========================================================================
   06. FUTURE
   ========================================================================== */
.wg-future__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.wg-future__item .wg-frame { margin-bottom: 1.25rem; }
.wg-future__num {
  display: block;
  font-family: var(--wg-en);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--wg-sub);
}
.wg-future__item h3 {
  margin: .25rem 0 .6rem;
  font-family: var(--wg-min);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .1em;
}
.wg-future__item p { font-size: .95rem; line-height: 2; }
.wg-future__item:nth-child(2) { transition-delay: .12s; }
.wg-future__item:nth-child(3) { transition-delay: .24s; }


/* ==========================================================================
   07. PHILOSOPHY（縦書き）
   ========================================================================== */
.wg-philo__body { position: relative; z-index: 2; }
.wg-tate {
  justify-self: end;
  display: block;
  writing-mode: vertical-rl;
  font-family: var(--wg-min);
  letter-spacing: .16em;
}
.wg-tate h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 0 .9rem;
}
.wg-tate h3:not(:first-child) { margin-right: 2.5rem; }
.wg-tate p {
  white-space: pre-line;
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  line-height: 2.1;
}
.wg-philo__side {
  width: 50%;
  /* 右端は本文（.wg-wrap）の右端にそろえる */
  margin: clamp(3rem, 6vw, 5rem) max(var(--wg-gutter), calc((100vw - var(--wg-wrap)) / 2)) 0 auto;
}


/* ==========================================================================
   08. MESSAGE
   ========================================================================== */
.wg-message__quote {
  font-family: var(--wg-min);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .1em;
  white-space: normal;
  margin-bottom: 1.75rem;
}
.wg-message .wg-split__text p + p { margin-top: 1.5rem; }
.wg-message__img {
  max-width: 420px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.wg-message__sign { font-size: .9rem; }
.wg-message__sign b {
  display: block;
  margin-top: .25rem;
  font-family: var(--wg-min);
  font-size: 1.35rem;
  letter-spacing: .2em;
}


/* ==========================================================================
   09. CONTACT
   ========================================================================== */
.wg-contact__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.wg-contact__head .wg-title { margin-bottom: 0; }
.wg-contact__img {
  flex: 0 0 clamp(220px, 28vw, 360px);
  margin-bottom: -1px; /* 下の罫線にイラストの窓がちょこんと乗るように */
}
.wg-contact__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--wg-ink);
}
.wg-contact__list li + li { border-left: 1px solid var(--wg-ink); }
.wg-contact__list a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  height: 100%;
  padding: 2.25rem clamp(1.25rem, 2.5vw, 2.5rem) 5rem;
  border-bottom: 1px solid var(--wg-ink);
  transition: background-color .4s ease, color .4s ease;
}
.wg-contact__list a::after {
  content: '';
  position: absolute;
  right: clamp(1.25rem, 2.5vw, 2.5rem);
  bottom: 2rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.wg-contact__list a::before {
  content: '';
  position: absolute;
  right: calc(clamp(1.25rem, 2.5vw, 2.5rem) + 1.15rem);
  bottom: calc(2rem + 1.1rem);
  width: .5rem;
  height: .5rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .4s ease;
}
.wg-contact__list a:hover::before { transform: translateX(3px) rotate(45deg); }
.wg-contact__list a:hover { background: var(--wg-ink); color: #fff; }
.wg-contact__num { font-family: var(--wg-en); font-size: .85rem; font-weight: 600; color: var(--wg-sub); }
.wg-contact__list a:hover .wg-contact__num { color: #bdbdbd; }
.wg-contact__list b {
  font-family: var(--wg-min);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: .1em;
}
.wg-contact__list small { font-size: .9rem; line-height: 1.8; }
.wg-contact__tel {
  margin-top: 2.5rem !important;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1.25rem;
  font-weight: 700;
}
.wg-contact__tel a {
  font-family: var(--wg-en);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: .02em;
}
.wg-contact__tel small { font-weight: 500; color: var(--wg-sub); }


/* ==========================================================================
   10. COMPANY（会社概要）
   ========================================================================== */
.wg-company__table div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px dotted var(--wg-ink);
}
.wg-company__table div:last-child { border-bottom: 1px dotted var(--wg-ink); }
.wg-company__table dt { font-weight: 700; }
.wg-company__table dd { margin: 0; }
.wg-company__map {
  margin-top: clamp(3rem, 6vw, 5rem);
  line-height: 0;
}
.wg-company__map iframe { filter: grayscale(.85) contrast(1.05); transition: filter .5s ease; }
.wg-company__map:hover iframe { filter: none; }


/* ==========================================================================
   ABOUT — page-about.php
   ========================================================================== */
/* Arkhe 標準のパンくずはカバー内の独自パンくずと重複するので隠す */
body.wg-page .p-breadcrumb { display: none; }

/* ---- カバー（下層ページの見出し） ---- */
.wg-cover { padding: clamp(8.5rem, 14vw, 11rem) 0 clamp(4rem, 7vw, 6rem); }
.wg-cover__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem 3rem;
}
.wg-cover .wg-title { margin-bottom: 0; }
.wg-cover__crumb {
  margin: 0 0 2rem;
  font-family: var(--wg-en);
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--wg-sub);
}
.wg-cover__crumb a:hover { color: var(--wg-ink); }
.wg-cover__crumb span { margin: 0 .6em; }
.wg-cover__img { flex: 0 0 clamp(260px, 36vw, 480px); }

/* ---- 代表メッセージ ---- */
.wg-ab-message__img { max-width: 420px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.wg-ab-message__quote {
  margin-bottom: 2.25rem !important;
  font-family: var(--wg-min);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .12em;
}
.wg-ab-message__body p {
  font-size: clamp(.95rem, 1.15vw, 1.05rem);
  line-height: 2.2;
  letter-spacing: .08em;
}
.wg-ab-message__body p + p { margin-top: 1.4rem; }
.wg-ab-message__em {
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 1px solid var(--wg-ink);
  font-family: var(--wg-min);
  font-size: 1.15rem !important;
  font-weight: 600;
}
.wg-ab-message .wg-message__sign { margin-top: 2.5rem; }

/* ---- 理念（使命・ビジョン・価値観） ---- */
.wg-mvv { margin: 0; }
.wg-mvv > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem 2rem;
  padding: 1.75rem 0;
  border-top: 1px dotted var(--wg-ink);
}
.wg-mvv > div:last-child { border-bottom: 1px dotted var(--wg-ink); }
.wg-mvv dt {
  font-family: var(--wg-min);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .12em;
}
.wg-mvv dt small {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--wg-en);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--wg-sub);
}
.wg-mvv dd { margin: 0; padding-top: 1.35rem; line-height: 2.1; letter-spacing: .06em; }
.wg-mvv dd li::before { content: '・'; }

/* ---- 沿革：縦線＋屋根マーク ---- */
.wg-history { position: relative; }
.wg-history::before {
  content: '';
  position: absolute;
  top: .9rem;
  bottom: .9rem;
  left: 6.4rem;
  width: 1px;
  background: var(--wg-line);
}
.wg-history li {
  position: relative;
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: 0 2.2rem;
  align-items: baseline;
  padding: .9rem 0;
}
.wg-history li::before { /* 屋根マーク */
  content: '';
  position: absolute;
  top: 1.45rem;
  left: 6.4rem;
  width: .55rem;
  height: .55rem;
  border-top: 1.5px solid var(--wg-ink);
  border-left: 1.5px solid var(--wg-ink);
  background: #fff;
  transform: translate(-50%, 0) rotate(45deg);
}
.wg-history__date {
  font-family: var(--wg-en);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.wg-history__date small { font-size: .55em; color: var(--wg-sub); }
.wg-history__text { line-height: 1.8; letter-spacing: .06em; }


/* ==========================================================================
   CONTACT — page-contact.php（左：連絡先、右：Contact Form 7）
   ========================================================================== */
.wg-ct__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.wg-ct__info { position: sticky; top: 7rem; }
.wg-ct__h {
  margin: 0 0 1.25rem !important;
  font-family: var(--wg-min);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .12em;
}
.wg-ct__h:not(:first-child) { margin-top: 3rem !important; }
.wg-ct__list { margin: 0; }
.wg-ct__list div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: .9rem 0;
  border-top: 1px dotted var(--wg-ink);
}
.wg-ct__list div:last-child { border-bottom: 1px dotted var(--wg-ink); }
.wg-ct__list dt {
  font-family: var(--wg-en);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--wg-sub);
}
.wg-ct__list dd { margin: 0; }
.wg-ct__list a:hover { text-decoration: underline; }
.wg-ct__tel {
  font-family: var(--wg-en);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: .02em;
}
.wg-ct__topics li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: .1rem 0;
  padding: .9rem 0;
  border-top: 1px dotted var(--wg-ink);
}
.wg-ct__topics li:last-child { border-bottom: 1px dotted var(--wg-ink); }
.wg-ct__num {
  grid-row: span 2;
  font-family: var(--wg-en);
  font-size: .8rem;
  font-weight: 600;
  color: var(--wg-sub);
  padding-top: .2rem;
}
.wg-ct__topics b { font-weight: 700; letter-spacing: .06em; }
.wg-ct__topics small { font-size: .86rem; line-height: 1.8; color: var(--wg-sub); }

/* ---- フォーム（Contact Form 7）---- */
.wg-ct__form-lead { margin-bottom: 2rem !important; font-size: .95rem; line-height: 2; }
.wg-ct__form .wpcf7-form p { margin: 0 0 1.75rem; }
.wg-ct__form label {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.wg-ct__form label br { display: none; }
.wg-ct__form .wpcf7-form-control-wrap { display: block; margin-top: .6rem; }
.wg-ct__form input[type="text"],
.wg-ct__form input[type="email"],
.wg-ct__form input[type="tel"],
.wg-ct__form select,
.wg-ct__form textarea {
  width: 100%;
  padding: .95rem 1.1rem;
  border: 1px solid #cfc8bb;
  border-radius: 0;
  background: #fff;
  color: var(--wg-ink);
  font: inherit;
  font-weight: 500;
  letter-spacing: .04em;
  transition: border-color .3s ease, background-color .3s ease;
}
.wg-ct__form textarea { min-height: 13rem; line-height: 1.9; resize: vertical; }
.wg-ct__form select {
  -webkit-appearance: none;
          appearance: none;
  padding-right: 3rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpolyline points='1,1.5 6,6.5 11,1.5' fill='none' stroke='%23212121' stroke-width='1.5'/%3E%3C/svg%3E") right 1.2rem center / 12px 8px no-repeat;
}
.wg-ct__form input:focus,
.wg-ct__form select:focus,
.wg-ct__form textarea:focus {
  outline: none;
  border-color: var(--wg-ink);
  background-color: #fffdf9;
}
/* 送信：墨色の大きなボタン */
.wg-ct__form .wpcf7-submit {
  display: inline-block;
  min-width: 16rem;
  padding: 1.1rem 3rem;
  border: 1px solid var(--wg-ink);
  border-radius: 999px;
  background: var(--wg-ink);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .3em;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
.wg-ct__form .wpcf7-submit:hover { background: #fff; color: var(--wg-ink); }
.wg-ct__form .wpcf7-not-valid { border-color: #b4543f; }
.wg-ct__form .wpcf7-not-valid-tip { margin-top: .4rem; font-size: .82rem; color: #b4543f; }
.wg-ct__form .wpcf7-response-output {
  margin: 1.5rem 0 0 !important;
  padding: 1rem 1.2rem !important;
  border: 1px solid var(--wg-ink) !important;
  font-size: .92rem;
}


/* ==========================================================================
   ヘッダー（共通デザインのページ）
   ナビは「英字（小）＋日本語」の2段ラベル。ホバー／現在地で小さな屋根マークが出る
   ヒーロー上：白文字／ヒーロー通過後（.is-past-hero）：半透明の白パネル＋墨色
   ========================================================================== */
body.wg-page #header {
  position: fixed !important;
  top: 0 !important;
  width: 100%;
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  pointer-events: none;
  transition: background-color .4s ease;
}
body.wg-page #header::before { display: none !important; }
body.wg-page #content,
body.wg-page .l-content,
body.wg-page .l-content__body { padding-top: 0 !important; margin-top: 0 !important; }
body.wg-page #header .l-header__body,
body.wg-page #header .p-drawer,
body.wg-page #header .l-header__drawerBtn,
body.wg-page #header .c-headLogo,
body.wg-page #header .c-gnavWrap { pointer-events: auto; }
body.wg-page #header .c-headLogo__img { transition: filter .4s ease; }
body.wg-page #header:not(.is-past-hero) .c-headLogo__img { filter: brightness(0) invert(1); }
body.wg-page #header:not(.is-past-hero) .l-header__drawerBtn svg { fill: #fff !important; }

@media (min-width: 1000px) {
  body.wg-page #header .l-header__drawerBtn { display: none; } /* PC はナビが常に見えるので不要 */
  /* Arkhe の l-container（最大幅）を外して、ナビを画面の右端まで寄せる */
  body.wg-page #header .l-header__body {
    align-items: center;
    max-width: none;
    padding-left: clamp(1.25rem, 3vw, 2.5rem);
    padding-right: 0;
  }
  body.wg-page #header .l-header__right {
    justify-content: flex-end;
    padding-right: clamp(1.25rem, 3vw, 2.5rem);
  }
  body.wg-page #header .c-gnav { align-items: center; }
  body.wg-page #header .c-gnav__li,
  body.wg-page #header .c-gnav__li > .c-gnav__a { height: auto !important; } /* Arkhe の高さ100%を解除 */
  body.home #header .c-gnav__li:first-child { display: none; } /* 「Top」はトップでは不要 */

  /* --- 共通：2段ラベル --- */
  body.wg-page #header .c-gnav__li > .c-gnav__a {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    font-family: 'Zen Kaku Gothic New', sans-serif !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: none !important;
    line-height: 1.35;
    padding: .9rem .95rem .55rem !important;
    transition: color .4s ease !important;
  }
  body.wg-page #header .wg-nav-en {
    display: block;
    margin-bottom: .2rem;
    font-family: 'Inter', sans-serif;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .22em;
    opacity: .65;
  }
  /* 屋根マーク（ホバー・現在地） */
  body.wg-page #header .c-gnav__a::before {
    content: '';
    position: absolute;
    top: .2rem;
    left: 50%;
    width: .42rem;
    height: .42rem;
    border-top: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
    opacity: 0;
    transform: translate(-50%, 4px) rotate(45deg);
    transition: opacity .3s ease, transform .3s ease;
  }
  body.wg-page #header .c-gnav__li:hover > .c-gnav__a::before,
  body.wg-page #header .c-gnav__li.-current > .c-gnav__a::before {
    opacity: 1;
    transform: translate(-50%, 0) rotate(45deg);
  }
  body.wg-page #header .with-header-cta > .c-gnav__a::before,
  body.wg-page #header .with-header-tel > .c-gnav__a::before { display: none; }
  body.wg-page #header .with-header-cta > .c-gnav__a {
    flex-direction: column;
    margin-left: .9rem !important;
    padding: .55rem 1.5rem !important;
    border-radius: 999px !important;
    transition: background-color .4s ease, color .4s ease !important;
  }
  body.wg-page #header .with-header-tel > .c-gnav__a {
    font-family: 'Inter', sans-serif !important;
    font-size: .95rem !important;
    letter-spacing: .04em !important;
    padding: .55rem 0 .55rem 1.1rem !important;
  }

  /* --- ヒーロー上：白 --- */
  body.wg-page #header:not(.is-past-hero) .c-gnav__li > .c-gnav__a {
    color: #fff !important;
    text-shadow: 0 0 12px rgba(0,0,0,.3);
  }
  body.wg-page #header:not(.is-past-hero) .with-header-cta > .c-gnav__a {
    background: #fff !important;
    color: #212121 !important;
    text-shadow: none;
  }

  /* --- ヒーロー通過後：白パネル --- */
  body.wg-page #header.is-past-hero .l-header__right {
    margin-top: -1px;
    padding: .35rem clamp(1.25rem, 3vw, 2.5rem) .45rem 1.25rem; /* 右は通常時と同じ余白で、文字位置がずれないように */
    border-radius: 0 0 0 1.25rem;
    background: rgba(255,255,255,.72);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
  }
  body.wg-page #header.is-past-hero .c-gnav__li > .c-gnav__a { color: #212121 !important; }
  body.wg-page #header.is-past-hero .with-header-cta > .c-gnav__a {
    background: #212121 !important;
    color: #fff !important;
  }
}


/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 999px) {
  .wg-ct__grid { grid-template-columns: 1fr; }
  .wg-ct__info { position: static; }
  .wg-split { grid-template-columns: 1fr; }
  .wg-future__list { grid-template-columns: 1fr 1fr; }
  .wg-contact__list { grid-template-columns: 1fr; }
  .wg-contact__list li + li { border-left: 0; }
  .wg-news__head { grid-template-columns: 1fr; grid-template-areas: "title" "cats" "ctrl"; }
  .wg-news__ctrl { justify-content: space-between; margin-top: 2rem; }
  .wg-tate { justify-self: start; }
  .wg-philo__side { width: 75%; margin-top: 3rem; }
  .wg-street { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4rem; }
}

@media (max-width: 640px) {
  .wg-ct__form .wpcf7-submit { width: 100%; min-width: 0; }
  /* 通りは横にスクロールして歩く */
  .wg-street {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--wg-gutter);
    scrollbar-width: none;
  }
  .wg-street::-webkit-scrollbar { display: none; }
  .wg-street__house { flex: 0 0 78%; scroll-snap-align: start; }
  .wg-hero__copy { left: 50%; transform: translate(-50%, -50%); }
  .wg-hero__en { display: none; }
  .wg-hero__shade { background: rgba(59,52,52,.32); } /* スマホはタイトルが中央なので全体を均一に（薄めのこげ茶） */
  .wg-split__text { line-height: 2.1; letter-spacing: .06em; }
  .wg-split__text br { display: none; }
  .wg-future__list { grid-template-columns: 1fr; }
  .wg-tate { writing-mode: horizontal-tb; }
  .wg-tate h3, .wg-tate h3:not(:first-child) { margin: 2rem 0 .5rem; }
  .wg-tate h3:first-child { margin-top: 0; }
  .wg-philo__side { width: 92%; }
  .wg-company__table div { grid-template-columns: 5.5rem 1fr; }
  .wg-cover__inner { flex-direction: column; align-items: stretch; }
  .wg-cover__img { flex: none; width: 82%; align-self: flex-end; }
  .wg-mvv > div { grid-template-columns: 1fr; }
  .wg-mvv dd { padding-top: 0; }
  .wg-history::before, .wg-history li::before { left: 4.6rem; }
  .wg-history li { grid-template-columns: 4.6rem 1fr; gap: 0 1.6rem; }
  .wg-history__date { font-size: 1.25rem; }
  .wg-contact__head { flex-direction: column; align-items: stretch; }
  .wg-contact__img { flex: none; width: 72%; align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .wg-hero__slide img { transform: none !important; transition: none; }
  .wg-hero__copy { animation: none; }
  .wg.is-anim .wg-reveal,
  .wg.is-anim .wg-title { opacity: 1; transform: none; transition: none; }
}
