/* ============================================================
   gifu-ted.com 共通スタイルシート
   株式会社ギフテッド コーポレートサイト（index.html / shien.html）
   配色はロゴ（黒×オレンジ）に合わせた設計
   ============================================================ */

:root {
  --ink: #17150f;          /* 基調の墨色 */
  --ink-soft: #4a463c;     /* 本文用のやわらかい墨 */
  --paper: #faf8f3;        /* 温かみのある背景白 */
  --white: #ffffff;
  --accent: #ef9c00;       /* ロゴのオレンジ */
  --accent-deep: #cf7f00;  /* 濃いオレンジ（ホバー等） */
  --accent-pale: #fdf3e0;  /* オレンジの淡色（帯・チップ用） */
  --line: #e6e1d5;         /* 罫線 */
  --radius: 14px;
  --shadow: 0 10px 40px rgba(23, 21, 15, .08);
  --font-sans: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Outfit", "Zen Kaku Gothic New", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; font-weight: 500; letter-spacing: .05em; position: relative; }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  background: var(--ink); color: var(--white); padding: 10px 22px; border-radius: 999px;
  font-weight: 700; transition: background .25s;
}
.nav__cta:hover { background: var(--accent-deep); }
.nav-toggle { display: none; }

/* ---------- ヒーロー ---------- */
.hero { padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  /* ロゴのオレンジを想起させる円弧の装飾 */
  content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px;
  border-radius: 50%; border: 72px solid var(--accent-pale); z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
.hero__en {
  font-family: var(--font-en); font-size: 13px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px); font-weight: 900; line-height: 1.45; letter-spacing: .04em;
}
.hero h1 .u { background: linear-gradient(transparent 68%, var(--accent-pale) 68%); }
.hero__lead { margin-top: 26px; max-width: 620px; color: var(--ink-soft); font-size: 16.5px; }
.hero__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .2s, background .25s, color .25s; letter-spacing: .04em;
}
.btn:hover { transform: translateY(-2px); }
.btn--fill { background: var(--accent); color: var(--ink); }
.btn--fill:hover { background: var(--accent-deep); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--accent-deep); }
.btn--line { border: 2px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }

