/* PARTS */
.text-center {
  text-align: center;
  margin: 0 auto 2em;
}
.section-title {
  display: inline-block;
  padding: 0.5em 0;
  position: relative;
  text-align: center;
  font-size: 30px;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .section-title {
    font-size: 25px;
  }
}
.section-title::before,
.section-title::after {
  content: "";
  display: block;
  width: min(1.7em, 4vw);
  height: 1px;
  background-color: #121212;
  position: absolute;
  top: 50%;
}
.section-title::before {
  left: -2.5em;
}
.section-title::after {
  right: -2.5em;
}
@media screen and (max-width: 768px) {
  .section-title::before {
    left: -1.8em !important;
  }
  .section-title::after {
    right: -1.8em !important;
  }
}
.section-white {
  padding: 60px 0 80px;
  background: #fff;
}

.section-gray {
  padding: 60px 0 80px;
  background: #ededeb;
}
@media screen and (max-width: 768px) {
  .section-white {
    padding: 60px 0 60px;
  }

  .section-gray {
    padding: 60px 0 60px;
  }
}
.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .section-inner {
    padding: 0 20px;
  }
}

/* INDEX Main Content */
.main-content {
  margin: 0 auto;
  padding-top: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
}
@media screen and (max-width: 1000px) {
  .main-content {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }
}

.text-content {
  padding: 0;
  background-image: url(../images/main-back.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: right;
  align-items: center;
}
@media (max-width: 1000px) {
  .text-content {
    padding: 0;
    order: 2;
  }
}
.text-inner {
  margin-right: 10%;
  padding-left: 20%;
}
@media screen and (max-width: 1000px) {
  .text-inner {
    margin-right: 8%;
    padding-left: 8%;
  }
}

.main-title {
  font-size: 25px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}
@media screen and (max-width: 1200px) {
  .main-title {
    font-size: 23px;
    margin-bottom: 35px;
    margin-top: 1em;
  }
}
@media screen and (max-width: 768px) {
  .main-title {
    font-size: 20px;
    margin-bottom: 30px;
  }
}

/* .main-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: #d80c24;
  margin-top: 10px;
} */

.description {
  font-size: 16px;
  color: #121212;
  line-height: 1.8;
  margin-bottom: 30px;
}
@media screen and (max-width: 768px) {
  .description {
    font-size: 16px;
  }
}

.image-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 15%;
}
.image-content img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
@media screen and (max-width: 1000px) {
  .image-content {
    order: 1;
    min-height: 250px;
    padding-right: 0;
  }
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* message */
.message-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.message-section p {
  margin-bottom: 25px;
}
.message-right {
  text-align: right;
  margin-top: 20px;
}
.message-description {
  font-size: 17px;
  color: #121212;
  line-height: 1.8;
  flex: 1;
}

.message-image {
  width: 45%;
  height: auto;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .message-section {
    flex-direction: column;
    gap: 20px;
  }

  .message-image {
    width: 80%;
  }
}
/*business*/
.business-item {
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 60px;
}
.business-description {
  margin-bottom: 20px;
}

.business-text {
  flex: 1;
  font-size: 17px;
  color: #121212;
  line-height: 1.8;
}

.business-text ul {
  list-style: none;
  margin: 0 0 2em;
  padding: 0;
}

.business-text ul li {
  position: relative;
  padding-left: 1em;
}

.business-text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: #121212;
}

.business-item-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.business-item-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 20px;
  background: #d80c24;
  margin-right: 10px;
  border-radius: 0;
}

.business-images {
  flex: 1.2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 1em;
}

