@charset "utf-8";

/* =========================================
   D&I Life Website (Reworked 2026)
   - Light mode forced (no dark reversal)
   - iOS hover-stick fix via @media (hover: hover)
   - Modernized layout while keeping original green palette
   ========================================= */

:root{
  color-scheme: light only;

  /* Palette */
  --brand:       #98ac19;
  --brand-dark:  #7a8c12;
  --brand-deep:  #4d570d;
  --brand-soft:  #f2f4e0;
  --brand-accent:#c9d55a;

  --text:        #2e2e2e;
  --text-muted:  #6b6b6b;
  --line:        #e3e3e3;
  --line-soft:   #f0f0f0;
  --bg:          #ffffff;
  --bg-soft:     #fafaf5;

  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 2px 8px rgba(0,0,0,.06);
  --shadow-lg:   0 6px 20px rgba(0,0,0,.08);
}

/* Reset */
*,*::before,*::after{ box-sizing: border-box; }
html,body,div,span,applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,
a,abbr,acronym,address,big,cite,code,
del,dfn,em,font,ins,kbd,q,s,samp,
small,strike,strong,sub,sup,tt,var,
dl,dt,dd,ol,ul,li,fieldset,form,label,
legend,table,caption,tbody,tfoot,thead,
tr,th,td{ margin:0; padding:0; border:0; vertical-align:baseline; }

article,aside,details,figcaption,figure,footer,header,
hgroup,menu,nav,section{ display:block; }

ol,ul{ list-style:none; }
table{ border-collapse:collapse; border-spacing:0; }

html{ background:#fff; }
body{
  font: 15px/1.75 "Hiragino Kaku Gothic ProN","ヒラギノ角ゴ ProN","メイリオ",Meiryo,
        "Yu Gothic","游ゴシック",sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{
  color: var(--brand-deep);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
@media (hover: hover){
  a:hover{ color: var(--brand); }
}

img{ max-width: 100%; height: auto; vertical-align: bottom; }
:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }
:focus{ outline: none; }

/* clearfix */
.inner:after,#wrapper:after,.post:after,.newsTitle:after,nav .panel:after{
  content:""; display:block; clear:both;
}

/* Layout */
.inner,#wrapper{
  width: 960px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

#wrapper{ padding-top: 10px; padding-bottom: 10px; }

#content{
  float: right;
  width: calc(100% - 260px);
  padding: 22px 0 50px;
}

#sidebar{
  float: left;
  width: 240px;
  padding: 22px 0 50px;
}

#footer{ clear: both; }

/* Header */
#header{
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
#header h1{
  padding: 8px 0 2px;
  font-size: 11px;
  font-weight: normal;
  color: var(--text-muted);
  letter-spacing: .02em;
}

#header h2{
  float: left;
  padding: 14px 5px;
}
#header h2 img{
  width: 262px;
  height: auto;
  display: block;
}
@media (hover: hover){
  #header h2 a:hover img{ opacity: .85; }
}

.contact{
  float: right;
  padding: 16px 0 8px;
  text-align: right;
  color: #000;
  font-size: 13px;
  line-height: 1.5;
}
.contact .tel{
  font-size: 26px;
  line-height: 1.2;
  font-family: "Arial Rounded MT Bold", Arial, Helvetica, sans-serif;
  color: var(--brand-deep);
  letter-spacing: .02em;
}
.contact .tel a{
  color: inherit;
  text-decoration: none;
}
@media (hover: hover){
  .contact .tel a:hover{ opacity: .75; }
}

