/* ===== Base ===== */
:root{
  --brand: #0f5d7a;
  --brand-2: #0a3e51;
  --accent: #f2b705;
  --ink: #1a1a1a;
  --muted: #666;
  --bg: #ffffff;
  --container: 1120px;

  /* Header sizing for no-wrap on mobile */
  --logo-w: clamp(80px, 20vw, 120px);
  --nav-fz: clamp(12px, 1.6vw, 20px);
  --nav-gap: clamp(0px, 0.8vw, 60px);  /* メニュー同士の隙間（スマホで0まで可） */
  --zh-fz: clamp(12px, 1.6vw, 16px);
}

/* スマホ専用でさらに強制的にロゴを大きく＆一列維持 */
@media (max-width: 600px){
  :root{ --nav-gap: 0px; } /* スマホではメニュー間隔を確実に0に */
  .logo img{ width: 170px; height: auto; min-width: 50px; }
}

/* ★ PCだけで“確実に広がる”よう強化 */
@media (min-width: 981px){
  :root{ --nav-gap: 72px; } /* PCでは広めに固定 */
  .main-nav ul{
    gap: var(--nav-gap) !important;
    column-gap: var(--nav-gap) !important;
  }
  .main-nav a{ padding-inline: 14px; }
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
img{ max-width:100%; height:auto; display:block; }
a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }
.container{ width:min(100%, var(--container)); margin-inline:auto; padding-inline:20px; }

