* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  font-family: sans-serif;
  font-feature-settings: "palt"; /* プロポーショナル約物 */
  color: #333;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
}
h2 {
  letter-spacing: 0.1em; /* または 0.15em や 1px でもOK */
}
h3{
  font-weight: normal;
}
h4{
  font-weight: normal;
}

p.fade-in {
  font-family: 'Shippori Mincho', serif;
}

.container {
  display: flex;
  margin-bottom: 10em;
}
:target::before {
  content: "";
  display: block;
  height: 80px; /* 固定ヘッダーの高さに合わせる */
  margin-top: -80px;
  visibility: hidden;
}
.mb3em{
  margin-bottom: 3em;
}
@media (max-width: 768px) {
    .mb3em{
      margin-bottom: 1em;
    }
}

/* --------------------------------------
メニュー
-------------------------------------- */
/* ヘッダー固定は維持 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ヘッダー内レイアウト */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
}

.logo img {
  height: 80px;
}

/* メニュー */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
}
.shippori {
  font-family: 'Shippori Mincho', serif;
}
.en {
  font-style: italic;
}

.right-align {
  text-align: right;
}
@media (max-width: 768px) {
  .logo img {
      height: 50px;
  }
}

/* --------------------------------------
ヒーロー
-------------------------------------- */
/* ヒーローセクション画像と隙間なし */
.hero-section {
  padding-top: 80px; /* ヘッダーの高さ分だけ空ける（画像が隠れないように） */
  margin: 0;
    position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-bottom: 10em;
}
.hero-image {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
@media (max-width: 768px) {
    .hero-image {

    }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}


/* テキストを中央に重ねる */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
}
.hero-text h1 {
  margin-bottom: 0px;
}
.hero-text p {
  font-size: 1.5em;
}
.vertical-text {
}
.hero-text.vertical-text {
  writing-mode: vertical-rl;
  position: absolute;
  top: 54%;
/*
  right: 300px;
  left: 50%;
  transform: translateY(-50%);
*/
  font-size: 1.25em;
  color: #555;
  line-height: 2;
  z-index: 2;
  text-align: start;
  height: 420px;
}



.access {
  font-size: 1.1rem;
  color: #222;
  font-weight: 500;
/*  display: flex; */
  align-items: center;
  padding-left: 0.25em;
  gap: 8px;
}

.access i {
  color: #3e3e3e;
  padding: 0.25em;
  border-radius: 50%;
  font-size: 0.9em;
}
@media (max-width: 768px) {
  h2 {
    font-size: 1.6em;
    letter-spacing: 0.1em;
    text-align: left;
  }
  .en {
    text-align: left;
  }

  .hero-section {
    height: 100vh;
  }
  .hero-text.vertical-text {
    writing-mode: vertical-rl;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    line-height: 1.8;
    text-align: start;
    color: #555;
    /*
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    */
    white-space: nowrap;
    height: auto;
    right: 0;
  }
  .hero-text.vertical-text h1 {
    font-size: 1.8em;
    line-height: 2;
  }
  .hero-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}


/* --------------------------------------
イメージ＋スクロール文字
-------------------------------------- */
.text-section h3 {
  font-weight: bold;
  text-align: left;
}
.section-heading{

}
@media (max-width: 768px) {
    .section-heading {
        padding: 0em 1em 0em 1em;
    }
}
/* メッセージ見出しの右寄せ＋余白統一 */
.section-heading.right-align {
  text-align: right;
  padding: 40px;
  margin: 0 auto 2rem auto;
}

.vertical-mincho {
  font-family: 'Shippori Mincho', serif;
  /*
  writing-mode: vertical-rl;
  */
  text-orientation: upright;
  line-height: 1.8;
  font-weight: 300!important;
  font-size: 3.5em;
  text-align: right;
  margin-bottom: 1.1em;
  margin-left: auto;
  display: block;
  clear: both;
}
.text-section .syaze{
  font-size: 1.5em;
}


