/* =========================================================
   Corporate Site - 共通スタイル
   色やフォントは :root の変数を変えるだけで全体に反映されます
   ========================================================= */
:root {
  --c-main: #2a6cb6;        /* メインカラー（青） */
  --c-main-dark: #1d4f88;
  --c-main-pale: #e8f0f9;
  --c-text: #222;
  --c-sub: #666;
  --c-line: #e3e3e3;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f1ea;     /* ヒーロー背景（生成り） */
  --c-accent: #f2c14e;
  --radius-lg: 24px;
  --radius-md: 16px;
  --header-h: 110px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Montserrat", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.inner { width: min(1160px, 100% - 64px); margin-inline: auto; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  width: min(1240px, 100% - 48px); margin-inline: auto;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 52px; height: 52px; }
.logo__text { line-height: 1.2; }
.logo__name { font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.logo__en { font-family: var(--font-en); font-size: 10px; color: var(--c-sub); letter-spacing: .05em; }

.nav { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.nav__sub { display: flex; gap: 28px; font-size: 13px; }
.nav__sub a:hover { color: var(--c-main); }
.nav__main { display: flex; gap: 36px; font-weight: 700; font-size: 15px; }
.nav__main a {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px;
}
.nav__main a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--c-main); transition: width .3s;
}
.nav__main a:hover::after, .nav__main a.is-current::after { width: 100%; }
.nav__main a.is-current { color: var(--c-main); }
.nav__main .chev {
  width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px;
}

.hamburger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0 0 80px; }
.hero__panel {
  position: relative;
  margin-left: 17%;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: var(--c-bg-soft);
  aspect-ratio: 16 / 9;
  max-height: 640px; width: auto;
  overflow: hidden;
}
.hero__panel svg { width: 100%; height: 100%; }
.hero__copy {
  position: absolute; left: 5.5%; top: 22%;
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 700; line-height: 1.55; letter-spacing: .06em;
}
.hero__copy .blue { color: var(--c-main); }
.hero__copy > span { display: block; opacity: 0; transform: translateY(20px); animation: rise .9s forwards; }
.hero__copy > span:nth-child(2) { animation-delay: .2s; }
.hero__copy > span:nth-child(3) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.scroll {
  position: absolute; left: 5.5%; bottom: 80px;
  display: flex; gap: 12px; font-family: var(--font-en); font-size: 12px; font-weight: 600; color: var(--c-main);
}
.scroll__bar {
  width: 6px; height: 80px; border-radius: 3px; background: var(--c-main-pale); position: relative; overflow: hidden;
}
.scroll__bar::before {
  content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-main); animation: scrollDot 2s infinite;
}
@keyframes scrollDot { 0% { top: 0; } 100% { top: 74px; } }

