/*riset_CSS*/

/* すべての余白をゼロに */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* リストマーカーを消す */

ul, ol {
  list-style: none;
}

/* リンクの下線を消す */
a {
  text-decoration: none;
}

/* HTML5要素の表示をブロックに */

article, aside, footer, header, nav, section {
  display: block;
}

/* フォントローカル追加 */
@font-face {
  font-family: "tamanegi"; /* フォントに好きな名前を定義 */
src: url("../fonts/tamanegigekinew.ttf") format("truetype");  font-weight: normal;
  font-style: normal;
  font-display: swap; /* フォント読み込み中の表示方法 */
}

@font-face {
  font-family: "tappitsu"; /* フォントに好きな名前を定義 */
src: url("../fonts/g_brushtappitsu_freeB.ttf") format("truetype"); 
font-weight: normal;
  font-style: normal;
  font-display: swap; /* フォント読み込み中の表示方法 */
}
@font-face {
  font-family: "tappitsuH"; /* フォントに好きな名前を定義 */

   src: url("../fonts/g_brushtappitsu_freeH.ttf") format("truetype"),
     url("../fonts/g_brushtappitsu_freeR.ttf") format("truetype");
font-weight: normal;
  font-style: normal;
  font-display: swap; /* フォント読み込み中の表示方法 */
}

@font-face {
  font-family: "tappitsuR"; /* フォントに好きな名前を定義 */
    src: url("../fonts/g_brushtappitsu_freeR.ttf") format("truetype"); 
font-weight: normal;
  font-style: normal;
  font-display: swap; /* フォント読み込み中の表示方法 */
}


@font-face {
  font-family: "acgyousyo"; /* フォントに好きな名前を定義 */
src: url("../fonts/acgyosyo.ttf") format("truetype"); 
font-weight: normal;
  font-style: normal;
  font-display: swap; /* フォント読み込み中の表示方法 */
}

@font-face {
  font-family: "TTE"; /* フォントに好きな名前を定義 */
src: url("../fonts/TTEdit1.ttf") format("truetype"); 
font-weight: normal;
  font-style: normal;
  font-display: swap; /* フォント読み込み中の表示方法 */
}

/*-----------riset_CSS-----------*/

html, body {
  margin: 0;
  scroll-behavior: smooth;
  font-family: 'Segoe UI', sans-serif;
  overflow-y: auto;
}

:root {
  -header-height: 130px;  
}

/*ヘッダー ----------------------------------------*/

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  background-color: #3171b9;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 30px;
  box-sizing: border-box;
  z-index: 1000;
}

.logo {
  width: 500px;
  height: 88px;
  display: flex;
  align-items: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  gap: 30px;
  margin: 10px;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0em 0.1em;
  height: 2.5em;
  line-height: 1;
  font-size: 14px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  box-sizing: border-box;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover {
  color: #ff8c00;
}

.nav-contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.85em;
  color: white;
}

.contact-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-row span {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

.menu-toggle.open::before {
  content: "X";
}

.thislocation {
 position: relative;
  display: inline-block;
  padding: 20px 10px;
  background-color: #1D9EBF;
  color:#FFFFFF;
  border-radius: 10px;
}

/*Subnav ----------------------------------*/

.sub-nav {
  background-color: #f8f8f8;
  padding: 10px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  text-align: center;
  position: fixed;
  top: 88px;
  left: 0;
  width: 100%;
  z-index: 1000;
  overflow:hidden;
}

.sub-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 20px;
  flex-wrap: wrap;
}

.sub-nav li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.sub-nav li a:hover {
  color: #0078d4;
}

.sub-nav li p {
  font-weight: 500;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

/*スクロールアニメ-------------------------------------------------*/

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(-45deg); }
  50% { transform: translateY(8px) rotate(-45deg); }
}

@keyframes pulse {
0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* greeting 代表挨拶---------------------------------------------------------*/
section{
        scroll-margin-top: 250px;
}

#greeting {
  box-sizing: border-box;
}

/* セクション全1体を画面内に収める */

#greeting.section-anchor {
  scroll-snap-align: start;
  box-sizing: border-box;
  background-color: #FFF; 
  }

