/*
Theme Name: ROOTS Corporate
Theme URI: https://example.com/
Author: 株式会社ROOTS
Description: 株式会社ROOTS（戸建リフォーム・屋根リフォーム・防水/外壁リフォーム・リノベーション）のコーポレートサイト用オリジナルテーマ。メイン #026ec2 / サブ #6ec4fd / キー #ffda21。
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roots
*/

/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  --c-main: #026ec2;        /* メイン：信頼のブルー */
  --c-main-dark: #04487c;   /* 濃紺（見出し・フッター） */
  --c-sub: #6ec4fd;         /* サブ：空色 */
  --c-sub-pale: #eaf5ff;    /* 空色の淡背景 */
  --c-key: #ffda21;         /* キー：アクセントイエロー */
  --c-key-deep: #f5c400;
  --c-ink: #1e2e3d;         /* 本文 */
  --c-muted: #5b6b7a;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f9fe;
  --c-line: #d7e6f2;

  --ff-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --ff-en: "Montserrat", "Zen Kaku Gothic New", sans-serif;

  --w-content: 1120px;
  --header-h: 84px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(4, 72, 124, .10);
  --tr: .25s ease;
}

/* ==========================================================
   Reset / base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-main); text-decoration: none; transition: var(--tr); }
a:hover { opacity: .85; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1.2em; }
:focus-visible { outline: 3px solid var(--c-key); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.inner { max-width: var(--w-content); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--c-bg-soft); }

/* ==========================================================
   Roofline motif（シグネチャー：屋根の稜線）
   ========================================================== */
.roofline {
  display: block; width: 100%; height: 34px;
  color: var(--c-bg-soft);
}
.roofline--white { color: #fff; }
.roofline--navy { color: var(--c-main-dark); }

/* ==========================================================
   Section headings（英字アイブロウ＋日本語見出し）
   ========================================================== */
.sec-head { margin-bottom: 48px; }
.sec-head__en {
  font-family: var(--ff-en);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-main);
  font-size: .875rem;
  display: inline-flex; align-items: center; gap: 12px;
}
.sec-head__en::before {
  content: ""; width: 26px; height: 14px;
  background: var(--c-key);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); /* 屋根の三角 */
}
.sec-head__ja { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--c-main-dark); margin-top: .35em; }
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__en { justify-content: center; }
.sec-head--invert .sec-head__en { color: var(--c-sub); }
.sec-head--invert .sec-head__ja { color: #fff; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 36px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  border: 2px solid transparent; cursor: pointer; transition: var(--tr);
}
.btn::after { content: "→"; font-family: var(--ff-en); transition: var(--tr); }
.btn:hover::after { transform: translateX(4px); }
.btn--primary { background: var(--c-main); color: #fff; }
.btn--primary:hover { background: var(--c-main-dark); opacity: 1; }
.btn--key { background: var(--c-key); color: var(--c-main-dark); }
.btn--key:hover { background: var(--c-key-deep); opacity: 1; }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--c-main); opacity: 1; }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--c-line);
}
.site-header__bar {
  display: flex; align-items: center; gap: 24px;
  max-width: 1320px; margin: 0 auto; padding: 0 20px;
  height: var(--header-h);
}
.site-brand { display: flex; align-items: center; gap: 12px; color: var(--c-main-dark); }
.site-brand__mark {
  width: 44px; height: 40px; flex: none;
  background: var(--c-main);
  clip-path: polygon(50% 0, 100% 42%, 84% 42%, 84% 100%, 16% 100%, 16% 42%, 0 42%); /* 家型 */
  position: relative;
}
.site-brand__name { font-family: var(--ff-en); font-weight: 700; font-size: 1.5rem; letter-spacing: .06em; line-height: 1; }
.site-brand__name span { color: var(--c-main); }
.site-brand__sub { display: block; font-family: var(--ff-body); font-size: .68rem; font-weight: 500; letter-spacing: .2em; color: var(--c-muted); margin-top: 4px; }

