@charset "UTF-8";
html {
  scroll-behavior: smooth;
}

body {
  font-family: Meiryo, "メイリオ", ArialMT, Hiragino Kaku Gothic Pro, "ヒラギノ角ゴ Pro W3", Osaka, Verdana, "ＭＳ Ｐゴシック";
  color: #444;
  margin: 0;
}

body.pc {
  min-width: 950px;
}

.content-wrap {
  margin: 0; /* ここを変更 */
  /* background-color: #fbfbfb; */
  padding: 0 12px 48px; /* 全体に左右20pxの余白を追加 */
}

@media screen and (min-width: 1025px) {
  .content-wrap {
    max-width: 1100px; /* PCの場合のmax-widthをセット */
    margin: 0 auto; /* 中央揃え */
  }
}
a {
  color: #065FD4;
  text-decoration: none;
}

.no-ads .google-auto-placed {
  display: none !important;
}

/* ヘッダー */
.header-nav-wrap {
  /* background-image: linear-gradient(90deg, rgb(95 15 80), rgba(161, 15, 255, 1)); */
  background: #04364A;
}

.header-nav {
  color: #fff;
  font-size: 12px;
  padding: 4px 10px 4px 12px;
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  max-width: 1100px; /* PCの場合のmax-widthをセット */
  margin: 0 auto; /* 中央揃え */
  /* font-weight: bold; */
}

.header-nav span:first-child {
  display: inline-flex;
}

.header-nav span:first-child::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url(/static/img/icon/icon_mini.png);
  background-size: contain;
  margin-right: 4px;
}

.header-nav span a {
  text-decoration: none;
  color: #fff;
}

.calendar-table-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
}

.calendar-table-wrap {
  margin-top: 1rem;
}

.full-width-container {
  width: 100%;
}

.full-width {
  width: calc(100% + 24px); /* 全体の幅 + 余白分 */
  margin-left: -12px; /* 余白分のマージンをネガティブで追加 */
}

.full-width.allCalendar {
  padding-bottom: 16px;
}

.allCalendarInner {
  padding: 0 12px;
  margin-top: 1.2rem;
}

.allCalendarInner h2, .event-list h2 {
  font-size: 0.9rem;
  padding: 14px 0 2px;
  width: fit-content;
  margin: 0 auto 12px;
  border-bottom: 1px solid #888;
}

.allCalendarInner h2:not(:first-child) {
  margin-top: 1.2rem;
}

.allCalendarInner .calendarH3 {
  display: flex;
  align-items: center;
  font-weight: normal;
  color: #555;
  margin: 0;
}

.allCalendarInner .calendarH3 a {
  text-decoration: none;
  color: #444;
}

.allCalendarInner .calendarH3 span {
  font-size: 1.8rem;
  margin-right: 8px;
  font-weight: bold;
  text-decoration: underline;
  color: #065FD4;
  text-underline-position: from-font;
}

.sp h1 {
  font-size: 1.4rem;
  padding: 8px 0 2px;
  width: fit-content;
  margin: 0 auto 4px;
}

h2 {
  margin-bottom: 10px;
  color: #444;
  padding: 10px 0;
}

h3 {
  color: #444;
}

.topH2 {
  font-size: 2.2rem;
  margin: 0;
  padding: 0;
  font-weight: bold;
}

h3.calendarH3 {
  margin: 0.8rem 0 0.4rem;
}

/* トップ - ページ上部要素 */
.top-head-wrap {
  margin: 2rem 0 2.5rem;
}

.top-head-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* トップ - ページ上部要素 - タイトル */
.top-title h1 {
  font-size: 2.2rem;
  margin: 0;
}

.sp .top-title h1 {
  font-size: 2.2rem;
  margin: 0;
}

.top-title .top-title-sub {
  font-size: 1.2rem;
}

.top-title .top-title-sub span {
  margin-left: 12px;
}

/* トップ - ページ上部要素 - ページ上部ナビゲーション */
.top-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.top-nav .year-container {
  margin-top: 2px;
}

.top-nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  margin: 0;
}

.top-nav ul.top-nav-button {
  /* background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.00) 20%), linear-gradient(130deg,rgb(95 15 80),rgb(162 42 239)); */
  border-radius: 30px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s; /* smooth transitions for hover effects */
  background: #176B87;
}

.top-nav ul.top-nav-button a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.6rem 0.8rem;
  display: inline-block;
  border-left: 1px solid #D5AEE4;
  min-width: 82px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s; /* smooth transitions for hover effects */
}

.top-nav ul.top-nav-button a:hover {
  /* background: linear-gradient(0deg,rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.00) 20%),linear-gradient(130deg,rgb(105 25 90),rgb(172 52 249)); slightly brighter gradient */
  transform: scale(1.05); /* scale the button up to 105% */
  /* box-shadow: 0px 2px 15px rgba(0,0,0,0.1); optional shadow for lifted effect */
}

.top-nav ul.top-nav-button li:first-child a {
  border-left: none;
}

.top-nav ul.top-nav-year a {
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.7rem 0rem;
  display: inline-block;
  min-width: 78px;
  text-align: center;
}

.top-nav ul.top-nav-year a.current-year span {
  background: rgba(218, 255, 251, 0.5215686275) !important;
  padding: 7px 10px 5px;
  border-radius: 80px;
}

.top-nav ul.top-nav-year a:hover {
  text-decoration: underline;
}

/* ---- Subscribe buttons (ICS) ---- */
.subscribe-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px auto 8px;
}

.subscribe-buttons span {
  font-size: 0.9rem;
  color: #444;
  margin-right: 4px;
}

.subscribe-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 24px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.subscribe-buttons .btn:hover {
  transform: translateY(-1px);
}

.subscribe-buttons .btn:active {
  transform: translateY(0);
}

.subscribe-buttons .btn-google {
  background: #176B87;
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.subscribe-buttons .btn-google:hover {
  background: #12556b;
}

.subscribe-buttons .btn-apple {
  background: #fff;
  color: #176B87;
  border: 1px solid #176B87;
}

.subscribe-buttons .btn-apple:hover {
  background: rgba(218, 255, 251, 0.5215686275);
}

/* ---- Subscribe section wrapper ---- */
.subscribe-section {
  margin: 8px auto 10px;
  padding: 8px 10px;
  border: 1px solid #e3f1f6;
  background: #f8fbfc;
  border-radius: 12px;
}

.subscribe-section .subscribe-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  flex-wrap: nowrap;
  overflow: hidden; /* keep single line; inner scroller handles overflow */
}

.subscribe-section .subscribe-row .icon {
  font-size: 1.05rem;
}