.business-images.twocrm {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

@media screen and (max-width: 768px) {
  .business-images,
  .business-images.twocrm {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.business-images img,
.food-banner,
.food-qr {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.food-extra {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  align-items: top;
}
.food-banner-link {
  display: inline-block;
}
.food-info {
  font-size: 17px;
  text-align: center;
  margin-top: 1em;
}

.food-info img {
  max-height: 100px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.pan_link {
  text-decoration: none;
  color: #333;
  position: relative;
  display: inline-block;
  padding-left: 20px;
}

.pan_link::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-top: 2px solid #666;
  border-right: 2px solid #666;
  transform: translateY(-50%) rotate(45deg);
}

.pan_link:hover {
  color: #d80c24;
}

.pan_link:hover::before {
  border-color: #d80c24;
}

.food-banner {
  max-width: 450px;
  height: auto;
}

@media screen and (max-width: 768px) {
  .business-item {
    flex-direction: column;
  }
  .food-extra {
    flex-direction: column;
  }

  .food-info {
    margin-top: 0;
  }
  .food-banner {
    width: 100%;
    max-width: 100%;
  }
}

/* === Voice（社員の声）セクション === */
.voice-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.voice-role {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.voice-role::before {
  content: "";
  width: 3px;
  height: 20px;
  background: #d80c24;
  margin-right: 10px;
}

.voice-body {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.voice-img {
  flex: 0 0 200px;
}

.voice-img img {
  width: 200px;
  height: auto;
  object-fit: cover;
}

.voice-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.8;
  color: #121212;
}

.voice-name {
  font-weight: 700;
  margin-bottom: 6px;
}

@media screen and (max-width: 768px) {
  .voice-body {
    flex-direction: column;
  }
  .voice-img {
    width: 200px;
    margin: 0 auto;
  }
}
/* ========== Company About（会社概要） ========== */
.section-top {
  margin-top: 100px;
}
@media screen and (max-width: 768px) {
  .section-top {
    margin-top: 50px;
  }
}
.about-box {
  margin: 0 auto;
}

.about-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}
.about-title span {
  font-size: 16px;
  width: 100%;
}

.about-title::before {
  content: "";
  width: 3px;
  height: 20px;
  background: #d80c24;
  margin-right: 10px;
}

.about-table {
  width: 100%;
  border-top: 1px solid #e5e5e5;
  font-size: 17px;
}

.about-row {
  display: flex;
  border-bottom: 1px solid #e5e5e5;
  padding: 14px 0;
}

.about-row dt {
  width: 28%;
  font-weight: 700;
  color: #121212;
  flex-shrink: 0;
}

.about-row dd {
  margin: 0;
  width: 72%;
  line-height: 1.8;
}

.about-sublist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.about-sublist li {
  position: relative;
  padding-left: 1em;
  margin-bottom: 4px;
}

.about-sublist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: #121212;
}

.about-subtitle {
  font-size: 16px;
  font-weight: 700;
  margin: 40px 0 14px;
  position: relative;
}

.about-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #e5e5e5;
}

.group-list {
  list-style: none;
  margin: 0;
  padding: 0 0 20px;
}

.group-list li {
  position: relative;
  margin-bottom: 6px;
}

/* ====== Responsive ====== */
@media screen and (max-width: 768px) {
  .about-row {
    flex-direction: column;
    padding: 12px 0;
  }
  .about-row dt,
  .about-row dd {
    width: 100%;
  }
  .about-row dt {
    margin-bottom: 4px;
  }
}

/* ========== History（沿革） ========== */
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 17px;
}

.history-item {
  background: #ffffff;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 30px;
}

.history-date {
  font-weight: 700;
  white-space: nowrap;
}

.history-desc {
  line-height: 1.8;
}

.history-img {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  text-align: center;
}

.history-img img {
  max-width: 360px;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: inline-block;
}

/* ---- Responsive ---- */
@media screen and (max-width: 768px) {
  .history-item {
    grid-template-columns: 1fr; /* 1カラム */
  }
  .history-date {
    margin-bottom: 6px;
  }
}
/* ========== Subsidiary（特例子会社） ========== */
.subsidiary-text {
  font-size: 16.5px;
  line-height: 1.8;
  color: #121212;
  margin: 0 0 24px;
}
.t-aline-right {
  text-align: right;
}

.map-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-bottom: 24px;
  margin-top: 60px;
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.subsidiary-address {
  font-weight: 700;
}
.subsidiary-address,
.subsidiary-stations {
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: #121212;
  margin-bottom: 12px;
}

.subsidiary-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.subsidiary-buttons .btn-primary {
  background: #fff;
  border: 1px solid #d80c24;
  color: #d80c24;

  padding: 10px 46px 10px 28px;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

.subsidiary-buttons .btn-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #d80c24;
  border-right: 2px solid #d80c24;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.subsidiary-buttons .btn-primary:hover {
  border: 1px solid #121212;
  color: #121212;
}

.subsidiary-buttons .btn-primary:hover::after {
  border-color: #121212;
}
/* ========== Facilities（設備） ========== */
.facility-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 50px 40px;
  justify-items: center;
}

.facility-item figure {
  margin: 0;
  text-align: center;
}

.facility-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.facility-item figcaption {
  font-size: 17px;
  line-height: 1.6;
  color: #121212;
  margin-top: 10px;
}

.facility-item figcaption small {
  font-size: 16px;
  color: #121212;
}

@media screen and (min-width: 769px) {
  .facility-grid {
    grid-template-columns: repeat(2, 1fr); /* ← 2 列 */
  }
}

@media screen and (max-width: 480px) {
  .facility-grid {
    grid-template-columns: 1fr;
  }
}
/* ========== MyNumber Policy ========== */
.section-title-mynumber {
  font-size: 22px;
}
@media screen and (max-width: 769px) {
  .section-title-mynumber {
    font-size: 19px;
  }
}
.policy-wrapper {
  margin: 0 auto;
  font-size: 16.5px;
  color: #121212;
}
.mb08em {
  margin-bottom: 0.8em;
}
.mb05em {
  margin-bottom: 0.5em;
}
.mb10em {
  margin-bottom: 1em;
}
.mb20em {
  margin-bottom: 2em;
}

.policy-intro {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.policy-main {
  list-style: decimal;
  margin: 0 0 1em 1.4em;
  padding: 0;
}
.policy-main li {
  margin-bottom: 2em;
}

.policy-main2 {
  list-style: none;
  margin: 0 0 1em 1.4em;
  padding: 0;
}
.policy-main2 li {
  margin-bottom: 2em;
}

.policy-heading {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 0.5em;
  display: inline-block;
}
.policy-heading2 {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 0.5em;
  display: inline-block;
  text-indent: -1.4em;
}

.policy-sub {
  list-style: none;
  margin: 8px 0 16px 0;
  padding: 0;
  font-size: 16px;
}

.policy-subheading {
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5em;
}

.policy-other {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 20px;
}

.policypage-link {
  text-decoration: underline;
  color: #d80c24 !important;
}

.policy-underline {
  text-decoration: underline;
}

.policy-footer {
  text-align: right;
  margin-top: 40px;
  font-size: 16px;
}

@media screen and (max-width: 480px) {
  .policy-wrapper {
    padding: 0 16px;
  }
}
