
/* ===== design tokens ===== */
:root {
    --base: #222;   /* メイン：ロゴと統一（強さ・安定） */
    --bg: #f5efe7;     /* 背景：明るく親しみやすい白系 */
    --text: #222;      /* 通常テキスト：読みやすいグレー黒 */
    --accent: #bfa980; /* ゴールドアクセント：ロゴの「Group」と統一 */
    --radius: 16px;
    --shadow: 0 8px 24px rgba(0,0,0,.08);
    --radius: 5px;
    --container: 1200px;
    --sidebar-w: 240px;     /* サイドナビの幅 */
    --sidebar-gap: 24px;    /* サイドナビと本文の間隔 */
    --header-h: 64px;       /* ヘッダーの高さ目安 */
}

*{ box-sizing:border-box }
html,body { height:100% }
body {
  margin: 0; 
  background: var(--bg); 
  color: var(--base);
  font-family: system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;
  line-height: 1.7;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 400;
  color: #333;
  letter-spacing: 0.03em;
  padding-top: var(--header-h); /* ← ヘッダーの高さ分だけ下げる */
}
img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}

/* ===== header ===== */
.site-header{
    position: fixed;          /* ← sticky から fixed に変更！ */
    top: 0;
    left: 0;
    width: 100%;              /* 画面幅いっぱい */
    z-index: 1000;            /* ぜんぶの上 */
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: var(--accent);
    color: #fff;
    border-bottom: 1px solid rgba(225,225,225,0.08);
    min-height: var(--header-h);
}
.site-header a {
    background: none;
    color: inherit;
    border: none;
    box-shadow: none;
}
.site-header a:hover {
  color: #f5f3ef; /* ホバーで少し明るく */
}

.site-header .brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: inline-block;
    transform: none !important;
    transition: none !important;
    filter: none !important;
}
.brand,
.brand-logo {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
}
.brand {
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
    color: inherit;
    text-decoration: none;
}
.brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.25));
    margin-left: 140px;
}
.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: conic-gradient(from 180deg,#7dd3fc,#a7f3d0,#fde68a,#7dd3fc);
}
.brand-name {
    color: var(--base); 
    font-weight:800;
    letter-spacing: .1em;
}

/* ===== Fullscreen Global Nav ===== */
.global-nav{
    position: fixed;
    inset: 0;
    z-index: 300;                          /* ヘッダーより後ろ */
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--accent);             /* アクセントカラーで全面 */
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .22s ease;
}
.nav-toggle:checked ~ .global-nav{ 
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

/* 背景（押すと閉じる） */
.nav-backdrop{
    position:absolute;
    inset:0;
    background: transparent;
    display:block;
}

/* パネル本体 */
.global-panel{
    position: relative;
    width: 100%;
    max-width: var(--container, 1100px);
    margin: 0 auto;
    padding: 80px 20px 40px;
    background: none;
    border: none;
    box-shadow: none;
}
/* オーバーレイ内のメニュー全体 */
.global-menu {
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* MENU / SNS 見出し */
.global-heading {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* SNS 用にちょっと余白を変えたい場合 */
.global-heading--sub {
  margin-top: 8px;
}

/* ===== メニュー一覧 ===== */
.global-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;   /* 行間, 列の間隔 */
}

.global-list li {
  margin: 0;
}

.global-list a {
    position: relative;
    display: inline-block;
    font-size: clamp(18px, 2.3vw, 22px);
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
    text-decoration: none;
    opacity: 1;
    padding-bottom: 4px;
    transition: transform .25s ease;
}

/* ホバーは今のままの雰囲気をキープ */
.global-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;                         /* ← 最初は非表示 */
    background: rgba(255,255,255,0.8);
    transition: width .25s ease;      /* ← スッと伸びるアニメーション */
}
/* ホバーした時だけ下線が伸びる */
.global-list a:hover::after {
  width: 100%;                      /* ← 文字の長さぴったりで完成 */
}

.global-list a:hover {
  transform: translateX(4px);
  opacity: 1;                       /* ← 文字は消えない */
  color: #fff;
}

/* ===== SNS リンク ===== */
.global-sns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;            /* ← 横並び */
  gap: 16px 24px;
}

.global-sns a {
  position: relative;        /* 下線のために必須 */
  display: inline-block;
  color: #fff;               /* 常に白 */
  font-size: 0.9rem;
  text-decoration: none;
  padding-bottom: 3px;       /* 下線の余白 */
  opacity: 1;
  transition: transform .25s ease;
}