/* Nav (PC) */
@media only screen and (min-width: 1025px){
  #mainNav{
    clear: both;
    background: var(--brand);
    position: relative;
    z-index: 200;
    box-shadow: 0 2px 4px rgba(0,0,0,.06);
  }
  #mainNav .inner{ padding: 0 15px; }
  nav .panel{ display: block; float: none; }

  #mainNav ul{
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
  }

  #mainNav li{
    flex: 1;
    min-width: 0;
    position: relative;
    border-right: 1px solid rgba(255,255,255,.2);
  }
  #mainNav li:first-child{ border-left: 1px solid rgba(255,255,255,.2); }

  #mainNav li > a{
    display: block;
    text-align: center;
    color: #fff;
    padding: 10px 8px;
    height: 54px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    transition: background .2s ease;
  }
  #mainNav li > a strong{ display: block; font-weight: 700; }
  #mainNav li > a span{
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.75);
    margin-top: 4px;
    letter-spacing: .05em;
  }

  @media (hover: hover){
    #mainNav li > a:hover{ background: var(--brand-deep); color:#fff; }
    #mainNav li > a:hover span{ color: rgba(255,255,255,.9); }
  }
  #mainNav li.current-menu-item > a{ background: var(--brand-deep); }

  #mainNav li ul{
    display: none;
    position: absolute;
    top: 54px;
    left: -1px;
    width: 180px;
    z-index: 500;
    box-shadow: var(--shadow-lg);
  }
  @media (hover: hover){
    #mainNav li:hover ul{ display: block; }
  }
  #mainNav li li{
    float: none;
    width: 180px;
    background: var(--brand);
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.2);
  }
  #mainNav li li:last-child{ border-bottom: 0; }
  #mainNav li li a{
    height: auto;
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
    white-space: normal;
    color: #fff;
  }
  @media (hover: hover){
    #mainNav li li a:hover{ background: var(--brand-deep); }
  }

  a#menu{ display: none; }
}

/* Nav (SP) */
@media only screen and (max-width: 1024px){
  #mainNav{
    clear: both;
    background: var(--brand);
    margin: 0 auto 10px;
  }
  #mainNav .inner{ padding: 0; }
  #mainNav a.menu{
    display: block;
    width: 100%;
    height: 46px;
    line-height: 46px;
    color: #fff;
    font-weight: bold;
    text-align: left;
    padding-left: 48px;
    background: url(images/menuOpen.png) no-repeat 12px 12px;
    cursor: pointer;
    user-select: none;
  }
  #mainNav a.menu.menuOpen{
    background: url(images/menuOpen.png) no-repeat 12px -30px;
  }

  nav .panel{ display: none; width: 100%; }
  #mainNav ul{ display: block; }
  #mainNav li{ display: block; }
  #mainNav li a{
    display: block;
    padding: 14px 16px;
    color: #fff;
    border-bottom: 1px dashed rgba(255,255,255,.3);
  }
  #mainNav li a strong{ display: inline; }
  #mainNav li a span{ display: none; }
  @media (hover: hover){
    #mainNav li a:hover{ background: var(--brand-deep); }
  }
  #mainNav li ul{ padding-left: 0; }
  #mainNav li li a{
    padding-left: 40px;
    background: rgba(0,0,0,.1);
    font-size: 13px;
  }
}

/* Main Image */
#mainImg{
  clear: both;
  text-align: center;
  line-height: 0;
  margin: 0 auto;
  max-width: 960px;
  padding: 0 15px;
}
#mainImg > img,
#mainImg > .hero-slider{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
#mainImg img{
  width: 100%;
  height: auto;
  display: block;
}
@media only screen and (max-width: 959px){
  #mainImg{ padding: 0 12px; }
}

