.site-footer {
  background-color: #1d2e45;
  color: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.footer-main {
  padding: 100px 0 50px;
}
.footer-inner {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 257px 1fr;
  gap: 90px;
  align-items: start;
  box-sizing: border-box;
}

/* ------------------------------------------------------------
   会社情報（左カラム）
   ------------------------------------------------------------ */
.footer-company {
  min-width: 0; /* グリッドブローアウト防止 */
  display: flex;
  flex-direction: column;
}

/* ロゴ */
.footer-logo-link {
  display: inline-block;
  transition: opacity 0.3s;
  width: 257px;
  height: 37px;
  display: block;
}

.footer-logo-link:hover {
  opacity: 0.8;
}

.footer-logo-img {
  max-width: 200px;
  height: auto;
  display: block;
}

/* 画像が読めないときは非表示（alt textを隠す） */
.footer-logo-img:not([src]),
.footer-logo-img[src=""] {
  display: none;
}

/* テキストロゴ（開発中の仮ロゴ） */
.footer-logo-text {
  display: block;
  font-family: "Shippori Mincho", serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.footer-logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

/* 会社名テキスト */
.footer-company__name {
  font-family: "Shippori Mincho", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 200%;
  letter-spacing: 0.38px;
  color: #ffffff;
  margin: 40px 0 20px;
}

/* 住所・連絡先 */
.footer-company__address {
  font-family: "Shippori Mincho", serif;
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  line-height: 23px;
  letter-spacing: 0.42px;
  color: #ffffff;
}

.footer-company__address a {
  color: #ffffff;
  text-decoration: none;
}

.footer-company__address a:hover {
  opacity: 0.75;
}

/* ------------------------------------------------------------
   フッターナビゲーション（右エリア）
   グリッドで4カラム均等分割
   ------------------------------------------------------------ */
.footer-nav {
  display: flex;
  gap: 0 0;
  align-items: start;
  justify-content: space-between;
}

/* グループ */
.footer-nav__group {
  width: 190px;
}

.footer-nav__group:first-child {
  padding-left: 0;
  border-left: none;
}

/* グループタイトル */
.footer-nav__group-title {
  display: flex;
  height: 32px;
  align-items: center;
  font-family: "Shippori Mincho", serif;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  white-space: nowrap;
  padding-right: 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 200%;
  letter-spacing: 0.32px;
}

/* リストアイテム */
.footer-nav__list {
  list-style: none;
  padding: 0;
}

.footer-nav__list li {
  border-left: 1px solid rgba(255, 255, 255);
}

/* リンク */
.footer-nav__link {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 9px;
  padding: 4px 4px 4px 21px;
  font-family: "Shippori Mincho", serif;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  line-height: 200%;
  letter-spacing: 0.26px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s;
}
.flex.first-child {
  width: 615px;
  justify-content: space-between;
}
.footer-nav__link:hover {
  opacity: 0.7;
}

/* ▶ アイコン */
.footer-nav__link::after {
  content: "";
  font-size: 7px;
  flex-shrink: 0;
  margin-left: 4px;
  font-family: sans-serif;
  line-height: 1;
  align-self: center;
  width: 5px;
  height: 7px;
  flex-shrink: 0;
  background-image: url(../image/common/link-tri.svg);
}

/* スタンドアロンリンク（お知らせ / お問い合わせ） */
.footer-nav__standalone {
  margin-top: 8px;
  padding-top: 4px;
  width: 190px;
}

.footer-nav__standalone-link {
  display: block;
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  padding-bottom: 8px;
  white-space: nowrap;
  transition: opacity 0.3s;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 200%; /* 32px */
  letter-spacing: 0.32px;
}

.footer-nav__standalone-link:hover {
  opacity: 0.7;
}

/* ------------------------------------------------------------
   フッター ボトムバー
   ------------------------------------------------------------ */
.footer-bottom {
  width: 100%;
}

.footer-bottom__inner {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* プライバシーポリシー */
.footer-bottom__privacy a {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 21px;
  color: #a5b7c8;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-bottom__privacy a:hover {
  opacity: 0.75;
}

/* コピーライト */
.footer-bottom__copy small {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 21px;
  color: #a5b7c8;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   レスポンシブ（タブレット 〜1024px）
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 200px 1fr;
    gap: 40px;
  }

  .footer-nav__group {
    padding: 0 10px;
  }
}

/* タブレット縦（〜840px）: 縦並び */
@media (max-width: 840px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
  }

  /* ラッパーを解除して4グループ+下部リンクを直接グリッドの子にする */
  .footer-nav > .flex.column,
  .footer-nav .flex.first-child {
    display: contents;
  }

  .footer-nav__group {
    border-left: none;
    padding: 0;
    width: auto;
  }

  .footer-nav__group:nth-of-type(1) {
    order: 1;
  }

  .footer-nav__group:nth-of-type(2) {
    order: 2;
  }

  .footer-nav__group:nth-of-type(3) {
    order: 3;
  }

  .footer-nav__group.recruit-f-wrap {
    order: 4;
    width: auto;
  }

  .footer-nav .flex.underlink {
    order: 5;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
  }

  .footer-nav__standalone {
    width: auto;
  }
}

/* スマートフォン（〜560px） */
@media (max-width: 560px) {
  .footer-main {
    padding: 60px 22px;
  }

  .footer-inner {
    padding: 0;
    gap: 31px;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
    align-items: start;
  }

  .footer-nav__group,
  .flex.underlink {
    min-width: 0;
    align-self: start;
    height: auto;
  }

  .footer-nav__list,
  .footer-nav__list li {
    height: auto;
    align-self: start;
  }

  .footer-nav__group-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    height: auto;
    margin-bottom: 13px;
  }

  .footer-nav__link {
    padding: 4px 0 4px 21px;
    gap: 10px;
  }

  .footer-nav__link::after {
    margin-left: 0;
  }

  .footer-nav__standalone-link {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding-bottom: 5px;
  }

  .footer-nav__standalone {
    margin-top: 0;
    padding-top: 0;
  }

  /* 元デザイン：お知らせ・お問い合わせは「実績・製品」の下（採用情報の隣の空き）に上げて縦に並べる */
  .footer-nav__group:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-nav__group:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-nav__group:nth-of-type(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-nav__group.recruit-f-wrap {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  .footer-nav .flex.underlink {
    grid-column: 1;
    grid-row: 3;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }

  .footer-company__name {
    margin: 30px 0 10px;
  }

  .footer-bottom__inner {
    padding: 16px 16px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    text-align: left;
  }
}
@media (min-width: 561px) {
  .footer-nav__group.recruit-f-wrap {
    width: 187px;
  }
}
.flex.underlink {
  justify-content: flex-end;
}

/* ===== 追従ボタン（オンラインショップ / Instagram） ===== */
.float-links {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 265px;
}
.float-links__item {
  display: block;
  line-height: 0;
  transition: opacity 0.3s;
}
.float-links__item { position: relative; }
.float-links__item picture { display: block; }
.float-links__hover {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
@media (hover: hover) and (min-width: 561px) {
  .float-links__item:hover .float-links__hover { opacity: 1; }
}
.float-links__item img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 560px) {
  .float-links {
    left: 0;
    width: 100%;
    flex-direction: row;
    gap: 0;
  }
  .float-links__item { width: 50%; }
  .float-links__hover { display: none; }
  .site-footer { margin-bottom: 64px; } /* 採用サイト(.recruit-footer)には追従ボタンなし */
}
