:root{
  --bg:#ebf4ff; --text:#12223a; --muted:#4b5b75; --border:rgba(120,140,180,.35);
  --nav-h:64px; --container-w:min(1120px,92vw);
  --c1:#ffffff; --c2:#ffffff; --c3:#ffffff; --c4:#ffffff; --c5:#ffffff;
  --glass-top: rgba(255,255,255,.58); --glass-bottom: rgba(255,255,255,.32);
  --shadow-lg: 0 18px 40px rgba(40,60,100,.14);
}
*{box-sizing:border-box}
html,body{height:100%}
body{ margin:0; background:var(--bg); color:var(--text); font-family:'Shippori Mincho B1', serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; 
  background-image:
    radial-gradient(1200px 820px at 82% -14%, rgba(200,220,255,.58), transparent 62%);
  background-attachment: fixed;
}

/* 固定ガラスナビ（左右端まで） */
.nav{ position:fixed; inset:0 0 auto 0; height:var(--nav-h); z-index:50; display:flex; align-items:center; backdrop-filter:saturate(1.35) blur(12px); -webkit-backdrop-filter:saturate(1.35) blur(12px); background:linear-gradient(180deg, var(--glass-top) 0%, var(--glass-bottom) 100%); border-bottom:1px solid var(--border); box-shadow:0 6px 18px rgba(20,30,60,.06); }
.nav{ position:fixed; }
.nav::before{ content:""; position:absolute; top:0; bottom:0; left:0; width:min(48vw, 420px); pointer-events:none; background:linear-gradient(90deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.52) 46%, rgba(255,255,255,0) 100%); }
.nav .inner{ width:var(--container-w); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 8px; }
.nav .inner{ position:relative; z-index:1; }
.brand{ font-family:'Shippori Mincho B1', serif; font-weight:700; letter-spacing:.02em; text-shadow:0 1px 0 rgba(255,255,255,.6); }
.brand a{ color:var(--text); text-decoration:none }
.brand .logo{ height: 32px; width: auto; margin-top: 4px; }
.menu{ display:flex; gap:20px; align-items:center; }
.menu a{ text-decoration:none; color:var(--muted); font-weight:600; font-size:14px; padding:8px 10px; border-radius:12px; }
.menu a:hover{ background:rgba(255,255,255,.6); color:var(--text); }
.menu a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;  /* 透明な枠線を初期状態で追加 */
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;  /* トランジションを追加 */
}

.menu a:hover {
  background: rgba(255,255,255,.6);
  color: var(--text);
  border-color: var(--border);  /* ホバー時に枠線を表示 */
}

/* ホバー時の下線はそのまま維持 */
.menu a::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, #1f83ab, #7eb9c7, #b3d3ff);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity .3s ease, transform .3s ease;
}

.menu a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ヒーロー */
.hero { 
  position: relative; 
  min-height: 100svh; 
  overflow: visible; /* 区切り線が見えるように変更 */
  padding-top: calc(var(--nav-h) + clamp(48px,8vh,96px)); 
  padding-bottom: clamp(48px,8vh,96px); 
  display: grid; 
  place-items: center; 
}

/* ヒーロー下の区切り線 */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 92vw);
  height: 3px;
  background: linear-gradient(90deg, 
    rgba(0, 0, 0, 0), 
    rgba(120, 140, 180, .35) 20%, 
    rgba(120, 140, 180, .35) 80%, 
    rgba(0, 0, 0, 0));
  opacity: .25;
  pointer-events: none;
}

#heroGL{ position:absolute; inset:0; width:100%; height:100%; display:block; z-index:1; }

