/* 株式会社ＶＦソフトウェア コーポレートサイト 共通スタイル */

:root {
  --white: #ffffff;
  --beige: #f4ede1;
  --beige-2: #ebe1cf;
  --ink: #1f2933;
  --ink-soft: #5b6672;
  --line: #e2ddd3;
  --navy: #1d3557;
  --navy-2: #2c4a74;
  --gold: #b8873f;
  --maxw: 1120px;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --en: "Jost", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.75; letter-spacing: .01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── ヘッダー ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: block; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .08em; }
html[lang="en"] .brand-name { font-family: var(--en); font-weight: 500; letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--navy-2); }
.lang {
  font-family: var(--en); font-size: 13px; letter-spacing: .1em;
  border: 1px solid var(--navy); color: var(--navy); padding: 2px 12px;
}
.lang:hover { background: var(--navy); color: #fff !important; }

.menu-btn {
  display: none; background: none; border: 0; cursor: pointer; padding: 6px;
  font-family: var(--sans); font-size: 10px; color: var(--ink); line-height: 1;
}
.menu-btn span { display: block; width: 28px; height: 2px; background: var(--ink); margin: 0 auto 6px; }

/* ── メッセージ（ヒーロー） ── */
.hero {
  text-align: center; padding: 96px 0 104px;
  background:
    radial-gradient(circle at 20% 0%, rgba(184,135,63,.10), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(29,53,87,.08), transparent 45%),
    linear-gradient(var(--beige), var(--white) 85%);
  position: relative;
}
/* 和紙のような細かい粒を重ねる */
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 40px;
  background-image: radial-gradient(rgba(184,135,63,.35) 1px, transparent 1.4px);
  background-size: 7px 7px; opacity: .5;
}
.hero .en-label { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(26px, 4.2vw, 44px); font-weight: 500; line-height: 1.7;
  letter-spacing: .12em; margin: 0 0 32px;
}
html[lang="en"] .hero h1 { font-family: var(--en); letter-spacing: .02em; line-height: 1.35; font-weight: 400; }
.hero p { font-size: 17px; line-height: 2.2; margin: 0 auto; max-width: 40em; }
html[lang="en"] .hero p { line-height: 1.9; }

/* ── 見出し：英字の小見出し＋日本語の大見出し ── */
.en-label {
  display: block; font-family: var(--en); font-weight: 400;
  font-size: clamp(20px, 2.6vw, 28px); letter-spacing: .14em; color: var(--navy-2);
}
.sec-title { text-align: center; margin: 0 0 56px; }
.sec-title h2 {
  font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; letter-spacing: .14em;
  margin: 2px 0 0; line-height: 1.5;
}
html[lang="en"] .sec-title h2 { font-family: var(--en); font-weight: 400; letter-spacing: .04em; }

section { padding: 96px 0; }
section.beige { background: var(--beige); }

