/* 共通スタイル */
:root {
    --max-width: 1230px;
    --primary-color: #333;
    --secondary-color: #666;
    --background-light: #F2CC93;
    --background-yellow: #FDF9DE;
    --background-blue: #B1D9F3;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --border-radius: 12px;
    --transition: all 0.2s ease;
}

/* メインビジュアル */
.mainvisual {
    background: var(--background-yellow);
    padding: 40px 0;
}

.mainvisual__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.mainvisual__container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.mainvisual__slider {
    width: 60%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.mainvisual__slider img {
    width: 100%;
    height: auto;
    display: block;
}

.mainvisual__content {
    width: 40%;
}

.mainvisual__title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 24px;
}

.mainvisual__buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 18px;
}

.mainvisual__button {
    background: #E57386;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 24px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.mainvisual__button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.mainvisual__button-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* 目的から探す */
.purpose {
    padding: 40px 0;
}

.purpose__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.purpose__header {
    text-align: center;
    margin-bottom: 32px;
}

.purpose__icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.purpose__title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0;
}

.purpose__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.purpose__item {
    background: #e9f8e9;
    border-radius: var(--border-radius);
    padding: 24px 32px;
    min-width: 180px;
    text-align: center;
}

.purpose__item:nth-child(2) {
    background: #ffe3ed;
}

.purpose__item:nth-child(3) {
    background: #f7fbe7;
}

.purpose__item:nth-child(4) {
    background: #e9f8e9;
}

.purpose__item:nth-child(5) {
    background: #ffe3ed;
}

.purpose__item:nth-child(6) {
    background: #f7fbe7;
}

.purpose__item-icon {
    font-size: 2.2em;
}

.purpose__item-text {
    margin-top: 8px;
    font-weight: bold;
}

/* 成長別でさがす */
.age {
    background: #E6F3FF;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 6px,
        rgba(255, 255, 255, 0.4) 6px,
        rgba(255, 255, 255, 0.4) 12px
    );
    padding: 40px 0;
}

.age__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.age__header {
    text-align: center;
    margin-bottom: 32px;
}

.age__icon {
    font-size: 2.2em;
    margin-bottom: 8px;
}

.age__title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0;
}

.age__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.age__item {
    background: var(--background-yellow);
    border-radius: var(--border-radius);
    padding: 24px 32px;
    width: calc(20% - 16px);
    min-width: 200px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.age__item:nth-child(2) {
    background: #E6F7FF;
}

.age__item:nth-child(3) {
    background: #FFF0F6;
}

.age__item:nth-child(4) {
    background: #E8F5E9;
}

.age__item:nth-child(5) {
    background: #FFFDEB;
}

.age__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.age__item-icon {
    font-size: 2.2em;
}

.age__item-text {
    margin-top: 8px;
    font-weight: bold;
}

/* 新着情報 */
.news {
    background-image: url('http://minamisatsuma-lgjp.check-xserver.jp/assets/images/texture01b.jpg');
    padding: 40px 0;
}

.news__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.news__title {
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
}

.news__container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.news__content {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 30px;
    width: 70%;
}

.news__sidebar {
    width: 20%;
    flex-shrink: 0;
}

.news__banner {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
}

.news__banner-title {
    display: none;
}

.news__banner-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news__banner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    text-align: left;
    width: 100%;
}

.news__banner-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.news__banner-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.news__banner-text {
    font-size: 0.9em;
    font-weight: 500;
}

.news__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news__item {
    margin-bottom: 12px;
}

.news__item:last-child {
    margin-bottom: 0;
}

.news__item a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: normal;
}

.news__item a:hover {
    color: #003366;
    text-decoration: underline;
}

.news__date {
    color: #000;
    font-weight: bold;
    margin-right: 8px;
    font-size: 0.9em;
}

.news__more {
    text-align: right;
    margin-top: 12px;
}

.news__more-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.icon-circle-arrow-right {
    color: #00B2BB;
}

/* リンク集 */
.links {
    background: var(--background-blue);
    padding: 40px 0;
}

.links__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.links__title {
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
}

.links__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.links__item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 32px;
    min-width: 180px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.links__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* --- 共通タイトル装飾 --- */