.subscribe-section .subscribe-row .title {
  color: #176B87;
  font-weight: bold;
  font-size: 0.95rem;
  white-space: nowrap;
  margin-right: 4px;
}

.subscribe-section .feeds-scroller {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 2px 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0; /* allow flex item to shrink instead of pushing to next line */
  max-width: 100%;
}

.subscribe-section .feeds-scroller::-webkit-scrollbar {
  height: 6px;
}

.subscribe-section .feeds-scroller::-webkit-scrollbar-thumb {
  background: #e0eef3;
  border-radius: 3px;
}

.subscribe-section .feed {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e6eef2;
  background: #fff;
  border-radius: 10px;
  padding: 4px 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.subscribe-section .feed-title {
  font-size: 0.85rem;
  color: #333;
  font-weight: bold;
  min-width: auto;
  white-space: nowrap;
}

.subscribe-section .feed-actions {
  display: flex;
  gap: 12px;
}

.subscribe-section .feed-actions .btn {
  padding: 6px 0 6px 0;
  border-radius: 18px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Head chip (title inside scroller) */
.subscribe-section .head-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border: none;
  background: transparent;
  color: #176B87;
  flex: 0 0 auto;
}

.subscribe-section .head-chip-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.subscribe-section .head-chip-link:hover {
  opacity: 0.8;
}

.subscribe-section .head-chip .title {
  font-weight: bold;
  font-size: 0.95rem;
  white-space: nowrap;
}

.subscribe-section .head-chip .title .ttl-1 {
  margin-right: 1px;
}

.subscribe-section .head-chip .title .ttl-2 {
  margin-left: 1px;
}

@media screen and (max-width: 600px) {
  .subscribe-section {
    padding: 6px 8px;
  }
  .subscribe-section .head-chip .title {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
  }
  .subscribe-section .head-chip .title .particle {
    display: none;
  }
  .subscribe-section .feed-actions .btn {
    padding: 5px 9px;
  }
  .subscribe-section .feed {
    gap: 6px;
  }
}
.topDate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  margin: 10px 0;
}

.topDate .year-container > p > a.button-link {
  text-decoration: none;
  padding: 2px 0;
  display: inline-block;
}

.topDate .year-container h2, .topDate .year-container p {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.topDate .button-list {
  list-style-type: none;
  padding: 0;
  display: flex;
  gap: 8px; /* ボタン間のスペース */
  margin: 0;
}

.topDate .button-list li {
  display: inline-block;
}

.topDate .button-list .button-link {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 4px;
  background-color: #fff;
  color: #065FD4;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: 1px solid #065FD4;
}

.topDate .button-list .button-link:hover {
  background-color: #0056b3;
}

.top-link {
  text-align: center;
  margin: 8px 0 -4px;
}

/* -------- */
/* カレンダーテーブル */
/* -------- */
.each-month:not(:first-child) {
  margin-top: 1.2rem;
}

.calendar-table {
  margin: 0 !important;
}

.holydays {
  margin: 0.5rem 0 0;
}

.holydays span {
  font-weight: bold;
}

/* 曜日と六曜のスタイル変更 */
.day-rocuyo-container {
  display: flex;
  margin-top: -7px;
  font-size: 1.2rem;
  justify-content: space-between;
}

.day-rocuyo-container p {
  margin: 0;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  border-left: none; /* ここを追加 */
  border-right: none; /* ここを追加 */
}

.calendar-table th,
.calendar-table td {
  padding: 10px;
  text-align: center;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-left: 1px solid #f5f5f5;
  border-right: 1px solid #f5f5f5;
}

.calendar-table th {
  background-color: #f4f4f4;
  font-size: 0.7rem;
  padding: 2px !important;
}

/* 左端と右端の罫線を非表示にするスタイルを追加 */
td.leftmost {
  border-left: none;
}

td.rightmost {
  border-right: none;
}

/* 説明・情報テーブル用スタイル */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.info-table th, .info-table td {
  padding: 10px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-weight: normal;
  font-size: 0.9rem;
}
.info-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}
.info-table td:first-child {
  font-weight: bold;
}

/* Styles for today's date */
.today {
  font-weight: bold;
  background-color: rgba(218, 255, 251, 0.5215686275) !important;
}

.today.prev-next-td {
  background-color: #FFF !important;
}

/* Font size adjustments for date and rokuyo */
.calendar-table td {
  font-size: 14px;
}

.rokuyo {
  font-size: 10px;
  color: #808080;
}

/* Color adjustments for rokuyo */
.taian {
  color: red;
}

.not-taian {
  color: gray;
}

/* セルの幅を等しくするためのスタイル */
.calendar-table td {
  width: 14.28%; /* 100% ÷ 7日 = 14.28% */
}

/* 先月と次月の日付の位置調整 */
td > div.prev-next-date {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  margin-bottom: 0.7rem;
  color: #aaa;
  font-weight: normal;
}

td.today > div.prev-next-date {
  background: inherit !important;
}

.calendar-table td {
  font-size: 1.15rem;
  padding: 0.3rem 0;
  font-weight: bold;
  color: #444;
  background-color: #fff;
}

.calendar-table td .day-option {
  margin-top: -6px;
  font-weight: normal;
  line-height: 1;
}

.calendar-table td.saturday {
  color: #469DE2;
  background-color: #eff8ff;
}

.calendar-table th.saturday {
  color: #469DE2;
}

.calendar-table td.sunday {
  color: #CC2B24;
  background-color: #fff6f5;
}

.calendar-table th.sunday {
  color: #CC2B24;
}

.calendar-table td.holiday {
  color: #CC2B24;
}

/* テーブルに角丸をつける */
.radius-table {
  border-radius: 10px;
  border-spacing: 0;
  border: none;
  /* border-left: 1px solid #999;
  border-top: 1px solid #999; */
}

.radius-table tr > * {
  padding: 5px 10px;
  border: none;
  /* border-right: 1px solid #999;
  border-bottom: 1px solid #999; */
}

.radius-table tr:first-child > *:first-child {
  border-radius: 10px 0 0 0;
}

.radius-table tr:first-child > *:last-child {
  border-radius: 0 10px 0 0;
}

.radius-table tr:last-child > *:first-child {
  border-radius: 0 0 0 10px;
}

.radius-table tr:last-child > *:last-child {
  border-radius: 0 0 10px 0;
}

/* ツールチップのスタイル */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-size: 10px;
  display: none;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

/* 左端のセルのツールチップを右に表示 */
.leftmost .tooltip .tooltiptext {
  left: 20px;
  transform: none;
}

