/* ============================================================
   日版グループ株式会社 — サイト共通スタイルシート
   元サイト（Jimdo）の配色・レイアウトに準拠
   ============================================================ */

:root {
  --bg: #f7f8f8;          /* ページ全体の背景（薄いグレー） */
  --white: #ffffff;
  --black: #000000;       /* フッター背景 */
  --ink: #112631;         /* 見出し色（ダークネイビー） */
  --text: #798486;        /* 本文色（グレー） */
  --border: #dce0e0;      /* 罫線・サイドバー背景 */
  --green: #74a72d;       /* アクセントカラー（リンク・ボタン） */
  --green-dark: #587f22;  /* アクセントカラー（hover） */

  --font-base: Roboto, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro",
    Meiryo, "MS PGothic", sans-serif;

  --container-w: 1000px;
  --header-w: 1042px;
  --radius: 2px;
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 400; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--header-w);
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 67px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; padding: 5px 0; }
.brand-logo { width: 150px; height: auto; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  width: 26px;
  height: 26px;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle-label span { top: 11px; }
.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after { top: 8px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  display: block;
  padding: 12px 17px;
  font-size: 15px;
  color: var(--text);
  border-bottom: 2px solid transparent;
  line-height: 1.5;
}
.site-nav a:hover { color: var(--green); }
.site-nav a.is-active { color: var(--green); border-bottom-color: var(--green); }

@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 6px 25px 16px; gap: 0; }
  .site-nav a { padding: 12px 10px; border-bottom: 1px solid var(--border); }
  .nav-toggle:checked ~ .site-nav { max-height: 600px; }
  .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked ~ .nav-toggle-label span::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span::after { transform: translateY(-8px) rotate(-45deg); }
}

/* ============================================================
   Title banner (fixed background photo behind page title)
   ============================================================ */
.hero, .page-header {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  background: var(--ink) url("../img/hero-bg.jpg") center/cover no-repeat;
  color: var(--white);
}
.hero::after, .page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,38,49,0.1), rgba(17,38,49,0.45));
}
.hero .container, .page-header .container { position: relative; z-index: 1; width: 100%; }
.page-header .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  text-shadow: 1px 1px 6px #292929;
}
.page-header .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-header .breadcrumb a:hover { color: var(--white); }
.hero h1, .page-header h1 {
  color: var(--white);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.3;
  text-shadow: 1px 1px 6px #292929;
}
.page-header p.lead {
  margin-top: 12px;
  max-width: 640px;
  font-size: 0.96rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 1px 1px 6px #292929;
}
.hero { min-height: 340px; }
.hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.6; max-width: 620px; }
.hero p.tagline {
  margin-top: 10px;
  max-width: 560px;
  font-size: 1rem;
  color: rgba(255,255,255,0.92);
  text-shadow: 1px 1px 6px #292929;
}

/* ============================================================
   Sections / general layout
   ============================================================ */
section { padding: 56px 0; }
section.tight { padding: 36px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head .eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 400; color: var(--ink); }
.section-head p { margin-top: 10px; color: var(--text); }

/* ---------- Feature cards (home) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.05rem; color: var(--ink); font-weight: 400; }
.card-body p { color: var(--text); font-size: 0.92rem; flex: 1; }
.card-link { font-weight: 700; font-size: 0.85rem; color: var(--green); }
.card-link::after { content: "\2192"; margin-left: 5px; }
.card-link:hover { color: var(--green-dark); }

/* ---------- News list ---------- */
.news-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }
.news-date {
  font-weight: 700;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.news-content h3 { font-size: 0.98rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.news-content p { color: var(--text); font-size: 0.92rem; white-space: pre-line; }
.news-foot { margin-top: 26px; text-align: center; }

/* ---------- Definition list (company info) ---------- */
.info-table {
  display: grid;
  grid-template-columns: 170px 1fr;
  border-top: 1px solid var(--border);
}
.info-table dt {
  grid-column: 1;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px 14px 0;
}
.info-table dd {
  grid-column: 2;
  margin: 0;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  color: var(--text);
}
@media (max-width: 640px) {
  .info-table { grid-template-columns: 1fr; }
  .info-table dt { border-bottom: none; padding-bottom: 4px; }
  .info-table dd { padding-top: 0; }
}

/* ---------- Two column layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}
.split-media img { border-radius: var(--radius); border: 1px solid var(--border); }
.split-text h3 { font-size: 1.2rem; color: var(--ink); font-weight: 400; margin-bottom: 12px; }
.split-text p { color: var(--text); margin-bottom: 12px; }
.split-text .tag {
  display: inline-block;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------- Map / access ---------- */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ============================================================
   History timeline
   ============================================================ */
.timeline { position: relative; margin-left: 10px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 86px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
@media (max-width: 560px) { .timeline::before { left: 10px; } }

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 24px;
  padding: 0 0 30px 0;
}
@media (max-width: 560px) {
  .timeline-item { grid-template-columns: 1fr; padding-left: 28px; }
}
.timeline-year {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
  position: relative;
  text-align: right;
  padding-top: 2px;
}
@media (max-width: 560px) { .timeline-year { text-align: left; } }
.timeline-year::after {
  content: "";
  position: absolute;
  right: -29px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--green);
}
@media (max-width: 560px) {
  .timeline-year::after { left: -24px; right: auto; }
}
.timeline-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.94rem;
}
.timeline-note { margin-top: 10px; color: var(--text); font-size: 0.85rem; opacity: 0.8; }

