/* ============================================================
 * TASKEL トップページ（front-page.php）
 * 色は「TASKEL 設定 → 色」で変えられる（functions.php が :root に --tk-* を出力）。
 * 本文（エディタで入力した部分）の見た目は content.css。
 * ============================================================ */

:root {
  --tk-main: #04384c;
  --tk-green: #0f8178;
  --tk-accent: #50a4c9;
  --tk-dark: #000000;
  --tk-thin: #f2f6f8;
  --tk-radius: 12px;
  --tk-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

/* SWELL のサイドバー設定に関係なく全幅で表示 */
.tk-front.l-mainContent { width: 100% !important; max-width: none; }
html { scroll-padding-top: 90px; }

/* ファーストビューを先頭に出すときは、ヘッダーの直下に隙間なく置く（body に tk-has-hero） */
.tk-has-hero #content { padding-top: 0 !important; }
.tk-has-hero #body_wrap { overflow-x: clip; }

/* ---------- ファーストビュー（現行サイトの SWELL メインビジュアルを踏襲：全幅・ドット模様・中央の白文字） ---------- */
.tk-hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 384px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 30% 20%, #0d4f66 0%, var(--tk-main) 40%, var(--tk-dark) 100%);
  color: #fff;
  text-align: center;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .2);
}
.tk-hero.has-image { background: var(--tk-dark) var(--tk-hero-img) center / cover no-repeat; }
.tk-hero.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
/* ドット模様（SWELL の「ドット」フィルターと同じ雰囲気） */
.tk-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, .35) 30%, transparent 31%);
  background-size: 3px 3px; opacity: .9;
}
.tk-hero__inner { position: relative; z-index: 1; max-width: 1040px; padding: 64px 24px; }
.tk-hero__en { font-size: 13px; letter-spacing: .3em; font-weight: 700; opacity: .85; margin: 0 0 10px; }
.tk-hero__title {
  color: #fff; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.5; font-weight: 700;
  margin: 0 0 18px; padding: 0; border: none; background: none; letter-spacing: .05em;
}
.tk-hero__title::before, .tk-hero__title::after { display: none; }
.tk-hero__lead { line-height: 2; margin: 0; }
.tk-hero__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.tk-btn {
  display: inline-block; border-radius: 999px; padding: 13px 32px; font-weight: 700; text-shadow: none;
  text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s;
}
.tk-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.tk-btn--main { background: var(--tk-accent); color: #fff !important; }
.tk-btn--sub { background: transparent; color: #fff !important; border: 2px solid #fff; padding: 11px 30px; }
.tk-btn--sub:hover { background: rgba(255, 255, 255, .12); }

/* ---------- セクション共通 ---------- */
.tk-section { padding: 56px 0; }
.tk-section.tk-bg-thin { padding-left: 32px; padding-right: 32px; }
.tk-section.tk-bg-thin { background: var(--tk-thin); border-radius: var(--tk-radius); }
.tk-section__inner { max-width: 1040px; margin: 0 auto; }
.tk-label { text-align: center; color: var(--tk-accent); font-weight: 700; letter-spacing: .3em; font-size: 13px; margin: 0 0 6px; }
/* 見出し：現行サイトと同じ「紺の帯＋上下の二重線」 */
.tk-heading {
  position: relative; text-align: left; color: #fff; background: var(--tk-main);
  font-size: 1.4em; font-weight: 700; line-height: 1.5;
  margin: 4px 0 2em; padding: .75em 1em; border: none; border-radius: 0;
}
.tk-heading::before {
  content: ""; position: absolute; left: 0; top: -4px; width: 100%; height: calc(100% + 8px);
  border-top: 2px solid var(--tk-main); border-bottom: 2px solid var(--tk-main); pointer-events: none; display: block;
}
.tk-heading::after { display: none; }
.tk-label + .tk-heading { margin-top: 8px; }
.tk-label { text-align: left; }
.tk-lead { line-height: 2; margin: -.6em 0 2em; }
.tk-about { line-height: 2; }
.tk-record h3:first-child { margin-top: 0; }

/* グリッド */
.tk-grid { display: grid; gap: 22px; }
.tk-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tk-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tk-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- サービス ---------- */
.tk-card { background: #fff; border-radius: var(--tk-radius); padding: 26px 22px; box-shadow: var(--tk-shadow); }
.tk-card__icon { font-size: 34px; line-height: 1; margin: 0 0 12px; }
.tk-card__title {
  font-size: 18px; color: var(--tk-main); font-weight: 700; line-height: 1.5;
  margin: 0 0 10px; padding: 0; border: none; background: none;
}
.tk-card__title::before, .tk-card__title::after { display: none; }
.tk-card .taskel-content { font-size: 15px; }

/* ---------- 3つの事業 ---------- */
.tk-biz {
  background: #fff; border-left: 8px solid var(--tk-main); border-radius: 10px; box-shadow: var(--tk-shadow);
  padding: 26px 28px 20px; margin: 0 auto 22px; max-width: 860px;
}
.tk-biz--green { border-left-color: var(--tk-green); }
.tk-biz--dark { border-left-color: var(--tk-dark); }
.tk-biz--yellow { border-left-color: var(--tk-accent); }
.tk-biz__catch { font-size: 14px; color: #666; margin: 0 0 4px; }
.tk-biz__title { font-size: 22px; font-weight: 700; color: var(--tk-main); margin: 0; padding: 0; border: none; background: none; }
.tk-biz__title::before, .tk-biz__title::after { display: none; }
.tk-biz--green .tk-biz__title { color: var(--tk-green); }
.tk-biz--dark .tk-biz__title { color: var(--tk-dark); }
.tk-biz--yellow .tk-biz__title { color: #2f84ab; }
.tk-biz__sub { font-size: 12px; color: #888; margin: 4px 0 12px; }
.tk-biz__link { text-align: right; font-size: 14px; margin: 8px 0 0; }

/* ---------- 制作実績・運用サイト ---------- */
.tk-work { display: flex; flex-direction: column; background: #fff; border-radius: var(--tk-radius); overflow: hidden; box-shadow: var(--tk-shadow); }
.tk-work__thumb { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #dfe8f1, #e8f1ee); overflow: hidden; }
.tk-work__img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .3s; }
a.tk-work__thumb:hover .tk-work__img { transform: scale(1.03); }
.tk-work__thumb { text-decoration: none !important; }
.tk-work__noimg { display: flex; height: 100%; align-items: center; justify-content: center; color: #8aa0b5; font-weight: 700; padding: 0 16px; text-align: center; }
.tk-work__body { padding: 18px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.tk-work__tag {
  align-self: flex-start; font-size: 12px; color: var(--tk-main); background: var(--tk-thin);
  border-radius: 999px; padding: 2px 12px; margin: 0 0 8px;
}
.tk-bg-thin .tk-work__tag { background: #eef3f8; }
.tk-work__title { font-size: 18px; font-weight: 700; color: #222; margin: 0 0 8px; padding: 0; border: none; background: none; }
.tk-work__title::before, .tk-work__title::after { display: none; }
.tk-work .taskel-content { font-size: 15px; }
.tk-work__link { font-size: 14px; margin: auto 0 0; padding-top: 10px; }

/* ---------- 選ばれる理由 ---------- */
.tk-point { text-align: center; }
.tk-point__num { font-size: 40px; font-weight: 800; color: var(--tk-accent); line-height: 1; margin: 0 0 8px; }
.tk-point__title { font-size: 18px; color: var(--tk-main); font-weight: 700; margin: 0 0 10px; padding: 0; border: none; background: none; }
.tk-point__title::before, .tk-point__title::after { display: none; }
.tk-point__text { margin: 0; }

/* ---------- 流れ ---------- */
.tk-flow { list-style: none; counter-reset: tkflow; max-width: 720px; margin: 0 auto; padding: 0; }
.tk-flow li {
  counter-increment: tkflow; position: relative; background: #fff; border-radius: 10px;
  padding: 18px 20px 18px 74px; margin: 0 0 14px; box-shadow: var(--tk-shadow);
}
.tk-flow li::before {
  content: counter(tkflow); position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; line-height: 36px; text-align: center; border-radius: 50%;
  background: var(--tk-main); color: #fff; font-weight: 700;
}
.tk-flow li strong { margin-right: 1em; }

/* ---------- FAQ ---------- */
.tk-faq { max-width: 760px; margin: 0 auto; }
.tk-faq__item { background: #fff; border-radius: 10px; box-shadow: var(--tk-shadow); margin: 0 0 12px; }
.tk-faq__q {
  position: relative; list-style: none; cursor: pointer; font-weight: 700; padding: 18px 48px 18px 56px;
}
.tk-faq__q::-webkit-details-marker { display: none; }
.tk-faq__q::before { content: "Q"; position: absolute; left: 20px; top: 14px; color: var(--tk-main); font-size: 22px; font-weight: 800; }
.tk-faq__q::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid #999; border-bottom: 2px solid #999; transform: rotate(45deg); transition: transform .2s;
}
.tk-faq__item[open] .tk-faq__q::after { transform: rotate(-135deg); margin-top: -1px; }
.tk-faq__a { position: relative; padding: 0 24px 18px 56px; color: #555; }
.tk-faq__a::before { content: "A"; position: absolute; left: 21px; top: -4px; color: var(--tk-accent); font-size: 22px; font-weight: 800; }

/* ---------- お問い合わせ ---------- */
.tk-contact__body { max-width: 720px; margin: 0 auto 24px; }
.tk-contact__form { max-width: 720px; margin: 0 auto; }
.tk-contact__btn { text-align: center; margin: 0; }
.tk-contact__placeholder { text-align: center; border: 2px dashed #ccc; padding: 32px; color: #999; border-radius: 10px; margin: 0; }
.tk-info { max-width: 640px; margin: 36px auto 0; width: 100%; border-collapse: collapse; }
.tk-info th, .tk-info td { border: 1px solid #dde3ea; padding: 12px 14px; text-align: left; }
.tk-info th { background: var(--tk-thin); width: 30%; font-weight: 700; }

/* ---------- スマホ・タブレット ---------- */
@media (max-width: 959px) {
  .tk-grid--3, .tk-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .tk-hero { min-height: 300px; }
  .tk-hero__inner { padding: 48px 18px; }
  .tk-section { padding: 44px 0; }
  .tk-section.tk-bg-thin { padding-left: 14px; padding-right: 14px; }
  .tk-heading { font-size: 1.2em; }
  .tk-grid--2, .tk-grid--3, .tk-grid--4 { grid-template-columns: 1fr; gap: 16px; }
  .tk-flow li { padding-left: 66px; }
  .tk-flow li strong { display: block; margin: 0 0 2px; }
  .tk-hero__lead br { display: none; }
  .tk-hero__en { letter-spacing: .15em; font-size: 12px; }
}