/* 右下のお知らせピックアップ */
.pickup {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 300px; background: #fff; border-radius: var(--radius-md);
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  padding: 18px 22px; font-size: 14px;
  transition: opacity .3s, transform .3s;
}
.pickup.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.pickup__date { font-family: var(--font-en); color: var(--c-main); font-weight: 700; font-size: 13px; }
.pickup__title { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.pickup__title p { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pickup__close {
  position: absolute; left: -10px; top: -10px; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: var(--c-main); color: #fff; cursor: pointer; font-size: 14px; line-height: 1;
}

/* ---------- Section 共通 ---------- */
.section { padding: 110px 0; }
.section--soft { background: var(--c-main-pale); }
.sec-title { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: .08em; line-height: 1.5; }
.sec-title .blue { color: var(--c-main); }
.sec-title__en {
  display: block; font-family: var(--font-en); font-size: 13px; font-weight: 600;
  color: var(--c-main); letter-spacing: .15em; margin-bottom: 6px;
}
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }

/* 円形矢印ボタン */
.more {
  display: inline-flex; align-items: center; gap: 16px; font-weight: 700; font-size: 15px;
}
.more__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--c-text);
  display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s;
}
.more:hover .more__arrow { background: var(--c-main); border-color: var(--c-main); color: #fff; }
.more__arrow svg { width: 14px; height: 14px; }

/* ---------- Service（2カラムカード） ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 80px 64px; }
.card__title { margin-bottom: 24px; }
.card__text { color: var(--c-text); font-size: 15px; margin-bottom: 32px; min-height: 5.7em; }
.card__img {
  border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10; background: var(--c-bg-soft);
  margin-bottom: 24px; transition: transform .4s;
}
.card a:hover .card__img { transform: scale(1.02); }
.card__foot { display: flex; justify-content: flex-end; }

/* ---------- News ---------- */
.news-list li { border-bottom: 1px solid var(--c-line); }
.news-list a { display: flex; gap: 28px; padding: 26px 8px; align-items: baseline; transition: background .2s; }
.news-list a:hover { background: #fafafa; }
.news-list a:hover .news-list__title { color: var(--c-main); }
.news-list__meta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; width: 220px; }
.news-list__date { font-family: var(--font-en); font-weight: 600; color: var(--c-main); font-size: 14px; }
.tag {
  font-size: 12px; color: var(--c-main); padding-left: 14px; border-left: 1px solid var(--c-line); font-weight: 700;
}
.tag--important {
  color: #fff; background: #d24a4a; border: none; padding: 2px 10px; border-radius: 4px; margin-left: 4px;
}
.news-list__title { font-weight: 500; transition: color .2s; }

/* ---------- CTA（会社情報・お問い合わせ） ---------- */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cta__item {
  position: relative; display: block; border-radius: var(--radius-lg); padding: 56px 48px;
  background: #fff; overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.cta__item:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(42,108,182,.15); }
.cta__item--blue { background: var(--c-main); color: #fff; }
.cta__item--blue .sec-title__en { color: #cfe0f4; }
.cta__item--blue .more__arrow { border-color: #fff; }
.cta__title { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.cta__text { font-size: 14px; margin-bottom: 28px; }

/* ---------- 下層ページ ---------- */
.page-head { position: relative; z-index: 0; padding: 70px 0 60px; }
.page-head::before {
  /* 見出しの左端より少し外側から背景を始める（.inner の幅 1160px に合わせる） */
  content: ""; position: absolute; inset: 0 0 0 max(16px, calc(50% - 580px - 56px)); background: var(--c-bg-soft);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg); z-index: -1;
}
.page-head h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: .1em; }
.breadcrumb { font-size: 12px; color: var(--c-sub); margin-top: 18px; display: flex; gap: 10px; }
.breadcrumb a { color: var(--c-main); }

.lead-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }
.message-text p + p { margin-top: 1.4em; }
.signature { margin-top: 32px; text-align: right; font-weight: 700; }
.signature small { display: block; font-weight: 400; font-size: 13px; color: var(--c-sub); }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 24px 16px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.table th { width: 200px; color: var(--c-main); font-weight: 700; border-bottom-color: var(--c-main); }
.table tr:first-child th, .table tr:first-child td { border-top: 1px solid var(--c-line); }
.table tr:first-child th { border-top-color: var(--c-main); }

.map {
  border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/7; background: #ddd; margin-top: 32px;
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* フォーム */
.form { max-width: 820px; margin-inline: auto; }
.form__row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--c-line); }
.form__row:first-child { border-top: 1px solid var(--c-line); }
.form__label { font-weight: 700; padding-top: 10px; display: flex; gap: 10px; align-items: flex-start; }
.req { background: var(--c-main); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 4px; margin-top: 4px; white-space: nowrap; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #ccc; border-radius: 8px; font: inherit; background: #fafafa;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--c-main-pale); border-color: var(--c-main); background: #fff; }
.form textarea { min-height: 200px; resize: vertical; }
.form__agree { text-align: center; margin: 40px 0 32px; font-size: 14px; }
.btn {
  display: block; margin-inline: auto; width: min(340px, 100%); padding: 20px; border: none; border-radius: 999px;
  background: var(--c-main); color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: background .3s;
}
.btn:hover { background: var(--c-main-dark); }
.form__done {
  display: none; text-align: center; padding: 48px; background: var(--c-main-pale); border-radius: var(--radius-md); margin-top: 32px;
}
.form__done.is-show { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--c-main); color: #fff; padding: 80px 0 32px; margin-top: 0; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .logo__en { color: #cfe0f4; }
.footer__addr { font-size: 13px; margin-top: 20px; line-height: 1.8; }
.footer__nav { display: flex; gap: 40px; font-size: 14px; font-weight: 700; }
.footer__nav a:hover { opacity: .7; }
.footer__copy { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); font-family: var(--font-en); font-size: 12px; }

.pagetop {
  position: fixed; right: 24px; bottom: 150px; z-index: 89;
  background: var(--c-main); color: #fff; font-size: 12px; font-weight: 700;
  padding: 8px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.pagetop.is-show { opacity: 1; pointer-events: auto; }

/* スクロールで出現 */
.fade { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.fade.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .inner { width: calc(100% - 32px); }
  .header__inner { width: calc(100% - 32px); }
  .logo__mark { width: 40px; height: 40px; }
  .logo__name { font-size: 17px; }

  .hamburger {
    display: grid; place-items: center; width: 48px; height: 48px; border: none; border-radius: 50%;
    background: var(--c-main); cursor: pointer; position: relative; z-index: 120;
  }
  .hamburger span, .hamburger span::before, .hamburger span::after {
    content: ""; display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: transform .3s, background .3s;
  }
  .hamburger span::before { position: absolute; top: -6px; }
  .hamburger span::after { position: absolute; top: 6px; }
  .is-menu-open .hamburger span { background: transparent; }
  .is-menu-open .hamburger span::before { transform: translateY(6px) rotate(45deg); }
  .is-menu-open .hamburger span::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; background: #fff; z-index: 110; padding: 110px 32px 40px;
    flex-direction: column-reverse; align-items: stretch; justify-content: flex-end; gap: 32px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .is-menu-open .nav { opacity: 1; pointer-events: auto; }
  .header { backdrop-filter: none; background: #fff; } /* fixed メニューが画面全体を覆うように */
  .is-menu-open .pickup, .is-menu-open .pagetop { display: none; }
  .nav__main { flex-direction: column; gap: 0; font-size: 18px; }
  .nav__main a { display: flex; padding: 18px 0; border-bottom: 1px solid var(--c-line); justify-content: space-between; }
  .nav__main a::after { display: none; }
  .nav__sub { flex-direction: column; gap: 10px; font-size: 14px; }

  .hero { padding-bottom: 40px; }
  .hero__panel { margin-left: 16px; aspect-ratio: auto; max-height: none; }
  .hero__panel svg { height: auto; aspect-ratio: 1 / 1; }
  .hero__copy { position: static; padding: 32px 16px 0; font-size: clamp(28px, 8vw, 44px); }
  .scroll { display: none; }

  .section { padding: 72px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
  .cards, .cta, .lead-grid { grid-template-columns: 1fr; gap: 56px; }
  .cta { gap: 20px; }
  .cta__item { padding: 40px 28px; }
  .card__text { min-height: 0; }
  .news-list a { flex-direction: column; gap: 6px; padding: 20px 4px; }
  .news-list__meta { width: auto; }
  .table th, .table td { display: block; width: 100%; padding: 12px 4px; }
  .table th { border-bottom: none; padding-top: 20px; }
  .table tr:first-child td { border-top: none; }
  .form__row { grid-template-columns: 1fr; gap: 10px; }
  .page-head::before { left: 16px; }
  .pickup { left: 16px; right: 16px; width: auto; bottom: 16px; }
  .pagetop { right: 16px; bottom: 120px; }
  .footer__nav { flex-direction: column; gap: 12px; }
}

/* =========================================================
   ライン引き業向け 追加パーツ
   ========================================================= */
.cards--4 { gap: 72px 64px; }

/* 法人・個人のターゲット別 */
.target { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.target__item { background: #fff; border-radius: var(--radius-lg); padding: 48px 44px; }
.target__label {
  display: inline-block; font-size: 13px; font-weight: 700; color: #fff; background: var(--c-main);
  padding: 4px 16px; border-radius: 999px; margin-bottom: 18px;
}
.target__item--private .target__label { background: var(--c-accent); color: var(--c-text); }
.target__title { font-size: 24px; font-weight: 700; margin-bottom: 20px; line-height: 1.6; }
.check li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px dashed var(--c-line); }
.check li::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 14px; height: 8px;
  border-left: 3px solid var(--c-main); border-bottom: 3px solid var(--c-main); transform: rotate(-45deg);
}

/* 施工の流れ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: flow; }
.flow__item { position: relative; background: var(--c-bg-soft); border-radius: var(--radius-md); padding: 36px 24px 28px; }
.flow__item::before {
  counter-increment: flow; content: "STEP " counter(flow, decimal-leading-zero);
  font-family: var(--font-en); font-weight: 700; font-size: 13px; color: var(--c-main); letter-spacing: .1em;
}
.flow__title { font-size: 18px; font-weight: 700; margin: 6px 0 10px; }
.flow__text { font-size: 14px; }
.flow__item:not(:last-child)::after {
  content: ""; position: absolute; right: -18px; top: 50%; width: 12px; height: 12px;
  border-top: 2px solid var(--c-main); border-right: 2px solid var(--c-main); transform: translateY(-50%) rotate(45deg);
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--c-line); }
.faq details:first-child { border-top: 1px solid var(--c-line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 52px; position: relative; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq__a::before {
  position: absolute; left: 8px; font-family: var(--font-en); font-weight: 700; font-size: 20px; color: var(--c-main);
}
.faq summary::before { content: "Q"; top: 22px; }
.faq summary::after {
  content: "+"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--c-text);
  display: grid; place-items: center; font-size: 18px; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq__a { position: relative; padding: 0 16px 28px 52px; font-size: 15px; }
.faq__a::before { content: "A"; top: -4px; color: var(--c-accent); }

/* 電話CTA */
.tel { font-family: var(--font-en); font-size: 34px; font-weight: 700; letter-spacing: .04em; line-height: 1.3; }
.tel small { display: block; font-family: var(--font); font-size: 13px; font-weight: 400; letter-spacing: .04em; }

.note { font-size: 12px; color: var(--c-sub); }

@media (max-width: 960px) {
  .target { grid-template-columns: 1fr; gap: 20px; }
  .target__item { padding: 36px 24px; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow__item:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -20px; transform: translateX(-50%) rotate(135deg); }
  .tel { font-size: 28px; }
}
.form__error { background: #fdecec; }
.form__error a { color: var(--c-main); font-weight: 700; }
.form [hidden] { display: none !important; }

/* =========================================================
   電話ボタン：番号は文字で出さず、スマホ（タッチ端末）だけにボタンを表示
   パソコンでは .pc-only の案内（フォームへの誘導）を表示
   ========================================================= */
.sp-only { display: none !important; }
@media (hover: none) and (pointer: coarse) {
  .sp-only { display: inline-flex !important; }
  .pc-only { display: none !important; }
}
.tel-btn {
  align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px; border-radius: 999px; background: var(--c-main); color: #fff;
  font-weight: 700; font-size: 16px; letter-spacing: .06em;
}
.tel-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.tel-btn--light { background: #fff; color: var(--c-main); }
.tel-btn--sm { padding: 8px 20px; font-size: 14px; }
.cta__item--static:hover { transform: none; box-shadow: none; }
.tel-note { font-size: 13px; color: var(--c-sub); margin-top: 14px; }
.footer__contact { display: inline-flex; margin-top: 14px; }
.footer__contact.pc-only { text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.pagetop { box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0,0,0,.15); } /* 青いフッターの上でも見えるように */
/* WordPressでログイン中は上部に管理バーが出るので、ヘッダーをその下に固定する */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
/* ロゴ画像 */
.logo__mark { border-radius: 12px; object-fit: contain; }
.footer__logo { display: inline-block; }
.footer__logo img { width: 220px; height: auto; }
@media (max-width: 960px) { .footer__logo img { width: 180px; } }