.message-body {
  /*
  max-width: 360px;
  */
  width: 100%;
  line-height: 1.2;
/*  padding: 1em; */
  padding: 0em;
  margin: 0 auto 2em auto;
}
.message-body p{
  font-size: 0.9em;
  line-height: 2.2em;
  padding-bottom: 1.5em;
}
.shippori-text {
  font-family: 'Shippori Mincho', serif;
  font-size: 2em; /* 例：大きめのサイズ */
  line-height: 2.2;
}

.align-right {
  text-align: right;
  margin-right: auto;
}

/* 左側の画像表示領域 */
.image-panel {
  width: 40%;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
  opacity: 1;
}
/* 右側のスクロールエリア */
.content {
  /*
  width: 60%;
  */
  width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.text-section {
/*  height: 100vh;
  padding: 40px;
  background-color: #fff;
   */
}

/* スマホのみ有効にする */
@media (max-width: 768px) {
  .section-heading.right-align {
    padding: 1em;
    margin: 0 auto 0 auto;
  }
    .vertical-mincho {
    writing-mode: horizontal-tb;
    text-align: center;
    font-size: 2em;
    margin-top:0em;
  }
  .text-section{
    padding: 0 1em 0em 1em;
  }
  .message-body{
    max-width: 100%;
    line-height: 1.2;
    margin: 0;
  }
  .message-body p {
    font-size: 1.2em;
    line-height: 2.2em;
  }
  .shippori-text {
    font-size: 1.6em;
    line-height: 1.6;
    padding-bottom: 1em;
  }
  .align-right {
    font-size: 1.0em;
  }
  .text-section h3 {
    text-align: left;
    padding-bottom: 0em;
    padding-top: 0.5em;
    margin-bottom: 0.5em;
  }

}

/* ----------------------------------
技術情報
---------------------------------- */
.extra-box {
  background-color: #eee;
  padding: 80px 40px;
}

.extra-box .inner {
  max-width: 960px;
  margin: 0 auto;
}

.extra-box h2 {
  font-size: 1.5em;
  margin-bottom: 0.2em;
}

.extra-box p {
  margin-bottom: 1em;
}

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

.image-item {
  text-align: center;
}

.image-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.caption {
  margin-top: 8px;
  font-size: 1rem;
  color: #333;
}
@media (max-width: 768px) {
  .extra-box {
    padding-left: 1em;
    padding-right: 1em;
  }

}

/* -----------------------------------------------
業務内容部分
----------------------------------------------- */

/* セクション全体：スクロール空間確保 */
.overlay-section {
  position: relative;
  background-color: #fff;
  margin-bottom: 5em;
  /*
  height: 200vh;
  */
  /**/
}
.overlay-section-box{
  width: 860px;
    margin-left: auto;
    margin-right: auto;

}
@media (max-width: 768px) {
    .overlay-section-box {
      width: 100%;
      padding: 0 1em 0 1em;
    }
}

.overlay-text h3 {
    margin-top: 0em;
    margin-bottom: 1.2em;
    font-size: 1.8em;
    font-weight: normal;
    font-family: 'Shippori Mincho', serif;
}
.overlay-text h4 {
    font-size: 1.2em;
    margin-bottom: 0.25em;
}


.overlay-text ul {
  padding-left: 1.5rem; 
  margin: 0;
  list-style-position: inside; 
  margin-bottom: 1.5em; 
  padding-left: 0.5em; 
}
/* 画像コンテナ */
.overlay-image {
  /*
  position: sticky;
  top: 0;
  z-index: 1;
  */
}
/* 背景画像そのもの */
.overlay-image img {
  width: 100%; 
  height: auto; 
  display: block;
}

/* テキストブロック（右側50%、画像上に重なる） */
.overlay-text {
  width: 860px;
  margin-left: auto;
  padding: 40px 40px;
  background-color: #fff; /* ← 完全な白に変更 */
  color: #000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  /*
  width: 50%;
  position: relative;
  z-index: 2;
  */
  /**/
  margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
  .overlay.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
  }
  .overlay-section {
    height: auto;
    margin-bottom: 5em;
  }
  .overlay-text {
    width: 100%;
    margin: 0;
    box-shadow: none;
    padding: 1em 1em 0em 1em;
  }
  .overlay-text h3 {
  font-size: 1.6em;
  margin-bottom: 0.5em;
  }
  .overlay-text h4 {
    margin-bottom: 0.25em;
    font-size: 1.2em;
  }
  .overlay-text ul {
    font-size: 1.0em;
  }
}

