* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #222;
  background-color: #ffffff;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}
main.about {
  padding-top: 150px;  
}
  

.about {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

  /* ヘッダー */

  .header {
    position: fixed;
    height: 90px;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background-color: #19263ee2;
    border-radius: 100px;
    z-index: 1000;
  }
  
  .header-inner {
    max-width: 1100px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo img {
    display: block;
    max-width: 10rem;
    line-height: 1;
  }
  
  .nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
  }
  
  .nav a {
    display: flex;
    color: #fff;
    font-size: 14px;
    position: relative;
    line-height: 1;
  }
  
  .nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s;
  }
  
  .nav a:hover::after {
    width: 100%;
  }
  
  .hamburger {
    display: none;
    cursor: pointer;
  }
  
  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
  }
  
/* メイン */

 .about{
    padding-top: 120px;
}

  .about-hero {
    text-align: center;
    margin-bottom: 80px;
  }
  
  .about-hero h1 {
    font-size: 32px;
    margin-bottom: 8px;
  }
  
  .about-hero p {
    color: #777;
    letter-spacing: 0.1em;
  }
  
  /* 共通セクション */
  .about-section {
    margin-bottom: 72px;
  }
  
  .about-section h2 {
    font-size: 22px;
    margin-bottom: 24px;
    border-left: 4px solid #c0c8d7;
    padding-left: 12px;
  }
  
  /* 企業理念 */
  .philosophy {
    font-size: 16px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
  }
  
  /* 会社情報テーブル */
  .company-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
  }
  
  .company-table th,
  .company-table td {
    padding: 16px;
    border-bottom: 1px solid #eee;
  }
  
  .company-table th {
    width: 30%;
    background: #f0f2f5;
    text-align: left;
  }
  
  /* 沿革 */
  .history {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .history li {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
  }
  
  .history .year {
    font-weight: bold;
    color: #c0c8d7;
    min-width: 60px;
  }
  
  /* フェードイン用 */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
  }
  
  .fade-in.show {
    opacity: 1;
    transform: translateY(0);
  }
  

.message-section {
  margin-top: 80px;
}

.message-box {
  background: #f7f9fc;
  padding: 40px;
  border-radius: 20px;
  position: relative;
}

.message-text p {
  margin-bottom: 20px;
  line-height: 1.9;
}

.message-sign {
  text-align: right;
  font-weight: 600;
  color: #19263e;
  margin-top: 32px;
}

.message-photo {
  text-align: center;
  margin-bottom: 32px;
}

.message-photo img {
  width: 220px; 
  max-width: 100%;
  height: auto;
  border-radius: 12px; 
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); 
  object-fit: cover;
}


#message {
  scroll-margin-top: 140px;
}

.about-nav {
  margin: 40px 0 60px;
}

.about-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.about-nav a {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #bfa46f;
  color: #bfa46f;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: 0.3s;
  background: #fff;
}

.about-nav a:hover {
  background: #bfa46f;
  color: #fff;
}

.about-section {
  margin-bottom: 100px;
    scroll-margin-top: 180px; 
  
}

.about-section-photo {
  text-align: center;
  margin-bottom: 32px;
}

.about-section-photo img {
  width: 400px; 
  max-width: 100%;
  height: auto;
  border-radius: 12px; 
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); 
  object-fit: cover;
}


.footer {
  background: #19263e;
  color: #fff;
  padding: 60px 20px 20px;
  margin-top: 120px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-company img {
  width: 180px;
  margin-bottom: 16px;
}

.footer-company p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: 0.3s;
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-copy {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: #c0c8d7;
}

@media (max-width: 900px) {
  .target-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card.no-image {
  padding: 28px 16px;
}

.product-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #19263e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 2px;
}

.product-card.no-image p {
  font-size: 13px;
  color: #666;
}

.target-card {
  background: #f7f9fc;
  color: #19263e;
  border: 1px solid #e1e6ef;
  font-weight: 600;
}

.note-box {
  background: #ffffff;
  border: 2px solid #19263e;
  font-size: larger;
  text-align: center;
  font-weight: 500;
}

.footer {
  background: #19263e;
  color: #fff;
  padding: 60px 20px 20px;
  margin-top: 120px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-company img {
  width: 180px;
  margin-bottom: 16px;
}

.footer-company p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: 0.3s;
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-copy {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: #c0c8d7;
}


.policy {
  padding: 140px 20px 80px; 
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* タイトル */
.policy h2 {
  font-size: 28px;
  margin-bottom: 40px;
  border-bottom: 2px solid #bfa46f;
  padding-bottom: 10px;
}

/* 見出し */
.policy h3 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 10px;
  color: #222;
}

/* 本文 */
.policy p {
  margin-bottom: 10px;
}

/* リスト */
.policy ul {
  padding-left: 20px;
  margin-bottom: 10px;
}



/* スマホ */
@media (max-width: 768px) {

  .header {
    height: 70px;
    top: 10px;
    width: 95%;
    border-radius: 50px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .logo img {
    max-width: 8rem;
  }

  .nav {
    display: none;
  }

/* ハンバーガー */
  .hamburger {
    display: block;
  }

  .nav {
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: white;
    display: none;
  }

  .nav ul {
    flex-direction: column;
    text-align: center;
  }

  .nav li {
    padding: 15px 0;

  }

  .nav.active {
    display: block;
  }
}

/* スマホ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 40%;
    height: 60vh;
    background: #19263e;
    padding-top: 100px;
    transition: 0.3s;
    border-radius: 20px;
  }

  .nav ul {
    padding: 10px;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .nav.active {
    right: 0; 
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

@media (max-width: 768px) {

  .hamburger {
    display: block;
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    z-index: 9999;
  }

  .hamburger span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: white;
    left: 0;
    transition: all 0.3s ease;
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }

  .hamburger span:nth-child(2) {
    top: 10px;
  }

  .hamburger span:nth-child(3) {
    top: 20px;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
  }
}


}


  /* トップ  */
  .top {
    width: 100%;
    height: 100vh; 
    position: relative;
    overflow: hidden;
  }
  
  .top .top-image {
    width: 100%;
    height: 100%;
  }
  
  .top .top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
  }

  .top-slogan {
    font-size: 24px;
    top: 45%; 
    width: 90%;
  }
  /* セクション余白  */
  .section-title {
    font-size: 22px;
    margin: 60px 0 32px;
  }

  main {
    padding-top: 80px;
  }

  /* グリッド全部1カラム */
  .strength-grid,
  .flow-list,
  .safe-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .business-list {
    grid-template-columns: 1fr;
  }

  /*フロー調整 */
  .flow {
    padding: 40px 16px;
  }

  .flow-item {
    padding: 20px;
  }

  /* カード余白*/
  .strength-card,
  .safe-card {
    padding: 20px;
  }

  /*  フッター  */
  .footer-inner {
    flex-direction: column;
    gap: 30px;
  }

  .footer-company img {
    width: 140px;
  }

  .footer-copy {
    font-size: 11px;
  }




/* タブレット */

@media (min-width: 769px) and (max-width: 1024px) {

  /* ヘッダー */
  .header {
    width: 95%;
  }

  .nav ul {
    gap: 16px;
  }

  .nav a {
    font-size: 13px;
  }

  /*トップ*/
  .top {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
  }
  
  .top .top-image {
    width: 100%;
    height: 100%;
  }
  
  .top .top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0.7;
  }

  .top-slogan {
    font-size: 24px;
    top: 45%;
    width: 90%;
  }
  /* グリッド調整 */
  .strength-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .safe-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .target-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /*余白*/
  .section-title {
    font-size: 24px;
  }
}
