/* ==========================================================
   小島新太郎商店テーマ：レイアウト・部品
   （デザインカンプ design-comp/style.css をもとに作成）
   ========================================================== */

:root {
  --c-black: #333333;
  --c-blue: #659ad2;
  --c-blue-dark: #3f73ab;   /* 白文字との比 4.94 */
  --c-blue-deep: #31598a;
  --c-red: #f26649;
  --c-red-dark: #c8432a;    /* 白文字との比 4.89 */
  --c-red-deep: #a93822;
  --c-gray: #cccccc;
  --c-bg: #f0f0f0;
  --c-box: #f7fcfe;
  --c-white: #ffffff;

  --container: 1000px;
  --gutter: 20px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-black);
  background: var(--c-bg);
  -webkit-text-size-adjust: 100%;
  /* 内容が短いページでもフッターを最下部に */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main { flex: 1; }

@media (min-width: 782px) {
  body { font-size: 18px; }
}

img { max-width: 100%; height: auto; vertical-align: bottom; }

a { color: var(--c-black); }
a:hover { color: var(--c-blue-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  width: auto; height: auto; clip-path: none;
  padding: 8px 16px; background: var(--c-white);
}

.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

/* ---------- TOP BAR ---------- */
.top-bar {
  background: linear-gradient(40deg, var(--c-bg) 0%, var(--c-blue-dark) 27%, var(--c-blue-dark) 100%);
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  height: 44px;
  font-size: 15px;
}

.top-bar a,
.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-white);
  text-decoration: none;
}

.top-bar a:hover { opacity: .8; }

@media (max-width: 781px) {
  .top-bar { display: none; }
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  box-shadow: 0 1px 0 var(--c-gray);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.site-logo { display: block; line-height: 0; }
.site-logo img { width: 320px; }

.global-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav a {
  position: relative;
  display: block;
  padding: 10px 16px;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--c-red);
  transition: width .3s;
}

.global-nav a:hover { color: var(--c-black); }
.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after { width: 100%; }

.header-actions { display: none; }

@media (max-width: 999px) {
  :root { --header-h: 64px; }

  .site-logo img { width: 220px; }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .header-actions a,
  .header-actions button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-blue);
    font-size: 22px;
    cursor: pointer;
  }

  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(255, 255, 255, .97);
    padding: 24px var(--gutter);
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s, visibility .25s;
  }

  .global-nav.is-open { visibility: visible; opacity: 1; }

  .global-nav ul { flex-direction: column; }

  .global-nav li { border-bottom: 1px solid var(--c-gray); }

  .global-nav a { padding: 16px 8px; }

  .global-nav .nav-tel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 14px;
    border-radius: 0;
    background: var(--c-red-dark);
    color: var(--c-white);
    font-weight: 700;
    text-decoration: none;
  }
}

@media (min-width: 1000px) {
  .global-nav .nav-tel { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: clamp(320px, 56vw, 600px);
  overflow: hidden;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 12s ease-out both;
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero > img { animation: none; }
}

.hero-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 620px);
  padding: clamp(20px, 4vw, 40px) clamp(20px, 5vw, 48px);
  background: rgba(255, 255, 255, .8);
  text-align: center;
}

.hero-copy img { width: 100%; max-width: 480px; }

.hero-copy p {
  margin: 1em 0 0;
  font-size: clamp(15px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.7;
}

/* ---------- MAIN ---------- */
.site-main { padding: 40px 0 60px; }

.box-content {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--c-box);
}

.box-content:last-child { margin-bottom: 0; }

.section-title {
  margin: 0 0 24px;
  padding: 2px 0 4px 12px;
  border-left: 10px solid var(--c-red);
  border-bottom: 2px solid var(--c-red);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.4;
}

.box-content p { margin: 0 0 1em; }

.box-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ボタン（現行の赤いピル型を踏襲） */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 12px 44px 12px 32px;
  border: 0;
  border-radius: 0;
  background: var(--c-red-dark);
  box-shadow: .2rem .2rem 0 .1rem var(--c-gray);
  color: var(--c-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 7px;
  height: 7px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-radius: 1px;
  transform: translateY(-50%) rotate(45deg);
}

.btn:hover {
  color: var(--c-white);
  background: var(--c-red-deep);
  box-shadow: none;
  transform: translateY(.2rem);
}

