@layer base {
  .main {
    display: flex;
    flex-direction: column;
  }
  .main > * {
    order: 2;
  }

  /* 既存のスタイル */
  .page-profile .page-contents {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
  }
  .page-profile .table {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    color: var(--text-color);
    font-size: var(--text-sm);
    line-height: var(--line-height-md);
  }
  .page-profile .table .title {
    font-weight: var(--weight-bold);
    padding-top: var(--p-lg);
  }
  .page-profile .table .title:first-child {
    border-top: 1px solid var(--border-color);
  }
  .page-profile .table .description {
    padding-bottom: var(--p-lg);
    border-bottom: 1px solid var(--border-color);
  }
  .page-profile .table .description:last-child {
    border-bottom: none;
  }
  .page-profile .table .description .link {
    color: var(--link-color);
  }
  .page-profile .table .description .link:hover {
    color: var(--main-color);
    text-decoration: none;
  }
  .page-profile .image-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-md);
  }
  .page-profile .image-wrapper .image {
    width: 100%;
    height: auto;
  }
  .page-map .map {
    width: 100%;
    height: 400px;
    margin: 0;
    display: block;
  }

  /* 新しいファーストビューデザイン */
  .company-fv {
    align-items: center;
    justify-content: center;
    padding: 0 var(--content-spacing);
    display: grid;
    width: 100%;
    grid-template-columns: 100%;
    order: 1;
  }
  .company-fv-bg {
    width: 100%;
    height: 100%;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  .company-fv-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* border-radius:0 0 20px 20px; */
  }
  .company-fv-content {
    position: relative;
    z-index: 2;
    text-align: center;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  .company-fv-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
  }

  .breadcrumb-container {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
  }
  .breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  .breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
  }
  .breadcrumb-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .breadcrumb-link:hover {
    color: #0056b3;
  }
  .breadcrumb-separator {
    color: #6c757d;
  }
  .breadcrumb-current {
    color: #495057;
    font-weight: 500;
  }

  .company-main {
    padding: 4rem 0;
  }
  .company-inner {
    padding: 0 var(--content-spacing);
    width: 100%;
  }

  .section-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #532424;
    margin-bottom: 4rem;
    position: relative;
  }
  .section-title-bar {
    width: 6px;
    height: 2rem;
    background: linear-gradient(to bottom, #eb6100 0%, #fb9e07 100%);
    margin-right: 1rem;
    border-radius: 3px;
  }
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--main-color);
  }

  .company-philosophy {
    margin-bottom: 4rem;
  }
  .philosophy-text {
    line-height: 2;
    color: #532424;
    text-align: center;
    margin: 0;
    font-size: 20px;
  }
  .philosophy-text--br {
    display: none;
  }
  .comapny_bg--sec {
    margin: 100px 0;
    background: url(/app/themes/formatline/assets/image/aboutus/company_sp_image2.jpg)
      no-repeat 50% 50% / cover;
    aspect-ratio: 175 / 89;
    max-height: 355px;
    width: 100%;
  }

  /* 行動指針セクション */
  .company-guidelines {
    margin-bottom: 4rem;
  }
  .guidelines-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
  }
  .guidelines-image {
    width: 282px;
    overflow: hidden;
  }
  .guidelines-bg-image {
    height: 1354px;
    object-fit: contain;
  }
  .guidelines-text {
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }
  .guideline-title {
    color: #ff6b35;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #eb6100 0%, #fb9e07 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
  }
  .guideline-description {
    color: #333;
    line-height: 1.8;
    margin: 0;
  }

  /* 経営理念下のリンク枠 */
  .philosophy-links-inner {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .philosophy-link-item {
    background: #f1f5f7;
    border: 1px solid #cccccc;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 1;
  }
  .philosophy-link-item:hover {
    background: #e8edf0;
    transform: none;
    box-shadow: none;
  }
  .philosophy-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    text-decoration: none;
    color: #532424;
    transition: all 0.3s ease;
    height: 74px;
  }
  .philosophy-link:hover {
    color: #532424;
  }
  .philosophy-link-text {
    font-weight: 700;
    font-size: 18px;
    line-height: 3.56em;
    text-align: center;
  }
  .philosophy-link-arrow {
    font-size: 12px;
    font-weight: bold;
    width: 12px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #767676;
  }

  .company-overview {
    margin-bottom: 4rem;
  }
  .overview-content {
    display: grid;
    grid-template-columns: 1fr 39%;
    gap: 3rem;
    align-items: start;
  }
  .overview-left {
  }
  .overview-right {
    background: #f8f9fa;
    overflow: hidden;
  }
  .company-table {
    width: 100%;
    border-collapse: collapse;
  }
  .company-table th,
  .company-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #000;
  }
  .company-table th {
    font-weight: 600;
    color: #ea5f00;
    width: calc(7em + 2rem);
    text-align: left;
    vertical-align: baseline;
  }
  .company-table td a {
    color: #000;
  }
  .company-table td a:hover {
    color: var(--main-color);
    text-decoration: none;
  }
  .overview-image {
    width: 100%;
    /* height: 500px; */
    overflow: hidden;
  }
  .overview-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* マップセクション */
  .company-map {
    margin-bottom: 4rem;
  }
  .map-content {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .map-content iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
  }

  /* うちい犬ぷろふぃーるセクション */
  .company-mascot {
    margin-bottom: 4rem;
  }
  .mascot-content {
    display: grid;
    grid-template-columns: 36.33vw 1fr;
    gap: 0;
    align-items: center;
  }
  .mascot-image {
    align-items: center;
    justify-content: center;
    display: flex;
  }
  .mascot-bg-image {
    width: 100%;
    max-width: 253px;
  }
  .mascot-info {
    padding: 0;
    color: #000;
  }
  .mascot-name {
    width: 83px;
    margin-bottom: 1.5rem;
  }
  .mascot-profile {
    margin-bottom: 2rem;
  }
  .profile-flex {
    display: grid;
    gap: 10px 0;
    display: grid;
    grid-template-columns: 4.5em auto 4.5em auto;
    width: max-content;
  }
  .profile-flex-name {
    color: #ff6b35;
    font-weight: 600;
    flex-shrink: 0;
  }
  .profile-flex-name::after {
    content: '：';
  }
  .profile-flex-item {
    color: #333;
  }
  .profile-flex-item:nth-child(4n + 2) {
    margin-right: 2rem;
  }
  .mascot-description {
    color: #333;
    line-height: 1.8;
  }
  .mascot-description p {
    margin-bottom: 1rem;
    word-break: auto-phrase;
  }

  .company-links {
    background: #f8f9fa;
    padding: 3rem 0;
  }
  .company-links-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .company-link-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .company-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  }
  .company-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
  }
  .company-link:hover {
    background: #f8f9fa;
  }
  .company-link-text {
    font-weight: 500;
    font-size: 1.1rem;
  }
  .company-link-arrow {
    color: #ff6b35;
    font-size: 1.2rem;
    font-weight: bold;
  }

  @media (max-width: 768px) {
    .company-fv {
    }
    .company-fv-title {
      font-size: 2rem;
    }
    .breadcrumb-inner {
      padding: 0 1rem;
    }
    .company-inner {
      padding: 0 30px;
    }
    .section-title {
      font-size: clamp(17px, 4.85vw, 34px);
      margin-bottom: 42px;
    }
    .philosophy-text {
      font-size: clamp(15px, 4.28vw, 30px);
    }
    .philosophy-text--br {
      display: inline;
    }
    .guidelines-content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    .guidelines-bg-image {
      height: auto;
    }
    .guideline-title {
      font-size: 1.1rem;
    }
    .philosophy-links-inner {
      display: flex;
      flex-direction: column;
      gap: 20px;
      padding: 0 0 100px;
    }
    .philosophy-link-item {
      background: #f1f5f7;
      border: 1px solid #cccccc;
      border-radius: 0;
    }
    .philosophy-link {
      padding: 18px 20px;
      height: auto;
      min-height: 74px;
    }
    .philosophy-link-text {
      font-weight: 700;
      font-size: clamp(14px, 4vw, 28px);
      line-height: 2.29em;
    }
    .philosophy-link-arrow {
      font-size: 24px;
      width: 24px;
      height: 48px;
    }
    .overview-content {
      gap: 2rem;
      display: flex;
      flex-direction: column-reverse;
      align-items: center;
    }
    .overview-left {
      padding: 0;
      width: 100%;
    }
    .overview-image {
      /* height: 300px; */
      max-width: 468px;
    }
    .map-content iframe {
      height: 300px;
    }
    .mascot-content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    .mascot-image {
      padding: 1.5rem;
    }
    .mascot-info {
      padding: 0;
    }
    .mascot-name {
      font-size: 1.5rem;
    }
    .company-table th,
    .company-table td {
      padding: 0.8rem;
      font-size: 0.9rem;
    }
    .company-table th {
      width: calc(0.8rem * 2 + 4em);
    }
    .access-content {
      flex-direction: column;
      gap: 1rem;
    }
    .access-map iframe {
      height: 200px;
    }
    .company-links-inner {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    .guidelines-image {
      width: 100%;
    }
    .guidelines-text {
      gap: 60px;
    }
    .mascot-profile {
      margin-bottom: 1rem;
    }
    .profile-flex {
      width: 100%;
    }
    .profile-flex li {
      padding-bottom: 21px;
    }
  }

  @media (max-width: 480px) {
    .company-fv {
      height: 250px;
    }
    .company-inner {
      padding: 0 20px;
    }
    .philosophy-links-inner {
      padding: 0;
    }

    .company-fv-title {
      font-size: 1.5rem;
    }
    .section-title {
      font-size: 1.3rem;
    }
    .philosophy-text {
      font-size: 0.9rem;
    }
    .company-table th,
    .company-table td {
      padding: 0.6rem;
      font-size: 0.8rem;
    }
    .access-info {
      padding: 1.5rem;
    }
    .access-title {
      font-size: 1.3rem;
    }
    .company-link {
      padding: 1rem;
    }
    .company-link-text {
      font-size: 1rem;
    }
  }

  @media (min-width: 768px) {
    .page-profile .table {
      display: grid;
      grid-template-columns: 160px 1fr;
      gap: 0;
      font-size: var(--text-md);
    }
    .page-profile .table .title {
      padding-block: var(--p-lg);
      font-weight: var(--weight-normal);
      border-bottom: 1px solid var(--border-color);
    }
    .page-profile .table .title:first-child {
      border-top: none;
    }
    .page-profile .table .title:last-of-type {
      border-bottom: none;
    }
    .page-profile .table .description {
      padding-block: var(--p-lg);
    }
    .page-profile .table .description:last-child {
      border-bottom: none;
    }
    .page-profile .image-wrapper {
      display: flex;
      flex-direction: column;
      gap: var(--gap-md);
    }
    .page-map {
      padding-top: 0;
    }
    .page-map .page-contents {
      padding: 0;
      background: none;
      border-radius: 0;
      border: none;
    }
  }
}
