/* ==========================================
   Base Styles & Reset
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #333;
  font-family: Arial,Helvetica,Verdana,"ヒラギノ角ゴPro W3","Hiragino Kaku Gothic Pro",Osaka,"メイリオ",Meiryo,"ＭＳ Ｐゴシック",sans-serif;
  line-height:1.6;
}
/* 共通コンテナ（中央寄せ＆レスポンシブ幅） */
.container {
  width: 90%;
  max-width: 1024px;
  margin: 0 auto;
}
img {
  max-width: 100%;
  height: auto;
}
/* ==========================================
   Header & Navigation
   ========================================== */
header{
  background-color: #fff;
/*  box-shadow: 0 2px 5px rgba(0,0,0,0.05);*/
  position: sticky;
  top: 0;
  z-index: 100;
}

header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 32px;
}

header .logo a {
  font-weight: bold;
  font-size: 1.25rem;
  text-decoration: none;
}
header .logo img {
  max-width: none;
  width: auto;
  height: auto;
}
header .site-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

header .site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  font-family: "Times New Roman", Times, "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  color:#041736;
}
header .site-nav a:visited {
  color:#041736;
}

header .site-nav a:hover {
  transition: color 0.5s;
  color: #ad821d;
}

#home,#top {
  scroll-margin-top: 100px;
}

/* ==========================================
   Hero Section
   ========================================== */

section#hero {
  scroll-margin-top: 100px;
}
section#hero .container{
  background: #fff url('img/hero.jpg') no-repeat top right;
  padding: 24px 90px;
}

section#hero h1 {
  position: relative;
  left: -28px;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

section#hero p.logotext {
  width: fit-content;
  font-weight: 900;
  font-size: 1.3rem;
  font-family: "Times New Roman", Times, "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}
