/* =========================================
   Variables
   ========================================= */
:root {
  --color-bg: #f4f5f7;
  --color-surface: #ffffff;
  --color-dark: #10202f;
  --color-dark-2: #182c3d;
  --color-text: #202b36;
  --color-muted: #66727e;
  --color-border: #dfe3e8;
  --color-primary: #f0a202;
  --color-primary-dark: #cf8a00;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Barlow Condensed', sans-serif;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(16, 32, 47, 0.08);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
.inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.inner--narrow { max-width: 820px; }

.sec-eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.18em;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
  text-align: center;
}
.sec-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  text-align: center;
  margin: 0 0 40px;
  letter-spacing: 0.02em;
}
.sec-note {
  text-align: center;
  color: var(--color-muted);
  font-size: 13px;
  margin-top: -24px;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: #14202e;
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-dark);
}
.btn-outline:hover { background: var(--color-dark); color: #fff; transform: translateY(-2px); }

/* =========================================
   Header
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
  max-width: 1400px;
}
.logo-text {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--color-dark);
}
.site-nav { flex: 1; min-width: 0; }
.footer-nav-list {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}
.nav-list a {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { border-color: var(--color-primary); }
.nav-list li { position: relative; }
.nav-list .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-list .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: none;
}
.nav-list .sub-menu a:hover { background: var(--color-bg); }
.nav-list .sub-menu .sub-menu { top: 0; left: 100%; }
.header-contact-btn { flex-shrink: 0; padding: 10px 24px; font-size: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-dark);
}

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  height: 1000px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.hero-slide.is-active { opacity: 1; transform: translateY(0); }
.hero-slide--mobile { display: none; }
.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  font-size: 40px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 22, 32, 0.88) 0%, rgba(14, 22, 32, 0.58) 55%, rgba(14, 22, 32, 0.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.2em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(1.6em, 4.5vw, 2.75em);
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 18px;
  max-width: 640px;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-outline { color: #fff; }
.hero-actions .btn-outline:hover { background: #fff; color: var(--color-dark); }

/* =========================================
   About
   ========================================= */
.about { padding: 88px 0; background: var(--color-surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-lead { font-size: 15px; color: var(--color-muted); margin: 0 0 20px; }
.about-points { display: flex; flex-direction: column; gap: 10px; }
.about-points li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
}
.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 2px;
}
.about-media {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 380px;
}
.about-media-main { grid-column: 1; grid-row: 1 / 3; border-radius: var(--radius); overflow: hidden; }
.about-media-sub { border-radius: var(--radius); overflow: hidden; }
.about-media-main img, .about-media-sub img { width: 100%; height: 100%; object-fit: cover; }
.about-note { margin-top: 40px; text-align: center; font-size: 15px; color: var(--color-muted); }

/* =========================================
   Strengths / Business (共通カードグリッド)
   ========================================= */
.strengths, .business { padding: 88px 0; }
.strengths-grid, .business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.business-grid { grid-template-columns: repeat(3, 1fr); }
.strength-card, .business-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.strength-icon, .business-icon { font-size: 36px; display: block; margin-bottom: 16px; }
.strength-card h3, .business-card h3 { font-size: 16px; margin: 0 0 10px; }
.strength-card p, .business-card p { font-size: 13.5px; color: var(--color-muted); margin: 0; }

/* =========================================
   Support / Webdesign 補助スタイル
   ========================================= */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  max-width: 800px;
  margin: 32px auto 0;
}
.support-col h3 { font-size: 16px; margin: 0 0 16px; }
.works-more { text-align: center; margin: 44px 0 56px; }
.hp-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.hp-portfolio-card {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.hp-portfolio-card:hover { transform: translateY(-4px); }
.hp-portfolio-thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.hp-portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hp-portfolio-title { font-size: 14px; margin: 0; padding: 14px 16px; }
.hp-portfolio-body { padding: 14px 16px; }
.hp-portfolio-body .hp-portfolio-title { padding: 0; }
.hp-portfolio-date { font-size: 11.5px; color: var(--color-muted); margin: 0 0 6px; }

/* =========================================
   Flow
   ========================================= */
.flow { padding: 88px 0; }
.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
}
.flow-num {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: block;
  margin-bottom: 10px;
}
.flow-body h3 { font-size: 15px; margin: 0 0 8px; }
.flow-body p { font-size: 13.5px; color: var(--color-muted); margin: 0; }

/* =========================================
   FAQ
   ========================================= */
.faq { padding: 88px 0; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  margin-bottom: 14px;
  padding: 18px 24px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { display: flex; gap: 12px; margin: 12px 0 0; color: var(--color-muted); }
.faq-q, .faq-a {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--color-primary-dark);
  flex-shrink: 0;
}

/* =========================================
   Company info / access
   ========================================= */
.company-info { padding: 88px 0; background: var(--color-surface); }
.company-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.company-info-table table { font-size: 14px; margin-bottom: 24px; }
.company-info-table th, .company-info-table td, .company-table th, .company-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}
.company-info-table th, .company-table th {
  width: 140px;
  color: var(--color-muted);
  font-weight: 500;
}
.company-info-media iframe { width: 600px; height: 350px; max-width: 100%; border: 0; border-radius: var(--radius); }

/* =========================================
   Contact
   ========================================= */
.contact { padding: 88px 0; }
.contact-cta { text-align: center; margin-top: 32px; }
.contact-cta .btn { padding: 16px 48px; font-size: 16px; }

/* =========================================
   Footer
   ========================================= */