.tooltip:hover .tooltiptext, .tooltip:active .tooltiptext {
  visibility: visible;
  opacity: 1;
}

#holidays-list, #events-list {
  margin-top: 16px;
}

.holidays-list, .events-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.holidays-list li, .events-list li {
  display: block;
  border-bottom: 1px solid #ddd;
}

.holidays-list li:first-child, .events-list li:first-child {
  border-top: 1px solid #ddd;
}

.holidays-list dl, .events-list dl {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

.holidays-list dt, .events-list dt {
  flex-basis: 32%;
  margin: 0;
  background: #f0f0f0;
  padding: 8px 0;
  text-align: center;
  min-width: 138px;
}

.holidays-list dd, .events-list dd {
  flex-grow: 1;
  margin: 0;
  padding-left: 24px;
}

.event-list {
  padding: 16px 0;
}

.days-to-events {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.days-to-events li {
  flex: auto;
  margin: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5;
  transition: background-color 0.3s;
}

.days-to-events li:hover {
  background-color: #e9e9e9; /* ホバー時の背景色 */
}

.days-to-events dl {
  margin: 0;
}

.days-to-events dt {
  margin: 0;
  padding: 2px;
  background-color: #d5d5d5;
  border-radius: 4px 4px 0 0;
  font-weight: normal;
  text-align: center;
}

.days-to-events dd {
  margin: 0;
  padding: 10px;
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  background: #fff;
  border-radius: 0 0 4px 4px;
}

.days-to-events dd span {
  font-size: 0.6rem;
  font-weight: normal;
  margin-top: -2px;
  display: block;
}

/* 曜日の色のスタイル */
.weekday-sun {
  color: #CC2B24;
}

.weekday-sat {
  color: #469DE2;
}

/* 六曜の色のスタイル */
.rokuyo-taian {
  color: #CC2B24;
}

.rokuyo-shakkou {
  color: gray;
}

/* .rokuyo-senshou { color: green; } */
.year-links-container {
  margin-top: 20px;
  border-radius: 5px;
}

.year-links-section {
  margin-bottom: 10px;
}

.year-links-section dl {
  display: flex;
}

.year-links-section dl dt {
  width: 10%;
  text-align: center;
  margin-top: 2px;
}

.year-links-section dl dd {
  margin: 0;
  width: 90%;
}

.year-links-era {
  font-weight: bold;
}

.year-links-list ul {
  list-style: none;
  padding: 0;
  margin: -13px 0 12px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.year-links-list a {
  text-decoration: none;
  color: #065FD4;
  font-size: 0.9rem;
  padding: 13px 12px;
  display: inline-block;
}

.year-links-list a:hover {
  text-decoration: underline;
}

.tag-links-container {
  margin-top: 20px;
}

.tag-links-container ul {
  list-style: none;
  padding: 0;
  margin: -8px 0 12px 0;
  display: flex;
  flex-wrap: wrap;
}

.tag-links-container a {
  text-decoration: none;
  color: #065FD4;
  font-size: 0.9rem;
  padding: 8px 12px;
  display: inline-block;
}

.tag-links-container a:hover {
  text-decoration: underline;
}

/* 月間カレンダー用スタイル */
.month h1 {
  margin: 0;
}

.month .allCalendarInner {
  padding: 6px 12px 12px;
  margin: 0;
}

.month .full-width.allCalendar {
  padding-bottom: 0;
}

.month .month-top {
  display: flex;
  flex-direction: column;
}

.month .month-top p, .month-top h2 {
  margin: 0;
}

.month .month-top h2 {
  font-size: 1.75rem;
  padding: 0;
  margin-top: -4px;
  border-bottom: none;
}

.month .month-top p {
  font-size: 1.2rem;
}

.month .topDate {
  padding: 8px 0;
}

.month .topDate .button-list {
  gap: 10px;
  margin: 0;
  padding: 0 0 10px 0;
}

.month .topDate .button-list .button-link {
  padding: 8px 16px;
}

.month .topDate .year-container {
  margin-top: 0px;
}

.month .to-current-month p {
  margin-bottom: 2px;
}

.current-month .to-current-month {
  display: none;
}

.month .to-current-year {
  font-size: 1rem;
  text-align: center;
  display: block;
  padding: 10px 0;
}

.month .current-month .calendar-table td {
  padding: 0.3rem 2px 0.1rem;
  vertical-align: baseline;
  height: 50px;
  font-size: 1.2rem;
}

.pc .month .current-month .calendar-table td {
  height: 64px;
}

.month .current-month .tooltip {
  display: block;
  line-height: 1;
  margin-top: 2px;
  font-weight: normal;
  padding-bottom: 4px;
}

.month .current-month .rokuyo {
  font-size: 12px;
}

.month .allCalendarInner .calendarH3 a {
  /* text-decoration: underline; */
  color: #065FD4;
}

.month .calendar-table-sub h2 {
  margin: 0 auto 0.8rem;
  padding: 0;
  font-size: 1rem;
  text-align: center;
}

.month .calendar-table-sub #holidays-list {
  margin-top: 0;
}

.month .calendar-table-sub ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.month .calendar-table-sub ul.current-month-event-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  max-height: 372px;
  overflow-y: scroll;
}

.sp .month .calendar-table-sub h2 {
  margin: 0.8rem auto;
}

.sp .month .calendar-table-sub ul.current-month-event-list {
  margin: 0.8rem auto;
  max-height: inherit;
  overflow-y: inherit;
}

.month .calendar-table-sub ul.current-month-event-list li {
  display: block;
  padding: 16px 10px;
  border-bottom: 1px solid #e5e5e5;
}

.month .calendar-table-sub ul.current-month-event-list li:last-child {
  border-bottom: none;
}

.month .calendar-table-sub ul.current-month-event-list li dl {
  margin: 0;
  padding: 0;
}

.month .calendar-table-sub ul.current-month-event-list li dt {
  font-weight: bold;
  margin-bottom: 5px;
}

.month .calendar-table-sub ul.current-month-event-list li dd {
  margin: 0;
  /* padding-left: 20px; */
}

/* 月間カレンダー内の年間カレンダー */
.month .following-months h2 {
  font-size: 1.6rem;
  padding: 20px 0 2px;
  border-bottom: none;
  margin: 12px 0 4px;
}

.mini-table .calendar-table td {
  font-size: 0.8rem;
}

.mini-table td > div.prev-next-date, .mini-table .calendar-table td .day-option {
  display: none;
}

.month td.leftmost, .month .sunday {
  border-left: 1px solid #ddd;
}

.month td.rightmost, .month .saturday {
  border-right: 1px solid #ddd;
}

p.month-description, .moon-calendar-wrap p {
  /* background-color: #fff;
  background-image: linear-gradient(90deg, transparent 0%, transparent 50%, #fff 50%, #fff 100%),
                    linear-gradient(180deg, #ccc 1px, transparent 1px);
  background-size: 8px 100%,
                   100% 2.33rem;
  line-height: 2.35rem;
  padding-bottom: 5px; */
  font-size: 0.9rem;
  line-height: 1.8;
}

@media screen and (min-width: 601px) {
  .month .topDate {
    margin-top: 0px;
    align-items: center;
  }
  .month .allCalendarInner .calendarH3 {
    font-size: 1rem;
  }
}
/* 月齢カレンダー用スタイル */
.moon-calendar h2 {
  font-size: 1.2rem;
  margin: 1.4rem 0 0.6rem;
  border: 0;
}

.moon-calendar td {
  font-size: inherit;
  position: relative;
  padding-bottom: 1.2rem;
  padding: 0.3rem 0 1.7rem !important;
}

.moon-calendar .moon-img {
  width: 70%;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .moon-calendar .moon-img {
    width: 82%;
  }
}

.moon-calendar .moon-img img {
  width: 100%;
  height: auto;
}

.moon-age, .moon-phase-time {
  font-size: 0.6rem;
  font-weight: normal;
  line-height: 1.2;
}

.moon-calendar .day-and-option {
  display: flex;
  align-items: baseline;
}

.moon-calendar .day {
  font-size: 1rem;
  padding: 0px 2px 0 6px;
}

.moon-calendar .day-option {
  display: none;
}

.moon-calendar tr {
  vertical-align: baseline;
}

.moon-calendar .moon-phase {
  font-size: 0.7rem;
  font-weight: bold;
}

.moon-calendar .moon-age {
  position: absolute;
  bottom: 0;
  display: block;
  border-top: 1px solid #eee;
  padding: 4px 0;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  width: 100%;
}

#moon-phases-list h2 {
  margin-top: 1rem;
}

