/* =========================================
   Yamato HP (Clean & Stable)
   - PC: text menu visible / burger hidden
   - Mobile: burger + dropdown
   - Hero: 2 columns (1.3fr / 1fr) like original
   ========================================= */

/* --- Variables --- */
:root{
  --brand-blue:#1e6fbf;
  --brand-blue-dark:#174f88;
  --text-main:#333333;
  --text-sub:#666666;
  --bg-light:#f5f7fb;

  --border:#e4e7f0;
}

/* --- Reset --- */
*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text-main);
  line-height:1.6;
  background:#fff;
}

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

.wrapper{
  max-width:1000px;
  margin:0 auto;
  padding:0 16px;
}

/* =========================================
   Header / Navigation
   （重要：header内の nav だけに効かせる）
   ========================================= */
header{
  position:sticky;
  top:0;
  z-index:2000;
  background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between; /* ←PCで左右に割れるのを防ぐ */
  gap:16px;
  padding:4px 4px;
  position:relative; /* mobile dropdown anchor */
}

.logo{
  display:flex;
  align-items:center;
  gap:8px;
}

.logo-text{
  font-size:12px;
  color:var(--text-sub);
}

.logo img{
  height:auto;
  width:100%;
  max-width:200px;
  margin:0;
  padding:0;
}

/* PC: menu text visible */
header nav #navList{
  list-style:none;
  display:flex;
  align-items:center;
  gap:20px;
  font-size:14px;

  /* PCで“絶対に消さない” */
  opacity:1;
  transform:none;
  pointer-events:auto;

  white-space:nowrap;
  flex-wrap:nowrap;

  position:static;
  background:transparent;
  border:none;
  border-radius:0;
  padding:0;
  margin:0;
  box-shadow:none;
}

/* underline hover */
header nav a{
  position:relative;
  padding-bottom:2px;
}
header nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:2px;
  background:var(--brand-blue);
  transition:width .2s ease;
}
header nav a:hover::after{ width:100%; }

/* Burger (mobile only) */
#menuToggle{
  display:none;
  font-size:26px;
  cursor:pointer;
  line-height:1;
  padding:6px 10px;
  border-radius:10px;
  user-select:none;
}
#menuToggle:hover{
  background:rgba(30,111,191,.08);
}

/* Mobile dropdown */
@media (max-width:768px){
  #menuToggle{
    display:block;
    margin-left:auto; /* 右端固定 */
  }

  /* モバイルは navList をドロップダウン */
  header nav{
    position:relative;
  }

  header nav #navList{
    position:absolute;
    top:calc(100% + 10px);
    right:8px;

    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;

    min-width:220px;
    padding:6px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    box-shadow:0 10px 24px rgba(0,0,0,.14);
    z-index:2100;

    opacity:0;
    transform:translateY(-8px);
    pointer-events:none;
    transition:opacity .22s ease, transform .22s ease;

    white-space:normal;
  }

  header nav #navList a{
    display:block;
    padding:10px 12px;
    border-radius:10px;
  }

  header nav a::after{ display:none; }

  header nav #navList a:hover{
    background:rgba(30,111,191,.08);
  }

  /* open state */
  header.nav-open nav #navList{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }
}

/* =========================================
   Hero  （元のレイアウトへ固定）
   ========================================= */
.hero{
  background:linear-gradient(135deg,#ffffff 0%,var(--bg-light) 55%,#e1ebfb 100%);
  padding:56px 0 64px;
}

.hero-inner{
  display:grid;
/*  grid-template-columns:1.3fr 1fr; /* ←元の“でかいヒーロー” */
  grid-template-columns:1fr;
  gap:40px;
  align-items:center;
}

.hero-kicker{
  font-size:12px;
  letter-spacing:.15em;
  color:var(--brand-blue);
  margin-bottom:8px;
}

.hero-title{
  font-size:32px;
  font-weight:700;
  margin-bottom:16px;
  line-height:1.4;
}

.hero-lead{
  font-size:15px;
  color:var(--text-sub);
  margin-bottom:24px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:16px;
  justify-content: flex-start; /* ←ここが重要 */
  align-items: center;
}

.btn-primary{
  background:var(--brand-blue);
  color:#fff;
  border-radius:40px;
  padding:10px 22px;
  font-size:14px;
  font-weight:600;
  border:none;
  cursor:pointer;
  display:inline-flex;
  gap:6px;
  box-shadow:0 4px 10px rgba(23,79,136,.35);
}
.btn-primary:hover{ transform:translateY(-1px); }

.btn-outline{
  background:#fff;
  color:var(--brand-blue);
  border-radius:40px;
  padding:9px 20px;
  border:1px solid var(--brand-blue);
  display:inline-flex;
  gap:6px;
}
.btn-outline:hover{
  background:var(--brand-blue);
  color:#fff;
}

.hero-note{
  font-size:12px;
  color:var(--text-sub);
}

/* hero text background */
.hero-text-bg{
  background:
    linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.92)),
    url("../image/headeroffice.jpg");
  background-size:1150px auto;
  background-repeat:no-repeat;
  background-position:top;
  border-radius:16px;
  padding:18px;
}

