/* ========================================
   株式会社大阪医科学研究所 - PC版スタイルシート
   ======================================== */

/* --- CSS Variables --- */
:root {
  --color-main: #4a8c5c;
  --color-main-light: #6db585;
  --color-main-dark: #3a7048;
  --color-main-pale: #e8f3ec;
  --bg-main: #f0f7f2;
  --bg-white: #ffffff;
  --bg-cream: #faf8f4;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-white: #ffffff;
  --border-color: #dddddd;
  --content-max-width: 1100px;
  --radius: 12px;
  --radius-sm: 10px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', '游ゴシック', 'Yu Gothic', 'メイリオ', sans-serif;
  color: var(--text-primary);
  line-height: 1.8;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Utility --- */
.inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section Title --- */
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-main);
}

/* ========================================
   Header
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.header__logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-img {
  height: 44px;
  width: auto;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.header__contact {
  display: inline-block;
  background: var(--color-main);
  color: var(--text-white);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: 50px;
  transition: background 0.3s;
}

.header__contact:hover {
  background: var(--color-main-dark);
}

/* ========================================
   Global Navigation
   ======================================== */
.gnav {
  background: var(--color-main);
  position: relative;
  z-index: 900;
}

.gnav__list {
  display: flex;
  justify-content: center;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.gnav__item {
  position: relative;
}

.gnav__item > a,
.gnav__item > span {
  display: block;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.gnav__item > a:hover,
.gnav__item > span:hover,
.gnav__item:hover > a,
.gnav__item:hover > span {
  background: var(--color-main-dark);
}

/* Dropdown */
.gnav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--bg-white);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.gnav__item:hover .gnav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gnav__dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s, color 0.2s;
}

.gnav__dropdown a:last-child {
  border-bottom: none;
}

.gnav__dropdown a:hover {
  background: var(--color-main-pale);
  color: var(--color-main-dark);
}

/* ========================================
   Main Visual
   ======================================== */
.mainvisual {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.mainvisual__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mainvisual__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4a8c5c 0%, #6db585 50%, #3a7048 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
}

.mainvisual__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mainvisual__catch {
  font-family: 'Noto Serif JP', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ========================================
   Banner Area (事業バナー)
   ======================================== */
.banner-area {
  background: var(--bg-white);
  padding: 60px 0;
}

.banner-area__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.banner-area__card {
  background: var(--color-main-pale);
  border-radius: var(--radius);
  border: 2px solid transparent;
  padding: 28px 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.banner-area__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74, 140, 92, 0.15);
  border-color: var(--color-main-light);
}

.banner-area__card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.banner-area__card--simple .banner-area__card-header {
  margin-bottom: 0;
}

.banner-area__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.banner-area__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.banner-area__links {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(74, 140, 92, 0.2);
}

.banner-area__links li {
  margin-bottom: 6px;
}

.banner-area__links li:last-child {
  margin-bottom: 0;
}

.banner-area__links a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--color-main-dark);
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.2s;
}

.banner-area__links a::before {
  content: '›';
  margin-right: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-main);
}

.banner-area__links a:hover {
  color: var(--color-main);
}

/* バナーカード内の説明文（不動産事業など） */
.banner-area__desc {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(74, 140, 92, 0.2);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* 単体リンクカード（医療機器販売等・人材紹介） */
.banner-area__card--simple {
  display: flex;
  align-items: center;
  grid-column: span 1;
}

/* 下段の2つを中央寄せ：4番目と5番目 */
.banner-area__card:nth-child(4) {
  grid-column: 1 / 2;
  margin-left: auto;
  width: 100%;
}

.banner-area__card:nth-child(5) {
  grid-column: 3 / 4;
  margin-right: auto;
  width: 100%;
}

/* 下段2つを中央に配置するため、4番目にオフセット */
.banner-area__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.banner-area__card:nth-child(4) {
  grid-column: 1 / 2;
}

.banner-area__card:nth-child(5) {
  grid-column: 2 / 3;
}

/* リンクなしカード（健康食品販売事業など） */
.banner-area__card--nolink {
  cursor: default;
  opacity: 0.85;
}

.banner-area__card--nolink:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

/* ============================== 運営規程 ============================== */
.rule-content { max-width: 880px; margin: 0 auto; }
.rule-article { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px dashed var(--border-color); }
.rule-article:last-child { border-bottom: none; }
.rule-article__heading {
  font-family: 'Noto Serif JP', serif; font-size: 17px; font-weight: 700;
  color: var(--color-main-dark); padding: 10px 14px; background: var(--color-main-pale);
  border-left: 4px solid var(--color-main); margin-bottom: 14px; border-radius: 0 4px 4px 0;
}
.rule-article__body { font-size: 14px; line-height: 2; color: var(--text-primary); }
.rule-article__num { display: inline-block; font-weight: 700; color: var(--color-main-dark); }

.rule-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 920px; margin: 0 auto;
}
.rule-list__card {
  display: block; padding: 24px 22px; background: var(--bg-cream);
  border: 1px solid var(--border-color); border-radius: var(--radius);
  text-decoration: none; color: var(--text-primary);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.rule-list__card:hover {
  transform: translateY(-3px); box-shadow: 0 6px 18px rgba(74, 140, 92, 0.18);
  border-color: var(--color-main);
}
.rule-list__name {
  font-family: 'Noto Serif JP', serif; font-size: 16px; font-weight: 700;
  color: var(--text-primary); line-height: 1.5; margin-bottom: 6px;
}
.rule-list__service { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.rule-list__arrow { font-size: 13px; font-weight: 700; color: var(--color-main-dark); }

@media (max-width: 768px) {
  .rule-article__body { font-size: 13px; }
  .rule-article__heading { font-size: 15px; }
}

/* ========================================
   Section: 大切にしていること
   ======================================== */
.section-taisetsu {
  background: var(--bg-cream);
  padding: 80px 0;
}

.section-taisetsu__content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.section-taisetsu__image-wrap {
  flex: 0 0 45%;
}

.section-taisetsu__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.section-taisetsu__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #4a8c5c 0%, #6db585 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
}

.section-taisetsu__text {
  flex: 1;
}

.section-taisetsu__subtitle {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.section-taisetsu__body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
}

/* ========================================
   Section: 選ばれる理由
   ======================================== */
.section-reason {
  background: var(--bg-white);
  padding: 80px 0;
}

.reason-item {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
}

.reason-item:last-child {
  margin-bottom: 0;
}

.reason-item--reverse {
  flex-direction: row-reverse;
}

.reason-item__image-wrap {
  flex: 0 0 48%;
}

.reason-item__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  object-fit: cover;
}