/* Hero Slider */
.hero-slider{
  position: relative;
  width: 100%;
  aspect-ratio: 880 / 328;
  background: var(--bg-soft);
  user-select: none;
}
@supports not (aspect-ratio: 1){
  .hero-slider{ height: 0; padding-bottom: calc(328 / 880 * 100%); }
}
.hero-slider .slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.hero-slider .slide.active{
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-slider .slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slider::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.02) 0%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
  z-index: 2;
}
.hero-slider .dots{
  position: absolute;
  left: 0; right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.hero-slider .dots button{
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.hero-slider .dots button.active{
  background: #fff;
  transform: scale(1.25);
}
@media (hover: hover){
  .hero-slider .dots button:hover{ background: #fff; }
}
.hero-slider .arrows{
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-slider .arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(255,255,255,.75);
  color: var(--brand-deep);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: var(--shadow);
  opacity: .8;
  transition: opacity .2s ease, background .2s ease, transform .2s ease;
}
.hero-slider .arrow.prev{ left: 12px; }
.hero-slider .arrow.next{ right: 12px; }
@media (hover: hover){
  .hero-slider .arrow:hover{
    opacity: 1;
    background: #fff;
    transform: translateY(-50%) scale(1.08);
  }
}
@media only screen and (max-width: 640px){
  .hero-slider .arrow{ width: 32px; height: 32px; font-size: 16px; }
  .hero-slider .arrow.prev{ left: 8px; }
  .hero-slider .arrow.next{ right: 8px; }
  .hero-slider .dots{ bottom: 10px; }
  .hero-slider .dots button{ width: 8px; height: 8px; }
}

/* SNS Links */
.sns-links{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.sns-links a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  color: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 6px rgba(221,42,123,.25);
}
.sns-links a svg{
  width: 18px;
  height: 18px;
  fill: #fff;
  display: block;
}
@media (hover: hover){
  .sns-links a:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(221,42,123,.35);
    color: #fff;
  }
}

/* Footer SNS block */
.footer-sns{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 4px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-sns .sns-links{ margin-left: 0; }

/* Post / Card */
.post{
  margin: 0 0 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.toppage{ padding: 22px; }
.post p{ padding-bottom: 14px; }
.post p:last-child{ padding-bottom: 0; }

h2.title{
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #6b7a1a;
  border-radius: var(--radius) var(--radius) 0 0;
  letter-spacing: .04em;
  border-left: 4px solid var(--brand-accent);
}
h2.title span{
  position: relative;
  padding-left: 0;
}
h2.title span::before{
  display: none;
}

.post ul{ margin: 0 0 14px 10px; }
.post ul li{
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}
.post ul li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 2px;
  transform: rotate(45deg);
}

.post table{
  width: 100%;
  margin: 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.post table th{
  padding: 10px 12px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  font-weight: 600;
  text-align: left;
}
.post table td{
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
}

/* Image alignment */
.alignleft{
  float: left;
  margin: 4px 18px 12px 0;
  border-radius: var(--radius-sm);
}
.alignright{
  float: right;
  margin: 4px 0 12px 18px;
  border-radius: var(--radius-sm);
}

/* Gallery */
.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 18px;
}
.gallery img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
@media (hover: hover){
  .gallery img:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
}
.gallery-2{ grid-template-columns: repeat(2, 1fr); }
.gallery-2 img{ height: 200px; }

@media only screen and (max-width: 640px){
  .gallery{ grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery img{ height: 120px; }
  .gallery-2{ grid-template-columns: repeat(2, 1fr); }
  .gallery-2 img{ height: 140px; }
}

.hero-photo{
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
@media only screen and (max-width: 640px){
  .hero-photo{ height: 220px; }
}

/* Work items */
.work-item{ margin: 0 0 22px; }
.work-item h3{
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
}
.work-item p{ padding-bottom: 10px; }

/* Flow steps */
.flow-list{ margin: 0 0 16px; }
.flow-step{
  position: relative;
  padding: 14px 14px 14px 62px;
  margin-bottom: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.flow-step .num{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.flow-step .ttl{
  display: block;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 4px;
  font-size: 15px;
}
.flow-step .desc{ font-size: 14px; color: var(--text); }

/* Spec list */
.spec-list{
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  margin: 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.spec-list dt, .spec-list dd{
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.spec-list dt{
  background: var(--brand-soft);
  font-weight: 600;
  color: var(--brand-deep);
}
.spec-list dd{ background: #fff; }
.spec-list dt:last-of-type, .spec-list dd:last-of-type{ border-bottom: 0; }
@media only screen and (max-width: 640px){
  .spec-list{ grid-template-columns: 100px 1fr; }
  .spec-list dt, .spec-list dd{ padding: 10px; font-size: 14px; }
}

/* Report grid */
.report-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 10px 0 8px;
}
.report-card{
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: var(--text);
}
.report-card img{
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  margin-bottom: 8px;
}
.report-card .cap{
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}
@media (hover: hover){
  .report-card:hover{
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: var(--shadow-lg);
    color: var(--brand-deep);
  }
}
@media only screen and (max-width: 640px){
  .report-grid{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Info box */
.info-box{
  padding: 14px 16px;
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  margin: 10px 0 18px;
  font-size: 14px;
}

/* PDF / button */
.btn-pdf{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s ease, transform .2s ease;
  margin: 6px 4px 6px 0;
}
.btn-pdf::before{ content: "📄"; }
@media (hover: hover){
  .btn-pdf:hover{ background: var(--brand-deep); transform: translateY(-1px); color:#fff !important; }
}

/* Greeting */
.greet-block{ margin-bottom: 8px; }
.greet-block .name{
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.4;
}
.greet-block .name .name-main{
  display: inline-block;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: .04em;
}
.greet-block .name .name-birth{
  display: block;
  margin-top: 4px;
  font-weight: normal;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .02em;
}
/* Legacy support: keep <small> style if still used elsewhere */
.greet-block .name small{
  display: inline-block;
  margin-right: 10px;
  font-weight: normal;
  font-size: 13px;
  color: var(--text-muted);
}

/* Office card */
.office-card{ margin-bottom: 20px; }
.office-card .office-head{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.office-card .office-head img{
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.office-card .office-head h3{
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 6px;
}
.office-card .office-head .tag{
  display: inline-block;
  padding: 3px 12px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.office-card iframe{
  width: 100%;
  max-width: 560px;
  height: 300px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.office-info{
  font-size: 14px;
  line-height: 1.9;
}
.office-info strong{ color: var(--brand-deep); }
@media only screen and (max-width: 640px){
  .office-card .office-head{ flex-direction: column; align-items: flex-start; }
  .office-card .office-head img{ width: 100%; height: auto; max-height: 200px; }
  .office-card iframe{ height: 240px; }
}

/* Sidebar */
p.banner{
  padding-bottom: 18px;
  margin: 0;
}
p.banner img{
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover){
  p.banner a:hover img{ transform: translateY(-2px); box-shadow: var(--shadow-lg); }
}

/* Pamphlet banner (CSS-based, replaces side_banner1_df.jpg) */
.pamphlet-banner{
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #6b7a1a 0%, var(--brand-deep) 100%);
  color: #fff;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  margin-bottom: 20px;
  text-decoration: none;
}
.pamphlet-banner::before{
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  pointer-events: none;
}
.pamphlet-banner::after{
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  pointer-events: none;
}
.pamphlet-banner .label{
  display: inline-block;
  font-size: 10px;
  letter-spacing: .25em;
  font-weight: 600;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  margin-bottom: 12px;
}
.pamphlet-banner h4{
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 6px;
  line-height: 1.5;
  color: #fff;
  position: relative;
}
.pamphlet-banner p{
  font-size: 11.5px;
  opacity: .85;
  margin: 0 0 14px;
  padding: 0;
  line-height: 1.6;
  color: #fff;
}
.pamphlet-banner .btn-dl{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  background: #fff;
  color: var(--brand-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  transition: transform .2s ease;
  position: relative;
  z-index: 1;
}
.pamphlet-banner .btn-dl::before{
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/></svg>") no-repeat center;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/></svg>") no-repeat center;
}
@media (hover: hover){
  .pamphlet-banner:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #fff;
  }
  .pamphlet-banner:hover .btn-dl{ transform: scale(1.05); color: var(--brand-deep); }
}

.widget, .widgetInfo{
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.widget h3, .newsTitle{
  margin: 0;
  padding: 12px 16px 12px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #6b7a1a;
  border-left: 4px solid var(--brand-accent);
}
.widget h3 span{ position: relative; padding-left: 0; }
.widget h3 span::before{ display: none; }

.widget ul{
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-top: 0;
}
.widget li{ border-bottom: 1px dashed var(--line); }
.widget li:last-child{ border: 0; }
.widget li a{
  display: block;
  padding: 10px 0 10px 16px;
  color: var(--text);
  font-size: 14px;
  position: relative;
  transition: padding .2s ease;
}
.widget li a::before{
  content: "›";
  position: absolute;
  left: 2px;
  top: 9px;
  color: var(--brand);
  font-weight: 700;
}
@media (hover: hover){
  .widget li a:hover{ color: var(--brand-deep); padding-left: 20px; }
}

.newsTitle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 6px;
}
.newsTitle h3{
  float: none;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.newsTitle h3 span{
  position: relative;
  padding-left: 0;
}
.newsTitle h3 span::before{
  display: none;
}
.newsTitle p{
  float: none;
  margin: 0;
  padding: 0;
  background: none;
  font-size: 12px;
}
.newsTitle p a{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  padding: 4px 12px;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  transition: background .2s ease, padding .2s ease;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
}
.newsTitle p a::after{
  content: "›";
  font-size: 14px;
  line-height: 1;
  transition: transform .2s ease;
}
@media (hover: hover){
  .newsTitle p a:hover{ background: rgba(255,255,255,.3); color: #fff; }
  .newsTitle p a:hover::after{ transform: translateX(2px); }
}

.post.news{
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: none;
  margin: 0;
}
.news p{
  padding: 0;
  border-bottom: 1px dashed var(--line);
}
.news p:last-child{ border: 0; }
.news p a{
  display: block;
  padding: 10px 2px;
  color: var(--text);
  font-size: 14px;
  font-style: normal;
  font-family: inherit;
  font-weight: normal;
  transition: background .2s ease;
}
.news a time{
  display: inline-block;
  margin-right: 10px;
  font-size: 12px;
  color: var(--brand-deep);
  font-weight: 600;
  letter-spacing: .02em;
}
.news a span{
  color: var(--text);
  font-style: normal;
  font: normal 14px/1.5 inherit;
  padding: 0;
}
@media (hover: hover){
  .news p a:hover{ background: var(--bg-soft); color: var(--brand-deep); }
}

/* Footer */
#footer{
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
/* Footer info (enhanced: address + tel + map link) */
.footer-info{
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 15px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  font-size: 13px;
  color: var(--text);
}
.footer-info .office{
  padding: 6px 0;
}
.footer-info .office-name{
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 4px;
  font-size: 14px;
}
.footer-info .office-name .tag{
  display: inline-block;
  padding: 1px 8px;
  margin-left: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  vertical-align: 1px;
}
.footer-info .office-addr{
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 4px;
}
.footer-info .office-tel a{
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
}
.footer-info .map-link{
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--brand);
}
@media (hover: hover){
  .footer-info .map-link:hover{ color: var(--brand-deep); text-decoration: underline; }
}
@media only screen and (max-width: 640px){
  .footer-info{ grid-template-columns: 1fr; gap: 14px; padding: 22px 15px 6px; }
}
#footer ul{
  padding: 22px 0 18px;
  text-align: center;
}
#footer li{
  display: inline-block;
  padding: 5px 18px;
  border-left: 1px dotted var(--line);
}
#footer li:first-child{ border: 0; }
#footer li a{
  color: var(--text);
  font-size: 14px;
}
@media (hover: hover){
  #footer li a:hover{ color: var(--brand); }
}

#copyright{
  padding: 0 0 26px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: .05em;
}

/* Floating TEL on SP */
.floating-tel{
  display: none;
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 300;
  background: var(--brand);
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
@media only screen and (max-width: 959px){
  .floating-tel{ display: inline-flex; align-items: center; gap: 6px; }
}

/* Responsive (1 column) */
@media only screen and (max-width: 959px){
  .inner, #wrapper{ padding: 0 12px; }

  #header .inner{ text-align: center; }
  #header h2, .contact{ float: none; }
  #header h2{ padding: 12px 5px 6px; }
  .contact{ padding: 2px 0 10px; text-align: center; }
  .contact .tel{ font-size: 22px; }

  #content, #sidebar{
    float: none;
    width: 100%;
    padding: 10px 0;
  }

  p.banner{ text-align: center; }

  #footer li{ padding: 5px 10px; margin-bottom: 6px; }
}

@media only screen and (max-width: 644px){
  body{ font-size: 14px; }
  #header h2 img{ max-width: 72%; }
  h2.title{ font-size: 15px; padding: 10px 14px 10px 18px; }
  .post, .toppage{ padding: 16px 14px; }
  .contact p:not(.tel){ font-size: 12px; }
}

/* Print */
@media print{
  #mainNav, #sidebar, .floating-tel, #mainImg, #splash{ display: none; }
  #content{ float: none; width: 100%; }
}

/* ==================================================
   Splash Screen (オープニングアニメ)
   ================================================== */
#splash{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
  transition: opacity .8s ease;
}
#splash.is-hiding{
  opacity: 0;
  pointer-events: none;
}
#splash::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(152,172,25,.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(77,87,13,.06) 0%, transparent 50%);
  pointer-events: none;
}
#splash .splash-inner{
  position: relative;
  text-align: center;
  padding: 20px;
  max-width: 90%;
}
#splash .splash-logo{
  display: block;
  max-width: 340px;
  width: 78%;
  height: auto;
  margin: 0 auto 42px;
  opacity: 0;
  transform: translateY(-8px);
  animation: splashLogoIn .9s ease .15s forwards;
}
#splash .splash-line{
  position: relative;
  display: block;
  font-family: "Hiragino Mincho ProN","ヒラギノ明朝 ProN","Yu Mincho","游明朝",serif;
  font-size: clamp(24px, 5.6vw, 40px);
  font-weight: 600;
  color: var(--brand-deep);
  letter-spacing: .08em;
  line-height: 1.6;
  opacity: 0;
}
#splash .splash-line::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transform: translateX(-50%);
  animation: splashLineExpand 1.6s ease .8s forwards;
}
#splash .splash-line span{
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: splashWordIn .7s ease forwards;
}
#splash .splash-line .accent{ color: var(--brand); }
#splash .splash-line{
  animation: splashLineShow .01s ease .3s forwards;
}
#splash .splash-sub{
  display: block;
  margin-top: 44px;
  font-size: 15px;
  letter-spacing: .4em;
  font-weight: 500;
  color: var(--brand-deep);
  opacity: 0;
  animation: splashSubIn .9s ease 2.2s forwards;
}

@keyframes splashLogoIn{
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes splashLineShow{
  to{ opacity: 1; }
}
@keyframes splashWordIn{
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes splashLineExpand{
  to{ width: 80px; }
}
@keyframes splashSubIn{
  to{ opacity: .85; }
}

#splash .splash-skip{
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 10px 20px 10px 22px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: .1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s ease;
  z-index: 2;
  font-family: inherit;
}
#splash .splash-skip::after{
  content: "›";
  font-size: 16px;
  line-height: 1;
  transition: transform .2s ease;
}
@media (hover: hover){
  #splash .splash-skip:hover{
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    color: #fff;
  }
  #splash .splash-skip:hover::after{ transform: translateX(3px); }
}
@media (max-width: 640px){
  #splash .splash-skip{
    right: 14px;
    bottom: 14px;
    padding: 8px 16px 8px 18px;
    font-size: 11px;
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  #splash .splash-logo,
  #splash .splash-line,
  #splash .splash-line span,
  #splash .splash-line::after,
  #splash .splash-sub{
    animation-duration: .1s !important;
    animation-delay: 0s !important;
  }
}