.greeting-container {
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center; /* ← 中央揃えを追加 */
  align-items: center;
}

.headline-wrap {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 130px;
}

.headline {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  margin-top: 15px;
  color: #054279;
}

.columns {
  display: flex;
  gap: 40px;
  overflow:hidden;
  margin: 0px;
  margin-top: 10px;
 align-items: center; 
}

/* 左側写真 */

.photo-column {
  flex: 0.8;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.photo-column img {
  width:100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* 右側テキスト */
.text-box {
  flex: 0.8;
  height: auto;
  margin-right: 35px;
}

.text-box p {
  font-size: 15.3px;
  line-height: 1.8;
  margin-bottom: 12px;
  color:#01243f;
}

/* 強調と締め */
.text-box strong {
  color: #fff;
  font-weight: 700;
}

.text-box .closing {
  font-size: 20px;
  font-weight: bold;
  margin-top: 16px;
}

.name-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1em;
}

.yaku {
  font-family: Sylfaen , serif;
  font-size: 1.2rem;
  color: #333;
}

.meigi {
  font-family: 'tamanegi', serif;
  font-size: 1.6rem;
  font-weight: normal;
  color: #111;
}
.name-row .yaku,
.name-row .meigi {
   margin: 0;
}

.photo-column {
    order: 1;
  }

  .text-box {
    order: 2;
  }

@media (max-width: 768px) {
  .photo-column { order: 2;
    }
  .text-box { order: 1; }
    
  .columns {
      flex-direction: column;
      align-items: center; 
    }
    
  .photo-column, .text-box {
      flex: none;
      width: 100%;
      margin-right: 0;
    }

    .text-box { 
        text-align: center; 
    }
}

/*COMPANY＿Overview--------------------------*/

.company-profile {
  margin: 100px auto;
  max-width: 1000px;   /* PCでは中央寄せのまま */
  box-sizing: border-box;
}

.company-profile h2 {
  text-align: center;
  margin: 40px 0;
  color: #054279;
  font-size: 32px;
}

.company-profile ul {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 700px;
}

.company-profile li {
  display: flex;
  align-items: baseline;
  font-size: 18px;
}

.company-profile .label {
  width: 8em;
  text-align: right;
  margin-right: 0.5em;
  flex: 0 0 8em; /* 幅を固定して安定させる */
}

.company-profile .value {
  min-width: 0;       /* flex内で省略を効かせる前提 */
  white-space: nowrap;/* 1行に収める前提 */
}

.company-profile .no-label {
  padding-left: 8.5em;
}

.center h2{
    font-size: 22px;
     color: #054279;
}

.center p {
  font-size: 18px;
  margin: 8px 0;
  word-break: keep-all;
}

/*footer--------------------------*/

footer {
  background-color: #3171b9;
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
    margin-top: 60px;
}

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

.footer-left{
  flex: 1 1 300px;
  margin: 10px;
}

.footer-logo {
  width: 160px;
  margin-bottom: 15px;
}

.footer-left p:first-child {
  margin-top: 5px;
}

.footer-right {
  flex: 1 1 300px;
  margin: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-right h4 {
  font-size: 16px;
  margin: 5px 0;
  border-bottom: 1px solid #fff;
  padding-bottom: 5px;
}

.sitemap {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap li {
  margin: 6px 0;
}

.sitemap a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.sitemap a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
 .center p {
    font-size: 14px;       /* スマホ用に文字を少し縮小 */
    text-align: center;
  }
}

/* レスポンシブ対応 */
@media (max-width: 900px) {

    .section-anchor {
    height: auto !important;
    min-height: 100vh;
    box-sizing: border-box;
  }
    
  .columns {
    height: auto;
    }

  .text-box {
    height: auto;
    overflow: visible;
  }
    
  .headline-wrap {
    margin-top: 0;
    padding-top: 0;
  }
}

.center{
    display: block;
    text-align: center;
    font-size: 18px;
}

/*スマホ対応--------------------------*/

@media screen and (max-width: 768px) {
   
  header {
    position: fixed;
    top: 0;
    left: 0;
    height: 90px;
    padding: 0 15px;
  }

  .menu-toggle {
	  font-family: 'Segoe UI', 'Arial', sans-serif;
    display: block;
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 25px;
    z-index: 1100;
	color:#FFF;
  transition: all 0.3s ease;
  }
  
  .menu-toggle.open::before {
  content: "X";
}

  /* メニューはスライドダウン */
  .nav-container {
    position: absolute;
    top: 170px; /* headerの下から展開 */
    left: 0;
    width: 100%;
    background:#3171b9;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    margin: 0;
    padding: 0;
  }

  .nav-container.active {
    max-height: 800px;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    padding: 15px;
    border-bottom: 1px solid #eee;
     color: #fff;
    text-align: center;
  }

  .nav-contact-info {
    padding: 10px 15px;
    color: #fff;
  }

  /* セクション高さを自然に */
  #greeting, #motto, #sponsorship, #products, #service, #company, #contact {
    height: auto;
    min-height: 100vh;
  }

.logo img {
  width: 80%;
  height: 100%;
  object-fit: contain;
}

    @media (max-width: 768px) {
  .company-profile {
    margin: 40px auto;
    max-width: 95%;
  }

  .company-profile h2 {
    font-size: 24px;
    margin: 20px 0;
  }

  .company-profile ul {
    max-width: 100%;
  }

  @media (max-width: 768px) {
      
.company-profile li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

.company-profile .label {
  font-weight: bold;
  margin-right: 0.3em;
  font-size: 10px;
  flex: 0 0 5em;
  text-align: left;
  line-height: 1.4;
}

.company-profile .value {
  font-size: 10px;
  line-height: 1.4;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;         /* 値は中央揃え */
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ラベルなし行は margin-left を小さくする */
.company-profile .no-label .value {
  margin-right: 100px;           
  flex: 1 1 auto;
  text-align: center;
  line-height: 1.4;
}
      
/*partnerここから--------------------------*/

#partner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 130px); 
  box-sizing: border-box;
  scroll-margin-top: 160px;
  padding: 200px;
}

#partner .section-anchor {
  scroll-snap-align: start;
  height: 100vh;
  box-sizing: border-box;
  background-color: #FFF;
  color: #fff;
  }

.partner-container {
  text-align: center;
}

.partner-container h2 {
  text-align: center !important;
}

    #company-history{
        text-align: center;
        scroll-margin-top: 160px;
}

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

  html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

#greeting {
  width: 100%;
padding-top: 90px;
margin-top:90px;
}

#greeting h1 {
    font-size: 3rem; /* 適度なサイズ感 */
    line-height: 1.6;   /* 呼吸感のある行間 */
    margin-bottom: 1rem;
    font-weight: 600;   /* 少し太めで視認性アップ */
    letter-spacing: 0.03em; /* わずかに字間を広げて読みやすく */
        }