/* Skip link */
.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{ position:static; width:auto; height:auto; padding:8px 12px; background:#000; color:#fff; }

/* ===== Header (No hamburger; always one-line) ===== */
.site-header{
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}
.header-inner{
  display:flex; align-items:center; gap: 0px; /* ロゴとナビの間をタイトに */
  white-space: nowrap; padding-block: 10px;
}
.logo img{ width: var(--logo-w); height: auto; }

.main-nav ul{
  display:flex; align-items:center;
  gap: var(--nav-gap); column-gap: var(--nav-gap);
  list-style:none; margin:0; padding:0;
  font-size: var(--nav-fz);
  flex-wrap: nowrap;
}
.main-nav a{ padding: 6px 6px; border-radius: 4px; }
.main-nav .current a{ font-weight: 700; color: var(--brand-2); }
.main-nav .contact{ color:#fff; background: var(--brand); padding: 6px 10px; }
.main-nav .contact:hover{ background: var(--brand-2); text-decoration: none; }

.lang{ margin-left:auto; }
.btn-zh{
  display:inline-block; background: #fff; color: var(--brand-2);
  border: 1.5px solid var(--brand-2); padding: 6px 10px; border-radius: 999px;
  font-weight: 700; font-size: var(--zh-fz); letter-spacing: .04em;
}
.btn-zh:hover{ background: var(--brand-2); color:#fff; text-decoration: none; }

/* ヘッダーの余白調整と圧縮（スマホでも横一列を維持） */
@media (max-width: 768px){
  .header-inner{ gap: 4px; padding-block: 8px; }
  .main-nav ul{ gap: var(--nav-gap); column-gap: var(--nav-gap); }
  .main-nav a{ padding:4px 4px; }
}
@media (max-width: 600px){ .header-inner{ gap: 2px; } }

/* ===== Hero Slider (CSS only auto-fade + nav dots) ===== */
.hero{ position: relative; background:#000; }
.hero::after{ content:""; display:block; height: clamp(6px, 0.9vw, 12px); }

.slider{
  position:relative; width:100%;
  aspect-ratio: 16/7; max-height: 680px; min-height: 220px;
  overflow:hidden;
}
.s-anchor{ position:absolute; top:0; left:0; width:1px; height:1px; overflow:hidden; }

.slides{ position:relative; width:100%; height:100%; }
.slide{
  position:absolute; inset:0; opacity:0; transition: opacity .8s linear;
  animation: fadeCycle 15s infinite;
}
.slide img{ width:100%; height:100%; object-fit: cover; }

.slide figcaption{
  position:absolute; left:50%; bottom:4%; transform: translateX(-50%);
  color:#fff; background: rgba(0,0,0,.35);
  padding: .5rem .75rem; border-radius: 6px; font-weight:600;
  display:inline-block; white-space: nowrap;
}

/* 3枚分のディレイ（各5秒） */
.slide.s1{ animation-delay: 0s; }
.slide.s2{ animation-delay: 5s; }
.slide.s3{ animation-delay:10s; }

/* オートフェード（15s） */
@keyframes fadeCycle{
  0%{ opacity:0; }
  5%{ opacity:1; }
  30%{ opacity:1; }
  35%{ opacity:0; }
  100%{ opacity:0; }
}

/* :targetで手動表示中は自動アニメ停止 */
#slide1:target ~ .slides .slide,
#slide2:target ~ .slides .slide,
#slide3:target ~ .slides .slide{ opacity:0; animation: none; }
#slide1:target ~ .slides .s1{ opacity:1; }
#slide2:target ~ .slides .s2{ opacity:1; }
#slide3:target ~ .slides .s3{ opacity:1; }

/* ===== Dots: 即時切替（アニメのにじみ無し） ===== */
.dots{
  position:absolute; left:50%; bottom:10px; transform: translateX(-50%);
  display:flex; gap:10px;
}
.dots a{
  position: relative;
  width:12px; height:12px; border-radius:50%;
  background: rgba(255,255,255,.35);  /* 非アクティブ */
  display:inline-block; outline: none; overflow: hidden;
}
.dots a:hover, .dots a:focus{
  background: rgba(255,255,255,.55);
  box-shadow:0 0 0 3px rgba(255,255,255,.35);
}

/* 白丸レイヤー。opacity を steps で即時切替 */
.dots a::after{
  content:""; position:absolute; inset:0; border-radius:50%;
  background:#fff; opacity:0;
}

/* 15s周期／5sごとにパチッと切替（0-5s/5-10s/10-15s） */
.dots a:nth-of-type(1)::after{ animation: dot1 15s infinite steps(1, end); }
.dots a:nth-of-type(2)::after{ animation: dot2 15s infinite steps(1, end); }
.dots a:nth-of-type(3)::after{ animation: dot3 15s infinite steps(1, end); }

@keyframes dot1{
  0%{opacity:1;} 33.333%{opacity:0;} 100%{opacity:0;}
}
@keyframes dot2{
  0%{opacity:0;} 33.333%{opacity:1;} 66.666%{opacity:0;} 100%{opacity:0;}
}
@keyframes dot3{
  0%{opacity:0;} 66.666%{opacity:1;} 100%{opacity:1;}
}

/* 手動操作（:target）時は自動を止め、該当ドットのみ点灯 */
#slide1:target ~ .dots a::after,
#slide2:target ~ .dots a::after,
#slide3:target ~ .dots a::after{ animation: none; opacity: 0; }
#slide1:target ~ .dots a[href="#slide1"]::after{ opacity:1; }
#slide2:target ~ .dots a[href="#slide2"]::after{ opacity:1; }
#slide3:target ~ .dots a[href="#slide3"]::after{ opacity:1; }

/* ===== Sections ===== */
.sec-ttl{
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3.2vw, 36px);
  color: var(--brand-2);
  margin: 1.2em 0 .6em;
}
.intro p{ margin: .4em 0 1.2em; color: var(--muted); }
.features{ display:grid; gap:20px; grid-template-columns: repeat(3, 1fr); }
.card{ background:#fff; border:1px solid #eee; border-radius: 10px; overflow:hidden; }
.card h3{ margin: .8em .9em .1em; font-size: 1.1rem; }
.card p{ margin: 0 .9em 1.2em; color: var(--muted); }

.cta-band{
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color:#fff; padding: 34px 0; margin-top: 30px;
}
.cta-band .lead{ font-size: clamp(16px, 2.2vw, 20px); margin: 0 .75rem .75rem 0; }
.btn-primary{
  display:inline-block; background:#fff; color: var(--brand-2);
  padding: 10px 18px; border-radius: 999px; font-weight:700;
}
.btn-primary:hover{ text-decoration: none; background: #f3f6f7; }

/* ===== Page header / tables ===== */
.page-header{ padding-top: 18px; }
.page-ttl{ font-family: "Playfair Display", serif; font-size: clamp(28px, 3.6vw, 42px); margin: .2em 0 .1em; color: var(--brand-2); }
.page-lead{ color: var(--muted); margin-bottom: 1.2em; }

.two-col{ display:grid; grid-template-columns: 1.1fr .9fr; gap:24px; }
.dl-table{ border:1px solid #eee; border-radius: 10px; overflow:hidden; }
/* 行レイアウト（PC基準） */
.dl-table > div{ display:grid; grid-template-columns: 140px 1fr; padding: 12px 14px; border-bottom: 1px solid #eee; }
.dl-table > div:last-child{ border-bottom: 0; }
.dl-table dt{ color:#555; }
.timeline{ list-style:none; margin:0; padding:0; }
.timeline li{ padding: 6px 0; }
.timeline span{ display:inline-block; min-width: 4.5em; color:#555; }

/* スマホで会社概要のdt幅を80pxに */
@media (max-width: 600px){
  .dl-table > div{ grid-template-columns: 80px 1fr; padding: 8px 10px; }
}

/* Tours grid */
.tour-grid{ display:grid; gap:22px; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; }
.tour{ background:#fff; border:1px solid #eee; border-radius: 12px; overflow:hidden; display:flex; flex-direction: column; }
.tour-body{ padding: 14px; display:flex; flex-direction: column; gap: 8px; }
.tags{ display:flex; gap:8px; list-style:none; margin:0; padding:0; color:#666; font-size:.9rem; }
.btn-outline{
  align-self: flex-start;
  border: 1.5px solid var(--brand-2); color: var(--brand-2);
  padding: 8px 12px; border-radius: 8px; font-weight: 700;
}
.btn-outline:hover{ background: var(--brand-2); color:#fff; text-decoration: none; }

/* ===== Footer ===== */
.site-footer{ margin-top: 40px; border-top: 1px solid #eee; background:#fafafa; }
.site-footer .container{ padding-block: 18px; }
.footer-nav{
  display:flex; flex-wrap: wrap; gap: 12px 18px; /* スマホ時は横並びで自動改行 */
  list-style:none; margin:0 0 10px 0; padding:0;
}
.copy{ color:#888; }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .features{ grid-template-columns: repeat(2, 1fr); }
  .two-col{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .features{ grid-template-columns: 1fr; }
  .tour-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .tour-grid{ grid-template-columns: 1fr; }
}

/* ===== Accessibility focus ===== */
a:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Map (about page) ===== */
.map-wrap iframe{ width: 100%; height: 450px; }
@media (max-width: 768px){ .map-wrap iframe{ height: 300px; } }

/* 現在ページのリンクを強調（アクセシビリティ対応） */
.main-nav a[aria-current="page"]{ font-weight: 700; color: var(--brand-2); }

/* スマホ時のメニュー文字を小さく（必要なら残す） */
@media (max-width: 600px){ :root{ --nav-fz: 11px; } }

.btn-footer{
  display:inline-block; background: var(--brand); color:#fff;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; line-height: 1;
  text-decoration: none; border: 1.5px solid transparent; transition: background .25s, border-color .25s;
}
.btn-footer:hover{ background: var(--brand-2); border-color: var(--brand-2); text-decoration: none; }