.site-footer { background: var(--color-dark); color: rgba(255, 255, 255, 0.8); padding: 56px 0 28px; }
.footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 13px; margin: 8px 0 0; }
.footer-nav-list { flex-direction: column; gap: 10px; }
.footer-nav-list a { font-size: 13px; }
.footer-widget-title { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 12px; }
.copyright { font-size: 12px; margin: 0 0 6px; }

/* =========================================
   Page header / static pages / blog
   ========================================= */
.page-header { padding: 64px 0 16px; text-align: center; }
.static-page { padding: 16px 0 88px; }
.static-page h2 { font-size: 19px; margin: 32px 0 12px; }
.static-page ul { padding-left: 1.2em; list-style: disc; }
.static-page ul li { margin-bottom: 6px; }
.note-mini { font-size: 12px; color: var(--color-muted); }

.blog-list { padding: 16px 0 88px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--color-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.blog-thumb { aspect-ratio: 16/9; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 16px 18px 20px; }
.blog-body h2 { font-size: 15px; margin: 0 0 8px; }
.blog-body p { font-size: 13px; color: var(--color-muted); margin: 0; }
.pagination { text-align: center; margin-top: 40px; }

.single-post, .single-page { padding: 40px 0 88px; }
.single-title { font-size: 26px; margin: 0 0 8px; }
.single-date { color: var(--color-muted); font-size: 13px; margin: 0 0 24px; }
.single-thumb { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }
.single-content { font-size: 15px; }
.single-content img { border-radius: var(--radius); }

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 960px) {
  .strengths-grid, .flow-list { grid-template-columns: repeat(2, 1fr); }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid, .hp-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .company-info-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { height: 800px; }
}
@media (max-width: 720px) {
  .site-nav, .header-contact-btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .site-nav {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
  }
  .site-header.is-open .nav-list { flex-direction: column; gap: 4px; }
  .site-header.is-open .nav-list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding-left: 16px;
  }
  .strengths-grid, .business-grid, .flow-list, .blog-grid, .hp-portfolio-grid { grid-template-columns: 1fr; }
  .hero { height: 700px; text-align: left; }
  .about-media { height: 280px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero--has-mobile-images .hero-slide--desktop { display: none; }
  .hero--has-mobile-images .hero-slide--mobile { display: block; }
}

/* =========================================
   営業カレンダー フローティングウィジェット
   ========================================= */
.rrr-calendar-widget {
  position: fixed;
  z-index: 9999;
}
.rrr-calendar-tab {
  background: var(--color-primary);
  color: var(--color-dark);
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.rrr-calendar-panel {
  position: relative;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rrr-calendar-body { overflow-y: auto; }
.rrr-calendar-widget-block + .rrr-calendar-widget-block { margin-top: 20px; }
.rrr-calendar-widget-title { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.rrr-calendar-reserve-link { display: block; width: 100%; text-align: center; margin-top: 20px; padding: 12px 16px; font-size: 13px; }
.rrr-calendar-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
  z-index: 1;
}

/* PC：画面左側に縦タブ、パネルはタブの右へ展開 */
@media (min-width: 721px) {
  .rrr-calendar-widget {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: stretch;
  }
  .rrr-calendar-tab {
    order: 2;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 22px 10px;
    border-radius: 0 8px 8px 0;
  }
  .rrr-calendar-panel {
    order: 1;
    max-width: 0;
    transition: max-width 0.35s ease;
    border-radius: 0 12px 12px 0;
  }
  .rrr-calendar-widget.is-open .rrr-calendar-panel { max-width: min(320px, 80vw); }
  .rrr-calendar-body { width: min(320px, 80vw); max-height: 70vh; padding: 36px 20px 20px; }
}

/* モバイル：画面下にバー、パネルは上へ展開 */
@media (max-width: 720px) {
  .rrr-calendar-widget {
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
  }
  .rrr-calendar-tab {
    order: 2;
    width: 100%;
    padding: 10px;
    border-radius: 8px 8px 0 0;
  }
  .rrr-calendar-panel {
    order: 1;
    max-height: 0;
    transition: max-height 0.35s ease;
    border-radius: 12px 12px 0 0;
  }
  .rrr-calendar-widget.is-open .rrr-calendar-panel { max-height: 60vh; }
  .rrr-calendar-body { max-height: 60vh; padding: 30px 16px 16px; }
}

/* =========================================
   お知らせ マーキー（ヒーロー内下部）
   ========================================= */
.hero-notice-ticker {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50%;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(14, 22, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  padding: 8px 10px 8px 18px;
  backdrop-filter: blur(4px);
}
.hero-notice-label {
  flex-shrink: 0;
  background: var(--color-primary);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.hero-notice-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.hero-notice-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: heroNoticeScroll 22s linear infinite;
}
.hero-notice-ticker:hover .hero-notice-track,
.hero-notice-ticker:focus-within .hero-notice-track { animation-play-state: paused; }
.hero-notice-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
}
.hero-notice-item:hover .hero-notice-title { text-decoration: underline; }
.hero-notice-date { font-family: var(--font-en); font-size: 11px; color: var(--color-primary); font-weight: 700; }
.hero-notice-title { font-weight: 600; }
@keyframes heroNoticeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 720px) {
  .hero-notice-ticker { width: 90%; bottom: 0; padding: 7px 8px 7px 14px; gap: 10px; }
  .hero-notice-label { font-size: 11px; padding: 4px 10px; }
  .hero-notice-item { font-size: 12px; }
}