.moon-description {
  margin-top: 2rem;
  font-size: 0.9rem;
}

@media screen and (min-width: 601px) {
  .moon-calendar-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    margin-top: 1.4rem;
  }
  .moon-calendar-wrap .moon-calendar {
    width: 48%;
  }
  .moon-calendar-wrap .full-width-container {
    width: 100%;
  }
  .moon-calendar-wrap .full-width {
    width: inherit;
    margin: 0 auto;
  }
  .moon-calendar-wrap #moon-phases-list {
    flex-grow: 1;
  }
  .moon-calendar h2 {
    margin-top: 1rem !important;
    border-bottom: 1px solid #888;
  }
  .month .moon-calendar-wrap td.rightmost, .month .moon-calendar-wrap .saturday {
    border-right: 1px solid #ddd;
  }
  .month .moon-calendar-wrap td.leftmost, .month .moon-calendar-wrap .sunday {
    border-left: 1px solid #ddd;
  }
}
/* 大安カレンダー用スタイル */
.taian-calendar .lucky-days {
  margin-top: 5px;
  min-height: 50px;
}

.lucky-days ul {
  list-style-type: none; /* リストマーカーを削除 */
  padding: 0; /* パディングをリセット */
  margin: 0; /* マージンをリセット */
}

.lucky-days li {
  background-color: #FFD700; /* 背景色を設定（黄色） */
  border-radius: 4px; /* 角を少し丸くする */
  margin-bottom: 3px; /* 各アイテムの間隔を設定 */
  padding: 1px 2px; /* パディングを少し追加 */
  font-size: 11px; /* フォントサイズを調整 */
  text-align: center; /* テキストをセンタリング */
  color: #fff !important;
  overflow: hidden;
  /* height: 1.1rem; */
}

/* 各吉日の色指定 */
.lucky-days li.ichiryumanbaiday {
  background-color: #ec932d; /* ゴールド */
}

.lucky-days li.tenshobi {
  background-color: #e81817; /* 軽い緑 */
  /* background-color: #b2cd2b;*/
}

.lucky-days li.shinkichijitsu {
  background-color: #28baac; /* ピンク */
}

.lucky-days li.daimyojitsu {
  background-color: #b35bcf; /* 軽い青 */
}

.lucky-days li.tennonjitsu {
  background-color: #b2cd2b; /* 軽いコーラル */
  /* background-color: #e81817; */
}

.lucky-days li.bokojitsu {
  background-color: #5cb82e; /* 軽いピンク */
}

.lucky-days li.gettokujitsu {
  background-color: #ed6b8c; /* 軽いサーモン */
}

.lucky-days li.torinohi {
  background-color: #0099cb; /* 軽いグレー */
}

.lucky-days li.minohi {
  background-color: #f0c728; /* トマト */
}

.lucky-days li.fujojubi {
  background-color: #888;
}

.lucky-days li.tsuchinotominohi {
  background-color: #2675c4;
  font-size: 0.6rem;
  line-height: 1.2rem;
}

/*  */
/* 大安ページ */
/*  */
.pc .monthly-taian .current-month .calendar-table td {
  height: inherit;
  font-size: inherit;
}

.monthly-taian .taian-calendar .day-and-option {
  flex-flow: row;
  display: flex;
  align-items: center;
}

.taian-calendar td {
  padding-bottom: 5px !important;
}

.taian-calendar .calendar-table td.sunday,
.taian-calendar .calendar-table td.saturday {
  background-color: inherit;
}

.taian-calendar .calendar-table td.taian {
  background-color: #FFF4F9;
}

.taian-calendar td.taian .rokuyo {
  font-weight: bold;
  color: #FF258D !important;
}

.taian-calendar td.tomobiki .rokuyo {
  color: #409D26 !important;
}

.taian-calendar td.tomobiki {
  background-color: #F5FAF4;
}

.taian-calendar .day-and-option {
  flex-flow: column;
}

.taian-calendar .day-option {
  display: block !important;
  margin: 0 !important;
  padding: 0 0 0 6px;
}

.taian-calendar .rokuyo {
  font-size: 0.8rem;
}

/* -------------------- */
/* ダウンロードモジュール */
/* -------------------- */
.download-h2 {
  font-size: 0.9rem;
  padding: 14px 0 2px;
  width: fit-content;
  margin: 0 auto 12px;
  border-bottom: 1px solid #888;
}

.download-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  /* gap: 20px; */
  background: #f5f5f5;
  border-radius: 8px;
}

.download-eye {
  padding: 12px;
}
@media screen and (min-width: 601px) {
  .download-eye {
    width: 440px;
  }
}