/* ── 最新情報：写真タイル2列 ── */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile {
  display: block; text-decoration: none; background: var(--white);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.tile .ph { aspect-ratio: 16 / 9; overflow: hidden; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover .ph img { transform: scale(1.04); }
.tile .tx { padding: 22px 28px 30px; display: grid; grid-template-columns: 7.5em 1fr; gap: 6px 20px; }
html[lang="en"] .tile .tx { grid-template-columns: 6.5em 1fr; }
.tile time { font-size: 13px; color: var(--ink-soft); padding-top: 4px; }
.tile h3 { font-size: 18px; font-weight: 500; margin: 0; line-height: 1.6; color: var(--navy); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.tile p { grid-column: 1 / -1; margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.9; }
/* 右下の三角の飾り */
.tile::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  border-style: solid; border-width: 0 0 26px 26px;
  border-color: transparent transparent var(--beige-2) transparent;
}

/* ── 特集 ── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature .ph img { border-radius: 14px; box-shadow: 0 20px 40px -24px rgba(29,53,87,.45); }
.feature h3 { font-size: 24px; font-weight: 700; margin: 0 0 20px; letter-spacing: .08em; }
html[lang="en"] .feature h3 { font-family: var(--en); font-weight: 500; letter-spacing: .02em; }
.feature p { margin: 0 0 16px; line-height: 2.2; }
html[lang="en"] .feature p { line-height: 1.85; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; padding: 0; list-style: none; }
.chips li { font-size: 13px; background: var(--white); border: 1px solid var(--beige-2); padding: 2px 14px; border-radius: 999px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  border: 1px solid var(--navy); color: var(--navy); padding: 12px 32px; font-size: 14px;
  background: var(--white); transition: background .2s, color .2s;
}
.btn::after { content: "→"; }
.btn:hover { background: var(--navy); color: #fff; }

/* ── 製品 ── */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
.products.three { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.product > h3 { margin-bottom: 0; }
.product .ph { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 20px; }
.product .ph img { width: 100%; height: 100%; object-fit: cover; }
.product .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product h3 { font-size: 21px; font-weight: 700; margin: 0; letter-spacing: .06em; }
html[lang="en"] .product h3 { font-family: var(--en); font-weight: 500; letter-spacing: .02em; }
.status { font-size: 12px; color: var(--navy-2); border: 1px solid var(--navy-2); padding: 0 10px; white-space: nowrap; }
.product .sub { font-size: 13px; color: var(--ink-soft); margin: 2px 0 10px; }
.product p { margin: 0; font-size: 15px; line-height: 1.95; }

/* ── 私たちの考え方 ── */
.philosophy { text-align: center; }
.philosophy .lead { font-size: clamp(20px, 2.6vw, 26px); font-weight: 500; letter-spacing: .12em; line-height: 2; margin: 0 0 56px; }
html[lang="en"] .philosophy .lead { font-family: var(--en); letter-spacing: .02em; line-height: 1.6; font-weight: 400; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; }
.value { background: var(--white); padding: 28px 24px; border-top: 3px solid var(--navy); }
.value .n { font-family: var(--en); font-size: 28px; color: var(--gold); line-height: 1; }
.value h3 { font-size: 17px; margin: 12px 0 8px; letter-spacing: .06em; }
.value p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.9; }

/* ── 会社概要 ── */
.profile-note { max-width: 880px; margin: 0 auto 24px; padding: 14px 20px; background: var(--beige); font-size: 14px; line-height: 1.9; }
.profile { width: 100%; max-width: 880px; margin: 0 auto; border-collapse: collapse; font-size: 15px; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 22px 8px; border-bottom: 1px solid var(--line); }
.profile tr:first-child th, .profile tr:first-child td { border-top: 1px solid var(--line); }
.profile th { width: 200px; font-weight: 500; color: var(--navy); }
.profile td small { color: var(--ink-soft); }
.history-title { text-align: center; font-size: 20px; font-weight: 500; letter-spacing: .14em; margin: 72px 0 24px; }
html[lang="en"] .history-title { font-family: var(--en); letter-spacing: .06em; }
.history { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; }
.history li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 18px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.history time { color: var(--navy); font-weight: 500; }

/* ── お問い合わせ ── */
.contact-box { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-item { background: var(--white); text-align: center; padding: 36px 24px; }
.contact-item .k { font-family: var(--en); font-size: 14px; letter-spacing: .2em; color: var(--navy-2); }
.contact-item .v { font-size: 24px; margin-top: 8px; word-break: break-all; letter-spacing: .04em; }
.contact-item .v a { text-decoration: none; }
.contact-item .v a:hover { color: var(--navy-2); }
.contact-note { text-align: center; font-size: 14px; color: var(--ink-soft); margin: 0 0 40px; }

/* ── フッター ── */
.site-footer { background: var(--navy); color: #dce6f2; padding: 56px 0 40px; font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.site-footer .brand-name { color: #fff; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.copy { width: 100%; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; margin-top: 12px; opacity: .75; }

/* ── 表示時の動き ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
  .reveal.on { opacity: 1; transform: none; }
}

/* ── タブレット・スマートフォン ── */
@media (max-width: 900px) {
  .products.three { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav .lang { border: 0; border-top: 1px solid var(--line); padding: 16px 24px; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { letter-spacing: .06em; }
  .hero p { font-size: 15px; text-align: left; }
  section { padding: 72px 0; }
  .sec-title { margin-bottom: 40px; }
  .tiles, .products, .products.three, .contact-box { grid-template-columns: 1fr; }
  .tile .tx { grid-template-columns: 1fr; padding: 18px 20px 26px; }
  .values { grid-template-columns: 1fr; }
  .profile th { width: 92px; }
  .history li { grid-template-columns: 1fr; gap: 2px; }
}