/* ==================================================
   HOME: 3つの特徴カード / サービス抜粋 / CTA
   ================================================== */
.features{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 4px 0 26px;
}
.feature-card{
  padding: 20px 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-align: center;
}
.feature-card .icon{
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-deep);
}
.feature-card .icon svg{
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.feature-card h3{
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 8px;
  letter-spacing: .03em;
}
.feature-card p{
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
  padding: 0;
  margin: 0;
}
@media (hover: hover){
  .feature-card:hover{
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: var(--shadow-lg);
  }
}
@media only screen and (max-width: 640px){
  .features{ grid-template-columns: 1fr; gap: 10px; }
  .feature-card{ padding: 16px 14px 18px; }
}

/* Service preview on home */
.svc-preview{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 4px 0 22px;
}
.svc-card{
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff !important;
  aspect-ratio: 16 / 10;
  transition: transform .3s ease;
}
.svc-card img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  z-index: 0;
}
.svc-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%, rgba(0,0,0,0) 100%);
  z-index: 1;
}
.svc-card .svc-inner{
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 14px 16px;
  z-index: 2;
}
.svc-card h3{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .03em;
  margin: 0 0 2px;
  color: #fff;
}
.svc-card .more{
  font-size: 11px;
  opacity: .85;
}
@media (hover: hover){
  .svc-card:hover img{ transform: scale(1.06); }
}
@media only screen and (max-width: 640px){
  .svc-preview{ grid-template-columns: 1fr; }
}

