/* =========================================
   株式会社Rutas ホームページ 共通スタイル
   ロゴが届いたら、下の「色の設定」だけ変えれば全体の色が変わります
   ========================================= */

/* ---- 色の設定 ---- */
:root {
  --main: #1d2b3e;        /* メインカラー（濃紺。バナーの文字色に合わせる） */
  --main-light: #f3f0e8;  /* メインカラーの薄い版（夕焼けに合わせた生成り色） */
  --accent: #b08a3e;      /* ボタンなどの目立たせる色（バナーの「未来」の金色） */
  --dark: #141e2c;        /* フッターの背景 */
  --text: #222;
  --text-sub: #5a6270;
  --bg: #ffffff;
  --bg-gray: #f5f6f8;
  --border: #dde1e7;
  --radius: 10px;
  --width: 1080px;
}

/* ---- 基本 ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--main); }
h1, h2, h3 {
  line-height: 1.4; margin: 0 0 .6em; word-break: auto-phrase; text-wrap: pretty; /* 日本語を文節で改行 */
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; /* バナーに合わせた明朝体 */
}
p { margin: 0 0 1em; }
.container { max-width: var(--width); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.gray { background: var(--bg-gray); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title .en {
  display: block; color: var(--accent); font-size: 14px;
  letter-spacing: .15em; font-weight: 700;
}
.section-title h2 { font-size: 28px; color: var(--main); margin: 4px 0 0; }

/* ---- ヘッダー ---- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: #fff; border-bottom: 1px solid var(--border);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.logo { display: block; line-height: 0; }
.logo img { height: 48px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; color: var(--text); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a.current { color: var(--main); }
.nav .btn { color: #fff; }
.menu-btn {
  display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--main);
}

/* ---- ボタン ---- */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
  border: 0; cursor: pointer; font-size: 16px; transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn.outline { background: #fff; color: var(--main); border: 2px solid var(--main); }
.btn.small { padding: 8px 20px; font-size: 14px; }

/* ---- トップのバナー画像 ---- */
.hero-image { line-height: 0; background: var(--dark); }
.hero-image img { width: 100%; max-height: 640px; object-fit: cover; }

/* ---- トップの大きな見出し ---- */
.hero {
  background: var(--main);
  color: #fff; padding: 80px 0;
}
.hero h1 { font-size: 40px; margin-bottom: 20px; }
.hero p { font-size: 18px; opacity: .95; max-width: 640px; }
.hero .btns { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero .btn.outline { border-color: #fff; }

/* ---- 下層ページの見出し ---- */
.page-head { background: var(--main); color: #fff; padding: 48px 0; }
.page-head .en { font-size: 13px; letter-spacing: .15em; opacity: .8; }
.page-head h1 { font-size: 30px; margin: 4px 0 0; }

/* ---- カード ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { color: var(--main); font-size: 19px; }
.card .num { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .1em; }
.card p:last-child { margin-bottom: 0; }

/* ---- 後で差し替える場所 ---- */
.todo {
  border: 2px dashed #e0a100; background: #fff9e6; color: #8a6400;
  border-radius: var(--radius); padding: 16px 20px; font-size: 14px;
}

/* ---- 表（会社概要・求人） ---- */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { border-bottom: 1px solid var(--border); padding: 18px 16px; text-align: left; vertical-align: top; }
.table th { width: 28%; color: var(--main); background: var(--main-light); font-weight: 700; }

/* ---- 呼びかけ帯 ---- */
.cta { background: var(--main-light); text-align: center; padding: 64px 0; }
.cta h2 { color: var(--main); font-size: 26px; }
.cta .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---- これからの展開（今→次→未来） ---- */
.future {
  background: linear-gradient(180deg, var(--main) 0%, #3a3f4f 55%, #b07a3e 130%);
  color: #fff;
}
.future .section-title h2 { color: #fff; }
.future-lead { text-align: center; max-width: 720px; margin: 0 auto 48px; opacity: .92; }
.future a { color: #f0d9a8; }
.roadmap {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative;
}
.roadmap::before {
  content: ""; position: absolute; top: 22px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.35), var(--accent));
}
.roadmap li {
  position: relative; text-align: center; padding: 64px 20px 28px;
  background: #2a3446; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius);
}
.roadmap .step {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  background: var(--main); border: 2px solid var(--accent); color: #f0d9a8;
  border-radius: 999px; padding: 6px 16px; font-size: 12px; font-weight: 700; letter-spacing: .15em;
}
.roadmap h3 { color: #fff; font-size: 20px; }
.roadmap p { margin: 0; font-size: 15px; opacity: .9; }
.roadmap .dream {
  background: linear-gradient(160deg, #5c4b30, #2f3748);
  border-color: var(--accent);
}
.roadmap .dream .step { background: var(--accent); color: #fff; }

/* ---- 流れ ---- */
.flow { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.flow li {
  counter-increment: step; position: relative; padding: 20px 20px 20px 72px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px;
}
.flow li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--main); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.flow strong { color: var(--main); }

/* ---- フォーム ---- */
.form { max-width: 720px; margin: 0 auto; background: #fff; padding: 36px; border-radius: var(--radius); border: 1px solid var(--border); }
.form-row { margin-bottom: 20px; }
.form label { display: block; font-weight: 700; margin-bottom: 6px; }
.form .req { background: var(--accent); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 16px; font-family: inherit;
}
.form textarea { min-height: 140px; }
.form .agree { font-weight: 400; }
.form .center { text-align: center; }
.form-embed { padding: 8px; }
.form-embed iframe { display: block; width: 100%; border: 0; }
.form-note { text-align: center; font-size: 13px; color: var(--text-sub); margin: 8px 0 0; }
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.tabs button {
  padding: 10px 24px; border-radius: 999px; border: 2px solid var(--main);
  background: #fff; color: var(--main); font-weight: 700; cursor: pointer; font-size: 15px; font-family: inherit;
}
.tabs button.active { background: var(--main); color: #fff; }
.hidden { display: none; }

/* ---- 文章ページ（プライバシーポリシー） ---- */
.doc { max-width: 820px; margin: 0 auto; }
.doc h2 { font-size: 20px; color: var(--main); margin-top: 36px; border-left: 4px solid var(--accent); padding-left: 12px; }

/* ---- フッター ---- */
.footer { background: var(--dark); color: #cfd6e4; padding: 48px 0 24px; font-size: 14px; }
.footer .container { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .name { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 28px; }
.footer a { color: #cfd6e4; text-decoration: none; }
.footer a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 32px; font-size: 12px; opacity: .7; width: 100%; }

/* =========================================
   演出（背景画像・葉っぱ模様・アイコン）
   ロゴの「木」とバナーの「夕焼け」をモチーフにしている
   ========================================= */
:root {
  --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='%23b08a3e'%3E%3Cpath d='M20 60c0-22 15-34 36-34 0 22-14 34-36 34z' fill-opacity='.09'/%3E%3Cpath d='M78 104c0-16 11-25 26-25 0 16-10 25-26 25z' fill-opacity='.07'/%3E%3C/g%3E%3Cpath d='M20 60L48 34M78 104l18-17' stroke='%23b08a3e' stroke-opacity='.14' fill='none'/%3E%3C/svg%3E");
  --sunset-cream: #f6efe2;
}

/* 見出しの英字の前に小さな葉 */
.section-title .en::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 18C2 8 8 2 18 2c0 10-6 16-16 16z' fill='%23b08a3e'/%3E%3C/svg%3E") center/contain no-repeat;
}
.section-title h2::after {
  content: ""; display: block; width: 48px; height: 2px; margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* グレーの帯は生成り色＋葉っぱ模様に */
.section.gray { background: var(--sunset-cream) var(--leaf) 0 0 / 120px 120px; }

/* トップの見出し：濃紺に夕日の光 */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(240,180,90,.35), transparent 45%),
    radial-gradient(circle at 10% 110%, rgba(176,138,62,.25), transparent 40%),
    var(--main);
}
.hero::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 340px; height: 340px;
  background: url("../images/logo.jpg") 100% 50% / auto 100% no-repeat;
  filter: invert(1); mix-blend-mode: screen; opacity: .08; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1::after {
  content: ""; display: block; width: 64px; height: 3px; margin-top: 20px; background: var(--accent);
}

/* 下層ページの見出し：夕焼けの木を背景に */
.page-head {
  padding: 72px 0;
  background:
    linear-gradient(90deg, rgba(20,30,44,.94) 0%, rgba(20,30,44,.78) 45%, rgba(20,30,44,.25) 100%),
    url("../images/hero.jpg") 100% 38% / max(100%, 2400px) auto no-repeat; /* 右側の木だけを見せる */
}
.page-head .en { color: #f0d9a8; opacity: 1; }
.page-head h1 { font-size: 34px; }

/* カード：金のライン・アイコン・浮き上がり */
.card {
  position: relative; border-top: 3px solid var(--accent);
  box-shadow: 0 6px 24px rgba(29,43,62,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(29,43,62,.12); }
.card .icon {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--main); color: #f0d9a8;
}
.card .icon svg { width: 28px; height: 28px; }

/* メッセージ：大きな引用符と木のすかし */
.message { position: relative; overflow: hidden; }
.message::after {
  content: ""; position: absolute; right: -60px; bottom: -30px; width: 380px; height: 300px;
  background: url("../images/logo.jpg") 100% 50% / auto 100% no-repeat;
  opacity: .06; mix-blend-mode: multiply; pointer-events: none;
}
.message .quote {
  position: relative; max-width: 760px; margin: 0 auto; padding: 8px 0 0 56px;
}
.message .quote::before {
  content: "“"; position: absolute; left: 0; top: -24px;
  font-family: "Noto Serif JP", serif; font-size: 96px; line-height: 1; color: var(--accent); opacity: .5;
}

/* 呼びかけ帯：夕焼けの水面を背景に */
.cta {
  color: #fff;
  background:
    linear-gradient(rgba(20,30,44,.80), rgba(20,30,44,.86)),
    url("../images/hero.jpg") center 85% / cover no-repeat;
  padding: 80px 0;
}
.cta h2 { color: #fff; }
.cta .btn.outline { background: transparent; color: #fff; border-color: #fff; }

/* これからの展開：夕焼けを背景に、葉が舞う */
.future {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20,30,44,.95) 0%, rgba(20,30,44,.80) 50%, rgba(60,42,22,.55) 100%),
    url("../images/hero.jpg") 75% 60% / cover no-repeat;
}
.future .container { position: relative; z-index: 1; }
.leaves { position: absolute; inset: 0; pointer-events: none; }
.leaves span {
  position: absolute; top: -40px; width: 22px; height: 22px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 18C2 8 8 2 18 2c0 10-6 16-16 16z' fill='%23d9b36a'/%3E%3Cpath d='M2 18L14 6' stroke='%23142030' stroke-width='.8'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: leaf-fall linear infinite;
}
.leaves span:nth-child(1) { left: 8%;  animation-duration: 14s; animation-delay: -2s; }
.leaves span:nth-child(2) { left: 24%; animation-duration: 18s; animation-delay: -9s; width: 16px; height: 16px; }
.leaves span:nth-child(3) { left: 46%; animation-duration: 16s; animation-delay: -5s; }
.leaves span:nth-child(4) { left: 63%; animation-duration: 20s; animation-delay: -13s; width: 14px; height: 14px; }
.leaves span:nth-child(5) { left: 80%; animation-duration: 15s; animation-delay: -7s; }
.leaves span:nth-child(6) { left: 92%; animation-duration: 19s; animation-delay: -1s; width: 18px; height: 18px; }
@keyframes leaf-fall {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(-40px, 50vh) rotate(160deg); }
  100% { transform: translate(20px, 110vh) rotate(320deg); }
}
@media (prefers-reduced-motion: reduce) {
  .leaves { display: none; }
  .card, .card:hover { transition: none; transform: none; }
}

/* 会社データ（事実だけを並べる帯） */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(29,43,62,.10);
  margin-top: -48px; position: relative; z-index: 2;
}
.facts div { padding: 24px 16px; text-align: center; border-left: 1px solid var(--border); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 12px; letter-spacing: .15em; color: var(--accent); font-weight: 700; }
.facts dd { margin: 6px 0 0; font-family: "Noto Serif JP", serif; font-size: 22px; color: var(--main); font-weight: 700; line-height: 1.3; }
.facts dd small { display: block; font-family: "Noto Sans JP", sans-serif; font-size: 12px; font-weight: 400; color: var(--text-sub); margin-top: 4px; }

/* お知らせ */
.news { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; border-top: 1px solid var(--border); }
.news li { display: flex; gap: 24px; align-items: baseline; padding: 20px 8px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.news time { font-variant-numeric: tabular-nums; color: var(--text-sub); font-size: 14px; min-width: 6.5em; }
.news .tag { font-size: 12px; color: #fff; background: var(--main); border-radius: 4px; padding: 2px 10px; }
.news p { margin: 0; flex: 1; min-width: 12em; }

/* 代表メッセージ */
.ceo { max-width: 820px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 48px; box-shadow: 0 10px 30px rgba(29,43,62,.08); position: relative; }
.ceo::before {
  content: ""; position: absolute; top: 0; left: 48px; right: 48px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.ceo .sign { text-align: right; margin-top: 32px; }
.ceo .sign span { display: block; font-size: 13px; color: var(--text-sub); }
.ceo .sign strong { font-family: "Noto Serif JP", serif; font-size: 24px; color: var(--main); letter-spacing: .2em; }

/* 沿革 */
.history { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.history::before { content: ""; position: absolute; left: 7.5em; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--accent), rgba(176,138,62,.15)); }
.history li { display: grid; grid-template-columns: 7.5em 1fr; gap: 32px; padding: 14px 0; position: relative; }
.history li::before { content: ""; position: absolute; left: calc(7.5em - 6px); top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--sunset-cream); }
.history time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--main); text-align: right; padding-right: 8px; }
.history .plan::before { background: var(--sunset-cream); border-color: var(--accent); }
.history .plan p { color: var(--text-sub); }
.history p { margin: 0; }

/* よくあるご質問 */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 64px; position: relative; font-weight: 700; color: var(--main); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq .a::before {
  position: absolute; left: 20px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: "Noto Serif JP", serif;
}
.faq summary::before { content: "Q"; top: 16px; background: var(--main); color: #f0d9a8; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 16px; font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .a { position: relative; padding: 0 24px 22px 64px; margin: 0; }
.faq .a::before { content: "A"; top: -4px; background: var(--accent); color: #fff; }

/* フッター：白抜きのロゴ */
.footer-logo { display: block; height: 56px; width: auto; margin-bottom: 12px; filter: invert(1); mix-blend-mode: screen; }
.footer { border-top: 3px solid var(--accent); }

/* ---- スマートフォン表示 ---- */
@media (max-width: 860px) {
  .page-head {
    padding: 52px 0;
    background:
      linear-gradient(90deg, rgba(20,30,44,.92) 0%, rgba(20,30,44,.6) 100%),
      url("../images/hero.jpg") 94% 38% / auto 240% no-repeat;
  }
  .page-head h1 { font-size: 28px; }
  .hero::after { width: 220px; height: 220px; }
  .message::after { width: 240px; height: 190px; }
  .message .quote { padding-left: 40px; }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: -32px; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .facts dd { font-size: 18px; }
  .ceo { padding: 32px 20px; }
  .ceo::before { left: 20px; right: 20px; }
  .history::before { left: 5.5em; }
  .history li { grid-template-columns: 5.5em 1fr; gap: 24px; }
  .history li::before { left: calc(5.5em - 6px); }
  .faq summary { padding: 18px 44px 18px 60px; }
  .message .quote::before { font-size: 72px; top: -16px; }
  .menu-btn { display: block; }
  .logo img { height: 40px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 20px; align-items: stretch; }
  .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav li a.btn { border: 0; margin-top: 12px; text-align: center; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; gap: 36px; }
  .roadmap::before { top: 0; bottom: 0; left: 50%; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, rgba(255,255,255,.35), var(--accent)); }
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .section { padding: 52px 0; }
  .section-title h2 { font-size: 23px; }
  .table th, .table td { display: block; width: 100%; }
  .table th { border-bottom: 0; padding-bottom: 8px; }
  .form { padding: 24px 18px; }
}