.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: 4px; }
.global-nav a {
  display: block; padding: 10px 14px; color: var(--c-ink);
  font-weight: 600; font-size: .95rem; border-radius: 6px; position: relative;
}
.global-nav > ul > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  background: var(--c-key); transform: scaleX(0); transform-origin: left; transition: var(--tr);
}
.global-nav > ul > li > a:hover::after,
.global-nav > ul > li.current-menu-item > a::after { transform: scaleX(1); }
.global-nav li { position: relative; }
.global-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; display: none; z-index: 50;
}
.global-nav li:hover > .sub-menu,
.global-nav li:focus-within > .sub-menu { display: block; }
.global-nav .sub-menu a { padding: 10px 14px; font-size: .9rem; }
.global-nav .sub-menu a:hover { background: var(--c-sub-pale); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta__tel {
  margin: 0; text-align: right; line-height: 1.2;
  display: flex; flex-direction: column; justify-content: center;
}
.header-cta__tel a { font-family: var(--ff-en); font-weight: 700; font-size: 1.35rem; color: var(--c-main-dark); }
.header-cta__tel small { display: block; font-size: .7rem; color: var(--c-muted); }
.header-cta .btn { padding: 12px 26px; font-size: .92rem; }

/* Mobile nav */
.nav-toggle { display: none; }
@media (max-width: 1024px) {
  .header-cta__tel { display: none; }
  .global-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: #fff; padding: 24px; overflow: auto;
    transform: translateX(100%); transition: transform var(--tr);
  }
  .global-nav.is-open { transform: translateX(0); }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav a { padding: 16px 8px; border-bottom: 1px solid var(--c-line); font-size: 1.05rem; }
  .global-nav .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 20px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 48px; height: 48px; padding: 12px;
    background: var(--c-main); border: 0; border-radius: 8px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; transition: var(--tr); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .header-cta .btn { display: none; }
  .site-brand__name { font-size: 1.2rem; }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(2,110,194,.92) 0%, rgba(2,110,194,.72) 42%, rgba(110,196,253,.45) 100%),
    var(--c-main-dark);
  color: #fff;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: .38;
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--w-content); margin: 0 auto; padding: 120px 24px 150px;
}
.hero__copy-en {
  font-family: var(--ff-en); font-weight: 700; letter-spacing: .22em;
  color: var(--c-key); font-size: .9rem; margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 800; line-height: 1.5; margin-bottom: 22px;
  text-shadow: 0 2px 18px rgba(4,72,124,.35);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--c-key) 62%);
  color: #fff;
}
.hero__lead { max-width: 640px; font-size: 1.05rem; margin-bottom: 34px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__badge {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px; padding: 8px 20px; font-weight: 700; font-size: .9rem;
  backdrop-filter: blur(4px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .roofline { position: absolute; bottom: -1px; left: 0; z-index: 1; }

/* ==========================================================
   About
   ========================================================== */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about__text p { color: var(--c-ink); }
.about__figure { position: relative; }
.about__figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__figure::before {
  content: ""; position: absolute; top: -18px; right: -18px;
  width: 120px; height: 66px; z-index: -1;
  background: var(--c-key);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: .9;
}
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================================
   Service（交互レイアウト）
   ========================================================== */
.service-lead { max-width: 800px; margin: 0 auto 64px; text-align: center; color: var(--c-muted); }
.service-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 48px;
}
.service-item:last-child { margin-bottom: 0; }
.service-item__media { min-height: 300px; background: var(--c-sub-pale); }
.service-item__media img { width: 100%; height: 100%; object-fit: cover; }
.service-item__body { padding: 44px 48px; display: flex; flex-direction: column; align-items: flex-start; }
.service-item__no {
  font-family: var(--ff-en); font-weight: 700; font-size: .8rem; letter-spacing: .2em;
  color: var(--c-main); background: var(--c-sub-pale);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}
.service-item__title { font-size: 1.5rem; color: var(--c-main-dark); position: relative; padding-bottom: 14px; margin-bottom: 18px; }
.service-item__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--c-key); border-radius: 2px; }
.service-item__desc { color: var(--c-muted); flex: 1; }
.service-item:nth-child(even) .service-item__media { order: 2; }
@media (max-width: 860px) {
  .service-item { grid-template-columns: 1fr; }
  .service-item:nth-child(even) .service-item__media { order: 0; }
  .service-item__media { min-height: 220px; }
  .service-item__body { padding: 30px 26px; }
}

/* ==========================================================
   Company cards（会社紹介 3カード）
   ========================================================== */