.hero .content{ position:relative; z-index:2; width:var(--container-w); margin:0 auto; display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(16px,4vw,48px); align-items:center; }
.eyebrow{ font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:#5d6c85; font-size:12px; margin-bottom:10px; }
.title{ font-family:'Shippori Mincho B1', serif; font-weight:700; font-size:clamp(28px,5.2vw,56px); line-height:1.12; text-shadow:0 10px 6px rgba(80,110,180,.06), 0 1px 0 rgba(255,255,255,.75); letter-spacing:.01em; }
.lead{ margin-top:14px; color:var(--muted); font-size:clamp(14px,2.3vw,18px); line-height:1.8; max-width:52ch; }
.title .conn{ font-size:0.75em; display:inline-block; transform:translateY(-0.06em); letter-spacing:.02em; opacity:.92; }

/* ===== Sections ===== */
.section{ padding:40px 0; scroll-margin-top:calc(var(--nav-h) + 20px); }
.section:not(:first-of-type)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(960px, 92vw);
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(120, 140, 180, .35) 20%, rgba(120, 140, 180, .35) 80%, rgba(0, 0, 0, 0));
    opacity: .25;
}
.section::after {
  content: "";
  display: block;
  width: var(--container-w);    /* コンテナ幅に揃える */
  max-width: 92vw;              /* レスポンシブに対応 */
  margin: 100px auto 0;          /* 上下余白を調整 */
  border-bottom: 1px solid var(--border);
  border-block-color: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(120, 140, 180, .35) 20%, rgba(120, 140, 180, .35) 80%, rgba(0, 0, 0, 0));
  opacity: .25;
}
.section:last-of-type::after {
  content: none; /* 最後は不要 */
}
.section .container{ width:var(--container-w); margin:0 auto; }
.sec-head{ margin:0 0 8px; font-weight:700; font-size:clamp(20px,3vw,28px); position:relative; display:inline-block; padding:0 0 .5em 0; }
.sec-head::after{ content:""; position:absolute; left:0; bottom:0; height:2px; width:100%; background:linear-gradient(90deg,#1f83ab,#7eb9c7,#b3d3ff); opacity:.85; border-radius:2px; }
.sec-sub{ margin:0 0 22px; color:var(--muted); max-width:none; width:100%; position:relative; padding-left:12px; }
.sec-sub::before{ content:""; position:absolute; left:0; top:.45em; bottom:.45em; width:2px; border-radius:1px; background:linear-gradient(180deg,var(--c2),var(--c5)); opacity:.55; }

.cta{ display:flex; gap:12px; flex-wrap:wrap; }
.btn{ position:relative; display:inline-flex; align-items:center; gap:.6em; padding:.64rem 1rem; border-radius:14px; border:1px solid var(--border); background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.65)); box-shadow:0 8px 18px rgba(20,30,60,.08); font-weight:600; color:var(--text); text-decoration:none; overflow:hidden; }
.btn.primary{ background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.74)); }
.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }
.btn::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%); transform:translateX(-120%); }
.btn:hover::after{ transform:translateX(120%); transition:transform .8s ease; }

/* Cards */
.cards{ width:var(--container-w); margin:0 auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:22px; }
.card{ position:relative; background:rgba(255,255,255,.65); border:1px solid var(--border); border-radius:16px; padding:20px; box-shadow:0 8px 18px rgba(20,30,60,.07); overflow:hidden; transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease, background-color .35s ease; }
.card:hover{ transform:translateY(-2px); box-shadow:0 16px 36px rgba(20,30,60,.12); border-color:rgba(120,140,180,.5); background:rgba(255,255,255,.7); }
.card.no-hover:hover{ transform:none; box-shadow:0 8px 18px rgba(20,30,60,.07); border-color:var(--border); background:rgba(255,255,255,.65); }
.card::before{ content:""; position:absolute; inset:0; border-radius:16px; pointer-events:none; background:linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,0)); }
.card .ph{ aspect-ratio:16/9; border-radius:12px; background:linear-gradient(145deg, var(--c1), var(--c3)); border:1px solid var(--border); margin-bottom:12px; overflow:hidden; }
.card .body{ padding:6px 4px 2px; }
.mini{ color:var(--muted); font-size:14px; }

/* Company key-value table */
table.kv{ 
  width:100%; 
  border-collapse:separate; 
  border-spacing:0; 
  position:relative; 
  border:1px solid rgba(120,140,180,.6); 
  border-radius:8px; 
  background:rgba(255,255,255,.65) !important; 
  margin:8px 0;
  overflow:hidden;
}
table.kv th, table.kv td{ 
  text-align:left; 
  padding:12px 15px; 
  border-bottom:1px solid var(--border);
  background:inherit;
}
table.kv tr:first-child th:first-child{
  border-top-left-radius:7px;
}
table.kv tr:first-child th:last-child{
  border-top-right-radius:7px;
}
table.kv tr:last-child td:first-child{
  border-bottom-left-radius:7px;
}
table.kv tr:last-child td:last-child{
  border-bottom-right-radius:7px;
}
table.kv tr:nth-child(even) td{
  background:rgba(255,255,255,.5);
}
table.kv tr:last-child th,
table.kv tr:last-child td{
  border-bottom:none;
}
table.kv th{ width:28%; color:var(--muted); font-weight:600; background:rgba(255,255,255,.65); }
table.kv tr:nth-child(even){ background:linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.42)); }
table.kv th{ width:28%; color:var(--muted); font-weight:600; }