.download-eye img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.download-eye.portrait {
  min-height: 420px;
}
.download-eye.portrait img {
  aspect-ratio: 210/297;
}

.download-eye.landscape img {
  aspect-ratio: 297/210;
}

.download-description {
  flex: 1;
  padding: 12px;
  text-align: center;
}

.download-description p {
  margin-bottom: 10px;
  margin-top: 0;
  font-size: 1rem;
}

.download-button {
  display: inline-block;
  background-color: #176B87;
  color: white;
  padding: 10px 32px;
  border: none;
  text-decoration: none;
  border-radius: 4px;
  margin-right: 10px;
  transition: background-color 0.3s;
}

.download-button:hover {
  background-color: #135a70;
}

@media (max-width: 768px) {
  .download-h2 {
    font-size: 1rem;
    padding: 20px 0 2px;
  }
  .download-wrap {
    flex-direction: column;
  }
  .download-description {
    text-align: center;
  }
  .download-button {
    display: block;
    margin: 0 auto 10px;
  }
}
/* Responsive design adjustments */
@media screen and (max-width: 600px) {
  body {
    font-size: 0.8em;
  }
  h2 {
    font-size: 1.2em;
  }
  .calendar-table th,
  .calendar-table td {
    padding: 5px;
  }
}
@media screen and (min-width: 601px) and (max-width: 900px) {
  body {
    font-size: 0.9em;
  }
  h2 {
    font-size: 1.4em;
  }
}
/* タブレットサイズのスタイル */
@media screen and (min-width: 601px) {
  body {
    font-size: 0.8rem;
  }
  .calendar-table td {
    font-size: 0.8rem;
  }
  .top-wrap {
    display: flex;
    justify-content: normal;
    gap: 70px;
  }
  .not-current-year .top-wrap {
    align-items: center;
    margin: 0px 0 39px;
  }
  .topDate {
    justify-content: start;
    gap: 40px;
    margin-top: 20px;
    align-items: flex-start;
  }
  .this-month h3.calendarH3 {
    margin: 0;
    font-size: 10px;
    font-weight: normal;
  }
  .this-month .full-width {
    width: inherit;
    margin-left: 0;
  }
  .this-month .calendar-table td {
    font-size: 11px;
    padding: 0 10px;
    line-height: 1.5;
  }
  .this-month .calendar-table th {
    font-weight: normal;
    font-size: 10px;
  }
  .this-month .prev-next-date, .this-month .day-option, .this-month .holydays, .tooltip {
    display: none;
  }
  .allCalendarInner h2, .event-list h2 {
    font-size: 1rem;
    padding: 20px 0 2px;
  }
  .allCalendarInner .calendar-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative; /* これを追加 */
  }
  .allCalendarInner .calendar-list::before,
  .allCalendarInner .calendar-list::after {
    content: "";
    position: absolute;
    top: 0.8rem;
    bottom: 0;
    width: 0.5px;
    background-color: #ccc;
    pointer-events: none;
  }
  .allCalendarInner .calendar-list::before {
    left: calc(33.33% - 3px); /* 最初のカラムの右端に配置 */
  }
  .allCalendarInner .calendar-list::after {
    left: calc(66.66% + 3px); /* 2番目のカラムの右端に配置 */
  }
  .allCalendarInner .calendarH3 {
    font-size: 0.7rem;
  }
  .allCalendarInner .calendarH3 span {
    font-size: 1.2rem;
  }
  .each-month {
    width: calc(33.33% - 10px); /* 3列に分割し、少しの間隔を確保 */
    box-sizing: border-box;
    margin-top: 0.8rem !important;
    padding: 0.5rem;
  }
  .each-month .calendar-table td {
    font-size: 1.1rem;
  }
  .each-month .calendar-table td.leftmost {
    border-left: 1px solid #f5f5f5;
  }
  .each-month .calendar-table td.rightmost {
    border-right: 1px solid #f5f5f5;
  }
  .days-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    position: relative;
  }
  .days-list > div {
    width: 47%;
    box-sizing: border-box;
    margin-top: 0.8rem !important;
  }
  .holidays-list, .events-list {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
  }
}
/* タブレットサイズのみのスタイル */
@media screen and (min-width: 601px) and (max-width: 801px) {
  .topDate, .top-wrap {
    gap: 30px;
  }
  .this-month .calendar-table td {
    padding: 0 4px;
  }
  .each-month .calendar-table td {
    font-size: 12px;
  }
}
/* PCサイズのスタイル */
@media screen and (min-width: 801px) {
  .month-top, .year-container {
    min-width: 170px;
  }
  .calendar-table-wrap {
    display: flex;
    justify-content: space-around;
  }
  .calendar-table-wrap .calendar-table-thismonth {
    flex-grow: 8;
    max-width: 642px;
    padding: 0 20px;
  }
  .month-taian .calendar-table-wrap .calendar-table-thismonth {
    flex-grow: 6;
  }
  .calendar-table-wrap .calendar-table-sub {
    max-width: 320px;
  }
  .month .allCalendarInner .calendarH3 {
    font-size: 0.8rem;
  }
  /* 単独カレンダー */
  .month .allCalendarInner .monthly-option h2 {
    font-size: 0.8rem;
    padding: 0;
    margin: 0 0 5px 0;
    border: none;
  }
  .calendar-table-wrap .monthly-option .other-month ul {
    margin-top: 1rem;
  }
}
/* タブレットサイズのみのスタイル */
@media screen and (max-width: 368px) {
  body {
    font-size: 0.7em;
  }
  .topH2 {
    font-size: 1.8rem;
  }
  .topDate, .top-wrap {
    gap: 0px;
  }
}
/* トグルボタンのスタイル */
.toggle-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0px 0 20px;
}

.toggle-button {
  display: flex;
  align-items: center;
}

.toggle-button .toggle-description {
  padding-left: 4px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  /* background-color: #2196F3; */
  /* background-image: linear-gradient(90deg,rgb(95 15 80),rgba(161,15,255,1)); */
  background: #64CCC5;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* トグルボタンの円形のスタイル */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

footer {
  background: #f5f5f5;
  padding-top: 2rem;
}

footer .footer h2 img {
  width: 230px;
  height: auto;
  display: block;
}

.site-title, h1.site-title {
  margin: 24px auto 22px;
  width: fit-content;
  padding: 0;
}
.site-title img, h1.site-title img {
  width: 280px;
  height: auto;
  display: block;
}
.site-title .visually-hidden, h1.site-title .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 768px) {
  .site-title {
    margin: 40px auto 32px;
  }
  .site-title img {
    width: 320px;
    height: auto;
    display: block;
  }
}
/* ------------------------------ */
/* ナビゲーション
/* ------------------------------ */
.year-navigation {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-left: 10px; /* 左側に余白を追加 */
  padding-right: 10px; /* 右側に余白を追加 */
  margin-left: -10px; /* 左端の見切れを防ぐ */
  margin-right: -10px; /* 右端の見切れを防ぐ */
}