.btn--tel { font-size: 22px; letter-spacing: .04em; }
.btn--tel::after { display: none; }
.btn--tel { padding-right: 32px; }

.media-shadow {
  width: 100%;
  object-fit: cover;
  box-shadow: 6px 6px 0 var(--c-gray);
}

/* お知らせ */
.news-list { margin: 0; }

.news-list > div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 4px 16px;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--c-gray);
}

.news-list dt { color: #666; font-size: .9em; padding-top: .1em; }
.news-list dd { margin: 0; }
.news-list a { text-decoration: none; }
.news-list a:hover { text-decoration: underline; }

.badge-new {
  display: inline-block;
  margin-right: 8px;
  padding: 0 6px;
  border-radius: 3px;
  background: var(--c-red-dark);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.8;
  vertical-align: 2px;
}

@media (max-width: 599px) {
  .news-list > div { grid-template-columns: 1fr; }
}

/* 商品 */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 24px;
}

.product-gallery img { aspect-ratio: 1; }

@media (max-width: 599px) {
  .product-gallery { gap: 10px; }
  .product-gallery img { box-shadow: 3px 3px 0 var(--c-gray); }
}

/* 2カラム */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.split img { aspect-ratio: 16 / 10; }

.split .box-footer { margin-top: 8px; }

.lead-strong {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--c-blue-dark);
}

@media (max-width: 781px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .box-footer { justify-content: center; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--c-blue-dark);
  color: var(--c-white);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-widgets h2 {
  margin: 0 0 12px;
  padding: 0 0 4px 10px;
  border-left: 6px solid var(--c-red);
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  font-size: 18px;
  line-height: 1.5;
}

.footer-map {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  margin-top: 16px;
  border: 0;
  background: rgba(255, 255, 255, .2);
}

.footer-widgets address,
.footer-widgets ul {
  margin: 0;
  padding: 0;
  font-style: normal;
  font-size: 15px;
  line-height: 1.9;
  list-style: none;
}

.footer-widgets a { color: var(--c-white); text-decoration: none; }
.footer-widgets a:hover { text-decoration: underline; }

.footer-widgets li::before {
  content: "■";
  padding-right: 6px;
  font-size: .8em;
}

.site-info {
  padding: 16px 0;
  background: var(--c-blue-deep);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 781px) {
  .footer-widgets { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================================
   下層ページ
   ========================================================== */

/* ---------- PAGE HEADER ---------- */
.page-header {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(160px, 22vw, 240px);
  padding: 32px var(--gutter);
  overflow: hidden;
  color: var(--c-white);
  text-align: center;
}

.page-header > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(40deg, rgba(51, 51, 51, .55) 0%, rgba(101, 154, 210, .75) 100%);
}

.page-header__inner { position: relative; z-index: 2; }

.page-header__en {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.page-header__en::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 8px auto 10px;
  background: var(--c-red);
}

.page-header__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: .1em;
  line-height: 1.4;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
  font-size: 13px;
}

.breadcrumb li + li::before {
  content: "›";
  padding: 0 8px;
  color: #999;
}

.breadcrumb a { color: var(--c-blue-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.site-main--sub { padding-top: 24px; }
.site-main--sub .breadcrumb { margin-bottom: 24px; }

/* ---------- 見出し（小） ---------- */
.sub-title {
  margin: 32px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--c-blue);
  font-size: 20px;
  line-height: 1.5;
}

.sub-title:first-child { margin-top: 0; }

/* ---------- 社長挨拶 ---------- */
.signature {
  margin: 24px 0 0 !important;
  text-align: right;
  font-weight: 700;
}

.signature span {
  margin-right: 1em;
  font-size: .85em;
  font-weight: 400;
}

/* ---------- 企業理念 ---------- */
.philosophy {
  margin: 0;
  padding: clamp(24px, 4vw, 40px) 12px;
  border-top: 2px solid var(--c-red);
  border-bottom: 2px solid var(--c-red);
  background: var(--c-white);
  font-size: clamp(16px, 2.6vw, 24px);
  font-weight: 700;
  letter-spacing: clamp(0em, .5vw, .08em);
  line-height: 2;
  text-align: center;
}

.philosophy span { display: inline-block; }

/* ---------- 沿革 ---------- */
.history { margin: 0; }

.history > div {
  position: relative;
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 4px 24px;
  padding: 0 0 24px 28px;
}

/* 縦線と丸 */
.history > div::before {
  content: "";
  position: absolute;
  left: 5px;
  top: .5em;
  bottom: -.5em;
  width: 2px;
  background: var(--c-gray);
}

.history > div:last-child::before { display: none; }
.history > div:last-child { padding-bottom: 0; }

.history > div::after {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-blue);
}

.history dt { font-weight: 700; color: var(--c-blue-dark); }
.history dt small { display: block; font-weight: 400; color: #666; font-size: .8em; }
.history dd { margin: 0; }

@media (max-width: 599px) {
  .history > div { grid-template-columns: 1fr; }
}

/* ---------- 情報テーブル ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-white);
  font-size: .9em;
}

.info-table th,
.info-table td {
  padding: 14px 16px;
  border: 1px solid var(--c-gray);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 32%;
  background: #eef4fb;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 599px) {
  .info-table th,
  .info-table td { display: block; width: 100%; border-top: 0; }
  .info-table tr:first-child th { border-top: 1px solid var(--c-gray); }
  .info-table th { padding: 8px 12px; }
}

.office + .office { margin-top: 40px; }

.office .split { align-items: start; }

/* ---------- 資材一覧 ---------- */
.material-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.material-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-gray);
  background: var(--c-white);
  box-shadow: 0 4px 0 var(--c-gray);
}

