@charset "utf-8";

/* ============================================================
   company.css — Company section pages (会社概要, 代表者挨拶, etc.)
   Shared styles are in components.css
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; overflow-x: hidden; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
  overflow-x: clip;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #06617f; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #30a1af; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: #646464;
}
.breadcrumb a { color: #30a1af; }
.breadcrumb a:hover { color: #06617f; }
.breadcrumb__sep {
  margin: 0 0.5rem;
  color: #cacaca;
}

/* ============================================================
   PAGE HEADER (teal banner)
   ============================================================ */

.page-header {
  background: #30a1af;
  padding: 3.5rem 0;
}
.page-header__title {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1875rem);
  font-weight: normal;
  border-left: 0.3125rem solid #fff;
  padding-left: 1.875rem;
}
.page-header__sub {
  display: block;
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.2em;
  margin-top: 0.25rem;
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif;
}

/* ============================================================
   PAGE NAV (sub-navigation bar)
   ============================================================ */

.page-nav {
  background: #06617f;
}
.page-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-nav__item {
  flex: 1;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.page-nav__item:last-child { border-right: none; }

.page-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  transition: background .2s;
  min-height: 5rem;
}
.page-nav__link:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ============================================================
   SECTION
   ============================================================ */

.section-pad { padding: 5rem 0; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2.5rem;
  text-align: center;
}
.section-title::after {
  content: '';
  display: block;
  width: 3.75rem;
  height: 0.1875rem;
  background: #30a1af;
  margin: 0.75rem auto 0;
  border-radius: 0.125rem;
}

/* ============================================================
   COMPANY TABLE
   ============================================================ */

.company-table {
  width: 100%;
  max-width: 50rem;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 1rem;
}

.company-table th,
.company-table td {
  padding: 1rem 1.25rem;
  border: 1px solid #30a1af;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.company-table th {
  background: #e9f8fa;
  font-weight: 600;
  color: #1a1a1a;
  width: 1%;
  white-space: nowrap;
}

.company-table td {
  background: #fff;
}

.company-table td a {
  text-decoration: underline;
  text-decoration-color: rgba(6,97,127,0.3);
  text-underline-offset: 0.1875rem;
}
.company-table td a:hover {
  text-decoration-color: #30a1af;
  color: #30a1af;
}

/* ============================================================
   MAP & ACCESS
   ============================================================ */

.company-map {
  text-align: center;
  margin: 3rem 0 2rem;
}
.company-map img {
  width: 100%;
  max-width: 33.75rem;
  margin: 0 auto;
}

.access-directions {
  max-width: 40rem;
  margin: 0 auto;
}
.access-directions p {
  font-size: 0.9375rem;
  line-height: 1.8;
  padding: 0.25rem 0;
}

/* shokudo_raku_link styles moved to components.css (shared component) */

/* ============================================================
   PROFILE PAGE
   ============================================================ */

.profile-section {
  background: #e6e7e7;
}
.profile-section--alt {
  background: #fff;
}

.profile-catchcopy {
  background: #30a1af;
  color: #fff;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 0.1875rem;
  margin-bottom: 2.5rem;
}

.profile-text {
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
  max-width: 52rem;
  margin: 0 auto 3rem;
}

