/* ============================================
   株式会社肝付 公式サイト 共通スタイル
   Palette: Navy #0a1f44 / Paper #f7f5f0 / Ink #0f1419
============================================ */

:root {
  --navy: #0a1f44;
  --navy-2: #142a55;
  --navy-3: #1c3a75;
  --ink: #0f1419;
  --ink-2: #3a3f47;
  --paper: #f7f5f0;
  --paper-2: #efece3;
  --line: #d9d5c8;
  --line-2: #e8e5db;
  --gold: #b8935a;
  --danger: #b23a2b;

  --serif: "Noto Serif JP", "Yu Mincho", "游明朝", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --display: "Instrument Serif", "Noto Serif JP", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.75;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* =================== HEADER =================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
}

.site-header .inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 900;
  color: var(--navy);
}
.brand .mark {
  width: 34px; height: 34px;
  background: var(--navy);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  border-radius: 2px;
  align-self: center;
}
.brand .name-jp {
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand .name-en {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  transition: color .2s;
}
.nav a:hover { color: var(--navy); }
.nav a.current {
  color: var(--navy);
}
.nav a.current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--navy);
}

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
  cursor: pointer;
  transition: all .2s;
  border-radius: 2px;
}
.btn:hover { background: var(--navy-3); border-color: var(--navy-3); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--paper); }
.btn.lg { padding: 18px 32px; font-size: 15px; }
.btn.xl { padding: 22px 40px; font-size: 16px; }
.btn .arrow { font-family: var(--display); font-style: italic; font-weight: 400; }

.tel-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}
.tel-cta .lbl { font-size: 10px; color: var(--ink-2); letter-spacing: 0.15em; }
.tel-cta .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.mobile-only { display: none; }
@media (max-width: 900px) {
  .nav, .header-cta .tel-cta, .header-cta .btn:not(.mobile-cta) { display: none; }
  .mobile-only { display: inline-flex; }
}

/* =================== TYPO =================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
  font-size: 15px;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--navy);
}
.eyebrow .num {
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  color: var(--ink-2);
  letter-spacing: 0.1em;
}

.h-display {
  font-family: var(--serif);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0 0 24px;
}

.h1-hero { font-size: clamp(38px, 6vw, 84px); line-height: 1.15; }
.h1 { font-size: clamp(32px, 4.4vw, 56px); }
.h2 { font-size: clamp(26px, 3.2vw, 40px); }
.h3 { font-size: clamp(20px, 2.2vw, 26px); }

.lead {
  font-size: 16px;
  line-height: 2;
  color: var(--ink-2);
  max-width: 620px;
  text-wrap: pretty;
}

/* Section base */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.section.tight { padding: clamp(60px, 7vw, 100px) 0; }
.section.dark {
  background: var(--navy);
  color: var(--paper);
}
.section.dark .h-display { color: var(--paper); }
.section.dark .lead { color: rgba(247,245,240,0.7); }
.section.dark .eyebrow { color: var(--paper); }
.section.dark .eyebrow::before { background: var(--paper); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.section-head.split {
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 60px;
}
@media (max-width: 780px) {
  .section-head.split { grid-template-columns: 1fr; }
}

/* =================== PLACEHOLDER (縞) =================== */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(10,31,68,0.08) 0 1px,
      transparent 1px 12px
    ),
    var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.ph.dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.06) 0 1px,
      transparent 1px 12px
    ),
    var(--navy);
  color: rgba(247,245,240,0.7);
  border-color: rgba(255,255,255,0.12);
}
.ph .ph-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  background: rgba(247,245,240,0.85);
  border: 1px solid var(--line);
  text-align: center;
  max-width: 80%;
}
.ph.dark .ph-label {
  background: rgba(10,31,68,0.7);
  border-color: rgba(255,255,255,0.15);
  color: rgba(247,245,240,0.85);
}
.ph .ph-corner {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  opacity: 0.6;
}
.ph.dark .ph-corner { color: rgba(247,245,240,0.6); }

/* =================== FOOTER =================== */
.site-footer {
  background: var(--navy);
  color: rgba(247,245,240,0.85);
  padding: 80px 0 30px;
  font-size: 14px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 900px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer .cols { grid-template-columns: 1fr; }
}
.site-footer h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--paper);
  font-size: 14px;
  margin: 0 0 20px;
  letter-spacing: 0.06em;
}
.site-footer .brand {
  color: var(--paper);
}
.site-footer .brand .name-en { color: rgba(247,245,240,0.6); }
.site-footer .mark { background: var(--paper); color: var(--navy); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.site-footer address {
  font-style: normal;
  line-height: 1.9;
  color: rgba(247,245,240,0.7);
  font-size: 13px;
}
.site-footer address .tel {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--paper);
  display: block;
  margin: 8px 0 2px;
}
.site-footer .footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.site-footer .social-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: rgba(247,245,240,0.7);
  border: 1px solid rgba(247,245,240,0.2);
  border-radius: 50%;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.site-footer .social-icon:hover {
  color: var(--paper);
  border-color: var(--paper);
  transform: translateY(-2px);
  text-decoration: none;
}
.site-footer .social-icon.line:hover {
  background: #06c755;
  border-color: #06c755;
  color: #ffffff;
}

.site-footer .fine {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(247,245,240,0.55);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
@media (max-width: 560px) {
  .site-footer .fine { flex-direction: column; }
}

/* =================== UTIL =================== */
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-radius: 2px;
}
.tag.navy { background: var(--navy); border-color: var(--navy); color: var(--paper); }

/* animations */
@keyframes fadeup {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fadeup { animation: fadeup .9s cubic-bezier(.2,.7,.2,1) both; }
.fadeup.d1 { animation-delay: .1s; }
.fadeup.d2 { animation-delay: .2s; }
.fadeup.d3 { animation-delay: .3s; }
.fadeup.d4 { animation-delay: .4s; }

@keyframes kenburns {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ==== Floating LINE + TEL buttons (bottom-right on mobile) ==== */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.float-cta > * { pointer-events: auto; }

.float-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 10px 24px -6px rgba(10,15,20,0.35);
  transition: transform .2s, box-shadow .2s;
}
.float-cta a:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(10,15,20,0.45); }

.float-cta .line-fab {
  background: #06c755;
  color: #ffffff;
}
.float-cta .tel-fab {
  background: var(--navy);
  color: var(--paper);
}
.float-cta .fab-icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: currentColor;
}

/* Desktop: hide floating; header has its own CTAs */
@media (min-width: 901px) {
  .float-cta .tel-fab { display: none; }
}
@media (max-width: 480px) {
  .float-cta a { padding: 12px 14px; font-size: 12px; }
}