/* 会社案内のページ用付け足し */
#message .hero-text-bg{
  background-position:center;
  background-size:cover;
  min-height:330px;
}
/* 会社案内のページ用付け足し */


.hero-visual{
  background:#fff;
  border-radius:16px;
  padding:18px;
  border:1px solid #e3e7f2;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.hero-visual-media{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #dde3f7;
  background:#fff;
  aspect-ratio:16/7.7;
}

.hero-slide{
  position:absolute;
  pointer-events: none;   /* まず全部クリック不可 */
  inset:0;
  opacity:0;
  transition:opacity .8s ease;
}
.hero-slide.active{
  opacity:1; 
  pointer-events: auto;   /* 表示中だけクリック可 */
  z-index: 2;             /* 念のため最前面 */
}

.hero-slide img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}




/* dots */
.slider-dots{
  display:flex;
  justify-content:center;
  gap:6px;
  margin-top:10px;
}
.slider-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#c7d2e8;
  cursor:pointer;
  transition:background-color .3s;
}
.slider-dot.active{ background:var(--brand-blue); }

/* =========================================
   Fade-in
   ========================================= */
.fade-in{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .6s ease, transform .6s ease;
}
.fade-in.show{
  opacity:1;
  transform:translateY(0);
}

/* =========================================
   Sections Common
   ========================================= */
section{ padding:56px 0; }

.section-title{
  font-size:22px;
  font-weight:700;
  margin-bottom:8px;
}

.section-lead{
  font-size:14px;
  color:var(--text-sub);
  margin-bottom:24px;
}

/* Services */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}

.service-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
  box-shadow:0 6px 16px rgba(0,0,0,.04);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.service-card:hover{ transform:translateY(-4px); }

.service-tag{
  font-size:10px;
  background:#eef4ff;
  padding:2px 8px;
  border-radius:999px;
}

.service-title{
  font-size:16px;
  font-weight:600;
}

.service-body{
  font-size:13px;
  color:var(--text-sub);
  flex:1;
}

.service-link{
  font-size:13px;
  color:var(--brand-blue);
  display:inline-flex;
  gap:4px;
}

/* About background */
#about{ position:relative; overflow:hidden; }
#about::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:min(1600px, 100vw);
  height:100%;
  background-image:url("../image/honsha.jpg");
  background-size:contain;
  background-repeat:no-repeat;
  background-position:top center;
  opacity:.12;
  z-index:0;
}
#about > *{ position:relative; z-index:1; }

.about-short{
  background:var(--bg-light);
  border-radius:16px;
  padding:40px 32px;
  border:1px solid #dde3f3;
}
.about-short p{
  font-size:14px;
  margin-bottom:16px;
}

/* Shop */
.shop-list{
/*  border-top: 1px solid #eceff5; */
  padding-top: 18px;

  display: flex;
  flex-wrap: wrap;          /* 画面が狭い時は折り返す */
  gap: 14px 18px;           /* 縦 横 */
  align-items: center;
}


.shop-icon{
  flex: 0 0 calc(50% - 9px);           /* 勝手に伸びない */
}

.shop-icon a{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;             /* ←アイコンの見た目サイズ（好みで 120〜200） */
  height: 150px;             /* 高さを揃えて“横並び感”を作る */
  padding: 10px;

  border: 1px solid #eceff5;
  border-radius: 12px;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.shop-icon img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;      /* ロゴを切らずに収める */
  display: block;
}