section#hero p.logotext em {
  font-style: normal;
  color: #ad821d;
}
section#hero p.herotext {
  font-size: 0.8rem;
  margin: 12px 0;
}
/* ==========================================
   Content & Grid
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

.grid-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr; 
  }

.content {
}
main section{
}
section .sidebar{
  padding:1.2rem 1.2rem 1.2rem 90px;
  font-family: "Times New Roman", Times, "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  background-color: #041736;
  color: #fff;
}
#home section#business .sidebar,#home section#recruit .sidebar{
  background-color: #f7f7f7;
  color: #041736;
}
#home section#history .sidebar{
  background-color: #fff;
  color: #041736;
}
section .sidebar h2{
  font-size: 1.2rem;
}
section .sidebar p{
  font-size: 0.7rem;
}
section .sidebar h2 span.en{
  display: block;
  color: #ad821d;
  font-size: 0.7rem;
  text-transform: uppercase;
}
section .sidebar p{
  font-size: 0.7rem;
}
.view-more-btn {
  display: inline-flex;
  margin-top: 1.0rem;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 40px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #ad821d; 
  box-sizing: border-box;
  border-radius: 3px;
  color: #ad821d;
  font-weight: bold;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
}

.view-more-btn::after {
  content: '→';
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.view-more-btn:hover {
  background-color: #eee;
  color: #a4875c;
  border-color: #a4875c;
}
.view-more-btn:hover::after {
  transform: translateX(5px);
}


.main-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0px;
  max-width: 940px;
  margin: 0 auto;
  padding: 0;
}

#home #philosophy .main-content .grid {
  margin-top:36px;
  padding: 60px 18px 30px;
  text-align: center; 
  box-sizing: border-box;
  background: #fff url('img/philosophy1.png') no-repeat center top;
}
#home #philosophy .main-content .vision {
  border-left:1px solid #eee;
  background-image: url('img/philosophy2.png');
}
#home #philosophy .main-content .value {
  border-left:1px solid #eee;
  background-image: url('img/philosophy3.png');
}

#home #philosophy .main-content .grid h3 {
  color: #041736;
  margin-top: 0;
  text-transform: uppercase;
  font-family: "Times New Roman", Times, "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

#home #philosophy .main-content .grid p {
  font-size: 0.8rem;
  margin: 0;
}

#home #history .main-content {
  padding: 30px 0;
  text-align: left; 
}
#home #history dl.history-timeline {
  background: #fff url('img/history.jpg') no-repeat center bottom;
  box-sizing: border-box;
  display: flex;
 }
#home #history dl.history-timeline .timeline-item{
  background: url('img/history-dt.png') no-repeat center 1.6rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  text-align:center;
  color: #041736;;
  flex:1;
  padding: 0 1rem;
 }
#home #history dl.history-timeline .last{
  background-image: url('img/history-dt-last.png');
}
#home #history dt {
  font-size: 1.2rem;
  font-weight: 999;
  white-space: nowrap;
  text-transform: uppercase;
  text-align:center;
  font-family: "Times New Roman", Times, "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  color: #041736;;
 }
#home #history h3 {
  margin-top:1rem;
  white-space: nowrap;
  letter-spacing: -0.05em; 
  font-size: 0.7rem;
  text-align:center;
  color: #a4875c;
}
#home #history ul {
  margin: 1rem 0 0;
  font-size: 0.6rem;
  text-align:left;
}

#home #business .main-content {
  margin:0;
}
#home #business .main-content .grid {
  margin-top:24px;
  padding: 95px 0 0;
  text-align: left; 
  box-sizing: border-box;
  background: #fff url('img/business-dispatch.jpg') no-repeat left top;
}
#home #business .main-content .ec {
  background-image: url('img/business-ec.jpg') ;
}
#home #business .main-content .trust {
  background-image: url('img/business-trust.jpg') ;
}
#home #business .main-content div dl{
  background: #fff url('img/dl-dispatch.png') no-repeat left top;
}
#home #business .main-content div.ec dl{
  background-image: url('img/dl-ec.png');
}
#home #business .main-content div.trust dl{
  background-image: url('img/dl-trust.png');
}

#home #business .main-content .grid dt {
  padding: 0 0 0 65px;
  color: #041736;
  margin-top: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-family: "Times New Roman", Times, "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

#home #business .main-content .grid dd {
  min-height:60px;
  font-size: 0.6rem;
  margin: 10px 0 0 0;
  padding: 0 0 0 65px;
}

#home #brand .main-content {
  margin:0;
  background: #fff url('img/brand.jpg') no-repeat center top;
}
#home #recruit .main-content {
  margin:0;
  background: #fff url('img/recruit.jpg') no-repeat center top;
}
#home #company .main-content {
  margin:0;
  background: #fff url('img/company.jpg') no-repeat center top;
}
/* ==========================================
   Each-content
   ========================================== */
section#philosophy .sidebar,section#brand .sidebar,section#company .sidebar{
  background-color: #041736;
  color: #fff;
}
#each-content {
	padding:1.2rem;
}
#each-content h3 {
	margin: 1.2rem;
	color: #041736;
	font-family: "Times New Roman", Times, "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}
#each-content h4 {
	margin: 1.2rem 1.2rem 1.2rem 2.4rem;
	color: #ad821d;
	font-family: "Times New Roman", Times, "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  }
  
#each-content time{
  display: block;
  color: #ad821d;
  font-size: 0.8rem;
}
#each-content p {
	margin: 1.2rem 1.2rem 1.2rem 2.4rem;
  font-size: 0.9rem;
}
#each-content em {
font-style:normal;
	font-weight:999;
}
#each-content ul {
	margin: 1.2rem 1.2rem 1.2rem 2.4rem;
  font-size: 0.9rem;
}
#each-content li {
	list-style: none;
}
#each-content figcaption{
	margin: 1.2rem 1.2rem 1.2rem 2.4rem;
}
#each-content blockquote{
	margin: 1.2rem 1.2rem 1.2rem 2.4rem;
	font-size:1.2rem;
	font-style:italic;
	font-weight:900;
	font-family: "Times New Roman", Times, "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
	color: #041736;
}
.grid-list {
  display: grid;
  margin: 1.2rem 1.2rem 1.2rem 2.4rem;
  grid-template-columns: 200px 1fr; /* dtの幅 / ddの幅（自動補完） */
  gap: 10px 20px; /* 上下の余白 左右の余白 */
  font-size: 0.9rem;
}
.grid-list dd {
  margin-left: 0;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding: 0;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
}
.logo-item img:hover {
  filter: grayscale(0%);
}