.global-sns a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: rgba(255,255,255,0.8);
  transition: width .25s ease;
}
/* ホバー：文字はそのまま、下線だけ伸びる、少し右に動く */
.global-sns a:hover {
  color: #fff;      /* 文字色を固定 */
  opacity: 1;       /* 消えない */
  transform: translateX(3px);
}

.global-sns a:hover::after {
  width: 100%;      /* ← ここで文字幅ぴったりの下線が出る！ */
}


@media (max-width: 640px) {
  .global-menu {
    padding: 56px 24px 40px;
    gap: 24px;
  }

  .global-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ===== ハンバーガーアイコン（3本線→×） ===== */
/* ボタン本体：幅30px固定 */
.site-header .menu{
  width: 30px;          /* アイコンの幅はずっと 30px 固定 */
  height: 22px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;   /* 左揃え */
  cursor: pointer;
  position: relative;
  margin-right: 25px;
}

/* 3本線のベース */
.site-header .menu .bar{
  display: block;
  height: 2px;
  width: 30px;              /* 基本の長さ */
  background: #222;         /* 黒 */
  border-radius: 999px;
  transition:
    width .25s ease,
    transform .25s ease,
    opacity .2s ease;
  transform-origin: center;
}

/* 最初は長さバラバラ */
.site-header .menu .bar:nth-child(1){ width: 30px; }  /* 一番長い */
.site-header .menu .bar:nth-child(2){ width: 22px; }
.site-header .menu .bar:nth-child(3){ width: 16px; }  /* 一番短い */

.site-header .menu .bar + .bar{
  margin-top: 6px;
}

/* ▼ メニュー閉じているときだけ：ホバーでニュッと同じ長さになる */
.nav-toggle:not(:checked) ~ .site-header .menu:hover .bar{
  width: 30px;
}

/* ===== チェックされたら綺麗な「×」に変形 ===== */

/* チェック時は3本を中央に寄せる */
.nav-toggle:checked ~ .site-header .menu{
  align-items: center;
}

/* 3本とも中央に重ねる（30px のまま） */
.nav-toggle:checked ~ .site-header .menu .bar{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  margin-top: 0;
  transform-origin: center;
}

/* 上の線： ／  */
.nav-toggle:checked ~ .site-header .menu .bar:nth-child(1){
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 真ん中の線はフェードアウト */
.nav-toggle:checked ~ .site-header .menu .bar:nth-child(2){
  opacity: 0;
}

/* 下の線： ＼  */
.nav-toggle:checked ~ .site-header .menu .bar:nth-child(3){
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* 開いているときはホバーしても形が崩れないように */
.nav-toggle:checked ~ .site-header .menu:hover .bar{
  width: 30px;
}

/* 小さめ画面でのタイポサイズ調整 */
@media (max-width: 520px){
  .global-list a{ font-size: clamp(18px, 5.5vw, 22px); }
}

/*（任意）オーバーレイ表示中の背景スクロール抑止：対応ブラウザ向け */
@supports selector(:has(*)) {
  body:has(#nav-toggle:checked){ overflow: hidden; }
}

/* ===== 2カラム（左サイド固定 / 右コンテンツ） ===== */
.shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    column-gap: var(--sidebar-gap);
    max-width: var(--container, 1200px);
    margin: 0 auto;
    padding: 10px;
}
/* left sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px); /* ヘッダーの下＋少し余白 */
    align-self: flex-start;
    height: max-content;
    width: 260px;
}
.layout {
    padding-left: 0;
}
.sidenav {
    position: static;
}
.sidenav .site {
    margin: 0 0 10px; 
    font-size: 11px; 
    letter-spacing: .12em; 
    color: var(--weak);
}
.sidenav ul {
    list-style: none; 
    margin: 0; 
    padding: 0;
}
.sidenav a {
    display: block; 
    padding: 8px 10px; 
    border-radius: 5px;
    color:#2b2b2b;
}
a:hover {
    color: var(--accent);
}
.sidenav a:hover,
.sidenav a.active {
    background: #BFA980; 
    color:#fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.site-nav a::after {
    background:#c8a64b;
}
.site-nav .btn {
    background: transparent;
    color: #2b2b2b;
    box-shadow: 0 6px 16px rgba(191,169,128,0.25);
    border:1.5px solid #bfa980; 
    border-radius:999px; 
    padding:8px 16px; 
    font-weight:700;
}

.site-nav .btn:hover {
    background: #bfa980;
    color:#111;
    box-shadow:0 6px 16px rgba(200,166,75,.25); 
}
a.btn, .site-nav .btn {
    background: var(--accent);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    padding: 8px 16px;
    box-shadow: 0 6px 16px rgba(191,169,128,0.25);
}
a.btn:hover, .site-nav .btn:hover {
    background: #d5c2a0;
    color: #111;
}
.sidenav a, .main-nav a {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  letter-spacing: .05em;
  transition: color .2s ease, transform .2s ease;
}
.sidenav a:hover, .main-nav a:hover {
  background: var(--accent, #bfa980);
  transform: translateX(2px);
}
/* タブレット以下は従来の縦並び */
@media (max-width: 1024px){
  .shell{ display: block; padding: 16px; }
  .sidebar{ position: static; margin-bottom: 16px; }
}

/* トップメッセージ */
.top-message {
  max-width: var(--container, 1200px);       /* ロゴ＋採用カードと同じくらいの幅を想定 */
  margin: 32px auto 28px;       /* 上下の余白 */
  padding: 20px 28px;
  border-radius: 18px;
  color: #705028;
  text-align: center;
}

.top-message-main {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin: 0 0 6px;
}

.top-message-sub {
  font-size: 1.4rem;
  line-height: 1.8;
  margin: 0;
  text-align: center;
}

.top-message-em {
  font-weight: 700;
  text-underline-offset: 3px;
  font-size: 1.7rem;
}

/* リクルート */
.recruit {
    /* a要素をカード化 */
    display: grid;
    place-items: center;         /* 中央寄せ（縦横） */
    aspect-ratio: 7 / 4;         /* ← 縦の比率を小さく（平たい箱） */
    /* 高さ固定は不要 */
    min-height: auto;
    padding: 0;

    /* 見た目 */
    background: linear-gradient(180deg, #ffffff 0%, #f5f1e9 100%); /* ← 1回だけ指定 */
    border-radius: var(--radius, 18px);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    text-align: center;
    text-decoration: none;       /* リンクの下線を消す */
    color: var(--base, #222);
    width: 500px;
}
.recruit h2 {
    margin: 0;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: .08em;
    color: var(--accent, #bfa980);
}
/* ────────────────
   採用情報カード：ホバー効果追加
   ──────────────── */
.recruit {
    transition: transform .25s ease, box-shadow .25s ease;
}

.recruit:hover {
    transform: translateY(-4px); /* ふわっと浮く */
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.recruit:hover h2 {
    color: #a3875f;  /* アクセント寄りの柔らかい茶色 */
}

/* ===== SNS Section ===== */
/* ===== SNS：カード全体が画像 ===== */
.follow-title {
    font-family: 'Poppins', 'Zen Maru Gothic', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent, #bfa980);
    text-align: center;
}
/* FOLLOW US 全体を中央にまとめる */
.follow-box {
    display: flex;
    flex-direction: column;
    align-items: center;   /* ← ここで完全中央揃え */
    justify-content: center;
    text-align: center;
    gap: 14px;             /* タイトルとアイコンの間隔 */
    margin-top: 8px;
}

/* FOLLOW US のタイトル */
.follow-box .follow-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent, #bfa980);
    text-align: center;
}

/* SNS アイコンは中央のまま */
.follow-box .sns-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

/* 画像カード共通 */
.sns-card {
    display:block;
    width: 90px;
    height: 90px;
    aspect-ratio:1/1;
    min-height:90px;           /* 古いSafari保険 */
    overflow:hidden;
    transition:transform .2s ease, box-shadow .2s ease;
}
.sns-card:hover {
    transform: translateY(-4px) scale(1.02);
}
.sns-card.has-img{ 
    position:relative; 
    border-radius: 25px;
    overflow: hidden;
}
.sns-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* スマホ対応 */
@media (max-width: 720px) {
  .sns-top {
    grid-template-columns: 1fr;
  }
}

/* right content: 縦スタック（各段を section で分割） */
.content {
    display: grid; 
    grid-template-columns: 1fr;
    gap: 32px;
}
.sec {
    display: grid; 
    gap: 24px;
}
.sec-about {
    grid-template-columns: 1.3fr .9fr;
}
.sec-about .stack {
    display: grid;
    gap: 24px
}
.sec-about .stack .card {
    aspect-ratio: 16/10;
}
.sec-two {
    grid-template-columns: 1fr 1fr;
}
.sec-split {
    grid-template-columns: 1fr;
}
.sec-framed {
    grid-template-columns: 1fr;
}
.sec-one {
    grid-template-columns: 1fr;
}

/* =====kaitai & doboku ===== */
/* 解体カード全体：白いカード＋影 */
.ovl-card{
  display: block;
  background: #fff;                     /* 白い背景 */
  padding: 34px;
  border-radius: 5px;
  max-width: 100%;
  margin: 0 auto 5px;
  box-sizing: border-box;
  position: relative;
  text-decoration: none;
  color: inherit;
}

/* 写真の「枠」部分 */
.ovl-frame{
  position: relative;
  overflow: hidden;                     /* はみ出し防止 */
  width: 100%;
  background: #000;
}

/* アスペクト比（高さ）を固定：ここを変えれば縦横比を調整できる */
.ovl-frame::before{
  content: "";
  display: block;
  padding-top: 60%;                     /* 60% ≒ 横長16:9ぐらい */
}

/* 実際の写真 */
.ovl-img{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1);
  transition: transform .5s ease;       /* ホバー時の拡大アニメ */
}

/* カードにホバーすると「写真だけ」拡大 */
.ovl-card:hover .ovl-img{
  transform: translate(-50%, -50%) scale(1.06);
}

/* 写真の上に乗る文字（中央揃え） */
.ovl-content{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;              /* 縦方向ど真ん中 */
  align-items: center;                  /* 横方向ど真ん中 */
  padding: 16px 18px;
  text-align: center;
  color: #fff;
  pointer-events: none;                 /* クリックはaタグに通す */
  text-shadow: 0 2px 6px rgba(0,0,0,.45);
}

/* タイトル文字 */
.ovl-content h3{
  margin: 0;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.6;
}

/* ===== splitカード用：写真上のタイトル ===== */
.photo-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;     /* 真ん中配置（添付サイト風） */
  align-items: center;
  text-align: center;
  color: #fff;
  letter-spacing: 0.16em;
  pointer-events: none;        /* クリックは写真＆リンクに通す */
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.photo-label-en {
  margin: 0 0 4px;
  font-family: 'Poppins','Zen Maru Gothic',sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 700;
}

.photo-label-ja {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ===== card base ===== */
.card {
    position: relative;
    display: block; 
    background: var(--paper);
    border-radius: var(--radius); 
    overflow: hidden; 
}

.overlay {
    position: absolute; 
    inset: 0; 
    display: flex; 
    align-items: flex-end; 
    padding: 18px 20px;
    color: #fff; 
}
.overlay.center {
    justify-content: center; 
    align-items: center; 
    text-align: center;
}

.card-square {
    aspect-ratio: 1/1; 
    background: #d1d5db;
    width: 500px;
    height: 500px;
}
.card-rect {
    aspect-ratio: 16/6; 
    background: #d1d5db;
}
.card-rect .overlay {
    align-items: center; 
    justify-content: flex-start;
}
.hero-about h2 {
    margin: 0 0 6px; 
    letter-spacing: .12em;
}

/* ===== split（左ロゴ＋右写真）＆ reverse（左右反転） ===== */
.card.split{
  display: grid;
  grid-template-columns: 1fr 2fr;  /* ← ロゴ細め / 写真ひろめ */
  grid-template-areas: "logo photo";
  min-height: 260px;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  gap: 20px;
  align-items: stretch;
}

/* 逆配置用（清掃・オークション） */
.card.split.reverse{
  grid-template-columns: 2fr 1fr;
  grid-template-areas: "photo logo";
}

/* ロゴ側のエリア */
.logo-pane{
    position: relative;
    width: 100%;
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}
.logo-pane::before {
  content: "";
  display: block;
  padding-top: 100%;   /* ← 正方形（1:1） */
}

/* ロゴ画像：全体は見えるけど小さめに */
.logo-pane .logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;  /* ← ロゴを正方形の中にきれいに収める */
}
.logo{
  max-width: 140px;
  width: 70%;
  height: auto;
}
/* =========================
   トップページのカード用ロゴ位置調整
   （清掃 / リフォーム / オークション）
   ========================= */
.sec-split .logo-pane {
  position: relative;
  display: block;          /* もとの display:flex を打ち消す */
  background: #fff;
  overflow: hidden;
}

/* ロゴ側の枠を正方形にする（1:1） */
.sec-split .logo-pane::before {
  content: "";
  display: block;
  padding-top: 100%;       /* 正方形 */
}

/* 枠のど真ん中にロゴを配置 */
.sec-split .logo-pane .logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;             /* 共通 .logo の width:70% を上書き */
  height: auto;
  max-width: 70%;          /* 大きさはここで調整（60〜80%くらいで好みで） */
  max-height: 70%;
  object-fit: contain;
}


/* 写真側のエリア */
.photo-pane{
    width: 100%;
    grid-area: photo;
    position: relative;
    overflow: hidden;       /* 拡大しても枠からはみ出さない */
    background: #d1d5db;
}

/* 写真の縦横比（高さ）を決める */
.photo-pane::before{
  content: "";
  display: block;
  padding-top: 65%;       /* ← 写真の縦横比。もっと縦長or横長にしたければここを調整 */
}

/* 実際の写真 */
.photo-pane .photo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .45s ease;
}

/* カードにホバーしたとき、「写真だけ」拡大 */
.card.split:hover .photo-pane .photo{
  transform: scale(1.05);
  transition: .5s ease;
}
/* 文字のオーバーレイ */
.photo-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  pointer-events: none;
}

/* ==== 画面幅が狭くなっても split カードを2カラムのままにする ==== */
@media (max-width: 768px) {
  .sec-split .card.split {
    grid-template-columns: 1fr 2fr;   /* ロゴ1：写真2 */
    grid-template-areas: "logo photo";
    min-height: 220px;
  }
  .sec-split .card.split.reverse {
    grid-template-columns: 2fr 1fr;   /* 写真2：ロゴ1 */
    grid-template-areas: "photo logo";
  }
}


/* 左ロゴ + 右に上下2リンク（同じ枠） */
.card.split-2stack {
  display: grid;
  grid-template-columns: 320px 1fr;   /* 左ロゴ / 右リンク */
  min-height: 320px;
  border-radius: 5px;
  overflow: hidden;                   /* 画像拡大のはみ出しを隠す */
  background: #fff;
}
.pane { position: relative; }

/* 左ロゴ側（拡大しない） */
.logo-pane { display:grid; place-items:center; background:#fff; }
.logo { width:160px; height:auto; }

/* 右：上下2リンク（各タイルが個別に拡大） */
.tiles-pane {
  display: grid;
  grid-template-rows: 1fr 1fr;       /* 上下均等 */
}
.tile {
  position: relative;
  background: #d1d5db;               /* 読み込み前の保険色 */
  overflow: hidden;
}
.tile + .tile {                        /* 中央の区切り線（お好みで） */
  border-top: 1px solid rgba(255,255,255,.6);
}

/* 写真だけ拡大（ロゴは拡大しない） */
.tile .photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1); transition: transform .45s ease;
}
.tile:hover .photo { transform: scale(1.03); }

.card .photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform .45s ease;
}
.card:hover .photo {
    transform: scale(1.03);
}