.contents-field {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 5vw; /* ← 左右に均等な余白 */
  text-align: center;
}
    
.text-box {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
    
.section-anchor {
  scroll-snap-align: start;
  box-sizing: border-box;
    scroll-margin-top:160px;
    margin-top: 250px;
}
    
 .yaku{
    font-family:"tamanegi";
    font-size: 20px;
    font-weight:100;
    color: #000000;
     text-align: right;
}

    .meigi {
    font-family:"tamanegi";
    font-size: 40px;
    text-align: right;
    font-weight:400;
    color: #000;
}
}
section {
    margin:200px 0px;
}
        }
    }
/*footer--------------------------*/

footer {
  background-color: #3171b9;
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
    margin-top: 60px;
}

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

.footer-left{
  flex: 1 1 300px;
  margin: 10px;
}

.footer-logo {
  width: 160px;
  margin-bottom: 15px;
}

.footer-left p:first-child {
  margin-top: 5px; /* h4と同じ高さに揃える */
}

.footer-right {
  flex: 1 1 300px;
  margin: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-right h4 {
  font-size: 16px;
  margin: 5px 0;
  border-bottom: 1px solid #fff;
  padding-bottom: 5px;
}

.sitemap {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap li {
  margin: 6px 0;
}

.sitemap a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.sitemap a:hover {
  opacity: 0.7;
}
}