.company-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.company-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform var(--tr);
}
.company-card:hover { transform: translateY(-6px); }
.company-card__media { aspect-ratio: 16 / 10; background: var(--c-sub-pale); }
.company-card__media img { width: 100%; height: 100%; object-fit: cover; }
.company-card__body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.company-card__title { font-size: 1.15rem; color: var(--c-main-dark); }
.company-card__desc { color: var(--c-muted); font-size: .95rem; flex: 1; }
.company-card__link { font-weight: 700; color: var(--c-main); }
.company-card__link::after { content: " →"; }
@media (max-width: 860px) { .company-cards { grid-template-columns: 1fr; } }

/* ==========================================================
   Works
   ========================================================== */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 48px; }
.work-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.work-card__media { aspect-ratio: 4 / 3; background: var(--c-sub-pale); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tr); }
.work-card:hover .work-card__media img { transform: scale(1.05); }
.work-card__body { padding: 20px 22px 24px; }
.work-card__cat { display: inline-block; background: var(--c-key); color: var(--c-main-dark); font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.work-card__title { font-size: 1.05rem; color: var(--c-main-dark); margin: 0; }
.works-more { text-align: center; }
@media (max-width: 860px) { .works-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .works-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   Recruit
   ========================================================== */
.recruit { position: relative; background: var(--c-main-dark); color: #fff; overflow: hidden; }
.recruit::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(110,196,253,.35), transparent 70%);
}
.recruit__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.recruit__catch { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.6; }
.recruit__catch strong { color: var(--c-key); }
.recruit__text { color: #d9ecfb; }
@media (max-width: 860px) { .recruit__inner { grid-template-columns: 1fr; gap: 28px; } }

/* ==========================================================
   Contact band
   ========================================================== */
.contact-band { background: linear-gradient(120deg, var(--c-main), #0587e6); color: #fff; text-align: center; }
.contact-band__lead { max-width: 640px; margin: 0 auto 36px; }
.contact-band__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; }
.contact-band__tel { line-height: 1.3; }
.contact-band__tel a { font-family: var(--ff-en); font-weight: 800; font-size: 2.2rem; color: #fff; }
.contact-band__tel small { display: block; font-size: .8rem; color: #d9ecfb; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--c-main-dark); color: #cfe4f5; }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding: 72px 24px 48px; max-width: var(--w-content); margin: 0 auto; }
.site-footer .site-brand { color: #fff; margin-bottom: 16px; }
.site-footer .site-brand__mark { background: var(--c-key); }
.site-footer__addr { font-style: normal; font-size: .92rem; line-height: 2; }
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.footer-nav a { color: #cfe4f5; font-size: .92rem; display: block; padding: 6px 0; }
.footer-nav a:hover { color: var(--c-key); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.15); text-align: center; font-size: .8rem; padding: 20px 24px; color: #9dc3e2; }
@media (max-width: 700px) { .site-footer__inner { grid-template-columns: 1fr; gap: 28px; } .footer-nav ul { grid-template-columns: 1fr; } }

/* ==========================================================
   下層ページ共通
   ========================================================== */
.page-hero {
  background: linear-gradient(120deg, var(--c-main), #0587e6);
  color: #fff; padding: 90px 0 70px; position: relative;
}
.page-hero__en { font-family: var(--ff-en); letter-spacing: .2em; color: var(--c-key); font-weight: 700; font-size: .85rem; }
.page-hero__title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: .3em 0 0; }
.breadcrumb { font-size: .8rem; color: var(--c-muted); padding: 18px 0; }
.breadcrumb a { color: var(--c-main); }

.entry-content { max-width: 820px; margin: 0 auto; }
.entry-content h2 { color: var(--c-main-dark); border-left: 6px solid var(--c-main); border-bottom: 2px solid var(--c-line); padding: 4px 0 8px 16px; margin-top: 2.2em; }
.entry-content h3 { color: var(--c-main); padding-left: 14px; position: relative; margin-top: 1.8em; }
.entry-content h3::before { content: ""; position: absolute; left: 0; top: .45em; width: 6px; height: 6px; background: var(--c-key); transform: rotate(45deg); }
.entry-content ul { list-style: none; margin: 1em 0; }
.entry-content ul li { position: relative; padding-left: 22px; margin-bottom: .5em; }
.entry-content ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 10px; height: 6px; background: var(--c-main); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.entry-content ol { padding-left: 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--c-line); padding: 12px 16px; text-align: left; }
.entry-content th { background: var(--c-sub-pale); color: var(--c-main-dark); width: 28%; }
.entry-content blockquote { border-left: 4px solid var(--c-sub); background: var(--c-bg-soft); padding: 16px 20px; margin: 1.5em 0; color: var(--c-muted); }

/* 記事一覧 */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .post-list { grid-template-columns: 1fr; } }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16/9; background: var(--c-sub-pale); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px 22px 26px; }
.post-card__date { font-family: var(--ff-en); font-size: .78rem; color: var(--c-muted); letter-spacing: .08em; }
.post-card__title { font-size: 1.02rem; margin: 8px 0 0; }
.post-card__title a { color: var(--c-main-dark); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 8px;
  background: #fff; border: 1px solid var(--c-line); color: var(--c-main-dark); font-weight: 700;
}
.pagination .current { background: var(--c-main); color: #fff; border-color: var(--c-main); }

/* 記事下ナビ */
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; }
.post-nav a { font-weight: 700; }

/* WPコアブロック対応 */
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-block-image img { border-radius: var(--radius); }

/* スクロールリビール */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================
   ロゴ（高さフィット）
   ========================================================== */
.site-header .custom-logo-link {
  display: flex; align-items: center; flex: none;
  height: var(--header-h);
}
.site-header .custom-logo,
.site-header .custom-logo-link img,
.site-brand img {
  display: block;
  max-height: calc(var(--header-h) - 28px);
  max-width: 240px;
  width: auto; height: auto;
  object-fit: contain;
}
.site-footer .site-brand img { max-height: 56px; }
@media (max-width: 640px) {
  .site-header .custom-logo,
  .site-header .custom-logo-link img,
  .site-brand img {
    max-height: calc(var(--header-h) - 36px);
    max-width: 180px;
  }
}

/* ==========================================================
   事業内容 詳細ページ
   ========================================================== */
.service-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.service-intro__catch { font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--c-main-dark); line-height: 1.7; }
.service-intro__catch strong { background: linear-gradient(transparent 62%, var(--c-key) 62%); font-weight: 800; }
.service-intro__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
@media (max-width: 860px) { .service-intro { grid-template-columns: 1fr; gap: 28px; } }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px 28px 30px; box-shadow: 0 6px 18px rgba(4,72,124,.06);
}
.feature-card__title {
  display: flex; align-items: center; gap: 12px;
  color: var(--c-main-dark); font-size: 1.1rem; margin-bottom: 10px;
}
.feature-card__title::before {
  content: ""; flex: none; width: 20px; height: 12px;
  background: var(--c-key); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.feature-card__desc { color: var(--c-muted); font-size: .95rem; margin: 0; }
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }

/* 施工の流れ（実際の手順＝番号に意味がある） */
.flow { counter-reset: flow; max-width: 820px; margin: 0 auto; }
.flow__item {
  position: relative; padding: 0 0 34px 84px; counter-increment: flow;
}
.flow__item::before {
  content: "0" counter(flow);
  position: absolute; left: 0; top: -2px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-main); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-en); font-weight: 700; font-size: 1.05rem;
}
.flow__item::after {
  content: ""; position: absolute; left: 27px; top: 58px; bottom: 6px;
  width: 2px; background: var(--c-line);
}
.flow__item:last-child { padding-bottom: 0; }
.flow__item:last-child::after { display: none; }
.flow__title { font-size: 1.12rem; color: var(--c-main-dark); margin-bottom: .3em; }
.flow__desc { color: var(--c-muted); font-size: .95rem; margin: 0; }