/* Shops (店舗一覧) */
.shops{ width:var(--container-w); margin:0 auto; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px; }
.shop{ display:grid; grid-template-columns:88px 1fr; gap:12px; align-items:center; background:rgba(255,255,255,.6); border:1px solid var(--border); border-radius:16px; padding:12px; box-shadow:0 8px 18px rgba(20,30,60,.07); transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.shop:hover{ transform:translateY(-2px); box-shadow:0 14px 28px rgba(20,30,60,.12); border-color:rgba(120,140,180,.48); }
.shop .ph{ inline-size:88px; block-size:88px; border-radius:12px; background:linear-gradient(145deg, var(--c1), var(--c2)); border:1px solid var(--border); }
.shop .meta{ display:grid; gap:6px; }
.shop .meta small{ color:var(--muted); }
.shop .links{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }

/* CEO Greeting (代表挨拶) */
.ceo{ display:grid; grid-template-columns:96px 1fr; gap:16px; align-items:center; padding:16px; background:rgba(255,255,255,.58); border:1px solid var(--border); border-radius:16px; box-shadow:0 8px 18px rgba(20,30,60,.07); }
.ceo .avatar{ inline-size:96px; block-size:96px; border-radius:50%; background:
  radial-gradient(80px 80px at 30% 25%, rgba(255,255,255,.35), transparent 60%),
  linear-gradient(145deg, var(--c1), var(--c3));
  border:1px solid var(--border); }
.ceo h3{ margin:0 0 6px; font-size:18px; }
.ceo p{ margin:0; color:var(--muted); line-height:1.9; }

/* Jobs feature card */
.job-card{ display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; background:rgba(255,255,255,.58); border:1px solid var(--border); border-radius:16px; padding:16px; box-shadow:0 8px 18px rgba(20,30,60,.07); }
.job-hero{ aspect-ratio:4/3; border-radius:12px; background:linear-gradient(145deg, var(--c1), var(--c3)); border:1px solid var(--border); margin-bottom:12px; }
.job-body h3{ margin:4px 0 20px; font-size:20px; }
.chips{ display:flex; gap:8px; flex-wrap:wrap; margin:6px 0 10px; }
.chip{ font-size:12px; padding:4px 8px; border-radius:999px; background:rgba(255,255,255,.7); border:1px solid var(--border); }
.ul-clean{ padding-left:1.2em; margin:0; }
.ul-clean li{ margin:.25em 0; }
.job-side{ background:rgba(255,255,255,.5); border:1px solid var(--border); border-radius:12px; padding:12px; }
.kv.kv-compact th, .kv.kv-compact td{ padding:8px 10px; }

/* Footer */
.footer{ position:relative; padding:48px 0 24px; background:linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.55)); backdrop-filter:saturate(1.2) blur(10px); -webkit-backdrop-filter:saturate(1.2) blur(10px); border-top:1px solid var(--border);
    margin-top: 100px;}
.footer .container{ width:var(--container-w); margin:0 auto; }
.footer .grid{ display:grid; grid-template-columns:1.2fr .9fr .9fr; gap:24px; align-items:start; }
.footer .logo{ font-weight:700; font-size:18px; }
.footer .tag{ color:var(--muted); margin-top:6px; text-shadow:0 1px 0 rgba(255,255,255,.6); }
.footer h4{ margin:0 0 8px; font-size:14px; color:#5d6c85; letter-spacing:.06em; }
.footer ul{ list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.footer a{ color:var(--text); text-decoration:none; }
.footer a:hover{ text-decoration:underline; }
.footer .bottom{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:22px; padding-top:16px; border-top:1px solid var(--border); }
.footer .small{ color:var(--muted); font-size:12px; }

/* 共通のカードベーススタイル */
.card-base {
  background: rgba(255,255,255,.58);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(20,30,60,.07);
}

/* 共通の画像プレースホルダー */
.gradient-ph {
  background: linear-gradient(145deg, var(--c1), var(--c3));
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* お問い合わせフォームスタイル */
.contact-form {
  max-width: 800px;
  margin: 40px 0 0 0;
  padding: 30px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.required {
  color: #e74c3c;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
  font-family: inherit;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 6px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.radio-item label {
  margin-bottom: 0;
  font-weight: normal;
  cursor: pointer;
}

.contact-form input[type="radio"] {
  margin: 0;
  accent-color: #3498db;
}

.contact-submit-btn {
  margin-top: 30px;
  width: 200px;
  display: block;
  margin-left: 0;
  margin-right: auto;
  padding: 14px 24px !important;
  font-size: 16px !important;
}

.contact-note {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255,255,255,0.5);
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.contact-note a {
  color: #3498db;
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

.hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
  /* ナビゲーションをモバイルで固定しない */
  .nav {
    position: relative;
  }
  
  /* ヒーローセクションのパディング調整 */
  .hero {
    padding-top: 0;
  }
  
  .hero .content {
    grid-template-columns: 1fr;
  }
  
  .shops {
    grid-template-columns: 1fr;
  }
  
  .job-card {
    grid-template-columns: 1fr;
  }
  
  .footer .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .contact-form {
    margin-left: -8px;
    margin-right: -8px;
    padding: 20px;
  }
  
  /* スマホ版ではメニューを非表示 */
  .menu {
    display: none;
  }
}
