/* ==========================================================
   ハサログAI  static site stylesheet
   ========================================================== */
:root {
  --main: #161410;
  --link: #1e73be;
  --hover: #b5b5b5;
  --gold: #9b8d77;
  --text: #303030;
  --heading: #000c15;
  --bg-gray: #f8f8f8;
  --box-gray: #f4f4f4;
  --border: #e2e5e8;
  --container: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--hover); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.5; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.small { font-size: 0.875rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 4px;
  border-bottom: 3px solid rgba(0, 0, 0, .2);
  color: #fff !important;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.5;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-gold { background: var(--gold); }
.btn-blue { background: var(--link); }
.btn-lg { padding: 14px 40px; font-size: 1.125rem; }
.btn-square { border-radius: 0; border-bottom: none; }

/* ---------- header ---------- */
.topbar { background: var(--bg-gray); }
.topbar p { margin: 0; padding: 4px 0; font-size: 12px; color: var(--heading); line-height: 1.5; }
.site-header { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 16px; }
.logo img { display: block; max-height: 36px; width: auto; }
.header-cta { display: flex; align-items: center; gap: 24px; }
.header-tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.4; }
.tel-number { font-size: 1.5rem; font-weight: bold; color: var(--main); }
.tel-number .fa { margin-right: 6px; }
.tel-text { font-size: 12px; }
.header-icons { display: none; align-items: center; gap: 14px; }
.header-icons a { color: var(--main); font-size: 26px; line-height: 1; }
.nav-toggle {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: 0; padding: 4px; cursor: pointer; color: var(--main); font-size: 10px;
}
.nav-toggle .bars { display: flex; flex-direction: column; gap: 4px; }
.nav-toggle .bars span { display: block; width: 24px; height: 2px; background: var(--main); }