.year-navigation::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera用 */
}

.year-navigation ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: flex-start; /* ナビゲーション項目を左揃えに */
  gap: 3px; /* ナビゲーション項目間の余白 */
}

.year-navigation li {
  background-color: #F3F3F3; /* ベースの背景色 */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  flex: 0 0 auto; /* 各項目のサイズを固定し、縮小させない */
}

.year-navigation li.active {
  background-color: #176B87; /* アクティブな背景色 */
  position: relative; /* 三角形を配置するための基準点として設定 */
}

.year-navigation li.active:after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  border-width: 8px;
  border-style: solid;
  border-color: #176B87 transparent transparent transparent;
  transform: translateX(-50%);
}

.year-navigation a {
  text-decoration: none;
  color: #444; /* 通常のリンクの色 */
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 2px; /* 「年間カレンダー」と日付の間の余白 */
  padding: 5px 28px;
}

.year-navigation li.active a {
  color: #fff; /* アクティブなリンクの色 */
}

.year-navigation span {
  display: block;
  font-size: 11px;
  font-weight: normal;
  margin-top: -1px;
}

.year-navigation a.active span {
  color: #fff; /* アクティブなスパンの色 */
}

/* ------------------------------ */
/* 記事リスト
/* ------------------------------ */
.article-list h2 {
  font-size: 18px;
  text-align: center;
  margin: 24px 0 0;
}

.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 12px 0;
}
.articles .article-card {
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
}
.articles .article-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.articles .article-card .article-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.articles .article-card .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.articles .article-card .article-title {
  padding: 4px 4px 2px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: normal;
  margin: 6px 0 4px;
}
.articles .article-card .article-modified {
  font-size: 11px;
  text-align: center;
  margin: 4px auto 8px;
  color: #808080;
}

@media (max-width: 600px) {
  .articles {
    margin: 8px 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 4px;
  }
  .articles .article-card .article-image {
    height: auto;
  }
  .articles .article-card .article-image img {
    vertical-align: top;
  }
  .articles .article-card .article-title {
    margin: 0;
    font-size: 0.82rem;
    -webkit-line-clamp: 3;
    line-height: 1.4;
    margin: 8px 0 6px;
  }
}
/* ------------------------------ */
/* 記事をもっと見る
/* ---------------------------- */
#load-more-articles {
  margin: 24px auto;
  display: block;
  font-weight: bold;
  padding: 12px 80px;
  background-color: #186dc8;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#load-more-articles:hover {
  background-color: #0056b3;
}
#load-more-articles:focus {
  outline: none;
}
#load-more-articles.loading {
  background-color: #cccccc;
  cursor: default;
}
#load-more-articles.loading:hover {
  background-color: #cccccc;
}
@media (min-width: 600px) {
  #load-more-articles {
    width: 80%;
  }
}

/* ------------------------------ */
/* ページネーション
/* ------------------------------ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.pagination a, .pagination strong {
  display: block;
  padding: 12px 16px;
  margin: 0 4px;
  border-radius: 4px;
  text-decoration: none;
  color: #007bff;
  border: 1px solid #007bff;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.pagination a:hover, .pagination strong:hover {
  background-color: #007bff;
  color: white;
}
.pagination strong {
  background-color: #007bff;
  color: white;
  border: none;
}
.pagination a[aria-disabled=true] {
  color: #ccc;
  border-color: #ccc;
  pointer-events: none;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .pagination .first, .pagination .last {
    display: none;
  }
  .pagination a, .pagination strong {
    padding: 8px 12px;
    margin: 0 4px;
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .pagination .first, .pagination .last {
    display: none;
  }
  .pagination a, .pagination strong {
    padding: 8px 12px;
    margin: 0 2px;
    font-size: 16px;
  }
  .pagination .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ------------------------------ */
/* ページ下部カテゴリ一覧
/* ------------------------------ */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 30px 0;
}
.category-nav li {
  margin: 4px;
}
.category-nav li.head-nav {
  align-content: center;
  font-weight: bold;
}
.category-nav li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-align: center;
}
.category-nav li a:hover {
  background-color: #f0f0f0;
  border-color: #bbb;
}

