*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:#171717;background:#fff;font-family:Arial,"Noto Sans JP",sans-serif}
a{text-decoration:none;color:inherit}
button{font:inherit}
.container{width:min(1180px,calc(100% - 40px));margin:auto}
.site-header{height:76px;border-bottom:1px solid #eee;background:#fff;position:sticky;top:0;z-index:20}
.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between}
.logo{font-weight:900;letter-spacing:.08em;font-size:20px;color:#111}
.logo span{color:#d40000;margin-left:5px}
.contact-link{font-size:14px;font-weight:700;color:#d40000}
.hero{min-height:610px;background:linear-gradient(90deg,rgba(0,0,0,.75),rgba(0,0,0,.18)),url("images/hero.jpg") center/cover;display:flex;align-items:center;color:#fff}
.hero-inner{padding:100px 0}
.eyebrow{font-size:12px;font-weight:800;letter-spacing:.18em;color:#d40000;margin:0 0 14px}
.hero .eyebrow{color:#ff3b3b}
.hero h1{font-size:clamp(42px,6vw,76px);line-height:1.08;margin:0 0 25px;letter-spacing:-.04em}
.hero h1 strong{color:#ff2222}
.hero-copy{font-size:17px;line-height:1.9;margin-bottom:35px}
.red-button,.white-button{display:inline-block;border:0;padding:15px 28px;font-weight:800;cursor:pointer;transition:.2s}
.red-button{background:#d40000;color:#fff}
.red-button:hover{background:#a90000}
.white-button{background:#fff;color:#d40000}
.media-section{padding:100px 0}
.section-heading{text-align:center;margin-bottom:50px}
.section-heading h2,.about h2,.contact h2{font-size:38px;margin:0 0 12px}
.section-heading p:last-child{color:#777}
.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.media-card{background:#fff;border:1px solid #e8e8e8;transition:.25s;box-shadow:0 8px 25px rgba(0,0,0,.04)}
.media-card:hover{transform:translateY(-5px);box-shadow:0 14px 35px rgba(0,0,0,.10)}
.media-image{height:230px;position:relative;overflow:hidden;background:#ddd}
.media-image img{width:100%;height:100%;object-fit:cover;display:block}
.media-label{display:inline-block;background:#d40000;color:#fff;padding:6px 10px;font-size:11px;font-weight:800;letter-spacing:.05em}
.media-image .media-label{position:absolute;left:14px;bottom:14px}
.media-body{padding:22px}
.media-body h3{font-size:21px;margin:0 0 7px}
.location{font-size:13px;color:#777}
.card-info{border-top:1px solid #eee;border-bottom:1px solid #eee;margin:18px 0;padding:13px 0;display:flex;justify-content:space-between;gap:10px;font-size:12px}
.card-info strong{color:#d40000}
.detail-button{width:100%;padding:12px;border:1px solid #d40000;background:#fff;color:#d40000;font-weight:800;cursor:pointer}
.detail-button:hover{background:#d40000;color:#fff}
.about{background:#f6f6f6;padding:90px 0}
.about-inner{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}
.about p:last-child{line-height:2;color:#555}
.contact{padding:100px 0;background:#d40000;color:#fff;text-align:center}
.contact .eyebrow{color:#ffb0b0}
.contact h2{font-size:36px}
.contact p{line-height:1.8}
footer{background:#111;color:#fff;padding:28px 0;font-size:12px}
.footer-inner{display:flex;justify-content:space-between}
.modal{position:fixed;inset:0;z-index:100;display:none}
.modal.is-open{display:block}
.modal-overlay{position:absolute;inset:0;background:rgba(0,0,0,.7)}
.modal-panel{position:relative;background:#fff;width:min(900px,calc(100% - 30px));max-height:90vh;overflow:auto;margin:5vh auto;z-index:1}
.modal-close{position:absolute;right:12px;top:10px;width:40px;height:40px;border:0;background:#fff;font-size:30px;cursor:pointer;z-index:2}
.modal-panel>img{width:100%;max-height:430px;object-fit:cover;display:block}
.modal-content{padding:30px}
.modal-content h2{font-size:30px;margin:12px 0 5px}
.modal-content dl{margin:25px 0}
.modal-content dl div{display:grid;grid-template-columns:130px 1fr;padding:13px 0;border-bottom:1px solid #eee}
.modal-content dt{font-weight:800}
.modal-content dd{margin:0;color:#555}
@media(max-width:900px){.media-grid{grid-template-columns:repeat(2,1fr)}.about-inner{grid-template-columns:1fr;gap:20px}}
@media(max-width:600px){.container{width:min(100% - 28px,1180px)}.site-header{height:64px}.hero{min-height:520px}.media-section{padding:70px 0}.media-grid{grid-template-columns:1fr}.media-image{height:240px}.section-heading h2,.about h2,.contact h2{font-size:30px}.footer-inner{display:block}.footer-inner span{display:block;margin:5px 0}.modal-panel{margin:2vh auto;max-height:96vh}.modal-content{padding:22px}.modal-content dl div{grid-template-columns:100px 1fr}}

/* ========================================
   ROJOKIKI ABOUT
======================================== */

.rojokiki-about {
  padding: 110px 0;
  background: #f7f7f7;
}

.rojokiki-about .section-heading {
  max-width: 760px;
  margin-bottom: 70px;
}

.rojokiki-points {
  border-top: 1px solid #ddd;
}

.rojokiki-point {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 45px 0;
  border-bottom: 1px solid #ddd;
}

.point-number {
  font-size: 32px;
  font-weight: 800;
  color: #d40000;
  line-height: 1;
}

.point-content {
  max-width: 850px;
}

.point-content h3 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.4;
}

.point-content p {
  margin: 0;
  color: #555;
  line-height: 2;
}


/* ========================================
   MEDIA SYNERGY
======================================== */

.rojokiki-synergy {
  margin-top: 100px;
  padding: 70px;
  background: #fff;
  border-top: 5px solid #d40000;
}

.rojokiki-synergy h2 {
  margin: 10px 0 25px;
  font-size: 40px;
  line-height: 1.35;
}

.rojokiki-synergy > p {
  max-width: 760px;
  line-height: 2;
  color: #555;
}

.synergy-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  margin: 50px 0 35px;
  gap: 20px;
}

.synergy-grid > div:not(.synergy-plus) {
  padding: 30px;
  border: 1px solid #ddd;
}

.synergy-grid strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.synergy-grid span {
  color: #666;
  font-size: 14px;
}

.synergy-plus {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #d40000;
}

.synergy-copy {
  font-weight: 600;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

  .rojokiki-about {
    padding: 75px 0;
  }

  .rojokiki-point {
    grid-template-columns: 55px 1fr;
    gap: 20px;
    padding: 35px 0;
  }

  .point-number {
    font-size: 24px;
  }

  .point-content h3 {
    font-size: 20px;
  }

  .point-content p {
    font-size: 14px;
    line-height: 1.9;
  }

  .rojokiki-synergy {
    margin-top: 70px;
    padding: 35px 25px;
  }

  .rojokiki-synergy h2 {
    font-size: 30px;
  }

  .synergy-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .synergy-plus {
    padding: 5px;
  }

}


/* ========================================
   CONTACT + COMPANY
======================================== */

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-content {
  padding-right: 30px;
}

.contact-content h2,
.company-info h2 {
  margin: 10px 0 25px;
  font-size: 34px;
  line-height: 1.4;
}

.contact-content > p {
  line-height: 2;
  margin-bottom: 30px;
}


/* COMPANY */

.company-info {
  padding-left: 60px;
  border-left: 1px solid rgba(255,255,255,.35);
}

.company-table {
  margin: 35px 0 0;
}

.company-table > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.company-table dt {
  font-weight: 700;
}

.company-table dd {
  margin: 0;
  line-height: 1.8;
}

.company-table a {
  color: #fff;
  text-decoration: underline;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

  .contact-box {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-content {
    padding-right: 0;
  }

  .company-info {
    padding-left: 0;
    padding-top: 50px;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.35);
  }

  .contact-content h2,
  .company-info h2 {
    font-size: 28px;
  }

  .company-table > div {
    grid-template-columns: 90px 1fr;
    gap: 15px;
    font-size: 14px;
  }

}


/* ========================================
   ABOUT MEDIA ギャラリー
   PC：3枚 × 2段
======================================== */

.media-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 40px;
}

.media-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.media-gallery img:hover {
  transform: scale(1.02);
}


/* ========================================
   画像拡大ビューア
======================================== */

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100vw;
  height: 100vh;

  padding: 20px;
  box-sizing: border-box;

  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-viewer.is-open {
  opacity: 1;
}

.image-viewer-overlay {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.88);
}

.image-viewer-image {
  position: relative;
  z-index: 2;

  display: block;

  /*
    ギャラリー用CSSの影響を完全に解除
  */
  width: auto !important;
  height: auto !important;

  /*
    原寸表示を防ぎ、
    画面内に収める
  */
  max-width: 90vw !important;
  max-height: 90vh !important;

  object-fit: contain;

  border-radius: 4px;

  box-sizing: border-box;
}

.image-viewer-close {
  position: absolute;

  top: 20px;
  right: 25px;

  z-index: 3;

  width: 48px;
  height: 48px;

  border: none;
  background: transparent;

  color: #fff;

  font-size: 42px;
  line-height: 1;

  cursor: pointer;
}

.image-viewer-close:hover {
  color: #d40000;
}


 /* ========================================
    MEDIA LIST
 ======================================== */

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}


/* ========================================
   MEDIA CARD
======================================== */

.media-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}


/* カード内の要素が横幅を超えないようにする */

.media-card * {
  max-width: 100%;
  box-sizing: border-box;
}


/* ========================================
   RESPONSIVE
   2列表示
======================================== */

@media (max-width: 900px) {

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

}


/* ========================================
   SMALL MOBILE
   2列を維持
======================================== */

@media (max-width: 600px) {

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .media-card {
    min-width: 0;
  }

}

/* ========================================
   PRICE TABLE
======================================== */

.price-table-section {
  margin-top: 80px;
  margin-bottom: 80px;
}

.price-table {
  border-top: 1px solid #ddd;
  padding: 30px 0;
}

.price-table:last-child {
  border-bottom: 1px solid #ddd;
}

.price-table h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.price-table .price {
  margin: 0 0 15px;
  font-size: 22px;
  font-weight: 700;
  color: #d40000;
}

.price-table .price span {
  margin-left: 10px;
  font-size: 14px;
  font-weight: 400;
  color: #555;
}

.price-table .areas {
  margin: 0;
  line-height: 2;
  font-size: 15px;
  color: #333;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

  .price-table-section {
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .price-table {
    padding: 25px 0;
  }

  .price-table h3 {
    font-size: 18px;
  }

  .price-table .price {
    font-size: 20px;
  }

  .price-table .price span {
    display: block;
    margin: 5px 0 0;
  }

  .price-table .areas {
    font-size: 14px;
    line-height: 1.9;
  }

}

/* ========================================
   RELATED SERVICE CTA
======================================== */
.synergy-cta {
  margin-top: 32px;
}

.pole-ad-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  border: 1px solid #d40000;
  background: #fff;
  color: #d40000;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: .2s ease;
}

.pole-ad-button span {
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}

.pole-ad-button:hover {
  background: #d40000;
  color: #fff;
}

.pole-ad-button:hover span {
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .pole-ad-button {
    width: 100%;
    justify-content: space-between;
    padding: 14px 18px;
  }
}