.material-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.material-card h3 {
  margin: 0;
  padding: 12px 16px 8px;
  border-bottom: 3px solid var(--c-blue);
  font-size: 16px;
  line-height: 1.5;
}

.material-card p {
  margin: 0 !important;
  padding: 12px 16px 16px;
  font-size: 13px;
  line-height: 1.7;
}

.material-note {
  margin: 0 0 24px !important;
}

@media (max-width: 899px) {
  .material-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 479px) {
  .material-grid { gap: 12px; }
  .material-card h3 { padding: 8px 10px 6px; font-size: 14px; }
  .material-card p { padding: 8px 10px 12px; font-size: 12px; }
}

/* ---------- お知らせボックス（採用情報など） ---------- */
.notice-box {
  padding: clamp(24px, 5vw, 48px) 20px;
  border: 2px solid var(--c-gray);
  background: var(--c-white);
  text-align: center;
}

.notice-box p { margin: 0 0 .5em; }
.notice-box p:last-child { margin-bottom: 0; }

.notice-box .notice-main {
  font-size: 1.15em;
  font-weight: 700;
}

/* ==========================================================
   お知らせ（一覧・詳細）
   ========================================================== */

/* ---------- 2カラム（本文＋サイドバー） ---------- */
.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 899px) {
  .with-sidebar { grid-template-columns: 1fr; }
}

