/*
Theme Name: STD Original Theme
Author: STD-CTO
Version: 1.0
*/

html {
  margin: 0;
  padding: 0;
}

html.admin-bar {
  margin-top: 0 !important;
}

body {
  background-color: #F2F2F2;
  margin: 0;
  padding: 0;
}

.site-header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4); /* 半透明にすると画像と馴染みやすい */
}

.custom-header {
  display: flex;
  justify-content: center;
  /* position: absolute;  */
  position: fixed;
  /* または fixed で常時上に表示 */
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-container {
  background-color: white;
  border-radius: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  gap: 2rem;
}

.header-container img {
  height: 40px;
  width: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  gap: 40px; /* 各 li の間を等間隔に */
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #000;
  font-size: 1rem;
  font-weight: 500;
}

.main-nav a:hover {
  text-decoration: underline;
}


/* ヘッダ画像 */
.hero {
  background: url('http://s-td.jp/wp-content/themes/std-original/images/STD_TOP.png') center/cover no-repeat;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero img {
  padding-top: 5%;
}

/* 会社名の文字列 */
.title {
  font-size: 200px;
  font-family: 'Playfair Display', serif;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

.buisiness-section {
  margin: 0;
}

.section-title {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 17vh;
  width: 100%;
  height: 20%;
  background: #ccc;
  z-index: -1;
}

.section-title-small {
  font-size: large;
  vertical-align: super;
}

.section-title img {
  height: 30vh;
}

/* 事業紹介セクション */
.business-container {
  background-color: #f4f4f4;
  padding: 10px 0;
  display: flex;
  justify-content: center;
}

.business-wrapper {
  position: relative;
  width: 1000px;
  height: 500px; /* 画像＋余白用 */
}

/* イメージを右上に */
.business-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.business-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* イメージを左上に */
.business-image-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.business-image-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキストを左下に */
.business-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 500px;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 0;
  height: 300px;
  display: flex;
}

/* テキストを左下に */
.business-box-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px;
  background-color: white;
  padding: 30px 0px 30px 60px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 0;
  height: 300px;
  display: flex;
}

/* コンテンツ中の配置 */
.business-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: auto 0;
}

.icon-area {
  flex-shrink: 0;
  margin: auto 0;
}

.icon {
  width: 80px;
  height: auto;
}

.text-body h3 {
  font-size: 18px;
  margin: 0 0 10px 0;
}

.text-body p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 50px 0 0;
}


/* Bit erase の文字設定 */ 

.biterace-font {
  font-family: 'Great Vibes', cursive;
  font-size: x-large;
}

.biterace-font-head {
  color: #ED7D31;
}

/* 会社概要セクション */

.company-section {
  text-align: center;
  margin: 80px 0;
  position: relative;
}
.company-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  z-index: 1;
  /* background: url('http://s-td.jp/wp-content/themes/std-original/images/logo_gray.png') center/cover no-repeat; */
  background-image: url('http://s-td.jp/wp-content/themes/std-original/images/logo_gray.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain; /* ← 高さに合わせて縮小される */
}
.company-content ul {
  list-style: none;
  padding: 0;
  font-size: 1.1em;
  line-height: 2;
}
.company-bg-logo {
  position: absolute;
  opacity: 0.05;
  width: 400px;
  left: 50%;
  top: 20%;
  transform: translate(-50%, -20%);
  z-index: 0;
  pointer-events: none;
}

.table {
  display: flex;
  flex-direction: column;
  /* border: 1px solid #ccc; */
  /* max-width: 600px; */
}

.table-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  /* border-bottom: 1px solid #eee; */
}

.cell-left {
  flex: 1;
  padding: 10px;
  /* border-right: 1px solid #eee; */
  word-break: break-word;
  width: 20%;
  font-weight: bold;
  text-align: right;
  font-size: large;
}

.cell-right {
  flex: 1;
  padding: 10px;
  /* border-right: 1px solid #eee; */
  word-break: break-word;
  width: 80%;
  text-align: left;
  font-size: large;
}


.table-row:last-child {
  border-bottom: none;
}

.cell:last-child {
  border-right: none;
}

.grid-table {
  display: grid;
  grid-template-columns: 1fr 2fr; /* 左:右＝1:2 */
  gap: 1px;
  /* background: #ccc; */
}

.cell {
  /* background: #fff; */
  padding: 10px;
  word-break: break-word;
  font-size: large;
}

.cell-text-left {
  text-align: right;
  font-weight: bold;
}

.cell-text-right {
  text-align: left;
}

@media (max-width: 600px) {
  .grid-table {
    grid-template-columns: 1fr; /* スマホでは1列に */
  }
}


/* コンタクトセクション */
/* フォーム全体を中央に */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 30px;
  box-sizing: border-box;
}

/* 各項目を横並びに */
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.form-label {
  width: 200px;
  font-weight: bold;
  text-align: left;
  flex-shrink: 0;
  margin-bottom: 0;
}

.input-text,
.input-textarea {
  flex: 1;
  min-width: 300px;
  padding: 10px;
  background-color: #ddd;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

.input-textarea {
  height: 150px;
  resize: vertical;
}


/* 必須マーク */
.required {
  background: #f57c1f;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  margin-left: 5px;
  border-radius: 3px;
}

/* 送信ボタン */
.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit input[type="submit"] {
  padding: 12px 30px;
  background: #333;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap; /* モバイル対応 */
}

.wpcf7 p {
  margin: 0;
  display: contents; /* 非推奨。必要時だけ */
}