/* ============================================================
   Printing methods / equipment listing
   ============================================================ */
.method-list { display: flex; flex-direction: column; gap: 48px; }
.method {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 780px) { .method { grid-template-columns: 1fr; } }
.method-media img { border-radius: var(--radius); border: 1px solid var(--border); }
.method-media.no-image {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  font-size: 1rem;
  text-align: center;
  padding: 20px;
}
.method-body .num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.method-body h3 { font-size: 1.15rem; color: var(--ink); font-weight: 400; margin-bottom: 4px; }
.method-body .sub { color: var(--text); font-size: 0.85rem; margin-bottom: 12px; opacity: 0.8; }
.method-body p { color: var(--text); margin-bottom: 10px; }
.method-body ul.spec {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.method-body ul.spec li {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius);
}

/* ============================================================
   Recruit page
   ============================================================ */
.job-table { width: 100%; border-collapse: collapse; }
.job-table th, .job-table td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.job-table th {
  width: 180px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}
.job-table td { color: var(--text); font-size: 0.92rem; }
@media (max-width: 640px) {
  .job-table, .job-table tbody, .job-table tr, .job-table th, .job-table td { display: block; width: 100%; }
  .job-table th { border-bottom: none; padding-bottom: 4px; }
  .job-table td { padding-top: 0; padding-bottom: 18px; }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 780px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { padding: 14px 16px 18px; }
.gallery figcaption h4 { font-size: 0.95rem; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.gallery figcaption p { font-size: 0.84rem; color: var(--text); }

.callout {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.callout h3 { font-size: 1.1rem; font-weight: 400; margin-bottom: 6px; color: var(--white); }
.callout p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
}
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ============================================================
   Contact form
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.notice-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.notice-box h3 { font-size: 0.98rem; color: var(--ink); font-weight: 700; margin-bottom: 12px; }
.notice-box ul { display: flex; flex-direction: column; gap: 8px; }
.notice-box li { font-size: 0.87rem; color: var(--text); padding-left: 1.2em; position: relative; }
.notice-box li::before { content: "\25A0"; position: absolute; left: 0; color: var(--green); font-size: 0.7em; top: 0.4em; }

.contact-phone {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.contact-phone h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 10px; color: var(--white); }
.contact-phone .tel { font-size: 1.5rem; font-weight: 700; }
.contact-phone .tel a { color: var(--white); }
.contact-phone p { color: rgba(255,255,255,0.8); font-size: 0.88rem; margin-top: 8px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-row .req { color: #b03030; font-size: 0.76rem; margin-left: 4px; font-weight: 700; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color var(--transition), background var(--transition);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--text); margin-top: -4px; margin-bottom: 18px; }
.form-submit { text-align: right; }
.form-submit .btn { border: none; cursor: pointer; }

/* ============================================================
   Legal / text pages
   ============================================================ */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.1rem; color: var(--ink); font-weight: 700; margin: 32px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); margin-bottom: 14px; }
.prose a { text-decoration: underline; }
.signature { margin-top: 36px; color: var(--ink); }
.signature .date { color: var(--text); font-size: 0.86rem; }

/* ============================================================
   English page
   ============================================================ */
.en-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); }
.en-table th, .en-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.en-table th { background: var(--bg); color: var(--ink); font-weight: 700; width: 160px; }
.en-table td { color: var(--text); }
.en-table.history th { width: 90px; }
.en-table tr:last-child th, .en-table tr:last-child td { border-bottom: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--black); color: var(--text); margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 50px 0 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
/* .footer-logo { height: 36px; filter: brightness(0) invert(1); opacity: 0.85; margin-bottom: 14px; } */
.footer-logo { width: 144px; height: auto; margin-bottom: 14px; }
/* .footer-col p { font-size: 0.86rem; line-height: 1.8; color: var(--text); margin-bottom: 8px; } */
.footer-col p { font-size: 0.86rem; line-height: 1.8; color: var(--white); margin-bottom: 8px; }
/* .footer-col a { color: var(--text); opacity: 0.85; } */
.footer-col a { color: var(--white); opacity: 0.85; }
.footer-col a:hover { color: var(--green); opacity: 1; }
.footer-col h3 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 0.86rem; }
.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.76rem; color: var(--text); opacity: 0.7; }
.footer-bottom .foot-links { display: flex; gap: 16px; }
.footer-bottom .foot-links a { font-size: 0.76rem; color: var(--text); opacity: 0.7; }

/* ============================================================
   Misc utilities
   ============================================================ */
.text-center { text-align: center; }
.mt-lg { margin-top: 44px; }