/* 他のサービスへ */
.service-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 18px 22px; font-weight: 700; color: var(--c-main-dark);
}
.service-links a::after { content: "→"; font-family: var(--ff-en); color: var(--c-main); }
.service-links a:hover { border-color: var(--c-main); }
@media (max-width: 860px) { .service-links { grid-template-columns: 1fr; } }

/* 事業内容 一覧ページ */
.service-index-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.service-index-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform var(--tr);
}
.service-index-card:hover { transform: translateY(-6px); }
.service-index-card__media { height: 220px; flex: none; background: var(--c-sub-pale); }
.service-index-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-index-card__body {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start;
  padding: 26px 28px 28px;
}
.service-index-card__body .sec-head__en { margin: 0 0 8px; }
.service-index-card__title { color: var(--c-main-dark); font-size: 1.25rem; margin: 0 0 12px; }
.service-index-card__desc { color: var(--c-muted); font-size: .95rem; margin: 0 0 20px; flex: 1; }
.service-index-card .company-card__link { margin-top: auto; }
@media (max-width: 700px) {
  .service-index-grid { grid-template-columns: 1fr; }
  .service-index-card__media { height: 200px; }
}

/* ==========================================================
   会社情報ページ
   ========================================================== */
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.policy-card {
  background: #fff; border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow); text-align: center;
}
.policy-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c-sub-pale); color: var(--c-main);
  font-family: var(--ff-en); font-weight: 800; margin-bottom: 14px;
}
.policy-card__title { color: var(--c-main-dark); font-size: 1.12rem; }
.policy-card__desc { color: var(--c-muted); font-size: .93rem; margin: 0; }
@media (max-width: 860px) { .policy-grid { grid-template-columns: 1fr; } }