.gnav { background: var(--main); }
.gnav-list { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.gnav-list a { display: block; padding: 14px 22px; color: #fff; text-decoration: none; font-size: 15px; position: relative; }
.gnav-list a:hover { color: var(--hover); }
.gnav-list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 8px; height: 2px; background: var(--link);
}

@media (max-width: 900px) {
  .header-inner { min-height: 64px; }
  .header-cta { display: none; }
  .header-icons { display: flex; }
  .gnav { display: none; }
  .gnav.is-open { display: block; }
  .gnav-list { flex-direction: column; }
  .gnav-list a { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .gnav-list a[aria-current="page"]::after { display: none; }
  .gnav-list a[aria-current="page"] { color: #6fb3ef; }
}

/* ---------- hero ---------- */
.hero { position: relative; background-size: cover; background-position: center; color: #fff; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.hero-inner { position: relative; display: flex; align-items: center; gap: 40px; padding-top: 80px; padding-bottom: 80px; }
.hero-message { flex: 1 1 50%; }
.hero-message h2 { color: #fff; font-size: 2rem; margin: 0 0 16px; text-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.hero-message p { font-size: 1.125rem; margin: 0; }
.hero-image { flex: 1 1 50%; text-align: center; }
.hero-image img { display: block; margin: 0 auto 24px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); border-radius: 4px; }
@media (max-width: 767px) {
  .hero-inner { flex-direction: column; padding-top: 48px; padding-bottom: 48px; gap: 24px; }
  .hero-message h2 { font-size: 1.375rem; }
  .hero-message p { font-size: 1rem; }
}

/* ---------- news ---------- */
.news { background: var(--bg-gray); color: var(--main); }
.news-inner { display: flex; gap: 24px; align-items: flex-start; padding-top: 20px; padding-bottom: 20px; }
.news-label {
  flex: 0 0 auto; margin: 0; padding: 4px 18px; background: var(--main); color: #fff;
  font-size: 0.9375rem; font-weight: bold; line-height: 1.6;
}
.news-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.news-list li { display: flex; gap: 16px; padding: 4px 0; border-bottom: 1px dotted #d5d5d5; font-size: 0.9375rem; }
.news-list li:last-child { border-bottom: 0; }
.news-list time { flex: 0 0 9.5em; color: #666; }
@media (max-width: 600px) {
  .news-inner { flex-direction: column; gap: 10px; }
  .news-list li { flex-direction: column; gap: 0; }
  .news-list time { flex-basis: auto; font-size: 0.8125rem; }
}

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-header { text-align: center; max-width: 860px; margin: 0 auto 40px; }
.section-header h2 { font-size: 1.75rem; margin: 0 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } .section { padding: 48px 0; } .section-header h2 { font-size: 1.375rem; } }

.solution-box { text-align: center; }
.circle-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 88px;
  border: 2px solid var(--link); border-radius: 50%; color: var(--link); transition: .3s;
}
.solution-box:hover .circle-icon { background: var(--link); color: #fff; }
.solution-box h3 { font-size: 1.25rem; margin: 16px 0 8px; }
.solution-box p { text-align: left; margin: 0; }

.sales { background: var(--bg-gray); }
.sales-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.sales-video video { width: 100%; display: block; background: #000; margin-bottom: 24px; }
.sales-box { position: relative; padding-left: 56px; margin-bottom: 28px; }
.sales-box .fa { position: absolute; left: 0; top: 4px; color: var(--link); transition: transform .2s; }
.sales-box:hover .fa { transform: scale(1.2); }
.sales-box h3 { margin: 0 0 6px; font-size: 1.1875rem; }
.sales-box:hover h3 { color: var(--link); }
.sales-box p { margin: 0; }
@media (max-width: 900px) { .sales-inner { grid-template-columns: 1fr; } }

.benefit-box { background: var(--box-gray); padding: 32px 24px; text-align: center; transition: background .3s, color .3s; }
.benefit-box .fa { font-size: 40px; color: var(--link); }
.benefit-box h3 { font-size: 1.125rem; margin: 12px 0 8px; }
.benefit-box p { margin: 0; text-align: left; font-size: 0.9375rem; }
.benefit-box:hover { background: var(--link); }
.benefit-box:hover h3, .benefit-box:hover p, .benefit-box:hover .fa { color: #fff; }

.product { position: relative; background-size: cover; background-position: center; color: #fff; }
.product-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.product-inner { position: relative; min-height: 400px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 24px; }
.product-inner h2 { color: #fff; font-size: 1.75rem; margin: 0; }
@media (max-width: 600px) { .product-inner { min-height: 300px; } .product-inner h2 { font-size: 1.25rem; } }

/* faq */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative; padding: 18px 40px 18px 44px; font-weight: bold; color: var(--heading);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; position: absolute; left: 8px; top: 14px; font-size: 1.25rem; color: var(--link); }
.faq-item summary::after { content: "+"; position: absolute; right: 12px; top: 14px; font-size: 1.375rem; color: #999; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { position: relative; padding: 0 16px 20px 44px; }
.faq-answer::before { content: "A"; position: absolute; left: 8px; top: -4px; font-size: 1.25rem; font-weight: bold; color: #dc143c; }

/* contact */
.contact { background: var(--bg-gray); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-card { background: #fff; padding: 32px 24px; text-align: center; border-top: 4px solid var(--main); }
.contact-card h3 { margin: 0 0 16px; font-size: 1.125rem; }
.contact-card h3 .fa { margin-right: 8px; }
.contact-tel { font-size: 2rem; font-weight: bold; margin: 0; letter-spacing: .03em; }
.contact-tel a { color: var(--main); text-decoration: none; }
.mail-image {
  font-size: 1.625rem; color: var(--main); min-height: 2.4em; display: flex; align-items: center; justify-content: center;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.mail-image canvas { display: block; max-width: 100%; height: auto; pointer-events: none; }
.mail-noscript { font-size: 0.875rem; color: #c00; }
.privacy-note { text-align: center; margin-top: 32px; font-size: 0.9375rem; }
@media (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-tel { font-size: 1.625rem; }
  .mail-image { font-size: 1.25rem; }
}

/* ---------- sub pages ---------- */
.page-title { background: var(--bg-gray); padding: 28px 0; border-bottom: 1px solid var(--border); }
.page-title h1 { margin: 4px 0 0; font-size: 1.75rem; }
.breadcrumb { font-size: 0.8125rem; color: #777; }
.breadcrumb a { color: #777; }
.page-body { padding-top: 40px; padding-bottom: 72px; }
.page-body.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
@media (max-width: 900px) { .page-body.has-sidebar { grid-template-columns: 1fr; } }
.sidebar .side-box { border: 1px solid var(--border); position: sticky; top: 16px; }
.sidebar h2 { margin: 0; padding: 12px 16px; font-size: 1rem; background: var(--main); color: #fff; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a { display: block; padding: 10px 16px; border-top: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: 0.9375rem; }
.sidebar li a:hover { background: var(--bg-gray); color: var(--link); }
.sidebar li a[aria-current="page"] { color: var(--link); font-weight: bold; background: #eef5fc; }

.entry { min-width: 0; }
.entry h2 { font-size: 1.5rem; border-left: 5px solid var(--main); padding: 4px 0 4px 14px; margin: 40px 0 20px; }
.entry h2:first-child { margin-top: 0; }
.entry h3 { font-size: 1.25rem; border-bottom: 2px solid var(--border); padding-bottom: 6px; margin: 36px 0 16px; }
.entry h4 { font-size: 1.125rem; margin: 28px 0 10px; }
.entry figure { margin: 16px 0 24px; }
.entry img { border: 1px solid #eee; }
.entry table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
.entry th, .entry td { border: 1px solid #ddd; padding: 10px 12px; vertical-align: top; }
.entry th { background: var(--bg-gray); }
.entry .wp-block-table td:first-child { width: 30%; background: var(--bg-gray); }
.table_box { overflow-x: auto; }
.entry blockquote, .wp-block-quote { margin: 20px 0; padding: 12px 20px; border-left: 4px solid var(--border); background: #fafafa; }
.post-date { color: #777; font-size: 0.875rem; margin-top: 0; }
.eyecatch img { width: 100%; }
.back-link { margin-top: 48px; }
.notfound { text-align: center; padding: 40px 0; }

/* voice list */
.voice-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; }
.voice-card a { display: block; text-decoration: none; color: var(--text); border: 1px solid var(--border); height: 100%; transition: box-shadow .2s; }
.voice-card a:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
.voice-card img { display: block; width: 100%; aspect-ratio: 544 / 262; object-fit: cover; border: 0; }
.voice-meta { display: flex; flex-direction: column; padding: 14px 16px; gap: 4px; }
.voice-meta time { font-size: 0.8125rem; color: #777; }
.voice-name { font-weight: bold; color: var(--heading); }
.voice-meta .more { font-size: 0.875rem; color: var(--link); }

/* ---------- WordPress block compatibility ---------- */
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
.has-small-font-size { font-size: 13px; }
.has-medium-font-size { font-size: 20px; }
.wp-block-spacer { clear: both; }
.wp-block-separator { border: 0; border-top: 2px solid var(--border); margin: 28px auto; width: 100px; }
.wp-block-separator.is-style-wide { width: 100%; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-button__link {
  display: inline-block; padding: 12px 28px; border-radius: 9999px; background: #32373c; color: #fff;
  text-decoration: none; text-align: center; line-height: 1.5;
}
.wp-block-button__link[href]:hover { opacity: .85; }
.wp-block-group { margin: 16px 0; }
.has-vivid-cyan-blue-background-color { background-color: #0693e3; }
.has-very-light-gray-background-color { background-color: #eee; }
.has-vivid-green-cyan-background-color { background-color: #00d084; }
.has-very-light-gray-color { color: #eee; }
.has-vivid-cyan-blue-color { color: #0693e3; }
.has-white-color { color: #fff; }
.has-luminous-vivid-orange-color { color: #ff6900; }
.has-very-dark-gray-color { color: #313131; }
.has-vivid-red-color { color: #cf2e2e; }
.has-luminous-vivid-orange-color a { color: inherit; }

/* ---------- footer ---------- */
.site-footer { background: var(--main); color: #fff; padding: 40px 0 24px; text-align: center; position: relative; }
.pagetop {
  position: absolute; right: 16px; top: -28px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--main); color: #fff; text-decoration: none; font-size: 10px; line-height: 1.2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.pagetop:hover { color: var(--hover); }
.footer-nav { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.footer-nav li + li::before { content: "|"; color: #666; margin: 0 12px; }
.footer-nav a { color: #fff; text-decoration: none; font-size: 0.875rem; }
.footer-nav a:hover { color: var(--hover); }
.copyright a { color: #fff; text-decoration: none; }

@media print {
  .topbar, .gnav, .header-cta, .header-icons, .site-footer, .sidebar { display: none; }
}

/* ---------- news links ---------- */
.news-label a { color: #fff; text-decoration: none; }
.news-label a:hover { color: var(--hover); }
.news-list a { color: var(--main); text-decoration: none; }
.news-list a:hover { color: var(--link); text-decoration: underline; }
.news-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.news-index li { display: flex; gap: 24px; padding: 16px 4px; border-bottom: 1px solid var(--border); }
.news-index time { flex: 0 0 9.5em; color: #777; }
.news-index a { color: var(--heading); text-decoration: none; font-weight: bold; }
.news-index a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 600px) { .news-index li { flex-direction: column; gap: 2px; } .news-index time { font-size: .8125rem; } }

/* ---------- news ticker (top page: 1件ずつ自動スクロール) ---------- */
.news-inner { align-items: center; }
.news-ticker { flex: 1; min-width: 0; overflow: hidden; position: relative; }
.news-ticker .news-list { transition: transform .6s ease; will-change: transform; }
.news-ticker .news-list li {
  border-bottom: 0; padding: 0; height: 1.8em; line-height: 1.8em; align-items: center;
  white-space: nowrap; overflow: hidden;
}
.news-ticker .news-list li a, .news-ticker .news-list li span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.news-ticker.is-ready { height: 1.8em; }
@media (max-width: 600px) {
  .news-inner { align-items: stretch; }
  .news-ticker .news-list li { height: 3.4em; line-height: 1.7em; flex-direction: column; align-items: stretch; }
  .news-ticker.is-ready { height: 3.4em; }
}
@media (prefers-reduced-motion: reduce) { .news-ticker .news-list { transition: none; } }

/* ---------- hero heading: 不自然な位置で改行しない ---------- */
.nb { display: inline-block; white-space: nowrap; }
.hero-message { container-type: inline-size; }
.hero-message h2 { font-size: clamp(1.25rem, 1.1rem + 1.2vw, 2rem); word-break: keep-all; }
/* 1行目（17文字）が列幅に収まる文字サイズに自動調整（対応ブラウザのみ。非対応は上の指定） */
@supports (font-size: 1cqi) {
  .hero-message h2 { font-size: clamp(1.25rem, calc(100cqi / 17.5), 2rem); }
}
.hero-message p { font-size: clamp(.9375rem, .85rem + .4vw, 1.125rem); }
@media (min-width: 768px) { .hero-message { flex-basis: 48%; } .hero-image { flex-basis: 52%; } }