@media (max-width: 768px) {
  .category-nav {
    justify-content: flex-start;
  }
  .category-nav li a {
    text-align: center;
    padding: 8px 10px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .category-nav {
    justify-content: flex-start;
  }
}
@media (min-width: 1025px) {
  .category-nav {
    justify-content: flex-start;
  }
}
/* ------------------------------ */
/* シェア機能
/* ------------------------------ */
.share-zone {
  margin: 20px 0;
}

.share-list {
  display: flex;
  list-style: none;
  justify-content: space-around;
  padding: 0;
  gap: 10px;
}
.share-list li {
  flex: 1;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  background: #fff;
  flex-grow: 1;
  transition: transform 0.2s ease-in-out;
}
.share-list li:hover {
  transform: scale(1.05);
}
.share-list li:first-child {
  margin-left: 0;
}
.share-list li:last-child {
  margin-right: 0;
}
.share-list li a {
  padding: 8px 6px 13px;
  text-decoration: none;
  color: #555;
  display: block;
}
.share-list li a img {
  width: 24px;
  height: auto;
  margin-bottom: 4px;
  filter: brightness(0) saturate(100%) invert(31%) sepia(10%) saturate(15%) hue-rotate(131deg) brightness(96%) contrast(87%);
}
.share-list li a img.clipboard-icon {
  width: 18px;
}
.share-list li a span {
  display: block;
  font-size: 0.7rem;
  line-height: 1.2;
}

/* ------------------------------ */
/* 共用パーツ
/* ------------------------------ */
.section-wrap {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 28px;
}

.ad-wrap {
  margin: 24px auto 0;
}

/* ------------------------------ */
/* 共通ボタンスタイル */
/* ------------------------------ */
.gradation-blue-button {
  text-align: center;
}
.gradation-blue-button p {
  display: inline-block;
  transition: transform 0.3s ease;
}
.gradation-blue-button p a {
  display: block;
  text-decoration: none;
  padding: 6px 42px;
  border-radius: 100px;
  border: none;
  background-image: linear-gradient(to right, #06b6d4, #3b82f6);
  color: white;
  font-weight: bold;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}
.gradation-blue-button p a:after {
  content: "";
  position: absolute;
  left: -150%;
  top: 0;
  width: 240%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.1s;
  animation: shine 7s infinite;
}
.gradation-blue-button p:hover {
  transform: scale(1.05);
}

@keyframes shine {
  0%, 100% {
    opacity: 0;
    left: -150%;
  }
  50% {
    opacity: 1;
    left: 100%;
  }
}
@media screen and (max-width: 600px) {
  .gradation-blue-button p {
    display: inherit;
    margin: 8px;
  }
  .gradation-blue-button p a {
    padding: 6px 10px;
    background-image: linear-gradient(to right, #06b6d4, #3b82f6);
    color: white;
    border: none;
  }
}
/* ------------------------------ */
/* ダウンロードなどのサブナビゲーション */
/* ------------------------------ */
.shop-link {
  text-align: center;
  margin: 30px 0;
}
.shop-link p {
  display: inline-block;
  transition: transform 0.3s ease;
}
.shop-link p a {
  display: block;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  background-image: linear-gradient(to right, #06b6d4, #3b82f6);
  color: white;
  font-weight: bold;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.shop-link p a:after {
  content: "";
  position: absolute;
  left: -150%;
  top: 0;
  width: 240%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.1s;
  animation: shine 7s infinite;
}
.shop-link p:hover {
  transform: scale(1.05);
}

@keyframes shine {
  0%, 100% {
    opacity: 0;
    left: -150%;
  }
  50% {
    opacity: 1;
    left: 100%;
  }
}
@media screen and (max-width: 600px) {
  .shop-link p {
    display: inherit;
  }
  .shop-link p a {
    padding: 10px 10px;
    background-image: linear-gradient(to right, #06b6d4, #3b82f6);
    color: white;
    border: none;
  }
}
footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ------------------------------ */
/* マクロ */
/* ------------------------------ */
.hidden {
  display: none;
}

.genre-navigation h3 {
  margin-bottom: 12px;
}
.genre-navigation.ranking-list {
  max-width: 384px;
}

.genre-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}
.genre-links .genre-link-item a {
  display: inline-block; /* リンクをブロック表示 */
  padding: 8px 16px; /* 内側の余白を設定 */
  text-decoration: none; /* 下線を削除 */
  border: 1px solid #176b87; /* ボーダーを追加 */
  border-radius: 20px; /* 丸いボーダーにする */
  color: #176b87; /* テキストの色を設定 */
  transition: background-color 0.3s, color 0.3s; /* ホバー時のトランジションを追加 */
}
.genre-links .genre-link-item a:hover {
  background-color: #176b87; /* ホバー時の背景色を設定 */
  color: #fff; /* ホバー時のテキスト色を白にする */
}

/* ------------------------------ */
/* 免責文言など */
/* ------------------------------ */
.footer-menseki {
  margin: 32px 0 -20px;
  color: #555;
}

.footer-links {
  display: flex;
  justify-content: center; /* 中央揃え */
  align-items: center;
  gap: 2rem;
  background: #04364a;
  padding: 1.6rem 0;
}
.footer-links a {
  text-decoration: none;
  color: #fff; /* リンクの色 */
  font-size: 0.9rem; /* フォントサイズ */
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #aaa; /* ホバー時の色 */
}

/* ------------------------------ */
/* デイリー占いランキングモジュール */
/* ------------------------------ */
.horoscope-ranking {
  text-align: center;
  margin: -6px auto 16px;
  max-width: 900px;
}
.horoscope-ranking .horoscope-ranking-head {
  display: flex;
  gap: 4px;
  align-items: center;
}
.horoscope-ranking .horoscope-ranking-head h2 {
  margin: 0 !important;
  font-size: 16px !important;
  color: #444 !important;
  padding: 0 8px !important;
}
.horoscope-ranking .horoscope-ranking-head .more-link {
  display: inline-block;
  font-size: 0.9em;
}
.horoscope-ranking .ranking-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.horoscope-ranking .ranking-item-link {
  text-decoration: none;
  display: block;
  width: 100%;
}
.horoscope-ranking .ranking-item-link:hover {
  text-decoration: none;
}
.horoscope-ranking .ranking-item-link:hover .ranking-item {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}
.horoscope-ranking .ranking-item {
  text-align: center;
}
.horoscope-ranking .ranking-item .rank-badge {
  background-color: #f8faff;
  color: #5b7bb0;
  font-weight: bold;
  padding: 3px 0 2px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.horoscope-ranking .ranking-item .rank-image img {
  border-radius: 50%;
  border: 4px solid #f8faff;
}
.horoscope-ranking .ranking-item .rank-sign {
  font-weight: bold;
  color: #5b7bb0;
}
.horoscope-ranking .ranking-item .rank-comment {
  font-size: 0.85rem;
  color: #555;
}

.connected-ranking {
  /* 親要素には特に背景色なし */
  display: flex;
  margin: 12px auto;
  padding: 0;
  text-align: center;
  max-width: 950px;
  align-items: center;
  font-size: 0.9rem;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  color: #444;
}
@media (min-width: 768px) {
  .connected-ranking {
    justify-content: center;
  }
}
.connected-ranking .connected-ranking-title {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  min-width: 105px;
  flex: 1;
}
.connected-ranking .connected-ranking-title .emoji {
  padding-right: 2px;
}
.connected-ranking .connected-ranking-container {
  /* 横スクロールを前提としたスタイル */
  display: flex;
  gap: 0;
  /* カード感のためのボーダーや軽い影など */
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); // 好みで */
  /* スクロールバーのデザインを変えたり、非表示にするならこんな感じ：
  &::-webkit-scrollbar {
    display: none;
  } */
}
.connected-ranking .connected-ranking-container .connected-rank-item {
  /* 最低限の幅を確保 */
  min-width: 120px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 縦幅はコンパクトに */
  padding: 8px 12px;
  /* デフォルトの文字色や装飾 */
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  /* 区切り線を入れる（最後の要素には入れない） */
}
.connected-ranking .connected-ranking-container .connected-rank-item:not(:last-child) {
  border-right: 1px solid #ececec;
}
.connected-ranking .connected-ranking-container .connected-rank-item {
  /* ホバーアクション：背景色や色を少しだけ変化 */
  transition: background-color 0.3s ease, color 0.3s ease;
}
.connected-ranking .connected-ranking-container .connected-rank-item:hover {
  background-color: #f3f9ff;
  color: #007acc;
}
.connected-ranking .connected-ranking-container .connected-rank-item {
  /* 「今日の星座ランキング」タイトル部分 */
}
.connected-ranking .connected-ranking-container .connected-rank-item.rank-title {
  flex: 1.5;
  font-size: 0.9rem;
  font-weight: 700;
  color: #007acc;
  background: none;
}
.connected-ranking .connected-ranking-container .connected-rank-item {
  /* 順位バッジ */
}
.connected-ranking .connected-ranking-container .connected-rank-item .rank-badge {
  margin-right: 4px;
  font-size: 0.85rem;
  color: #007acc;
}
.connected-ranking .connected-ranking-container .connected-rank-item {
  /* 星座名 */
}
.connected-ranking .connected-ranking-container .connected-rank-item .rank-sign {
  font-size: 0.9rem;
}
.connected-ranking .connected-ranking-link {
  text-decoration: none;
  padding-left: 8px;
  min-width: fit-content;
  -webkit-box-flex: 1;
}

/* ------------------------------ */
/* Google CSE 検索UI
/* ------------------------------ */
/* ロゴと検索ボタン */
.site-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
}
.search-btn:hover {
  border-color: #999;
  color: #333;
  background: rgba(0, 0, 0, 0.03);
}
.search-btn svg {
  width: 20px;
  height: 20px;
}

/* 検索オーバーレイ */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  z-index: 9999;
  padding-top: 10vh;
  overflow-y: auto;
}

.overlay-inner {
  background: #fff;
  width: 92%;
  max-width: 720px;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideDown 0.3s ease;
}
.overlay-inner .gcse-search {
  width: 100%;
}

/* 閉じるボタン */
.search-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #333;
}

/* 検索ヘッダー */
.search-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
}

.search-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* Google CSE コンテナ */
.search-content {
  padding: 20px 24px 24px;
}

/* Google CSEスタイルのオーバーライド */
.gsc-control-cse {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  /* Google CSE内のテーブル要素のボーダーを無効化 */
}
.gsc-control-cse th, .gsc-control-cse td {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
}
.gsc-control-cse table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.gsc-control-wrapper-cse {
  padding: 0 !important;
}

/* 検索入力エリア */
.gsc-search-box-tools .gsc-search-box .gsc-input {
  padding: 0 !important;
}

.gsc-input-box {
  border: 2px solid #e1e8ed !important;
  border-radius: 8px !important;
  background: #fff !important;
  transition: all 0.2s !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}
.gsc-input-box:hover {
  border-color: #8899a6 !important;
}
.gsc-input-box:focus-within {
  border-color: #1da1f2 !important;
  box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1) !important;
}
.gsc-input-box {
  /* 入力ボックス内のテーブル要素のボーダーも無効化 */
}
.gsc-input-box table, .gsc-input-box tbody, .gsc-input-box tr, .gsc-input-box td {
  border: none !important;
}