.section-title-icons {
  text-align: center;
  margin-bottom: 32px;
}
.section-title-icons-inner {
  font-size: 2em;
  margin-bottom: 0.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.section-title-icons-inner .section-title-main {
  font-weight: bold;
  font-size: 1.1em;
  margin: 0;
  position: relative;
}

/* 目的から探すセクションのアイコン */
.purpose .section-title-main::before {
  content: "";
  background: url(../images/headline-icon-citizen-service.svg) no-repeat center center/cover;
  display: inline-block;
  width: 42px;
  min-width: 42px;
  height: 42px;
  position: relative;
  top: 0;
  left: 0;
  margin-right: 15px;
  vertical-align: middle;
}

/* 新着情報セクションのアイコン */
.news .headline-area h2::before {
  content: "";
  background: url(http://minamisatsuma-lgjp.check-xserver.jp/images/icon-news.svg) no-repeat center center/cover;
  display: inline-block;
  width: 48px;
  min-width: 48px;
  height: 42px;
  position: relative;
  top: 0;
  left: 0;
  margin-right: 15px;
  vertical-align: middle;
}

/* カテゴリー検索セクションのアイコン */
.search-categories .section-title-main::before {
  content: "";
  background: url(../images/headline-icon-search.svg) no-repeat center center/cover;
  display: inline-block;
  width: 42px;
  min-width: 42px;
  height: 42px;
  position: relative;
  top: 0;
  left: 0;
  margin-right: 15px;
  vertical-align: middle;
}

/* 子育てお役立ち情報セクションのアイコン */
.useful-info .headline-area h2::before {
  content: "";
  background: url(http://minamisatsuma-lgjp.check-xserver.jp/images/icon-info.svg) no-repeat center center/cover;
  display: inline-block;
  width: 48px;
  min-width: 48px;
  height: 42px;
  position: relative;
  top: 0;
  left: 0;
  margin-right: 15px;
  vertical-align: middle;
}

/* --- 子育てお役立ち情報セクション --- */
.useful-info {
    padding: 40px 0;
    background-image: url('http://minamisatsuma-lgjp.check-xserver.jp/assets/images/texture01b.jpg');
    background-repeat: repeat;
    background-size: auto;
}
.useful-info__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.useful-info__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}
.useful-info__card {
  flex: 1 1 240px;
  max-width: 300px;
  min-width: 220px;
  border-radius: 18px;
  text-align: center;
  padding: 20px 12px;
  background: #fff;
}
.useful-info__card.bg-green { background: #e9f8e9; }
.useful-info__card.bg-pink { background: #ffe3ed; }
.useful-info__card.bg-yellow { background: #f7fbe7; }
.useful-info__card-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 10px;
}
.useful-info__card-title.green { color: #3a5d1c; }
.useful-info__card-title.pink { color: #a14c6c; }
.useful-info__card-title.yellow { color: #5b7c1a; }
.useful-info__card-img {
  width: 80%;
  max-width: 180px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.useful-info__card-desc {
  font-size: 0.95em;
  color: #333;
  margin-bottom: 8px;
}
.useful-info__card-link {
  display: inline-block;
  margin-top: 6px;
  color: #fff;
  border-radius: 4px;
  padding: 6px 18px;
  text-decoration: none;
  font-weight: bold;
}
.useful-info__card-link.green { background: #7bc043; }
.useful-info__card-link.pink { background: #e573a6; }
.useful-info__card-link.yellow { background: #b6d43a; }

/* --- 情報を探すカテゴリカード --- */
.search-categories__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.search-categories__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}
.search-categories__card {
  flex: 1 1 220px;
  max-width: 260px;
  min-width: 200px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0001;
  display: flex;
  align-items: center;
  padding: 16px 10px;
  text-decoration: none;
  color: #222;
  transition: box-shadow 0.2s, transform 0.2s;
}
.search-categories__card:hover {
  box-shadow: 0 4px 16px #0002;
  transform: translateY(-2px);
}
.search-categories__card-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 16px;
}
.search-categories__card-label {
  font-size: 0.9em;
  letter-spacing: 0.02em;
}
.search-categories__card-arrow {
  margin-left: auto;
  font-size: 1.5em;
}

.circle-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px auto;
  box-shadow: 0 2px 8px #0001;
}

.panel-menu {
  background: #e9f8e9;
  border-radius: var(--border-radius);
  padding: 24px 8px 12px 8px;
  min-width: 120px;
  max-width: 140px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.panel-menu:nth-child(2) {
  background: #ffe3ed;
}

.panel-menu:nth-child(3) {
  background: #f7fbe7;
}

.panel-menu:nth-child(4) {
  background: #e9f8e9;
}

.panel-menu:nth-child(5) {
  background: #ffe3ed;
}

.panel-menu:nth-child(6) {
  background: #f7fbe7;
}
.panel-menu:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.panel-menu .panel-menu-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px #0001;
}
.panel-menu .panel-menu-label {
  font-weight: bold;
  font-size: 1em;
}
.purpose__grid, .age__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}
.purpose__grid > *, .age__grid > * {
  flex: 1 1 0;
  max-width: 140px;
  min-width: 120px;
}
@media (max-width: 900px) {
  .purpose__grid, .age__grid {
    flex-wrap: wrap;
    gap: 16px;
  }
  .purpose__grid > *, .age__grid > * {
    max-width: 45%;
    min-width: 120px;
  }
}
@media (max-width: 600px) {
  .purpose__grid, .age__grid {
    flex-direction: column;
    align-items: center;
  }
  .purpose__grid > *, .age__grid > * {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .useful-info__grid, .search-categories__grid {
    flex-direction: column;
    align-items: center;
  }
  .useful-info__card, .search-categories__card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .mainvisual__container {
        flex-direction: column;
    }

    .mainvisual__slider,
    .mainvisual__content {
        width: 100%;
    }

    .age__item {
        width: calc(33.333% - 16px);
    }

    /* タブレット（1024px以下）: 横並びを維持しつつ比率調整 */
    .news__container {
        gap: 16px;
    }

    .news__content {
        width: 65%;
    }

    .news__sidebar {
        width: 25%;
    }

    .news__banner-item {
        padding: 10px;
        gap: 8px;
    }

    .news__banner-text {
        font-size: 0.85em;
    }
}

@media (max-width: 768px) {
    .age__item {
        width: calc(50% - 16px);
    }

    .purpose__item {
        width: calc(50% - 16px);
    }

    /* タブレット（768px以下）: 縦並びに変更 */
    .news__container {
        flex-direction: column;
        gap: 20px;
    }

    .news__content,
    .news__sidebar {
        width: 100%;
    }

    .news__banner-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .news__banner-item {
        flex-direction: row;
        text-align: left;
        padding: 12px 16px;
    }

    .news__banner-icon {
        font-size: 1.5em;
        margin-bottom: 4px;
    }

    .news__banner-text {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .age__item,
    .purpose__item {
        width: 100%;
    }

    .mainvisual__button {
        padding: 12px 16px;
    }

    /* スマートフォン（480px以下）: 1列レイアウト */
    .news__container {
        gap: 16px;
    }

    .news__content {
        padding: 16px;
    }

    .news__banner {
        padding: 16px;
    }

    .news__banner-list {
        gap: 10px;
    }

    .news__banner-item {
        flex-direction: row;
        text-align: left;
        padding: 10px 12px;
    }

    .news__banner-icon {
        font-size: 1.1em;
    }

    .news__banner-text {
        font-size: 0.85em;
    }

    .news__banner-title {
        display: none;
    }
}

@media (max-width: 768px) {
    .age__item {
        width: calc(50% - 16px);
    }

    .purpose__item {
        width: calc(50% - 16px);
    }
}

@media (max-width: 480px) {
    .age__item,
    .purpose__item {
        width: 100%;
    }

    .mainvisual__button {
        padding: 12px 16px;
    }
}

.section-wave-top {
  position: relative;
  padding-top: 40px;
}
.section-wave-top::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 24px;
  z-index: 1;
}

/* セクションの上下余白統一 */
.purpose, .age, .news, .search-categories {
    padding: 40px 0;
}
.search-categories {
  background-image: url('http://minamisatsuma-lgjp.check-xserver.jp/assets/images/texture01d.jpg');
  background-repeat: repeat;
  background-size: auto;
  padding-bottom: 60px;
}

/* フッターのレイアウト修正 */
#site-footer {
    overflow: hidden;
}

.footer-outline {
    color: #514A40;
    background: url('http://minamisatsuma-lgjp.check-xserver.jp/assets/images/texture01a.jpg');
    padding: 0 0 40px;
}

.footer-outline .inner-wrap {
    background-image: url('http://minamisatsuma-lgjp.check-xserver.jp/assets/images/footer-map.png');
    background-repeat: no-repeat;
    background-position: left top;
    padding: 20px 0;
}

.footer-outline p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-outline .nav-city-hall {
    margin-top: 20px;
}

.footer-outline .nav-city-hall a {
    color: #514A40;
    font-size: 14px;
    text-align: center;
    padding: 8px 15px;
    border: 1px solid #DED8CC;
    text-decoration: none;
    display: inline-block;
    margin: 0 5px;
    border-radius: 3px;
}

.footer-outline .nav-city-hall a:hover {
    opacity: 0.6;
}

.footer-outline #footer-logo {
    margin-bottom: 20px;
}

.footer-outline #footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-nav {
    padding: 15px 0;
}

.footer-nav .inner-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav a {
    color: #222;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nav a:hover {
    color: #80766C;
}

.footer-nav .icon-circle-arrow-right {
    color: #00B2BB;
    font-size: 12px;
}

.footer-copyright {
    color: #fff;
    background: #00B2BB;
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
    .footer-outline .inner-wrap {
        background-position: right top;
    }

    .footer-nav .inner-wrap {
        flex-direction: column;
        gap: 10px;
    }

    .footer-nav a {
        display: block;
        margin-bottom: 5px;
    }

    .footer-outline .nav-city-hall {
        text-align: center;
    }

    .footer-outline .nav-city-hall a {
        margin: 5px;
    }
}

@media screen and (max-width: 480px) {
    .footer-outline .inner-wrap {
        background-position: right 15% top;
    }

    .footer-outline #footer-logo {
        margin-top: 120px;
    }

    .footer-outline p {
        font-size: 13px;
    }

    .footer-nav a {
        font-size: 13px;
    }

    .footer-copyright {
        font-size: 13px;
        padding: 15px 0;
    }
}