/* ----------------------------------------------
会社概要
---------------------------------------------- */
.follow-box {
  background-color: #fff;
  padding: 80px 20px;
}
.follow-box a{
  color: #333;
}
.follow-container {
  display: flex;
/*  max-width: 1200px; */
  max-width: 700px;
  margin: 0 auto;
/*
  gap: 40px;
  align-items: flex-start;
*/
}

/* 左画像 */
.follow-image {
  flex-shrink: 0;
  position: sticky;
  top: 100px; /* スクロール追従位置（任意調整） */
}

.follow-image img {
  width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* 右テキスト（スクロールバーなし） */
.follow-text {
  flex: 1;
  padding-top: 0;
  padding-bottom: 100px; /* フッターとの間に余裕を持たせる場合 */
}

/* 右テキスト（スクロールバーなし） */
.follow-text h2{
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0.2em;
}

/* TELリンクはデフォルト無効（PC） */
.tel-link {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}


.company-table {
  font-size: 0.85em;
  width: 100%;
  border-collapse: collapse;
  line-height: 1.8em;
  margin-top: 4em;
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #ccc; /* 下線のみ */
  vertical-align: top;
}

.company-table th {
  width: 30%;
  font-weight: bold;
  color: #333;
  background-color: transparent;
}

.history-title{
  font-size: 1.2em;
  padding-top: 2.5em;
  font-weight: bold;
}

.history-table {
  font-size: 0.85em;
  width: 100%;
  border-collapse: collapse;
  line-height: 1.8em;
  margin-top: 0.5em;
}

.history-table th,
.history-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #ccc; /* 下線のみ */
  vertical-align: top;
}

.history-table th {
  width: 30%;
  font-weight: bold;
  color: #333;
  background-color: transparent;
}



/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in.delay {
  animation-delay: 0.5s;
}

@media screen and (max-width: 768px) {
  .tel-link {
    pointer-events: auto;
    color: #007BFF; /* 任意のリンク色 */
    text-decoration: underline;
    cursor: pointer;
  }
  .follow-text h2 {
    text-align: left;
  }
  .follow-container {
    flex-direction: column;
  }

  .follow-image {
    position: static;   /* ← stickyを解除 */
    top: auto;
    width: 100%;
    margin-bottom: 1em;
  }

  .follow-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .follow-text {
    width: 100%;
  }
}

/* ----------------------------------
フッター
------------------------------------ */
.site-footer {
  background-color: #333;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 20px;
}

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

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

.footer-nav a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 12px;
  color: #ccc;
}



@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ----------------------------------
ハンバーガーメニュ
---------------------------------- */

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 4px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}
/* ハンバーガーメニューのアニメーション */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
.burger-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: #82bfc8;
  color: #fff;
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 80px 24px 40px;
  box-sizing: border-box;
}
.burger-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.burger-menu li {
  margin-bottom: 24px;
}
.burger-menu a {
  color: #fff;
  font-size: 1.2em;
  text-decoration: none;
  font-weight: 500;
}
.burger-menu.open {
  right: 0;
}

/* スマホ時のみ表示 */
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 998;
    animation: fadeIn 0.3s ease forwards;
  }

  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }
  .main-nav ul li {
    margin: 10px 0;
  }
}
/* 表示切替（メディアクエリ） */
@media screen and (min-width: 769px) {
  .burger-menu,
  .overlay {
    display: none !important;
  }
  .hamburger {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}


/* -----------------------------------------------

----------------------------------------------- */


.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 997;
}
.overlay.active {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}


/* スマホ用レイアウト */
@media (max-width: 768px) {

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .container {
    flex-direction: column;
    margin-bottom: 6em;
  }
  .image-panel,
  .content {
    width: 100%;
    height: auto;
  }
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {
  .image-panel {
    width: 100%;
    height: auto;
    position: static;
    top: auto;
  }
  .image-panel img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
section[id] {
  scroll-margin-top: 80px; /* ヘッダー高さ */
}