.card .logo,
.logo-pane .logo {
    width: 220px;
    object-fit: contain;
    transform: none;
    transition: none;
}

/* ========== フッター ========== */
.footer{
  background: linear-gradient(180deg, #bfa980 0%, #b29a78 100%);
  color: #fff;
  padding: 48px 20px 20px;
  margin-top: 48px;
}

.ft-inner{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr 300px; /* ブランド／リンク／住所 */
  gap: 24px;
  align-items: start;
}

.ft-brand{ display: flex; flex-direction: column; gap: 8px; }
.ft-logo{ width: 150px; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.ft-name { 
    font-size: 0.9rem; 
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em; }

.ft-links{
  display: flex; flex-wrap: wrap; gap: 10px 18px;
}
.ft-links a{
  color: #fff; opacity: .9; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: opacity .2s ease, border-color .2s ease;
}
.ft-links a:hover{ opacity: 1; border-color: rgba(255,255,255,.5); }

.ft-address{
  font-style: normal;
  font-size: .95rem;
  line-height: 1.9;
  opacity: .95;
}

.ft-copy{
  max-width: 1100px;
  margin: 16px auto 0;
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 12px;
  text-align: center;
  font-size: .85rem;
  opacity: .85;
}
/* スマホでは1カラムに気持ちよく崩す */
@media (max-width: 840px){
  .ft-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ft-links{ justify-content: center; }
  .ft-brand{ align-items: center; }
}
/* スマホは上下積み */
@media (max-width: 768px) {
  .card.split-2stack{ grid-template-columns: 1fr; min-height: 220px; }
  .tile{ min-height: 200px; }
}


/* スムーススクロール＆見出しのかぶり対策 */
html { scroll-behavior: smooth }
section[id] { scroll-margin-top: 80px }

/* ===== responsive ===== */
@media (max-width: 720px){
  .sns-grid{ grid-template-columns: 1fr; }  /* 正方形が縦並び */
  .sns-youtube{ padding: 14px; }
}

@media (max-width:1024px) {
  .sidebar{
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    padding-right: 0;
  }
  .sidenav{ position: sticky; top: 16px; } /* 既存の挙動を復活 */
  .layout{ padding-left: 24px; }           /* 押し出しを戻す */
  .sec-about{ grid-template-columns: 1fr }
  .sec-two{ grid-template-columns: 1fr }
  .site-header .brand-logo { width: 36px; height: 36px;}
}


/* =========================================
   スマホ対応用の追加CSS（下に追記）
   〜768px：スマホ縦向きメイン
========================================= */
@media (max-width: 768px) {

  /* 画面が狭いときはヘッダーの高さを少し低めにする */
  :root {
    --header-h: 56px; /* スマホ用ヘッダー高さ */
  }

  /* スマホ時のヘッダー調整 */
  .site-header {
    padding: 6px 12px;           /* 上下・左右の余白を少なめに */
    min-height: var(--header-h); /* ルート変数に合わせる */
  }

  /* ロゴ位置＆サイズ調整（今は margin-left:140px で右に寄りすぎなのでリセット） */
  .site-header .brand-logo {
    margin-left: 0;   /* 左寄せに戻す */
    width: 40px;      /* 少し小さめロゴ */
    height: 40px;
  }

  /* 「タイズGroup」の文字サイズをスマホ用に小さく */
  .brand-name {
    font-size: 0.9rem;
  }

  /* 2カラムレイアウトを1カラムに（既存もあるが念のため調整） */
  .shell {
    padding: 12px;    /* 画面端とコンテンツの余白を少し狭めに */
  }

  /* サイドバーは上、本文は下に積むレイアウト */
  .sidebar {
    margin-bottom: 16px; /* サイドバーの下に少し余白 */
    width: 100%;
  }

  /* トップメッセージの文字サイズなどをスマホ向けに縮小 */
  .top-message {
    margin: 16px auto 20px;  /* 上下の余白を少し減らす */
    padding: 14px 16px;      /* 内側の余白もスマホサイズに */
  }

  .top-message-main {
    font-size: 1.6rem;   /* 見出しを少し小さめに */
    line-height: 1.4;
  }

  .top-message-sub {
    font-size: 1.05rem;  /* 説明文も少し小さく */
  }

  .top-message-em {
    font-size: 1.2rem;   /* 「“なんでも”」の強調サイズ */
  }

  /* 会社ロゴの正方形カードがスマホ幅に収まるように */
  .card-square {
    width: 100%;         /* 画面幅いっぱい */
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* 正方形比率はそのまま維持 */
  }

  /* 採用カードを画面幅にフィットさせる */
  .recruit {
    width: 100%;         /* 固定幅500pxを上書き */
    max-width: 100%;
    aspect-ratio: 3 / 2; /* 横長だけどそこまで低くない感じに */
  }

  /* 写真の縦横比をスマホ向けに調整（少し横長） */
  .photo-pane::before {
    padding-top: 60%;
  }

  /* フッターもスマホで詰まりすぎないように少し余白調整 */
  .footer {
    padding: 32px 16px 16px;
  }

  .ft-inner {
    row-gap: 16px;
  }
}

/* =========================================
   さらに小さいスマホ（〜480px）用の微調整
========================================= */
@media (max-width: 480px) {

  /* ヘッダー左右の余白をさらに少なく */
  .site-header {
    padding-inline: 8px;
  }

  /* ハンバーガーメニューの右側の余白を詰める */
  .site-header .menu {
    margin-right: 8px;
  }

  /* SNSアイコンを複数段に折り返して中央寄せ */
  .follow-box .sns-top {
    display: flex;
    flex-wrap: wrap;       /* 折返しOK */
    justify-content: center;
    gap: 12px;
  }

  .sns-card {
    width: 64px;
    height: 64px;
  }
}

/* =========================================
   SNSレイアウトのバグ修正（〜720px）
   .sns-top は flex なので grid指定が効いていないため調整
========================================= */
@media (max-width: 720px) {
  .follow-box .sns-top {
    display: flex;           /* flexのまま */
    flex-wrap: wrap;         /* 折り返しを許可 */
    justify-content: center; /* 中央寄せ */
    gap: 16px;
  }
}