.shop-icon a:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* スマホで見た目を少し詰める */
@media (max-width: 600px){
  .shop-list{
    flex-direction: column;   /* 縦並び */
    align-items: center;      /* 中央寄せ */
  }
  .shop-icon a{
    width: 90%;
    height: 200px;
    padding: 8px;
  }
}
/* News */
.news-list{
  list-style:none;
  border-top:1px solid #eceff5;
  max-height:170px;   /* 表示高さ（好みで調整） */
  overflow-y:auto;    /* 縦スクロール */
  padding-right:8px;  /* スクロールバー余白 */
  margin: 0;
}
.news-list::-webkit-scrollbar{
  width: 6px;
}

.news-list::-webkit-scrollbar-thumb{
  background: #c8c8c8;
  border-radius: 999px;
}

.news-list::-webkit-scrollbar-track{
  background: transparent;
}

.news-item{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px 0;
  border-bottom:1px solid #eceff5;
  font-size:13px;
}
.news-date{
  width:88px;
  color:var(--text-sub);
}

/*
.news-label{
  font-size:11px;
  padding:2px 8px;
  border-radius:999px;
  background:#eef4ff;
  color:var(--brand-blue-dark);
  margin-right:6px;
}
.news-label{

  font-size:12px;
  padding:3px 8px;
  border-radius:20px;
  margin-right:8px;
  font-weight:600;

}
*/
.news-label{
  font-size:11px;
  padding:2px 8px;
  border-radius:999px;
  background:#eef4ff;
  color:var(--brand-blue-dark);
  margin-right:6px;
}


/* お知らせ */

.news-label.news{

  background:#dceeff;
  color:#2b6cb0;

}

/* 製品情報 */

.news-label.product{

  background:#ffe3ec;
  color:#c53060;

}
.news-new{
  font-size:10px;
  font-weight:bold;
  color:#fff;
  background:#ff4d4d;
  padding:2px 6px;
  border-radius:999px;
  margin-left:6px;
}

.news-title{ flex:1; }











/* Footer */
footer{
  background:var(--brand-blue-dark);
  color:#fff;
  padding:24px 0 14px;
  margin-top:24px;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  font-size:13px;
  margin-bottom:16px;
}
.footer-company{ max-width:60%; }
.footer-links{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.footer-bottom{
  text-align:center;
  font-size:11px;
  opacity:.8;
}

.contact-icon{
  height:26px;
  vertical-align:middle;
  margin-left:6px;
}

.contact-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.contact-link img{
  height:20px;
}


/* Products */
#products{
/*  border-top:1px solid #eceff5; */
  padding-top: 40px;
}

.product-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.product-card{
  display:block;
  padding: 18px 18px;
  border:1px solid #eceff5;
  border-radius:16px;
  background:#fff;
  text-decoration:none;
  color: inherit;
}

.product-card__title{
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card__text{
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

.center{
  margin-top: 18px;
  text-align:center;
}




/* Strengths */
#strengths{
/*  border-top:1px solid #eceff5; */
  padding-top:40px;
}

.strengths-grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:16px;
}

.strength-card{
  border:1px solid #eceff5;
  border-radius:16px;
  background:#fff;
  padding:18px;
}

.strength-card h3{
  margin:0 0 8px;
  font-size:16px;
}

.strength-card p{
  margin:0;
  font-size:13px;
  color:var(--text-sub);
  line-height:1.7;
}

.strength-card h3{
  display:flex;
  align-items:center;
  gap:8px;
}

.icon{
  width:20px;
  height:20px;
  vertical-align:-3px;
  margin-right:6px;
  filter: brightness(0) saturate(100%) invert(32%) sepia(86%) saturate(469%) hue-rotate(183deg);
}
 
/* 会社案内 */

/* =========================================
   Company Page (add-on)  ※style.css末尾に追記
   他ページに影響しないよう .page-company 配下に閉じる
   ========================================= */
.page-company .company-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:20px;
  align-items:start;
}
@media (max-width:900px){
  .page-company .company-grid{ grid-template-columns:1fr; }
}