/* CTA banner */
.cta-banner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #4d570d 0%, #6b7a1a 100%);
  border-radius: var(--radius);
  color: #fff;
  margin: 10px 0 18px;
  box-shadow: var(--shadow);
}
.cta-banner .cta-text{
  flex: 1;
  min-width: 0;
}
.cta-banner .cta-text h3{
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: .04em;
}
.cta-banner .cta-text p{
  font-size: 12.5px;
  opacity: .85;
  margin: 0;
  padding: 0;
  line-height: 1.7;
}
.cta-banner .cta-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #fff;
  color: var(--brand-deep) !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .05em;
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (hover: hover){
  .cta-banner .cta-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    color: var(--brand-deep) !important;
  }
}
@media only screen and (max-width: 640px){
  .cta-banner{
    flex-direction: column;
    text-align: center;
    padding: 20px 18px;
  }
}

/* Breadcrumb */
.breadcrumb{
  max-width: 960px;
  margin: 12px auto 0;
  padding: 0 15px;
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumb ol{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumb li{
  display: inline-flex;
  align-items: center;
  padding-left: 0 !important;
  background: none !important;
}
.breadcrumb li::before{ display: none; }
.breadcrumb li + li::before{
  content: "›";
  display: inline-block;
  margin-right: 6px;
  color: var(--text-muted);
  background: none;
  width: auto;
  height: auto;
  position: static;
  transform: none;
}
.breadcrumb a{ color: var(--brand-deep); }
.breadcrumb li[aria-current="page"]{ color: var(--text); font-weight: 600; }

/* Slider pause / play control */
.hero-slider .pause-btn{
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 4;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  color: var(--brand-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  padding: 0;
}
.hero-slider .pause-btn svg{
  width: 14px;
  height: 14px;
  fill: currentColor;
}
@media (hover: hover){
  .hero-slider .pause-btn:hover{ background: #fff; }
}
@media only screen and (max-width: 640px){
  .hero-slider .pause-btn{ width: 26px; height: 26px; left: 10px; bottom: 8px; }
}

/* Contact channels (contact.html) */
.contact-channels{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 22px;
}
.channel-card{
  padding: 20px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.channel-card .icon{
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-card .icon svg{ width: 22px; height: 22px; fill: currentColor; }
.channel-card h3{
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.channel-card .val{
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: .02em;
  word-break: break-all;
}
@media (hover: hover){
  .channel-card:hover{
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: var(--shadow-lg);
    color: var(--brand-deep);
  }
}
@media only screen and (max-width: 640px){
  .contact-channels{ grid-template-columns: 1fr; }
  .channel-card .val{ font-size: 15px; }
}

/* Company info table (enhanced) */
.company-info{
  width: 100%;
  margin: 14px 0 20px;
  border-top: 1px solid var(--line);
}
.company-info dt, .company-info dd{
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.company-info dt{
  float: left;
  clear: left;
  width: 140px;
  font-weight: 600;
  color: var(--brand-deep);
}
.company-info dd{
  margin-left: 140px;
  color: var(--text);
}
@media only screen and (max-width: 640px){
  .company-info dt{ width: 100px; font-size: 13px; }
  .company-info dd{ margin-left: 100px; font-size: 13px; }
}

/* ==================================================
   Year Accordion (press.html 各年度をタブごと開閉)
   緑のタイトルバーそのものが summary になる
   ================================================== */
.year-accordion{
  margin: 0 0 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.year-accordion > summary{
  cursor: pointer;
  list-style: none;
  display: block;
  position: relative;
  padding: 14px 54px 14px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #6b7a1a;
  border-left: 4px solid var(--brand-accent);
  letter-spacing: .04em;
  transition: background .2s ease;
  border-radius: var(--radius) var(--radius) 0 0;
}
.year-accordion > summary::-webkit-details-marker{ display: none; }
.year-accordion > summary::after{
  content: "＋";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  transition: transform .25s ease;
}
.year-accordion[open] > summary{
  background: var(--brand-deep);
  border-radius: var(--radius) var(--radius) 0 0;
}
.year-accordion[open] > summary::after{
  content: "−";
}
@media (hover: hover){
  .year-accordion > summary:hover{ background: var(--brand-deep); }
}
.year-accordion .year-body{
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
}
.year-accordion .year-body .report-grid{ margin: 0; }

/* Simple press note text */
.press-note{
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 22px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-left: 3px solid var(--brand-accent);
  border-radius: var(--radius-sm);
}

/* Greeting paragraphs (concept.html 代表あいさつ) */
.greet-p{
  margin-bottom: 18px;
  line-height: 2;
  padding-bottom: 4px;
}
.greet-p:last-of-type{ margin-bottom: 0; }
@media only screen and (max-width: 640px){
  .greet-p{ line-height: 1.9; margin-bottom: 16px; }
}

/* Hero message (index.html ヒーロー直下のキャッチ) */
.hero-message{
  text-align: center;
  padding: 28px 20px 22px;
  margin: 0 0 8px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
}
.hero-message::before{
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--brand);
  border-radius: 0 0 3px 3px;
}
.hero-message p{
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 600;
  color: var(--brand-deep);
  letter-spacing: .04em;
}
.hero-message .hero-message-sub{
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .02em;
}
@media only screen and (max-width: 640px){
  .hero-message{ padding: 22px 16px 18px; }
  .hero-message p{ font-size: 15px; }
  .hero-message .hero-message-sub{ font-size: 12px; }
}
