/* ===== Detail Page — supplements style.css ===== */

/* Mini hero (shorter than main hero) */
.detail-hero{height:min(400px,30vw);min-height:280px;position:relative;overflow:hidden;isolation:isolate}
.detail-hero-img{width:100%;height:100%;object-fit:cover;object-position:center 55%}
.detail-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom right,rgba(3,54,85,.72) 0%,rgba(3,54,85,.3) 60%,transparent 100%)}
.detail-hero-copy{position:absolute;z-index:3;bottom:0;left:max(8vw,calc((100vw - var(--max))/2 + 24px));right:10%;padding:22px 0 32px;color:#fff}
.detail-badge{font-size:13px;font-weight:700;margin:0 0 10px;display:flex;align-items:center;gap:8px;color:rgba(255,255,255,.9)}
.detail-badge b{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;background:var(--blue);border-radius:50%;font-size:15px;border:2px solid rgba(255,255,255,.8);margin-right:2px}
.detail-hero-copy h1{font:800 clamp(26px,3.4vw,44px)/1.2 "Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;margin:0 0 10px;letter-spacing:.03em;text-shadow:0 1px 4px rgba(0,0,0,.4)}
.detail-project-title{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(13px,1.5vw,17px);font-weight:500;line-height:1.65;letter-spacing:.06em;color:rgba(255,255,255,.9);margin:0;text-shadow:0 1px 2px rgba(0,0,0,.3);max-width:680px}
.detail-hero-top-wave{position:absolute;z-index:4;top:-1px;left:0;width:100%;height:113px;object-fit:fill;pointer-events:none}

/* Breadcrumb */
.detail-back-bar{background:transparent;border-bottom:1px solid var(--line)}
.detail-back-bar>.container{display:flex;align-items:center;gap:6px;height:58px;font-size:14px;flex-wrap:nowrap;overflow:hidden}
.detail-back-bar a{display:inline-flex;align-items:center;gap:9px;color:var(--deep);font-weight:800;letter-spacing:.08em;white-space:nowrap;transition:color .2s,transform .2s}
.detail-back-bar a::before{content:"";width:8px;height:8px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.detail-back-bar a:hover{color:var(--blue);transform:translateX(-2px)}
.detail-back-crumb{color:#7a9aaa;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.detail-back-crumb::before{content:"/";margin:0 10px;color:var(--line)}

/* Jump nav */
.detail-jump{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:28px;padding-bottom:18px}
.detail-jump a{position:relative;display:flex;align-items:center;min-height:70px;padding:14px 52px 14px 20px;border:1px solid #b9ddec;border-radius:4px;background:#fff;font-size:14px;font-weight:800;color:var(--deep);line-height:1.45;transition:color .25s,border-color .25s,background-color .25s,transform .25s}
.detail-jump a::after{content:"→";position:absolute;right:16px;top:50%;display:grid;place-items:center;width:28px;height:28px;border:1px solid currentColor;border-radius:50%;font-size:15px;transform:translateY(-50%);transition:transform .25s}
.detail-jump a:hover{color:var(--blue);border-color:var(--blue);background:#eff9fd;transform:translateY(-2px)}
.detail-jump a:hover::after{transform:translate(3px,-50%)}

/* Overview section */
.detail-overview-section{padding-top:34px;padding-bottom:80px}

/* Meta card — like an expanded project card */
.detail-meta-card{display:flex;align-items:center;gap:26px;border:0;border-left:7px solid var(--blue);border-radius:0 6px 6px 0;padding:28px 34px;margin-bottom:54px;background:linear-gradient(105deg,#eef8fd 0%,#fff 75%);box-shadow:0 8px 24px rgba(0,80,130,.08)}
.detail-num{flex-shrink:0;width:64px;height:64px;background:var(--blue);color:#fff;border-radius:50%;display:grid;place-items:center;font:bold 30px Arial,sans-serif}
.detail-meta-info{min-width:0}
.detail-meta-info small{display:block;font-size:14px;font-weight:700;color:#415c6c;margin-bottom:6px}
.detail-meta-info h3{font-size:clamp(27px,3vw,38px);font-weight:900;color:#006aaa;margin:0 0 12px;line-height:1.22;letter-spacing:.025em}
.detail-event-name{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:16px;font-weight:500;color:var(--ink);line-height:1.65;letter-spacing:.04em;margin:0}

/* Business overview with a reusable temporary image */
.detail-content-feature{min-height:360px;display:grid;grid-template-columns:44% 56%;overflow:hidden;border-radius:8px;background:#edf7fc;margin-bottom:54px;box-shadow:0 10px 30px rgba(16,85,120,.09)}
.detail-content-feature::before{content:"";grid-column:1;background-image:linear-gradient(rgba(0,83,126,.04),rgba(0,83,126,.04)),var(--detail-image);background-position:center;background-size:cover}
.detail-content-feature>div{grid-column:2;padding:52px 52px 48px;align-self:center}
.detail-content-title{position:relative;font:800 clamp(28px,3.5vw,42px)/1.2 "Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;color:var(--blue);letter-spacing:.06em;margin:0 0 26px;padding-top:18px}
.detail-content-title::before{content:"";position:absolute;top:0;left:0;width:48px;height:5px;border-radius:99px;background:var(--sky)}

/* Body text */
.detail-text{font-size:17px;line-height:1.95;color:#253a48;margin:0}

/* Main activities — stronger visual block */
.detail-activities{position:relative;min-height:400px;overflow:hidden;border-radius:8px;background:var(--deep);isolation:isolate}
.detail-activities::before{content:"";position:absolute;z-index:-1;inset:0 0 0 50%;background-image:linear-gradient(90deg,var(--deep) 0%,rgba(0,71,108,.3) 50%,rgba(0,71,108,.08) 100%),var(--detail-image);background-position:center;background-size:cover}
.detail-activities>div{width:58%;padding:48px 28px 48px 48px}
.detail-activities .detail-content-title{color:#fff}
.detail-activities .detail-content-title::before{background:#78d6f1}
.detail-impl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.detail-impl li{display:flex;align-items:flex-start;gap:14px;font-size:16px;line-height:1.7;padding:15px 18px;background:rgba(255,255,255,.94);border-left:4px solid #75d1ee;border-radius:0 4px 4px 0;color:#17384a;box-shadow:0 4px 14px rgba(0,27,45,.13)}
.detail-impl li::before{content:"";flex-shrink:0;width:18px;height:18px;margin-top:4px;background:var(--blue);border-radius:50%;border:3px solid rgba(255,255,255,.9);box-shadow:0 0 0 2px var(--sky)}

/* Map & Links placeholders */
.detail-map-section{background:var(--pale)}
.detail-coming-soon{font-size:15px;color:#7a9aaa;font-style:italic;padding:48px 0;text-align:center;border:2px dashed #a8d8f0;border-radius:6px;margin:0}
.detail-map-visual{margin:28px 0 0}
.detail-map-visual img{display:block;width:100%;height:auto}

/* Other projects section */
.detail-others-section{background:var(--pale)}
.detail-others-label{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:22px;font-weight:500;color:var(--deep);letter-spacing:.08em;text-align:center;margin:-28px 0 36px}
.detail-others-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 22px}
.detail-other-card{border:2px solid var(--blue);border-radius:4px;background:#fff;display:flex;align-items:center;gap:16px;padding:13px 46px 13px 16px;position:relative;transition:transform .25s ease,background .2s ease}
.detail-other-card:hover{background:#eaf7fd;transform:translateX(4px)}
.detail-other-card.current{background:var(--blue);border-color:var(--blue);pointer-events:none}
.detail-other-num{flex-shrink:0;width:36px;height:36px;background:var(--blue);color:#fff;border-radius:50%;display:grid;place-items:center;font:bold 17px Arial,sans-serif}
.detail-other-card.current .detail-other-num{background:rgba(255,255,255,.22)}
.detail-other-info small{display:block;font-size:11px;font-weight:700;color:#415c6c;line-height:1.4}
.detail-other-card.current .detail-other-info small{color:rgba(255,255,255,.8)}
.detail-other-info span{font-size:13px;font-weight:700;color:#006aaa;line-height:1.3;display:block}
.detail-other-card.current .detail-other-info span{color:#fff}
.detail-other-arrow{position:absolute;right:13px;width:24px;height:24px;background:url("../images/card-arrow.svg") center/contain no-repeat}
.detail-other-card.current .detail-other-arrow{display:none}

/* Responsive */
@media(max-width:800px){
  .detail-hero{height:min(280px,50vw);min-height:240px}
  .detail-hero-copy{left:24px;right:24px;padding:18px 0 26px}
  .detail-hero-copy h1{font-size:clamp(22px,4.5vw,30px)}
  .detail-hero-top-wave{height:80px}
  .detail-jump{grid-template-columns:1fr 1fr;gap:9px;padding-top:20px}
  .detail-jump a{min-height:60px;padding:12px 45px 12px 15px;font-size:13px}
  .detail-meta-card{align-items:flex-start;gap:14px;padding:24px}
  .detail-meta-info h3{font-size:27px}
  .detail-content-feature{grid-template-columns:1fr;min-height:0}
  .detail-content-feature::before{grid-column:1;height:260px}
  .detail-content-feature>div{grid-column:1;padding:36px 28px 40px}
  .detail-activities::before{inset:45% 0 0;background-image:linear-gradient(180deg,var(--deep) 0%,rgba(0,71,108,.15) 40%),var(--detail-image)}
  .detail-activities>div{width:auto;padding:38px 24px 300px}
  .detail-others-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .detail-hero{min-height:210px}
  .detail-hero-copy h1{font-size:22px}
  .detail-project-title{font-size:12px}
  .detail-back-crumb{display:none}
  .detail-hero-top-wave{height:60px}
  .detail-jump{grid-template-columns:1fr}
  .detail-jump a{min-height:54px}
  .detail-num{width:52px;height:52px;font-size:24px}
  .detail-meta-info h3{font-size:24px}
  .detail-event-name{font-size:14px}
  .detail-content-feature::before{height:210px}
  .detail-content-feature>div{padding:30px 20px 34px}
  .detail-content-title{font-size:28px}
  .detail-text{font-size:16px;line-height:1.85}
  .detail-activities>div{padding:32px 18px 240px}
  .detail-impl li{font-size:15px;padding:13px 14px}
}

/* Other projects — show only the nine projects other than the current page */
.detail-others-section{padding-top:82px;padding-bottom:92px;background:#fff}
.detail-others-section>.container>.section-title{display:none}
.detail-others-label{
  margin:0 0 48px;
  color:#292929;
  font:800 clamp(28px,3.2vw,42px)/1.3 "Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;
  letter-spacing:.03em;
}
.detail-others-grid{grid-template-columns:repeat(3,1fr);gap:24px 28px}
.detail-other-card.current{display:none}
.detail-other-card{
  min-height:148px;
  display:grid;
  grid-template-columns:35% minmax(0,1fr);
  align-items:stretch;
  gap:0;
  overflow:hidden;
  padding:0;
  border:2px solid var(--blue);
  border-radius:4px;
  background:#fff;
  box-shadow:none;
  color:var(--deep);
  transition:transform .25s ease,background-color .25s ease,box-shadow .25s ease;
}
.detail-other-card::before{
  content:"";
  display:block;
  width:100%;
  height:100%;
  min-height:144px;
  border-radius:0;
  background-position:center;
  background-size:cover;
}
.detail-other-card[href="taikyokusha.html"]::before{background-image:url("../images/11_img.jpg")}
.detail-other-card[href="suga-gyokyo.html"]::before{background-image:url("../images/12_img.jpg")}
.detail-other-card[href="hinohara.html"]::before{background-image:url("../images/13_img.jpg")}
.detail-other-card[href="mizu-to-takumi.html"]::before{background-image:url("../images/14_img.jpg")}
.detail-other-card[href="miyamoto.html"]::before{background-image:url("../images/15_img.jpg")}
.detail-other-card[href="organ.html"]::before{background-image:url("../images/16_img.jpg")}
.detail-other-card[href="miyama.html"]::before{background-image:url("../images/17_img.jpg")}
.detail-other-card[href="renofa.html"]::before{background-image:url("../images/18_img.jpg")}
.detail-other-card[href="oji-shimanto.html"]::before{background-image:url("../images/19_img.jpg")}
.detail-other-card[href="wansaka.html"]::before{background-image:url("../images/20_img.jpg")}
.detail-other-card:hover{background:#eaf7fd;transform:none;box-shadow:none}
.detail-other-num{display:none}
.detail-other-info{align-self:center;min-width:0;padding:18px 48px 18px 18px}
.detail-other-info small{margin-bottom:5px;color:#415c6c;font-size:12px;line-height:1.45}
.detail-other-info span{color:#006aaa;font-size:16px;font-weight:800;line-height:1.4}
.detail-other-arrow{
  right:13px;
  bottom:12px;
  width:32px;
  height:32px;
  border:0;
  border-radius:50%;
  background:url("../images/card-arrow.svg") center/contain no-repeat;
  transition:transform .25s ease;
}
.detail-other-card:hover .detail-other-arrow{transform:translateX(2px)}

@media(max-width:1100px){
  .detail-others-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .detail-others-section{padding-top:60px;padding-bottom:70px}
  .detail-others-label{margin-bottom:32px}
  .detail-others-grid{grid-template-columns:1fr;gap:15px}
  .detail-other-card{min-height:128px;grid-template-columns:35% minmax(0,1fr);border-radius:4px}
  .detail-other-card::before{width:100%;min-height:124px}
  .detail-other-info{padding:15px 44px 15px 15px}
  .detail-other-info small{margin-bottom:5px;font-size:12px}
  .detail-other-info span{font-size:15px}
  .detail-other-arrow{right:11px;bottom:10px;width:30px;height:30px}
}

/* ===== Detail page refinement: white base and image-led content ===== */
.detail-overview-section{background:#fff}
.detail-meta-card{
  border-left:7px solid var(--blue);
  background:#fff;
  box-shadow:none;
}
.detail-content-feature{
  border:1px solid #b9ddec;
  border-radius:4px;
  background:#fff;
  box-shadow:none;
}
.detail-content-feature::before{
  display:none;
}
.detail-content-image{
  grid-column:1;
  width:100%;
  height:100%;
  min-height:360px;
  object-fit:cover;
  display:block;
}

/* Three main activities: one image for each item (temporary project image) */
.detail-activities{
  min-height:0;
  overflow:visible;
  border-radius:0;
  background:#fff;
}
.detail-activities::before{display:none}
.detail-activities>div{width:100%;padding:0}
.detail-activities .detail-content-title{color:var(--blue)}
.detail-activities .detail-content-title::before{background:var(--sky)}
.detail-impl{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.detail-impl li{
  min-width:0;
  display:grid;
  grid-template-rows:150px auto;
  gap:0;
  padding:0;
  overflow:hidden;
  border:1px solid #8ccce8;
  border-left:1px solid #8ccce8;
  border-radius:4px;
  background:#fff;
  box-shadow:none;
  color:#17384a;
  font-size:16px;
  line-height:1.75;
}
.detail-impl li::before{
  content:"";
  width:100%;
  height:150px;
  margin:0;
  border:0;
  border-radius:0;
  background:var(--detail-image) center/cover no-repeat;
  box-shadow:none;
}
.detail-impl li:nth-child(2)::before{background-position:center 45%}
.detail-impl li:nth-child(3)::before{background-position:center 60%}
.detail-impl li{padding-bottom:0}
.detail-impl li::after{
  content:"";
  display:none;
}
.detail-impl li{
  /* Text occupies the second grid row without an extra wrapper. */
  align-items:start;
  padding-bottom:18px;
}
.detail-impl li::before{margin-bottom:17px}
.detail-impl li{padding-left:18px;padding-right:18px}
.detail-impl li::before{
  width:calc(100% + 36px);
  margin-left:-18px;
  margin-right:-18px;
}

/* Map area: white base with a soft wave only at the top */
.detail-map-section{
  position:relative;
  overflow:visible;
  isolation:isolate;
  padding-top:120px;
  margin-top:72px;
  background:#e8f6fc;
}
.detail-map-section::before{
  content:"";
  position:absolute;
  z-index:0;
  top:-72px;
  left:-3%;
  width:106%;
  height:74px;
  background:#e8f6fc;
  clip-path:polygon(0 74%,14% 42%,30% 62%,47% 24%,64% 58%,82% 35%,100% 66%,100% 100%,0 100%);
}
.detail-map-section>.container{position:relative;z-index:1}

/* Other projects: blue heading and shallower index-style cards */
.detail-others-label{color:var(--blue)}
.detail-other-card{
  min-height:112px;
  grid-template-columns:30% minmax(0,1fr);
}
.detail-other-card::before{min-height:108px}
.detail-other-info{
  align-self:start;
  padding:18px 44px 14px 15px;
}
.detail-other-info small{margin-bottom:4px}
.detail-other-arrow{bottom:10px}

@media(max-width:800px){
  .detail-content-image{
    grid-column:1;
    height:260px;
    min-height:0;
  }
  .detail-activities>div{padding:0}
  .detail-impl{grid-template-columns:1fr}
  .detail-impl li{grid-template-rows:190px auto}
  .detail-impl li::before{height:190px}
}
@media(max-width:700px){
  .detail-map-section{padding-top:92px}
  .detail-map-section::before{height:96px}
  .detail-other-card{
    min-height:106px;
    grid-template-columns:30% minmax(0,1fr);
  }
  .detail-other-card::before{min-height:102px}
  .detail-other-info{padding:15px 42px 12px 14px}
}

/* ===== Follow-up: reuse the index wave and index-style project cards ===== */

/* Use the same wave artwork as the RELATED section instead of a polygon. */
.detail-map-section{
  margin-top:120px;
  padding-top:100px;
  overflow:visible;
  background:#e8f6fc;
}
.detail-map-section::before{
  top:-120px;
  left:0;
  width:100%;
  height:122px;
  background:url("../images/map-wave.svg") center bottom/100% 100% no-repeat;
  clip-path:none;
  transform:none;
}

/* Match the index model-project field and cards across all ten pages. */
.detail-others-section{
  position:relative;
  z-index:0;
  overflow:hidden;
  background:#edf8fd;
}
.detail-others-grid{
  padding:30px;
  border-radius:0;
  background:transparent;
}
.detail-other-card{
  min-height:112px;
  grid-template-columns:35% minmax(0,1fr);
  overflow:hidden;
  border:2px solid transparent;
  border-radius:18px;
  background:#fff;
  transition:border-color .25s ease;
}
.detail-other-card::before{
  align-self:center;
  min-height:0;
  height:92px;
  margin:8px;
  width:calc(100% - 16px);
  border-radius:13px;
  transition:transform .45s cubic-bezier(.2,.75,.25,1);
}
.detail-other-card:hover{
  transform:none;
  border-color:#5abce6;
  background:#fff;
}
.detail-other-card:hover::before{transform:scale(1.055)}
.detail-other-info{
  position:relative;
  z-index:2;
  align-self:center;
  padding:12px 40px 12px 10px;
  background:#fff;
}
.detail-other-arrow{z-index:3}

@media(max-width:700px){
  .detail-map-section{margin-top:94px;padding-top:82px}
  .detail-map-section::before{top:-94px;height:96px}
  .detail-others-grid{padding:14px}
  .detail-other-card{min-height:106px}
  .detail-other-card::before{
    min-height:0;
    height:88px;
    margin:7px;
    width:calc(100% - 14px);
  }
}

/* ===== Final compact repeated operator information ===== */

/*
 * The hero already presents the same area, operator and project phrase.
 * Keep this body-level repetition as a small identification strip.
 */
.detail-meta-card{
  gap:11px!important;
  padding:10px 14px!important;
  margin-bottom:28px!important;
  border-left-width:3px!important;
}
.detail-num{
  width:34px!important;
  height:34px!important;
  font-size:16px!important;
}
.detail-meta-info small{
  margin-bottom:2px!important;
  font-size:10px!important;
}
.detail-meta-info h3{
  margin-bottom:3px!important;
  font-size:20px!important;
  line-height:1.25!important;
}
.detail-event-name{
  font-size:11px!important;
  line-height:1.45!important;
}

@media(max-width:700px){
  .detail-meta-card{
    gap:9px!important;
    padding:9px 11px!important;
    margin-bottom:24px!important;
  }
  .detail-num{
    width:30px!important;
    height:30px!important;
    font-size:14px!important;
  }
  .detail-meta-info h3{font-size:17px!important}
  .detail-event-name{font-size:10px!important}
}

/* ===== Featured project name above the overview ===== */
.detail-project-banner{
  position:relative;
  width:min(920px,100%);
  margin:0 auto 38px;
  padding:30px 52px;
  overflow:visible;
  border-radius:24px;
  border:0;
  background:#e7f5fc;
  text-align:center;
}
.detail-project-banner::before,
.detail-project-banner::after{
  content:"";
  position:absolute;
  border:3px solid #62b9e3;
  border-radius:50%;
  pointer-events:none;
}
.detail-project-banner::before{
  width:74px;
  height:74px;
  top:-46px;
  left:34px;
}
.detail-project-banner::after{
  width:42px;
  height:42px;
  right:-20px;
  bottom:-24px;
  border-color:#55b9e9;
  background:rgba(85,185,233,.34);
}
.detail-project-banner .detail-event-name{
  position:relative;
  z-index:1;
  margin:0!important;
  color:#172d3b!important;
  font:700 clamp(22px,2.6vw,34px)/1.55 "Yu Mincho","Hiragino Mincho ProN",serif!important;
  letter-spacing:.05em!important;
  text-align:center!important;
}
.detail-meta-info h3{
  color:#172d3b!important;
}

/* Slightly smaller shared drop icon in the activities list. */
.detail-impl li{
  grid-template-columns:68px minmax(0,1fr)!important;
  gap:20px!important;
}
.detail-impl li::before{
  width:58px!important;
  height:58px!important;
}
@media(max-width:700px){
  .detail-project-banner{
    margin-bottom:28px;
    padding:23px 24px;
    border-radius:17px;
  }
  .detail-project-banner .detail-event-name{
    font-size:clamp(19px,5.5vw,25px)!important;
    line-height:1.55!important;
  }
  .detail-impl li{
    grid-template-columns:50px minmax(0,1fr)!important;
    gap:14px!important;
  }
  .detail-impl li::before{
    width:44px!important;
    height:44px!important;
  }
}

/* ===== Project panel ornaments: keep them away from the title area ===== */
.detail-project-banner{
  margin-bottom:62px;
  isolation:isolate;
}
.detail-project-banner::before,
.detail-project-banner::after{
  display:none;
}
.project-decor{
  position:absolute;
  z-index:0;
  display:block;
  border-radius:50%;
  pointer-events:none;
}
.project-ring{
  border:3px solid rgba(69,170,220,.62);
  background:transparent;
}
.project-ring-a{
  width:104px;
  height:104px;
  top:-48px;
  right:-34px;
  animation:projectDecorFloatA 8.5s ease-in-out infinite;
}
.project-ring-b{
  width:76px;
  height:76px;
  left:-28px;
  bottom:-38px;
  animation:projectDecorFloatB 9.2s ease-in-out infinite;
}
.project-fill-a{
  width:38px;
  height:38px;
  top:-22px;
  right:74px;
  background:rgba(85,185,233,.3);
  animation:projectDecorFloatB 7.6s ease-in-out infinite;
}
.project-fill-b{
  width:30px;
  height:30px;
  left:62px;
  bottom:-20px;
  background:rgba(37,143,201,.28);
  animation:projectDecorFloatA 8s ease-in-out infinite;
}
@keyframes projectDecorFloatA{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(5px,-6px,0)}
}
@keyframes projectDecorFloatB{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(-5px,5px,0)}
}
@media(max-width:700px){
  .detail-project-banner{margin-bottom:48px}
  .project-ring-a{
    width:76px;
    height:76px;
    top:-35px;
    right:-22px;
  }
  .project-ring-b{
    width:58px;
    height:58px;
    left:-18px;
    bottom:-30px;
  }
  .project-fill-a{
    width:29px;
    height:29px;
    top:-17px;
    right:56px;
  }
  .project-fill-b{
    width:23px;
    height:23px;
    left:47px;
    bottom:-15px;
  }
}
@media(prefers-reduced-motion:reduce){
  .project-decor{animation:none!important}
}

/* The repeated identity panel below the hero stays deliberately compact. */
.detail-meta-card{
  gap:13px;
  padding:14px 18px;
  margin-bottom:34px;
  border-left-width:4px;
}
.detail-num{
  width:38px;
  height:38px;
  font-size:18px;
}
.detail-meta-info small{
  margin-bottom:3px;
  font-size:11px;
}
.detail-meta-info h3{
  margin-bottom:5px;
  font-size:clamp(18px,1.9vw,24px);
}
.detail-event-name{
  font-size:12px;
  line-height:1.55;
}

@media(max-width:700px){
  .detail-meta-card{
    gap:10px;
    padding:12px 14px;
    margin-bottom:28px;
  }
  .detail-num{
    width:34px;
    height:34px;
    font-size:16px;
  }
  .detail-meta-info h3{font-size:18px}
  .detail-event-name{font-size:11px}
}

/* ===== Detail hero and final card refinements ===== */

/*
 * Keep the supplied wave, while letting the photograph fill a generous,
 * edge-to-edge hero. The repeated project number is intentionally omitted
 * from the hero; the detailed numbered information remains in the body.
 */
.detail-hero{
  height:clamp(680px,78vh,860px);
  min-height:680px;
  display:grid;
  place-items:center;
}
.detail-hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-position:center 50%;
}
.detail-hero::after{
  background:
    linear-gradient(180deg,rgba(0,42,66,.12),rgba(0,42,66,.34)),
    linear-gradient(90deg,rgba(0,42,66,.16),transparent 38%,rgba(0,42,66,.12));
}
.detail-hero-top-wave{
  display:block;
  height:clamp(76px,8vw,116px);
}
.detail-hero-bottom-wave{
  position:absolute;
  z-index:4;
  left:0;
  right:0;
  bottom:-1px;
  display:block;
  width:100%;
  height:auto;
  pointer-events:none;
}
.detail-hero-copy{
  position:relative;
  inset:auto;
  width:min(960px,calc(100% - 48px));
  padding:0 0 clamp(100px,10vw,150px);
  text-align:center;
}
.detail-badge{
  display:block;
  margin:0 0 14px;
  color:#fff;
  font-size:clamp(15px,1.45vw,20px);
  letter-spacing:.12em;
  text-shadow:0 2px 6px rgba(0,31,49,.55);
}
.detail-badge b{display:none}
.detail-hero-copy h1{
  margin:0 0 18px;
  font-size:clamp(34px,5vw,66px);
  line-height:1.18;
  text-wrap:balance;
  text-shadow:0 3px 12px rgba(0,31,49,.55);
}
.detail-project-title{
  max-width:820px;
  margin:0 auto;
  color:#fff;
  font-size:clamp(15px,1.55vw,20px);
  line-height:1.8;
  text-wrap:balance;
  text-shadow:0 2px 7px rgba(0,31,49,.7);
}

/* The detail-page project index does not use a corner arrow. */
.detail-other-arrow{display:none!important}
.detail-other-info{padding-right:16px}

@media(max-width:800px){
  .detail-hero{
    height:clamp(560px,125vw,740px);
    min-height:560px;
  }
  .detail-hero-copy{
    left:auto;
    right:auto;
    width:min(92%,680px);
    padding:0 0 104px;
  }
  .detail-hero-bottom-wave{
    width:120%;
    max-width:none;
    left:-10%;
  }
  .detail-hero-copy h1{font-size:clamp(29px,7vw,44px)}
  .detail-project-title{font-size:clamp(13px,3.4vw,17px)}
}
@media(max-width:480px){
  .detail-hero{
    height:138vw;
    min-height:540px;
    max-height:680px;
  }
  .detail-hero-copy{width:calc(100% - 36px);padding:0 0 82px}
  .detail-badge{font-size:14px}
  .detail-hero-copy h1{font-size:clamp(26px,8vw,36px)}
  .detail-project-title{font-size:13px;line-height:1.7}
}

/* ===== Main activities: icon-led blue list (no temporary photographs) ===== */
.detail-activities{
  min-height:0!important;
  overflow:visible!important;
  border-radius:0!important;
  background:transparent!important;
}
.detail-activities::before{display:none!important}
.detail-activities>div{
  width:100%!important;
  padding:0!important;
}
.detail-impl{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:18px!important;
  margin:0!important;
  padding:0!important;
}
.detail-impl li{
  min-height:112px!important;
  display:grid!important;
  grid-template-columns:82px minmax(0,1fr)!important;
  grid-template-rows:1fr!important;
  align-items:center!important;
  gap:24px!important;
  padding:18px 30px!important;
  overflow:visible!important;
  border:2px solid #8ccce8!important;
  border-left:2px solid #8ccce8!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:none!important;
  color:#17384a!important;
  font-size:17px!important;
  font-weight:600!important;
  line-height:1.75!important;
}
.detail-impl li::before{
  content:""!important;
  display:block!important;
  width:74px!important;
  height:74px!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  box-shadow:none!important;
  background-color:transparent!important;
  background-position:center!important;
  background-size:contain!important;
  background-repeat:no-repeat!important;
}
.detail-impl li:nth-child(1)::before,
.detail-impl li:nth-child(2)::before,
.detail-impl li:nth-child(3)::before{
  background-image:url("../images/activity-icon-drop.svg?v=20260806-8")!important;
}
.detail-impl li::after{display:none!important}
@media(max-width:700px){
  .detail-impl{gap:14px!important}
  .detail-impl li{
    min-height:94px!important;
    grid-template-columns:58px minmax(0,1fr)!important;
    gap:16px!important;
    padding:15px 18px!important;
    border-radius:14px!important;
    font-size:15px!important;
  }
  .detail-impl li::before{
    width:56px!important;
    height:56px!important;
  }
}

/* ===== Readability refinements ===== */

/* Make the four in-page navigation choices more distinct. */
.detail-jump a{
  border-width:2px;
  border-color:#87c9e6;
}

/*
 * The hero already carries the strongest identity treatment, so the repeated
 * numbered operator panel in the body is deliberately quieter and smaller.
 */
.detail-meta-card{
  gap:18px;
  padding:20px 26px;
  margin-bottom:42px;
  border-left-width:5px;
}
.detail-num{
  width:48px;
  height:48px;
  font-size:22px;
}
.detail-meta-info small{font-size:12px}
.detail-meta-info h3{
  margin-bottom:8px;
  font-size:clamp(22px,2.35vw,30px);
}
.detail-event-name{font-size:14px}

/* The removed arrow leaves room for balanced text padding. */
.detail-other-info{
  padding-left:16px;
  padding-right:16px;
}

@media(max-width:700px){
  .detail-meta-card{
    gap:12px;
    padding:17px 18px;
    margin-bottom:34px;
  }
  .detail-num{
    width:42px;
    height:42px;
    font-size:19px;
  }
  .detail-meta-info h3{font-size:22px}
  .detail-event-name{font-size:13px;line-height:1.55}

  .detail-other-card{
    grid-template-columns:35% minmax(0,1fr);
  }
  .detail-other-info{
    width:100%;
    padding:13px 14px;
  }
}

/* ===== Final override: compact repeated operator information ===== */
.detail-meta-card{
  gap:11px!important;
  padding:10px 14px!important;
  margin-bottom:28px!important;
  border-left-width:3px!important;
}
.detail-num{
  width:34px!important;
  height:34px!important;
  font-size:16px!important;
}
.detail-meta-info small{
  margin-bottom:2px!important;
  font-size:10px!important;
}
.detail-meta-info h3{
  margin-bottom:3px!important;
  font-size:20px!important;
  line-height:1.25!important;
}
.detail-event-name{
  font-size:11px!important;
  line-height:1.45!important;
}

@media(max-width:700px){
  .detail-meta-card{
    gap:9px!important;
    padding:9px 11px!important;
    margin-bottom:24px!important;
  }
  .detail-num{
    width:30px!important;
    height:30px!important;
    font-size:14px!important;
  }
  .detail-meta-info h3{font-size:17px!important}
  .detail-event-name{font-size:10px!important}
}

/* ===== LINKSセクション 非表示（第二フェーズまで） ===== */
#links{
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  overflow:hidden!important;
  padding:0!important;
  margin:0!important;
}
.detail-jump a[href="#links"],
nav a[href="#links"],
a[href="#links"]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* ===== ページ内ナビ: LINKSを除いた3列に（第一フェーズ） ===== */
.detail-jump{
  grid-template-columns:repeat(3,1fr)!important;
}
@media(max-width:600px){
  .detail-jump{
    grid-template-columns:1fr!important;
  }
}