/* ---------- セクション共通 ---------- */
.sec { padding: 88px 0; }
.sec--tint { background: var(--white); }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec__head { margin-bottom: 48px; }
.sec__en {
  font-family: var(--font-en); font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 600; display: block; margin-bottom: 10px;
}
.sec--dark .sec__en { color: var(--accent); }
.sec__title { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; letter-spacing: .05em; line-height: 1.5; }
.sec__lead { margin-top: 16px; color: var(--ink-soft); max-width: 720px; }
.sec--dark .sec__lead { color: #cfc9ba; }

/* ---------- カードグリッド ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); position: relative;
}
.card--work { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--work .card__body { padding: 26px 28px 30px; }
.card__img { height: 240px; background: #f3efe6; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img--contain { background: #080808; }
.card__img--contain img { object-fit: contain; padding: 14px; }
.card__caption { font-size: 12.5px; color: #9a9384; margin-top: 12px; }
.card__num {
  font-family: var(--font-en); font-weight: 700; font-size: 13px; color: var(--accent-deep);
  letter-spacing: .18em; margin-bottom: 12px; display: block;
}
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; letter-spacing: .04em; }
.card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- ブランドカード（外部リンク） ---------- */
.brand {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
}
.brand:hover { transform: translateY(-4px); border-color: var(--accent); }
.brand__tag {
  display: inline-block; background: var(--accent-pale); color: var(--accent-deep);
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin-bottom: 14px;
  align-self: flex-start; letter-spacing: .06em;
}
.brand h3 { font-size: 19px; font-weight: 800; letter-spacing: .03em; }
.brand__en { font-family: var(--font-en); font-size: 12.5px; color: var(--accent-deep); letter-spacing: .1em; margin-bottom: 10px; }
.brand p { font-size: 14px; color: var(--ink-soft); flex-grow: 1; }
.brand__note { font-size: 12.5px; color: #9a9384; margin-top: 8px; }
.brand__link {
  margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.brand:hover .brand__link { text-decoration: underline; }

/* ---------- A型事業所バナー ---------- */
.banner {
  background: var(--ink); color: var(--paper); border-radius: calc(var(--radius) + 6px);
  padding: 52px 48px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.banner::before {
  content: ""; position: absolute; left: -60px; bottom: -120px; width: 280px; height: 280px;
  border-radius: 50%; border: 40px solid rgba(239, 156, 0, .22);
}
.banner__badge {
  display: inline-block; background: var(--accent); color: var(--ink); font-weight: 800;
  font-size: 13px; padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .08em;
}
.banner h2 { font-size: clamp(21px, 3vw, 30px); font-weight: 900; letter-spacing: .05em; line-height: 1.6; }
.banner p { margin-top: 10px; color: #cfc9ba; font-size: 14.5px; max-width: 560px; }

/* ---------- 会社概要テーブル ---------- */
.company-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.company-table th, .company-table td { padding: 20px 26px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.company-table th { width: 200px; background: var(--accent-pale); font-weight: 700; letter-spacing: .06em; }
.company-table td { color: var(--ink-soft); }

/* ---------- 沿革 ---------- */
.timeline { border-left: 3px solid var(--accent); padding-left: 32px; display: grid; gap: 26px; margin-top: 12px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -41px; top: 10px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--paper);
}
.timeline__year { font-family: var(--font-en); font-weight: 700; color: var(--accent-deep); letter-spacing: .08em; display: block; font-size: 15px; }
.timeline p { font-size: 15px; color: var(--ink-soft); }

/* ---------- 就労支援ページ: 流れ ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.flow li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; counter-increment: step; box-shadow: var(--shadow);
}
.flow li::before {
  content: "0" counter(step); font-family: var(--font-en); font-weight: 700; font-size: 14px;
  color: var(--accent-deep); letter-spacing: .15em; display: block; margin-bottom: 8px;
}
.flow h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.flow p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- お問い合わせ ---------- */
.contact { text-align: center; }
.contact__tel {
  font-family: var(--font-en); font-size: clamp(30px, 5vw, 44px); font-weight: 700;
  letter-spacing: .04em; color: var(--ink); display: inline-block; margin: 18px 0 6px;
}
.sec--dark .contact__tel { color: var(--white); }
.contact__note { font-size: 13.5px; color: var(--ink-soft); }
.sec--dark .contact__note { color: #cfc9ba; }

/* ---------- フッター ---------- */
.footer { background: var(--ink); color: #cfc9ba; padding: 56px 0 32px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer__logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer__addr { font-size: 13px; margin-top: 16px; line-height: 2; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13.5px; }
.footer__nav a:hover { color: var(--accent); }
.footer__copy { text-align: center; font-size: 12px; margin-top: 44px; color: #8d877a; letter-spacing: .06em; }

/* ---------- 写真ギャラリー ---------- */
.photo-wide {
  margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.photo-wide img { width: 100%; height: auto; object-fit: cover; }
.photo-wide figcaption { font-size: 12.5px; color: #9a9384; padding: 10px 4px 0; text-align: right; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure {
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.gallery img { width: 100%; height: 230px; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: 13px; color: var(--ink-soft); padding: 12px 16px; }

/* ---------- アクセス地図 ---------- */
.map-wrap {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); margin-top: 32px;
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }
.access-note { margin-top: 18px; font-size: 14.5px; color: var(--ink-soft); }

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

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 220px; }
  .map-wrap iframe { height: 320px; }
}
@media (max-width: 640px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--paper);
    flex-direction: column; padding: 28px 24px; gap: 20px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.is-open { display: flex; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: none; cursor: pointer; align-items: center;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .banner { padding: 36px 26px; }
  .company-table th { width: 118px; padding: 16px 14px; font-size: 13.5px; }
  .company-table td { padding: 16px 14px; font-size: 14px; }
  .sec { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
}