/* ---------- 一覧 ---------- */
.news-cards {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-card {
  position: relative;
  padding: 20px 24px 18px;
  border: 1px solid #dde3ea;
  background: var(--c-white);
  box-shadow: 0 4px 0 var(--c-gray);
  transition: transform .2s, box-shadow .2s;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--c-blue);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.news-meta time {
  color: var(--c-blue-dark);
  font-weight: 700;
  letter-spacing: .04em;
}

.cat-label {
  display: inline-block;
  padding: 0 10px;
  border: 1px solid var(--c-blue);
  color: var(--c-blue-dark);
  font-size: 12px;
  line-height: 1.8;
  text-decoration: none;
}

a.cat-label:hover { background: var(--c-blue-dark); color: var(--c-white); }

.news-meta .badge-new { margin: 0; vertical-align: 0; }

/* タイトル：現行の赤い左線＋下線を踏襲 */
.news-card__title {
  margin: 0 0 12px;
  padding: 2px 0 4px 12px;
  border-left: 6px solid var(--c-red);
  border-bottom: 2px solid var(--c-red);
  font-size: 18px;
  line-height: 1.5;
}

.news-card__title a { text-decoration: none; }

/* カード全体をクリック可能に */
.news-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.news-card__excerpt {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #555;
  font-size: 15px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card__more {
  margin: 0;
  color: var(--c-red-dark);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.news-card__more span { display: inline-block; transition: transform .2s; }
.news-card:hover .news-card__more span { transform: translateX(4px); }

/* ---------- ページ送り ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--c-blue);
  background: var(--c-white);
  color: var(--c-blue-dark);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.pagination a:hover { background: var(--c-box); }

.pagination [aria-current="page"] {
  background: var(--c-blue-dark);
  color: var(--c-white);
}

/* ---------- サイドバー ---------- */
.sidebar {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
}

.widget {
  padding: 20px;
  background: var(--c-box);
}

.widget-title {
  margin: 0 0 12px;
  padding: 0 0 4px 10px;
  border-left: 6px solid var(--c-red);
  border-bottom: 2px solid var(--c-red);
  font-size: 17px;
  line-height: 1.5;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.widget li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px dashed var(--c-gray);
  text-decoration: none;
}

.widget li a:hover { color: var(--c-blue-dark); background: var(--c-white); }

.widget li .count { color: #888; font-size: .9em; }

.search-form { display: flex; }

.search-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--c-gray);
  border-right: 0;
  border-radius: 0;
  font: inherit;
  font-size: 15px;
}

.search-form input:focus { outline: 2px solid var(--c-blue); outline-offset: -2px; }

.search-form button {
  width: 64px;
  border: 0;
  border-radius: 0;
  background: var(--c-blue-dark);
  color: var(--c-white);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.search-form button:hover { background: var(--c-blue-deep); }

/* ---------- 記事詳細 ---------- */
.entry {
  padding: clamp(20px, 4vw, 40px);
  background: var(--c-white);
  border: 1px solid #dde3ea;
}

.entry-header { margin-bottom: 32px; }

.entry-title {
  margin: 0;
  padding: 4px 0 8px 14px;
  border-left: 10px solid var(--c-red);
  border-bottom: 2px solid var(--c-red);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.5;
}

.entry-header .news-meta { margin-bottom: 14px; }

.entry-content > * { margin: 0 0 1.2em; }
.entry-content > :last-child { margin-bottom: 0; }

.entry-content h2 {
  margin-top: 2em;
  padding: 2px 0 4px 12px;
  border-left: 6px solid var(--c-red);
  border-bottom: 2px solid var(--c-red);
  font-size: 1.2em;
}

.entry-content h3 {
  margin-top: 1.6em;
  padding-left: 12px;
  border-left: 4px solid var(--c-blue);
  font-size: 1.1em;
}

.entry-content a { color: var(--c-blue-dark); }

.entry-content figure img { box-shadow: 6px 6px 0 var(--c-gray); }

/* 告知用の情報ボックス（ブロックスタイルとして用意） */
.info-box {
  padding: 16px 20px;
  border-left: 6px solid var(--c-blue);
  background: var(--c-box);
}

.info-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
  margin: 0;
}

.info-box dt { font-weight: 700; }
.info-box dd { margin: 0; }
.info-box .is-closed { color: var(--c-red-dark); font-weight: 700; }

/* 前後の記事 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.post-nav a {
  display: block;
  padding: 14px 18px;
  border: 1px solid #dde3ea;
  background: var(--c-white);
  box-shadow: 0 4px 0 var(--c-gray);
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
}

.post-nav a:hover { box-shadow: 0 4px 0 var(--c-blue); }

.post-nav small {
  display: block;
  margin-bottom: 4px;
  color: var(--c-red-dark);
  font-size: 12px;
  font-weight: 700;
}

.post-nav .next { grid-column: 2; text-align: right; }

.back-to-list {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

@media (max-width: 599px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: auto; }
}

/* 会社概要の地図 */
.office-map {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  margin-top: 24px;
  border: 1px solid var(--c-gray);
  background: #e5e5e5;
}

@media (max-width: 599px) {
  .office-map { aspect-ratio: 4 / 3; }
}

/* ==========================================================
   採用情報（求人）
   ========================================================== */
.sample-note {
  margin: 0 0 24px;
  padding: 10px 16px;
  border: 1px dashed var(--c-red);
  background: #fff4f1;
  color: var(--c-red-dark);
  font-size: 14px;
  font-weight: 700;
}

.job-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 781px) {
  .job-list { grid-template-columns: 1fr; }
}

.job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 24px 18px;
  border: 1px solid #dde3ea;
  border-top: 4px solid var(--c-blue);
  background: var(--c-white);
  box-shadow: 0 4px 0 var(--c-gray);
  transition: transform .2s, box-shadow .2s;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--c-blue);
}