.message-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.message-grid__photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.message-grid__name { text-align: right; font-weight: 700; color: var(--c-main-dark); margin-top: 1.5em; }
.message-grid__name small { display: block; font-weight: 500; color: var(--c-muted); font-size: .8rem; }
@media (max-width: 860px) { .message-grid { grid-template-columns: 1fr; gap: 24px; } .message-grid__photo { max-width: 320px; } }

.outline-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.outline-table th, .outline-table td { padding: 18px 24px; border-bottom: 1px solid var(--c-line); text-align: left; font-size: .96rem; }
.outline-table th { width: 220px; background: var(--c-sub-pale); color: var(--c-main-dark); font-weight: 700; }
.outline-table tr:last-child th, .outline-table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .outline-table th, .outline-table td { display: block; width: 100%; }
  .outline-table th { padding-bottom: 6px; }
  .outline-table td { padding-top: 6px; }
}

/* ==========================================================
   採用情報ページ
   ========================================================== */
.recruit-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.recruit-point {
  background: #fff; border-top: 5px solid var(--c-key); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
}
.recruit-point__title { color: var(--c-main-dark); font-size: 1.1rem; }
.recruit-point__desc { color: var(--c-muted); font-size: .93rem; margin: 0; }
@media (max-width: 860px) { .recruit-points { grid-template-columns: 1fr; } }

/* ==========================================================
   お問い合わせページ
   ========================================================== */
.contact-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 64px; }
.contact-method {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 32px; text-align: center;
}
.contact-method__label { font-weight: 700; color: var(--c-main-dark); display: block; margin-bottom: 12px; }
.contact-method__tel { font-family: var(--ff-en); font-weight: 800; font-size: 2rem; color: var(--c-main); display: inline-block; }
.contact-method__note { color: var(--c-muted); font-size: .85rem; margin: 10px 0 0; }
@media (max-width: 700px) { .contact-methods { grid-template-columns: 1fr; } }

.contact-form-area { max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px; }
.contact-form-area label { font-weight: 700; color: var(--c-main-dark); }
.contact-form-area input[type="text"],
.contact-form-area input[type="email"],
.contact-form-area input[type="tel"],
.contact-form-area textarea,
.contact-form-area select {
  width: 100%; padding: 13px 16px; margin: 6px 0 18px;
  border: 1px solid var(--c-line); border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: var(--c-bg-soft);
}
.contact-form-area input:focus,
.contact-form-area textarea:focus { border-color: var(--c-main); outline: none; background: #fff; }
.contact-form-area input[type="submit"], .contact-form-area button[type="submit"] {
  display: inline-flex; padding: 15px 48px; border: 0; border-radius: 999px;
  background: var(--c-main); color: #fff; font-weight: 700; font-size: 1.05rem; cursor: pointer;
  transition: var(--tr);
}
.contact-form-area input[type="submit"]:hover { background: var(--c-main-dark); }
@media (max-width: 640px) { .contact-form-area { padding: 28px 20px; } }
