/*
Theme Name: MyTheme
Author: Michiru
Version: 1.0
*/

/* 全体の余白 */
.site-main {
  padding: 24px 16px;
}


/* トップ：セクションのcontainerで制御するので縛らない */
body.home .site-main > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* 幅広（alignwide） */
.site-main .alignwide {
  max-width: 1100px;
}

/* 全幅（alignfull） */
.site-main .alignfull {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

html, body {
  background: #fff;
  margin: 0;
}

body {
  margin: 0;
  line-height: 1.7;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  text-decoration: none;
}

/* 見出し共通 */
.site-main h1,
.site-main h2,
.site-main h3 {
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .02em;
}

.site-main h1 {
  font-size: 2rem;
  margin: 0 0 1em;
}

.site-main h2 {
  font-size: 1.5rem;
  margin: 2.2em 0 0.8em;
}

.site-main h3 {
  font-size: 1.2rem;
  margin: 1.6em 0 0.6em;
}

.site-main p {
  margin: 0 0 1em;
}

.site-main img {
  max-width: 100%;
  height: auto;
}

/* 共通 */
.container{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.sec{
  padding: 40px 0;
}

.sec__title{
  margin: 0 0 16px;
  font-size: 1.6rem;
}

.sec__title--center{
  text-align: center;
}

.sec__text{
  margin: 0 0 16px;
  line-height: 1.8;
}

.sec__actions{
  margin-top: 12px;
}

.btn{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: #1fb6c1;
  color: #fff;
  text-decoration: none;
}

.btn:hover{ opacity: .9; }

a{
  color: #1fb6c1;
}
a:hover{
  opacity: .8;
}

/* ヘッダー */
.site-brand{
  font-weight: 700;
  color: #22BAC2;
  text-decoration: none;
  letter-spacing: .02em;
}

.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  z-index: 1000;
}

.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* サイト名＋25周年ロゴを横並び */
.site-brand-wrap{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 25周年ロゴ */
.site-anniv img{
  max-height: 50px;
  width: auto;
  display: block;
}

.site-header__inner{
  display: flex;
  align-items: center;
  gap: 16px;
}

/* スマホでは少し小さく */
@media (max-width: 768px){
  .site-anniv img{
    max-height: 50px;
  }
}

/* メニューボタン */
.menu-toggle {
  display: none;
  padding: 8px 10px;
}

.site-nav { 
  display: block;
}

/* ナビ */
.site-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-nav__menu a {
  color: #333;
}

.site-nav__menu a:hover {
  opacity: 0.7;
}

/* スマホ */
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
     justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
  }

    /* 三本線 */
   .menu-toggle__icon{
    position: relative;
    width: 18px;
    height: 2px;
    background: #333;
    display: block;
  }
  .menu-toggle__icon::before,
  .menu-toggle__icon::after{
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #333;
  }
  .menu-toggle__icon::before{ top: -6px; }
  .menu-toggle__icon::after{ top: 6px; }

  .site-header__inner {
    flex-wrap: wrap;
  }

    /* ナビの表示制御 */
  .site-nav {
    display: none;
    width: 100%;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
  }
}

.site-nav__menu .current-menu-item > a,
.site-nav__menu .current_page_item > a {
  font-weight: 700;
  text-decoration: underline;
}

/* 画面読み上げ用（見た目は非表示） */
.screen-reader-text{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* フッター */
.site-footer {
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 24px 16px;
  text-align: center;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer__copy {
  margin: 0;
  font-size: 14px;
}

/* お知らせ　*/
.archive-header {
  margin-bottom: 24px;
}

.archive-title {
  margin: 0 0 8px;
}

.archive-description {
  opacity: 0.8;
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-card {
  border: none;
  border-radius: 0;
  padding: 0;
}

.post-card__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__title a:hover {
  text-decoration: underline;
}

.post-card__meta {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 8px;
}

.post-card__excerpt p {
  margin: 0;
}

.pagination {
  margin-top: 24px;
}

/* お知らせ用 */
.single-header {
  margin-bottom: 16px;
}

.single-title {
  margin: 0 0 8px;
}

.single-meta {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* トップページ対応 */
.hero{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  grid-template-columns: 1fr;
}

.hero__title{
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.hero__lead{
  margin: 0;
  opacity: .9;
}

.hero__media img{
  width: 100%;
  height: auto;
  display: block;
}

/* PC（デフォルト）：文字→画像 */
.hero__text { order: 0; }
.hero__media { order: 0; }

.latest{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.latest__link{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.latest__date{
  white-space: nowrap;
  opacity: .7;
  font-size: .95rem;
}

.office-table{
  max-width: 720px;
  margin: 0 auto;
}

.office-table table{
  width: 100%;
  border-collapse: collapse;
}

.office-table th,
.office-table td{
  border: 1px solid rgba(0,0,0,.15);
  padding: 10px;
  vertical-align: top;
}

@media (max-width: 768px){
  .sec{ padding: 28px 0; }

  .hero{
    grid-template-columns: 1fr;
  }

    .hero__media{ order: 1; }
  .hero__text{ order: 2; }

  .latest__link{
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero__text{
    text-align: center;
  }
}

@media (min-width: 769px){
  .hero{
    grid-template-columns: 1.2fr 1fr;
  }

  .hero__title{
    font-size: 2.6rem;
  }
    /* PCでは並び固定：左=文字、右=画像 */
  .hero__text{ grid-column: 1; }
  .hero__media{ grid-column: 2; }

}