.profile-philosophy {
  max-width: 52rem;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.profile-philosophy li {
  padding-left: 2em;
  text-indent: -2em;
  padding-bottom: 1.875rem;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
}
.profile-philosophy li:first-child {
  padding-left: 1em;
  text-indent: -1em;
}

.profile-chart {
  text-align: center;
}
.profile-chart img {
  width: 100%;
  max-width: 50rem;
  margin: 0 auto;
}

/* Business items grid */
.profile-products {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.profile-product {
  flex: 1 1 0;
  min-width: 13rem;
  text-align: left;
}
.profile-product__title {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: #30a1af;
  border: 1px solid #30a1af;
  background: #e9f8fa;
  border-radius: 0.1875rem;
  padding: 0.375rem 1rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  text-align: center;
  min-width: 10rem;
}
.profile-product__title--primary {
  line-height: 2.5;
}
.profile-product__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0;
}

/* ============================================================
   GREETING PAGE
   ============================================================ */

.greeting-layout {
  display: flex;
  gap: 3rem;
  max-width: 58rem;
  margin: 0 auto;
  align-items: flex-start;
}

.greeting-text {
  flex: 1;
}
.greeting-text p {
  text-align: justify;
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.greeting-photo {
  flex-shrink: 0;
  width: 17.5rem;
  text-align: center;
}
.greeting-photo__img {
  width: 100%;
  margin-bottom: 1rem;
}
.greeting-photo__sign {
  width: 100%;
}

/* ============================================================
   HISTORY PAGE
   ============================================================ */

.history-intro {
  text-align: justify;
  line-height: 1.8;
  max-width: 52rem;
  margin: 0 auto 3rem;
}

.history-era {
  color: #30a1af;
  font-size: 1.375rem;
  font-weight: 600;
  padding: 0 0 0.625rem 1.25rem;
  max-width: 52rem;
  margin: 2.5rem auto 0;
}
.history-era:first-of-type {
  margin-top: 0;
}

.history-timeline {
  max-width: 52rem;
  margin: 0 auto;
  border: 1px solid #30a1af;
  border-top: none;
  font-size: 1rem;
}
.history-row {
  display: flex;
  border-top: 1px solid #30a1af;
}
.history-timeline dt {
  flex-shrink: 0;
  width: 9rem;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #30a1af;
  font-weight: 700;
  background: #cfe6e9;
}
.history-timeline dd {
  flex: 1;
  margin: 0;
  padding: 1.25rem 1.5rem;
  text-align: justify;
  background: #fff;
  border-left: 1px solid #30a1af;
}

.history-logo {
  text-align: center;
  padding-top: 4rem;
}
.history-logo img {
  max-width: 34.875rem;
  width: 100%;
  margin: 0 auto;
}

/* ============================================================
   KOUKOKU (電子公告) PAGE
   ============================================================ */

.koukoku-section {
  background: #fff;
}

.koukoku-tabs {
  max-width: 50rem;
  margin: 0 auto;
}

.koukoku-tabs input[type="radio"] {
  display: none;
}

.koukoku-tabs__labels {
  display: flex;
  gap: 0.5rem;
  margin: 0;
}

.koukoku-tabs__label {
  display: inline-block;
  width: 9.375rem;
  padding: 0.75rem 0;
  text-align: center;
  font-size: 1.125rem;
  color: #999;
  background: #fff;
  cursor: pointer;
  transition: opacity .2s;
}
.koukoku-tabs__label:hover {
  opacity: 0.5;
}

.koukoku-tabs__panels {
  background: #e6e7e7;
}

.koukoku-panel {
  display: none;
  padding: 3rem;
}

.koukoku-panel .company-table th,
.koukoku-panel .company-table td {
  vertical-align: middle;
  text-align: center;
}

.koukoku-panel__link {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-align: center;
}
.koukoku-panel__link a {
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
}

#tab1:checked ~ .koukoku-tabs__labels .koukoku-tabs__label[for="tab1"] {
  background: #e6e7e7;
  color: #1a1a1a;
}
#tab1:checked ~ .koukoku-tabs__panels #panel1 { display: block; }

#tab2:checked ~ .koukoku-tabs__labels .koukoku-tabs__label[for="tab2"] {
  background: #e6e7e7;
  color: #1a1a1a;
}
#tab2:checked ~ .koukoku-tabs__panels #panel2 { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 48rem) {
  .section-pad { padding: 3.5rem 0; }
  .container { padding: 0 1rem; }

  .page-header { padding: 2.5rem 0; }
  .page-header__title { font-size: 1.5rem; padding-left: 1rem; }

  .page-nav { display: none; }

  .company-table th { width: auto; }

  .greeting-layout {
    flex-direction: column;
  }
  .greeting-photo {
    width: 100%;
    max-width: 17.5rem;
    margin: 0 auto;
  }

  .history-timeline dt { width: 7rem; }
  .history-timeline dd { padding: 1rem; }
}

@media (max-width: 30rem) {
  .section-pad { padding: 2.5rem 0; }

  .company-table,
  .company-table thead,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }
  .company-table th {
    border-bottom: none;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
  }
  .company-table td {
    border-top: none;
  }

  .history-row {
    flex-direction: column;
  }
  .history-timeline dt {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
  }
  .history-timeline dd {
    border-left: none;
    padding: 0.75rem 1rem;
  }

  .koukoku-tabs__labels {
    flex-direction: column;
    margin: 0;
  }
  .koukoku-tabs__label {
    width: 100%;
  }
  .koukoku-panel {
    padding: 1.5rem;
  }
}