/* ==========================================
   Footer
   ========================================== */
footer{
  background-color: #041736;
  color: #fff;
  font-family: "Times New Roman", Times, "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 0.8rem;
}
footer .footer-logo{
  line-height:0;
}
footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 32px;
}

footer .footer-right{
  display: flex;
  gap: 20px;
  align-items: center;
}


footer .pagetop-btn {
  display: block;
  width: 48px;
  height: 48px;
  background-color: #041736;
  border-radius: 50%;
  position: relative;
  border: 2px solid #ad821d;
  transition: all 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}

/* 中央の上向き矢印 */
footer .pagetop-btn::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid #ad821d;
  border-left: 3px solid #ad821d;
  transform: translate(-50%, -20%) rotate(45deg);
}
footer .pagetop-btn:hover {
    transition: color 0.5s;
    background-color: #fff;
}
/* ==========================================
   Responsive (モバイル向け調整)
   ========================================== */
@media (max-width: 1024px) {
header .header-inner,header .footer-inner {
    flex-direction: column;
    gap: 15px;
  }

header .site-nav ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width:100%;
    padding: 0;
    margin: 0;
    text-align: center;
    font-size:0.6rem
  }

header .site-nav a {
    display: block;
    padding: 8px;
    background-color:#f7f7f7;
  }
  

.footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 30px 16px;
  }

.footer-right {
    flex-direction: column-reverse;
    gap: 16px; 
  }

  .footer-right p:first-child {
    font-size: 12px;
  }
  
section#hero{
    display:none;
  }
#home section#hero {
    display:block;
    padding: 1rem 0;
}

section#hero .container{
  padding: 24px;
}

section#hero h1 {
  position: static;
}

.grid-wrap {
  grid-template-columns: 1fr; 
}
.logo-grid {
grid-template-columns: repeat(2, 1fr);
gap: 16px;

}
  
#home section#history .sidebar{
  background-color: #f7f7f7;
}  
section .sidebar{
  padding:1.2rem 1.2rem 1.2rem 24px;
}

.main-content {
  display: block;
  width:100%;
  padding: 12px 0;
}
#home #philosophy .main-content .grid {
  margin-top:12px;
  padding: 12px 12px 12px 64px; 
  border:none;
  text-align: left; 
  background-position: left center;
}
#home #history dl.history-timeline {
  background-image: none;
  box-sizing: content-box;
  display: block;
 }
#home #history dl.history-timeline .timeline-item{
  background-image: none;
 }
#home #history dt {
  text-align:left;
 }
#home #history h3 {
  margin-top:0;
  letter-spacing: 0; 
  font-size: 0.8rem;
  text-align:left;
}
#home #history ul {
  margin:1rem 0 1rem 1rem;
  font-size: 0.8rem;
  text-align:left;
}
#home #business .main-content .grid {
  margin-top:0;
  padding:0;
  background-image: none ;
}
#home #business .main-content .grid dt {
  padding: 0 0 0 65px;
  color: #041736;
  margin: 12px;
  line-height:1.2rem;
  font-size: 1rem;
}

#home #business .main-content .grid dd {
  min-height:60px;
  font-size: 0.8rem;
  margin: 12px;
  padding: 0 0 0 65px;
}
#home #brand .main-content {
  background-image: none;
}
#home #recruit .main-content {
  background-image: none;
}
#home #company .main-content {
  background-image: none;
}
#each-content {
	padding:0;
}

}