.job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  padding: 0 10px;
  border: 1px solid var(--c-blue);
  color: var(--c-blue-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
}

.tag--type {
  border-color: var(--c-red-dark);
  background: var(--c-red-dark);
  color: var(--c-white);
}

.job-card__title {
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--c-red);
  font-size: 20px;
  line-height: 1.5;
}

.job-card__title a { text-decoration: none; }

.job-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.job-card__summary {
  flex: 1;
  margin: 0 0 12px;
  font-size: 14px;
}

.job-card__summary > div {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--c-gray);
}

.job-card__summary dt { color: var(--c-blue-dark); font-weight: 700; }
.job-card__summary dd { margin: 0; }

.job-card__more {
  margin: 0 !important;
  color: var(--c-red-dark);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.job-card__more span { display: inline-block; transition: transform .2s; }
.job-card:hover .job-card__more span { transform: translateX(4px); }

.job-title { margin-bottom: 32px; }

.apply-box {
  margin-top: 32px;
  padding: clamp(24px, 4vw, 36px) 20px;
  border: 2px solid var(--c-red);
  background: var(--c-white);
  text-align: center;
}

.apply-box p { margin: 0 0 .5em; }

.apply-box__lead {
  color: var(--c-red-dark);
  font-size: 1.15em;
  font-weight: 700;
}

.apply-box .btn { margin: 12px 0; }

.apply-box__note {
  margin: 0 !important;
  color: #666;
  font-size: 14px;
}

/* 営業時間 */
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  margin: 0;
}

.hours dt { font-weight: 700; }
.hours dd { margin: 0; }

.hours-note {
  display: block;
  margin-top: 4px;
  font-size: .85em;
  opacity: .85;
}

.footer-hours {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, .5);
  font-size: 14px;
  line-height: 1.8;
}

.footer-hours .hours dt { font-weight: 400; }

.footer-hours__title {
  margin: 0 0 4px;
  font-weight: 700;
}

/* ==========================================================
   WordPress 用の調整
   ========================================================== */

.site-title {
  margin: 0;
  font-size: inherit;
  line-height: 0;
}

.site-name {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-black);
}

.site-logo { text-decoration: none; }

.hero-copy__name {
  margin: 0 !important;
  font-size: clamp(24px, 4vw, 36px) !important;
  letter-spacing: .1em !important;
}

/* 写真が未設定のページ見出し */
.page-header--no-image { background: var(--c-blue-dark); }

/* 写真なしで2カラムを使わない場合 */
.cta-body .box-footer { justify-content: flex-start; }

/* 管理バー表示中のヘッダー固定位置 */
.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

/* 期間限定の営業時間 */
.hours-temp {
  display: block;
  margin-bottom: 4px;
  font-size: .85em;
  font-weight: 700;
  color: var(--c-red-dark);
}

.site-footer .hours-temp { color: var(--c-white); }

.hours-block { margin: 0 0 1em; }

/* フッターのメニュー列・追加ウィジェット */
.footer-menu .menu { margin-bottom: 0; }

.footer-widget {
  margin-top: 24px;
  font-size: 15px;
}

.footer-widget a { color: var(--c-white); }

/* 検索（404） */
.search-404 {
  max-width: 420px;
  margin: 24px auto 0;
}

/* ブロックウィジェット（サイドバー） */
.widget .wp-block-heading {
  margin: 0 0 12px;
  padding: 0 0 4px 10px;
  border-left: 6px solid var(--c-red);
  border-bottom: 2px solid var(--c-red);
  font-size: 17px;
  line-height: 1.5;
}

.widget .wp-block-search__inside-wrapper { display: flex; }

.widget .wp-block-search__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--c-gray);
  border-radius: 0;
}

.widget .wp-block-search__button {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--c-blue-dark);
  color: var(--c-white);
  font-weight: 700;
}

/* 投稿の一部（画像・キャプションなど） */
.wp-caption,
figcaption {
  font-size: 14px;
  color: #666;
}

.alignleft { float: left; margin: .5em 1.5em 1em 0; }
.alignright { float: right; margin: .5em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.sticky .news-card { border-color: var(--c-blue); }