/* 会社概要テーブル */
.page-company .table-wrap{ overflow:auto; }
.page-company .profile-table{
  width:100%;
  border-collapse:collapse;
}
.page-company .profile-table th,
.page-company .profile-table td{
  padding:12px 12px;
  border-bottom:1px solid #eceff5;
  text-align:left;
  vertical-align:top;
  font-size:14px;
}
.page-company .profile-table th{
  width:180px;
  color:var(--text-sub);
  background:rgba(0,0,0,.02);
}

/* 沿革 */
.page-company .timeline{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
}
.page-company .timeline li{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap:12px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
}
.page-company .timeline time{
  font-weight:700;
  color:var(--brand-blue-dark);
}
.page-company .company-grid{
  align-items:stretch;
}

.page-company .company-message{
  height:100%;
}
/* Map */
.page-company .company-map iframe{
  width:100%;
  height:340px;
  border:0;
  border-radius:12px;
}

/* 小物 */
.page-company .company-sign{ margin-top:12px; color:var(--text-sub); }
.page-company .company-photo img{
  max-width:250px;
  width:100%;
  height:auto;
  margin:auto;
  border-radius:12px;
}
.company-photo{
  display:flex;
  align-items:center;
  justify-content:center;
}

.page-company .company-grid.no-photo{
  grid-template-columns: 1fr;
}

.page-company .company-grid.no-photo .company-photo{
  display:none;
}


.page-company .page-hero{ padding:48px 0 56px; } /* heroより少し詰めたいなら */


.page-company .locations-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
  gap:24px;
  margin-top:32px;
}

.page-company .location-card{
  background:#fff;
  padding:24px;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}

.page-company .location-card h3{
  margin-bottom:10px;
}

.page-company .location-card ul{
  padding-left:18px;
}

.page-company .office-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 24px;
  margin-top:10px;
}

.page-company .office-grid p{
  font-size:.9rem;
  line-height:1.6;
  color:#555;
}

.page-company .sites-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
  margin-top:24px;
}
@media (max-width:900px){
  .page-company .sites-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:600px){
  .page-company .sites-grid{ grid-template-columns:1fr; }
}

.page-company .site-card{
  background:#fff;
  border:1px solid #eceff5;
  border-radius:16px;
  padding:18px;
  box-shadow:0 6px 16px rgba(0,0,0,.04);
}

.page-company .site-title{
  font-size:16px;
  margin:0 0 6px;
}

.page-company .site-meta{
  margin:0 0 10px;
  font-size:13px;
  color:var(--text-sub);
}

.page-company .site-addr{
  margin:0 0 12px;
  font-size:13px;
  line-height:1.65;
  color:#444;
}

.page-company .site-tel{
  margin:0;
  display:grid;
  gap:6px;
  font-size:13px;
}
.page-company .site-tel > div{
  display:grid;
  grid-template-columns:50px 1fr;
  align-items:baseline;
}
.page-company .site-tel dt{ color:var(--text-sub); }
.page-company .site-tel dd{ margin:0; font-weight:600; }



/* philosophy整形（既存service-card流用） */
#philosophy .service-body{
  color:var(--text-sub);
  font-size:13px;
  line-height:1.75;
}

/* MISSION：段落の余白 */
#philosophy .service-body p{ margin:0; }
#philosophy .service-body p + p{ margin-top:10px; }

/* VALUE：見出し＋説明をブロック化 */
#philosophy .value-list{
  display:grid;
  gap:12px;
}
#philosophy .value-head{
  font-weight:700;
  color:var(--text-main);
  margin-bottom:2px;
}
#philosophy .value-item p{ margin:0; }

/* POLICY：番号付き＋余白を整える */
#philosophy .policy-steps{
  margin:0;
  padding-left:18px; /* 番号用 */
  display:grid;
  gap:10px;
}
#philosophy .policy-steps li{ color:var(--text-sub); }
#philosophy .step-head{
  font-weight:700;
  color:var(--text-main);
  margin-bottom:2px;
}
#philosophy .policy-steps p{ margin:0; }




/* =========================================
   Responsive
   ========================================= */
@media (max-width:900px){
/*  .hero-inner{ grid-template-columns:1fr; }*/
  .services-grid{ grid-template-columns:repeat(2, 1fr); }
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
  .strengths-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width:600px){
  .services-grid{ grid-template-columns:1fr; }
  .hero-title{ font-size:23px; }
  .product-grid{ grid-template-columns: 1fr; }
  .strengths-grid{ grid-template-columns: 1fr; }
}