/* 検索入力フィールド */
.gsc-input-box input.gsc-input {
  padding: 12px 16px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  background: transparent !important;
  border: none !important;
}
.gsc-input-box input.gsc-input:focus {
  outline: none !important;
}
.gsc-input-box input.gsc-input::placeholder {
  color: #8899a6 !important;
}

/* 検索ボタン */
.gsc-search-button-v2 {
  padding: 0 20px !important;
  height: 44px !important;
  border: none !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #4a9fd8 0%, #1e88d7 100%) !important;
  margin-left: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}
.gsc-search-button-v2:hover {
  background: linear-gradient(180deg, #3990d0 0%, #1878c0 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(30, 136, 215, 0.3) !important;
}
.gsc-search-button-v2 svg {
  fill: #fff !important;
  width: 18px !important;
  height: 18px !important;
}

/* クリアボタン */
.gsib_a {
  padding: 8px !important;
}

.gsib_b {
  display: none !important;
}

/* 検索結果 */
.gsc-results-wrapper-visible {
  margin-top: 20px !important;
  padding-top: 20px !important;
  border-top: 1px solid #e5e5e5 !important;
}

.gsc-result {
  margin-bottom: 20px !important;
  padding: 0 !important;
  border: none !important;
}

.gsc-thumbnail-inside {
  padding-left: 0 !important;
}

.gsc-url-top {
  display: none !important;
}

.gs-title {
  height: auto !important;
  line-height: 1.4 !important;
}
.gs-title a {
  font-size: 18px !important;
  color: #1a73e8 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}
.gs-title a:hover {
  text-decoration: underline !important;
}

.gs-snippet {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #545454 !important;
  margin-top: 4px !important;
}

.gsc-url-bottom {
  margin-top: 4px !important;
}

.gs-visibleUrl {
  color: #006621 !important;
  font-size: 13px !important;
}

/* ページネーション */
.gsc-cursor-box {
  margin: 24px 0 !important;
  padding-top: 20px !important;
  border-top: 1px solid #e5e5e5 !important;
}

.gsc-cursor-page {
  padding: 8px 12px !important;
  margin: 0 4px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #1a73e8 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}
.gsc-cursor-page:hover {
  background: #f8f9fa !important;
  border-color: #1a73e8 !important;
}

.gsc-cursor-current-page {
  background: #1a73e8 !important;
  color: #fff !important;
  border-color: #1a73e8 !important;
}

/* アニメーション */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 画像検索の画像幅調整 */
.gs-imageResult .gs-image-box .gs-image {
  width: 100% !important;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
  .search-overlay {
    padding: 0;
    align-items: stretch;
  }
  .overlay-inner {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    min-height: 100vh;
    margin: 0;
    animation: none;
  }
  .search-header {
    padding: 16px 20px 12px;
  }
  .search-title {
    font-size: 16px;
  }
  .search-content {
    padding: 16px 20px 20px;
  }
  .gsc-input-box input.gsc-input {
    font-size: 16px !important;
  }
  .gsc-search-button-v2 {
    padding: 0 16px !important;
  }
  .gs-title a {
    font-size: 16px !important;
  }
  .gs-snippet {
    font-size: 13px !important;
  }
}
/* 320px幅対応 */
@media (max-width: 320px) {
  /* ロゴ画像 - 詳細度を上げて優先度を確保 */
  .homepage h1 img,
  .site-title img,
  h1.site-title img {
    width: 240px !important;
    height: auto !important;
  }
  /* 検索ボタン */
  #global-search-toggle.search-btn,
  .search-btn {
    width: 36px !important;
    height: 36px !important;
  }
  /* 検索アイコン */
  #global-search-toggle.search-btn svg,
  .search-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
}
/* Google CSE branding image の修正 */
.gcsc-branding-img-noclear {
  width: auto !important;
  height: auto !important;
  display: inline !important;
}

/*# sourceMappingURL=main.css.map */