.reason-item__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #4a8c5c 0%, #6db585 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
}

.reason-item__text {
  flex: 1;
}

.reason-item__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.reason-item__number {
  width: 36px;
  height: 36px;
  background: var(--color-main);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.reason-item__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.reason-item__body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
}

/* ========================================
   Section: 会社概要
   ======================================== */
.section-company {
  background: var(--bg-cream);
  padding: 80px 0;
}

.company-table {
  max-width: 700px;
  margin: 0 auto 40px;
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  background: var(--color-main-pale);
  color: var(--color-main-dark);
  font-weight: 700;
  width: 140px;
  white-space: nowrap;
}

.company-map {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.company-map iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-main-dark);
  color: var(--text-white);
  padding: 50px 0 0;
  text-align: center;
}

.footer__company {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer__address {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 30px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 30px;
}

.footer__nav a,
.footer__nav span {
  font-size: 13px;
  color: var(--text-white);
  opacity: 0.85;
  transition: opacity 0.3s;
}

.footer__nav a:hover {
  opacity: 1;
}

.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 0;
  font-size: 12px;
  opacity: 0.7;
}

/* ========================================
   下層ページ共通
   ======================================== */

/* パンくずリスト */
.breadcrumb {
  background: var(--bg-main);
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--color-main);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-main-dark);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--border-color);
}

/* ページヒーロー */
.page-hero {
  background: var(--color-main);
  padding: 50px 0;
  text-align: center;
}

.page-hero__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text-white);
}

.page-hero__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
}

/* 下層ページセクション */
.page-section {
  padding: 70px 0;
}

.page-section--cream {
  background: var(--bg-cream);
}

.page-section--white {
  background: var(--bg-white);
}

.page-section--pale {
  background: var(--bg-main);
}

/* 画像プレースホルダー（下層ページ用） */
.placeholder-image {
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #4a8c5c 0%, #6db585 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
}

.placeholder-image--hero {
  height: 360px;
  border-radius: 0;
}

.placeholder-image--medium {
  aspect-ratio: 16 / 10;
}

.placeholder-image--square {
  aspect-ratio: 4 / 3;
}

/* コンテンツブロック */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--color-main);
}

.content-block p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 24px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

/* 2カラムレイアウト */
.two-col {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.two-col--center {
  align-items: center;
}

.two-col__image {
  flex: 0 0 45%;
}

.two-col__text {
  flex: 1;
}

/* 情報テーブル（汎用） */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.info-table th,
.info-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  background: var(--color-main-pale);
  color: var(--color-main-dark);
  font-weight: 700;
  width: 160px;
  white-space: nowrap;
}

/* 料金テーブル */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.price-table th,
.price-table td {
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  font-size: 15px;
  text-align: left;
}

.price-table thead th {
  background: var(--color-main);
  color: var(--text-white);
  font-weight: 700;
}

.price-table tbody th {
  background: var(--color-main-pale);
  color: var(--color-main-dark);
  font-weight: 700;
}

.price-table .price {
  font-weight: 700;
  color: var(--color-main-dark);
}

/* 特徴カード */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--color-main-pale);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}

.feature-card__icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.feature-card__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card__body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* サービスリスト */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.service-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid #eee;
}

.service-list__item::before {
  content: '✓';
  color: var(--color-main);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

/* CTAセクション */
.cta-section {
  background: var(--color-main);
  padding: 60px 0;
  text-align: center;
}

.cta-section__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
}

.cta-section__text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}

.cta-section__btn {
  display: inline-block;
  background: var(--text-white);
  color: var(--color-main-dark);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 48px;
  border-radius: 50px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-section__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* お問い合わせフォーム */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group label .required {
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-main);
}

.form-group textarea {
  height: 180px;
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.form-submit button {
  display: inline-block;
  background: var(--color-main);
  color: var(--text-white);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 64px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.form-submit button:hover {
  background: var(--color-main-dark);
  transform: translateY(-2px);
}

/* スケジュール */
.schedule-list {
  max-width: 700px;
  margin: 0 auto;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-color);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item__time {
  flex-shrink: 0;
  background: var(--color-main);
  color: var(--text-white);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  min-width: 70px;
  text-align: center;
}

.schedule-item__content {
  font-size: 15px;
  color: var(--text-primary);
  padding-top: 4px;
}

/* プライバシーポリシー */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--color-main);
}

.privacy-content h3:first-child {
  margin-top: 0;
}

.privacy-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.privacy-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.privacy-content ul li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  list-style: disc;
  margin-bottom: 4px;
}
