@charset "utf-8";

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

.flash {
  animation: Flash 1.5s infinite;
}

@keyframes Flash {
  50% {
    opacity: 0.5;
  }
}

strong {
  font-weight: 700;
}

a:hover,
a:active {
  text-decoration: underline;
}

a:link img {
  text-decoration: none;
}

.side-banner-wrap {
  text-align: center;
}

.side-banner a:hover img {
  opacity: 0.75;
  -moz-opacity: 0.75;
  filter: alpha(opacity=75);
  -ms-filter: alpha(opacity=75);
}

.page-not-found {
  text-align: center;
}

.post-nav {
  margin: 2em 0 0;
  padding: 1em;
  background: #edddcc;
}

.single .post-nav {
  margin: 2em 0;
}

.main .post-nav ul,
.main .post-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main .post-nav .prev {
  text-align: left;
}

.main .post-nav .next {
  text-align: right;
}

.main .post-nav a:visited {
  color: #000;
  text-decoration: none;
}

.main .post-nav a:hover,
.main .post-nav a:active {
  text-decoration: underline;
}

.main pre {
  padding: 0 0 2em;
}

.main code,
.main pre code {
  padding: 8px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  font-family: MSGothic, monospace;
  background: #c5bab0;
  display: block;
  line-height: 1.5;
  white-space: pre-wrap;
}

.main blockquote {
  margin: 40px 0 80px;
  clear: both;
  float: left;
  width: 90%;
  padding: 5%;
  background: #edddcc;
}

.main blockquote:before {
  content: "“";
  float: left;
  font-weight: 700;
  font-size: 500%;
  display: block;
  height: 50px;
  color: #220f0a;
  margin-top: -21px;
  font-family: Georgia, "Bitstream Charter", serif;
}

.main blockquote:after {
  content: "”";
  text-align: right;
  display: block;
  height: 60px;
  font-weight: 700;
  font-size: 500%;
  color: #220f0a;
  padding-right: 10px;
  margin-top: -63px;
  font-family: Georgia, "Bitstream Charter", serif;
}

.main ol {
  counter-reset: list-counter;
  padding-left: 0;
}

.main ol li {
  list-style: none;
  counter-increment: list-counter;
  position: relative;
  margin-bottom: 8px;
  padding-left: 40px;
  font-size: 16px;
}

.main ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #edddcc;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  border-radius: 50%;
  font-weight: bold;
}

blockquote>p {
  margin: 0;
  padding: 0 12px;
}

#comment-area dl {
  text-align: center;
}

#comment-area dt {
  font-weight: 700;
  font-size: 0.875em;
}

#comment-area ul {
  padding: 0;
}

#comment-area li {
  list-style: none;
}

#comment-form {
  padding: 40px 0;
  text-align: left;
}

.page #comment-form {
  padding: 0;
}

#login-false {
  font-size: 0.875em;
  width: 80%;
  margin: 40px auto;
}

#comment-form ul {
  margin: 0 auto;
  width: 80%;
  text-align: left;
}

#comment-form li {
  padding: 0 0 20px;
  position: relative;
  list-style: none;
}

#comment-form ul li:before {
  display: none;
}

#comment-form label,
#comment-form input {
  font-size: 1.125em;
}

#comment-area label {
  display: inline-block;
  z-index: 100;
  width: 100%;
}

#comment-area label span {
  padding: 0 0 0 4px;
  color: #900;
  font-size: 0.75em;
}

#comment-area input,
#comment-area select,
#comment-area textarea {
  padding: 4px 6px;
  border: 4px #c3b0a0 solid;
  background: #f9f0e8;
  font-size: 100%;
  width: 100%;
  box-sizing: border-box;
}

#comment-area select {
  -webkit-appearance: button;
  -moz-appearance: button;
  appearance: button;
  width: 300px;
}

#comment-area input:focus,
#comment-area textarea:focus {
  border-color: #68820e;
  background: #f5e6d7;
}

#comment-form .filled {
  border: 3px solid #6c6152;
  background: #f1e8dd;
}

#comment-form #comment-submit {
  padding: 0;
  text-align: right;
}

#comment-form #comment-submit input {
  padding: 0;
  border: none;
  width: auto;
  background: none;
}

#comment-area .wpcf7-acceptance input {
  display: inline;
  width: initial;
}

.content div.wpcf7-response-output,
.content div.wpcf7-validation-errors,
.content div.wpcf7-acceptance-missing {
  border: 12px solid red;
  margin: -20px 0 0 0;
}

.comment-area {
  text-align: left;
}

.comment-area li {
  padding: 14px;
  background: #f1e8dd;
}

.comment-area .odd {
  background: #c1c9b8;
}

.comment-avatar {
  margin: 0 20px 0 0;
  border: 1px solid #6c6152;
  float: left;
  width: 63px;
  height: 63px;
}

.comment-avatar img {
  width: 63px;
  height: 63px;
}

.comment-body {
  overflow: hidden;
  zoom: 1;
}

.pagenav {
  float: left;
  width: 100%;
}

.pagenav ul {
  word-spacing: -1em;
  display: table;
  display: block;
  width: 100%;
  text-align: center;
  margin: 40px 0;
  padding: 0;
}

.pagenav ul li {
  margin: 0 6px;
  word-spacing: normal;
  display: inline-block;
  vertical-align: top;
  /display: inline;
  /zoom: 1;
  width: auto;
  font-size: 1.2857em;
  padding: 0;
  margin-right: 2px !important;
}

.pagenav a {
  padding: 10px 16px;
  color: #381e0d;
  background: #e2cfc0;
  display: block;
}

.pagenav a:hover,
.pagenav .current {
  padding: 10px 16px;
  color: #fff;
  background: #6c6152;
  text-decoration: none;
}

.blocks {
  margin: 0;
  overflow: hidden;
  zoom: 1;
}

footer {
  padding: 144px 0 0;
  position: relative;
  background: #fffdfb url(https://img.tane-maki.pics/footer_cloud.png) center top repeat-x;
  z-index: 1;
}

.footer-items {
  padding: 156px 0 0;
  position: relative;
  background: url(https://img.tane-maki.pics/footer.png) center top repeat-x;
  z-index: 100;
}

.footer-facebook {
  margin: 0 0 0 -470px;
  padding: 73px 0 0 52px;
  position: absolute;
  left: 50%;
  top: 45px;
  width: 241px;
  height: 74px;
  background: url(https://img.tane-maki.pics/facebook.png) left top no-repeat;
  z-index: 10;
}

.footer-404 {
  margin: 0 0 0 -94px;
  position: absolute;
  left: 50%;
  top: -8px;
  width: 187px;
  height: 311px;
  background: url(https://img.tane-maki.pics/404_mogu.png) left top no-repeat;
  z-index: 10;
}

footer .footer-repeat {
  padding: 0 0 20px;
  width: 100%;
  color: #fffdfb;
  background: #200e03 url(https://img.tane-maki.pics/footer_back.png) left top repeat;
  min-height: 120px;
  float: left;
}

.footer-sitemap {
  width: 69%;
  padding: 0 2%;
  min-height: 50px;
  float: left;
}

.footer-company {
  width: 23%;
  padding: 0 2%;
  min-height: 50px;
  float: left;
}

.footer-company address {
  font-size: 150%;
  text-align: left;
  font-style: normal;
  line-height: 1.6;
}

.footer-sitemap-inner {
  width: 33%;
  float: left;
  text-align: left;
}

.footer-sitemap-inner li {
  margin-bottom: 8px;
  position: relative;
  list-style-position: outside;
  list-style-type: disc;
  list-style-type: none;
  list-style-image: none;
  margin: 12px 0 0 0;
  padding-left: 12px;
  font-size: 140%;
}

.footer-sitemap-inner li:before {
  content: "";
  display: block;
  position: absolute;
  box-shadow: 0 0 2px 2px rgba(255, 255, 255, 0.2) inset;
  top: 5px;
  left: 0;
  height: 0;
  width: 0;
  border-top: 5px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #e2d8d3;
}

.footer-sitemap-inner li a {
  color: #e2d8d3;
}

.copyright {
  text-align: center;
  width: 100%;
  padding: 8px 0 80px;
  float: left;
  font-size: 130%;
}

.btn-link a:hover {
  background: #82a211;
}

.btn-link .color-twitter {
  background: #55acee;
}

.btn-link .color-facebook {
  background: #3b5998;
}

.btn-link .color-line {
  background: #00c300;
}

.btn-link .color-instagram {
  background: #e1306c;
}

.btn-link .color-join {
  background: #ff3400;
}

.btn-link .color-join2 {
  background: #de0043;
}

.btn-link-mini a {
  padding-top: 16px;
  padding-bottom: 16px;
}

.arrow {
  position: relative;
  display: inline-block;
  padding: 0 0 0 16px;
  color: #000;
  vertical-align: middle;
  text-decoration: none;
}

.arrow::before,
.arrow::after {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 20px;
  margin: auto;
  content: "";
  vertical-align: middle;
}

.arrow-right::before {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.arrow-right::after {
  right: 28px;
  width: 5px;
  height: 5px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  -webkit-transform: rotate(45deg);
  transform: otate(45deg);
}

.iinebox {
  padding: 25px 0;
  text-align: center;
  background: #f9f0e8;
}

.single del {
  background-image: linear-gradient(transparent 0.5em, #e70000 0, #e70000 calc(0.5em + 1px), transparent 0, transparent calc(0.5em + 3px), #e70000 0, #e70000 calc(0.5em + 4px), transparent 0);
  text-decoration: none;
  padding: 0 2px;
}

.single ins {
  text-decoration: none;
  background: #cddc9b;
  color: #000000;
  padding: 6px;
  border-radius: 4px;
}

.single .wp-caption {
  background: #6c6152;
  margin: 0 auto;
}

.single .wp-caption p {
  color: #fff;
  padding: 10px 15px;
}

.single .wp-caption p a:link {
  color: #4ab5ff;
}

.single .wp-caption .wp-caption-text {
  font-size: 98%;
}

iframe.wp-embedded-content,
.single .main iframe,
.main iframe {
  width: 100%;
}

.ellipsis {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.calendar-wrap {
  max-width: 1000px;
  min-width: 300px;
  margin: 30px 10px;
}

.googlecal {
  position: relative;
  padding-bottom: 100%;
  height: 0;
  overflow: hidden;
}

.googlecal iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.google-map {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 2em;
}

.google-map iframe,
.google-map .gmap-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.gmap-embed {
  border: 0;
}

@media screen and (max-width: 768px) {
  .gmap-embed {
    height: 300px;
  }
}


.table-heading {
  width: 94%;
  margin: 0 auto;
  padding: 8px 0 0 8px;
  font-size: 140%;
  font-weight: 700;
  color: #68820e;
}

.brown-table {
  border-collapse: separate;
  border-spacing: 3px;
  text-align: center;
  line-height: 1.5;
  width: 94%;
  margin: 0 3% 24px;
}

.brown-table th {
  width: 25%;
  padding: 8px 0;
  font-weight: 700;
  vertical-align: top;
  color: #fff;
  background: rgba(57, 36, 20, 0.8);
}

.brown-table td {
  width: 25%;
  padding: 16px 0;
  vertical-align: top;
  background: rgba(235, 214, 198, 0.7);
}

.brown-table td.col01 {
  color: #381810;
  background: rgba(224, 202, 186, 0.9);
}

.eigyoubi-table tbody {
  border: 1px solid #d4c4b6;
}

.eigyoubi-table,
.eigyoubi-table td,
.eigyoubi-table th {
  width: 93%;
  margin: 0 3% 24px;
  border-left: 1px solid #d4c4b6;
  border-collapse: collapse;
  text-align: center;
}

.eigyoubi-table td,
.eigyoubi-table th {
  width: 12.5%;
  height: 25px;
}

.eigyoubi-table th {
  background: #f0e6cc;
}

.teikyuubi {
  background: none;
}

.eigyoujikan {
  background: #9cb740;
}

.recommend td {
  font-weight: 700;
}

.recommend .col01 {
  position: relative;
}

.recommend .col01:before {
  content: "オススメ";
  font-weight: 400;
  font-size: 9px;
  position: absolute;
  left: 4px;
  top: 8px;
  letter-spacing: -1px;
  border-radius: 30px;
  background: #68820e;
  padding: 2px 4px;
  color: #fff;
  transform: rotate(-10deg);
  -moz-transform: rotate(-10deg);
  -webkit-transform: rotate(-10deg);
}

.eigyoubi-table-color {
  background: #d4c4b6;
}

.eigyoubi-time {
  vertical-align: top;
}

.youbi-sat {
  color: #fff;
  background: #204fad;
}

.youbi-sun {
  color: #fff;
  background: #d43737;
}

.popular-posts ul li a,
.yarpp-related ul li a {
  color: #333;
}

/*tag*/
.tags {
  width: 90%;
  margin: 32px 5%;
}

/* dp-payment */
.dp-payment-lists {
  margin: 0 40px 40px;
}

.dp-payment-item {
  margin: 2px auto;
  padding: 24px 0 20px;
  border-radius: 5px;
  background: rgba(235, 214, 198, 0.9);
  float: left;
  width: 100%;
  display: table;
}

.dp-payment-price {
  display: table-cell;
  vertical-align: middle;
  line-height: 1;
  width: 60%;
  font-size: 20px;
  text-align: center;
}

.dp-payment form {
  display: table-cell;
  vertical-align: middle;
  line-height: 1;
  width: 38%;
  text-align: center;
}

.dp-payment-btn {
  width: 90px;
}

.dp-payment-btn:hover {
  opacity: 0.7;
}

.twitter-tweet-rendered {
  margin-left: auto;
  margin-right: auto;
}

.comparison {
  margin-bottom: 50px;
}

.comparison .brown-table {
  width: 100%;
  margin: 0 0 24px;
}

/*adsense*/
.google-auto-placed {
  margin-bottom: 40px;
}

.main .yarpp-related ul li,
.main .popular-posts ul li {
  font-size: 150%;
  margin-top: 20px !important;
}

.main .yarpp-related ul li:before,
.main .popular-posts ul li:before {
  top: 8px;
}

/* captcha */
.grecaptcha-badge {
  visibility: hidden;
}

/* Realtime Konzatsu (top page) - Site Design Compatible */
.realtime-konzatsu-modern {
  float: none;
  margin: 20px auto;
  width: 100%;
  max-width: 1040px;
  clear: both;
}

.konzatsu-card {
  background: #f9f0e8;
  border: 1px solid #c3b0a0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  position: relative;
}

.konzatsu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #68820e;
  border-radius: 8px 8px 0 0;
}

/* Loading State */
.konzatsu-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #edddcc;
  border-top: 2px solid #68820e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: #381e0d;
  font-size: 14px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Header Section */
.konzatsu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.konzatsu-level {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.konzatsu-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #68820e;
  transition: all 0.2s ease;
}

.konzatsu-icon-wrapper.closed {
  background: #6c6152;
}

.konzatsu-icon-svg {
  color: white;
  width: 16px;
  height: 16px;
}

.konzatsu-text {
  font-size: 16px;
  font-weight: bold;
  color: #381e0d;
}

/* Live Badge */
.konzatsu-badge {
  flex-shrink: 0;
}

.badge-text {
  display: inline-block;
  padding: 3px 6px;
  background: #68820e;
  color: white;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 3px;
  animation: pulse-badge 2s infinite;
}

.badge-text::before {
  content: "●";
  margin-right: 2px;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Statistics Section */
.konzatsu-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
  padding: 16px;
  background: #edddcc;
  border-radius: 6px;
  border: 1px solid #c3b0a0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
  color: #220f0a;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: #381e0d;
  font-weight: bold;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: #c3b0a0;
}

.stat-item-unified {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

div.stat-combined {
  line-height: 1.2;
  text-align: center;
}

.stat-combined .seats-available {
  font-size: 26px;
  font-weight: 900;
  color: #68820e;
}

.stat-combined .seats-monitor {
  font-size: 14px;
  font-weight: normal;
}

/* Update Section */
.konzatsu-updated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: #381e0d;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edddcc;
}

.update-icon {
  opacity: 0.7;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Custom Message */
.custom-message {
  background: #f1e8dd;
  border: 1px solid #c3b0a0;
  border-radius: 4px;
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 13px;
}

/* Closed State */
.konzatsu-closed {
  text-align: center;
  padding: 20px;
}

.closed-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.konzatsu-closed .konzatsu-text {
  font-size: 16px;
  color: #381e0d;
  font-weight: bold;
  margin: 0;
}

.konzatsu-closed .konzatsu-message {
  color: #381e0d;
  line-height: 1.5;
  font-size: 13px;
}

/* Status Color Variants */
.konzatsu-card[data-status="empty"] .konzatsu-icon-wrapper {
  background: #68820e;
}

.konzatsu-card[data-status="normal"] .konzatsu-icon-wrapper {
  background: #82a211;
}

.konzatsu-card[data-status="busy"] .konzatsu-icon-wrapper {
  background: #ffd000;
}

/* very-busy は busy と同じ色にする */
.konzatsu-card[data-status="very-busy"] .konzatsu-icon-wrapper {
  background: #ff5252;
}

.konzatsu-card[data-status="full"] .konzatsu-icon-wrapper {
  background: #ff1100;
}

/* Responsive Design */
@media (max-width: 768px) {
  .realtime-konzatsu-modern {
    margin: 32px 16px;
    max-width: calc(100% - 32px);
  }

  .konzatsu-card {
    padding: 15px;
  }

  .konzatsu-header {
    margin-bottom: 12px;
  }

  .konzatsu-level {
    gap: 8px;
  }

  .konzatsu-icon-wrapper {
    width: 28px;
    height: 28px;
  }

  .konzatsu-icon-svg {
    width: 14px;
    height: 14px;
  }

  .konzatsu-text {
    font-size: 14px;
  }

  .konzatsu-stats {
    margin: 12px 0;
    padding: 12px;
    gap: 12px;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-combined .seats-available {
    font-size: 20px;
  }

  .stat-combined .seats-monitor {
    font-size: 13px;
  }

  .konzatsu-updated {
    margin-top: 10px;
    padding-top: 10px;
  }
}

@media screen and (max-width: 768px) {
  .home img.aligncenter {
    border-radius: 0;
  }

  .iinebox {
    display: none;
  }

  .sidebar {
    width: 100%;
    margin: 20px 0;
  }

  .calendar-wrap {
    margin: 30px 0;
  }

  .googlecal {
    padding-bottom: 150%;
  }

  .home-btn a {
    margin: 0 auto 12px auto;
  }

  .pagenav ul {
    margin: 20px 0;
  }

  .table-heading {
    padding: 32px 0 0;
    text-align: center;
  }

  .brown-table {
    width: 100%;
    margin: 0 0 24px;
    font-size: 88%;
  }

  .brown-table th {
    width: 25%;
    font-weight: 400;
  }

  .brown-table td {
    width: 25%;
  }

  .eigyoubi-table td {
    font-size: 70%;
  }

  blockquote>p {
    padding: 0 30px;
  }

  .yarpp-related ol {
    margin: 20px 10px 20px 20px;
  }

  .recommend .col01:before {
    top: -3px;
    left: -1px;
  }

  .excerpt {
    width: 100%;
    float: left;
  }

  .excerpt p {
    margin: 0;
    padding: 8px 0;
  }

  .dp-payment-lists {
    margin: 0 10px 40px;
  }

  .dp-payment-price {
    font-size: 14px;
  }

  footer,
  .footer-facebook {
    background: initial;
  }

  .footer-sitemap {
    width: 96%;
  }

  .footer-company {
    width: 96%;
    margin: 24px 0 0 0;
  }

  .footer-sitemap-inner {
    width: 100%;
  }

  .footer-items {
    padding: 0;
    background: initial;
  }

  footer .footer-repeat {
    padding: 20px 0;
    background: #200e03;
  }

  .main .yarpp-related ul li,
  .main .popular-posts ul li {
    font-size: 130%;
  }
}

/* amazon rinker */
div.yyi-rinker-contents div.yyi-rinker-box {
  border: none;
  padding: 32px;
}

.yyi-rinker-box {
  font-size: 14px;
  margin: 1.5em 40px;
  padding: 24px;
  position: relative;
  display: block;
  background: #fff;
  border-radius: 12px;
  color: #333;
}

div.yyi-rinker-contents div.yyi-rinker-box ul li {
  padding: 0;
  margin: 0 !important;
}

div.yyi-rinker-contents div.yyi-rinker-box ul li:before {
  border: none;
}

@media (max-width: 720px) {
  div.yyi-rinker-contents div.yyi-rinker-box {
    padding: 24px;
    margin: 1.5em 10px;
  }

  .yyi-rinker-contents .yyi-rinker-info {
    padding: 0;
  }
}

/*chatjs*/
input:focus,
input[type="password"],
textarea,
select,
button {
  outline: none;
}

button:disabled {
  opacity: 0.7;
}

.chat-box-wrap {
  margin: 8px 40px;
  padding: 0;
  display: block;
  float: left;
  width: auto;
}

.top-content .chat-box-wrap {
  margin: 8px 0;
  width: 100%;
}

.form-box {
  width: 100%;
  margin: 24px auto 48px;
  float: left;
  clear: both;
}

.top-content .form-box {
  margin: 24px auto 0;
}

.chat-wrap {
  width: 100%;
  float: left;
}

.chat-right .chat-box-comment-text:before {
  border-radius: 15px 0;
  top: -2px;
  right: -13px;
}

.chat-right .chat-box-comment-text:after {
  border-radius: 30px 0;
  top: -12px;
  right: -16px;
}

.chat-feedback {
  width: 100%;
  background: #e0cab9;
  float: left;
  height: auto;
  padding: 12px 0;
  margin: 24px 0 64px;
  display: table;
}

.chat-feedback-text {
  width: 50%;
  padding: 16px 5%;
  font-size: 18px;
  line-height: 1;
  color: #333;
  display: table-cell;
  vertical-align: middle;
}

.chat-feedback-text a {
  padding: 4px 0;
  display: inline-block;
}

.chat-feedback-form {
  width: 40%;
  display: table-cell;
  vertical-align: middle;
}

.chat-feedback-btn {
  width: 48%;
  float: left;
  margin-right: 1%;
  border: none;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 114%;
  display: inline-block;
  line-height: 50px;
  height: 50px;
  background: #ce215d;
  text-align: center;
  border-radius: 4px;
}

.chat-feedback-btn-yes {
  background: #3b90f1;
}

.chat-feedback-btn:hover {
  opacity: 0.7;
}

.text-loading {
  float: left;
  animation-name: bounce_fadetext;
  -webkit-animation-name: bounce_fadetext;
  -moz-animation-name: bounce_fadetext;
  animation-duration: 1.001s;
  -webkit-animation-duration: 1.001s;
  -moz-animation-duration: 1.001s;
  animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
  -moz-animation-iteration-count: infinite;
  animation-direction: normal;
  -webkit-animation-direction: normal;
  -moz-animation-direction: normal;
}

#fadetext_1 {
  animation-delay: 0.3525s;
  -webkit-animation-delay: 0.3525s;
  -moz-animation-delay: 0.3525s;
}

#fadetext_2 {
  animation-delay: 0.429s;
  -webkit-animation-delay: 0.429s;
  -moz-animation-delay: 0.429s;
}

#fadetext_3 {
  animation-delay: 0.4955s;
  -webkit-animation-delay: 0.4955s;
  -moz-animation-delay: 0.4955s;
}

#fadetext_4 {
  animation-delay: 0.572s;
  -webkit-animation-delay: 0.572s;
  -moz-animation-delay: 0.572s;
}

#fadetext_5 {
  animation-delay: 0.6385s;
  -webkit-animation-delay: 0.6385s;
  -moz-animation-delay: 0.6385s;
}

#fadetext_6 {
  animation-delay: 0.715s;
  -webkit-animation-delay: 0.715s;
  -moz-animation-delay: 0.715s;
}

@keyframes bounce_fadetext {
  0% {
    color: #000;
  }

  100% {
    color: #fff;
  }
}

@-webkit-keyframes bounce_fadetext {
  0% {
    color: #000;
  }

  100% {
    color: #fff;
  }
}

@-moz-keyframes bounce_fadetext {
  0% {
    color: #000;
  }

  100% {
    color: #fff;
  }
}

@media screen and (max-width: 768px) {
  .chat-box-wrap {
    margin: 0;
  }

  .msg-box {
    padding: 20px 0;
    width: 100%;
    background: none;
    min-height: 120px;
    background: #f9f0e8;
  }

  .chat-box-comment-text {
    font-size: 100%;
  }

  .chat-box-comment-text:after {
    background: #f9f0e8;
  }

  .chat-box-comment-wrap {
    width: 65%;
  }

  .chat-box-comment-img {
    width: 40px;
    height: 40px;
    box-shadow: inset 0 1px 2px #46312a;
  }

  .chat-left .chat-box-comment-wrap {
    padding-left: 70px;
  }

  .chat-left .chat-box-comment-img {
    margin-left: -60px;
  }

  .chat-right .chat-box-comment-wrap {
    padding-right: 70px;
  }

  .chat-right .chat-box-comment-img {
    margin-right: -60px;
  }

  .chat-feedback-text {
    font-size: 14px;
  }

  .chat-feedback-btn {
    width: 47%;
    height: 40px;
    line-height: 40px;
    font-size: 80%;
  }

  .chat-msg {
    font-size: 100%;
    line-height: 50px;
    border-radius: 0;
  }

  .chat-btn {
    font-size: 80%;
    line-height: 50px;
    border-radius: 0;
  }

  .home-chat {
    margin: 0;
  }

  input.chat-msg {
    font-size: 16px;
  }
}

/* Photo Gallery */
.photo-gallery {
  margin-bottom: 2em;
}

.main-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

@media screen and (max-width: 768px) {
  .photo-gallery {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    margin-bottom: 2em;
  }

  .main-photo img {
    border-radius: 0;
  }
}

.thumbnail-strip {
  display: flex;
  gap: 8px;
  /* 隙間を広げて見やすく */
  margin-top: 4px;
  padding-bottom: 0;
  /* 下部の余計な余白を削除 */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #68820e #e0cab9;
}

.thumbnail-strip::-webkit-scrollbar {
  height: 8px;
}

.thumbnail-strip::-webkit-scrollbar-track {
  background: #e0cab9;
  border-radius: 4px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
  background: #68820e;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.thumbnail-strip::-webkit-scrollbar-thumb:hover {
  background: #82a211;
}

.gallery-thumb {
  width: 110px;
  /* サムネイルを大きく */
  height: 82px;
  /* 比率を維持しつつ拡大 */
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  border: none !important;
  /* 枠線を完全に消去 */
}

@media screen and (max-width: 768px) {
  .thumbnail-strip {
    gap: 4px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-thumb-wrapper {
    width: 100%;
  }

  .gallery-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    border-radius: 2px;
  }
}


@media screen and (min-width: 769px) {
  .photo-gallery {
    display: flex;
    aspect-ratio: 2.5 / 1;
    /* メイン画像が16:9になるよう再調整 */
    gap: 12px;
    margin-bottom: 2em;
    align-items: stretch;
  }

  .main-photo {
    width: 71%;
    /* 16:9を維持するための幅 (2.5 * 0.71 ≒ 1.775) */
    height: 100%;
    cursor: pointer;
    /* メイン画像クリック可能に */
    transition: opacity 0.2s;
  }

  .main-photo:hover {
    opacity: 0.9;
  }

  .main-photo img {
    height: 100%;
    /* Fill the container height */
    object-fit: cover;
    /* Crop to fit */
    object-position: center;
    width: 100%;
    border-radius: 10px;
    display: block;
  }

  .thumbnail-strip {
    width: 29%;
    /* 残りの幅 */
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    /* 1列 */
    grid-template-rows: repeat(3, 1fr);
    /* 3行等分 */
    gap: 12px;
    margin-top: 0;
    overflow: hidden;
    min-height: 0;
    /* 子要素が縮小できるようにする */
  }

  .gallery-thumb {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: none;
    opacity: 1;
    transition: opacity 0.2s;
    /* メイン写真と同じアニメーション速度 */
  }

  .gallery-thumb:hover {
    opacity: 0.9;
    /* ホバー時にメイン写真と同じ透明度へ */
  }

  /* Ensure wrapper fills the grid cell */
  .gallery-thumb-wrapper {
    width: 100%;
    height: 100%;
    min-height: 0;
    /* グリッド内で縮小可能にする */
  }

  .gallery-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }

  /* Reset grid placement logic (no longer needed for simple grid but kept for safety) */
  .gallery-thumb-wrapper:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  /* Hide extra thumbnails (4th onwards in the strip, meaning 5th photo total) */
  .gallery-thumb-wrapper:nth-child(n+4) {
    display: none;
  }
}

/* Gallery Thumbnail Wrapper */
.gallery-thumb-wrapper {
  position: relative;
  cursor: pointer;
}

/* More Photos Overlay (Badge Style) */
.more-photos-overlay {
  position: absolute;
  top: auto;
  left: auto;
  bottom: 10px;
  right: 10px;
  width: auto;
  height: auto;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 20px;
  color: white;
  font-weight: bold;
  font-size: 12px;
  pointer-events: none;
  /* Let clicks pass through to the wrapper */
}

/* バッジではなく、ホバー時に画像自体を少し暗くする効果 */
.gallery-thumb-wrapper:hover img {
  opacity: 0.9;
  /* ホバー時に画像を少し透明にする */
}

/* Remove the previous hover darkening on the overlay */
.gallery-thumb-wrapper:hover .more-photos-overlay {
  background: rgba(0, 0, 0, 0.8);
}

@media screen and (min-width: 769px) {
  .more-photos-overlay {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* Photo Modal */
.photo-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 60px 20px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.close-modal {
  position: fixed;
  top: 0;
  right: 15px;
  color: #f1f1f1;
  font-size: 60px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .close-modal {
    top: -15px;
    right: 15px;
    font-size: 50px;
    text-shadow: 0px 0px 6px #666666;
  }

  .modal-content {
    padding: 50px 10px 20px;
  }
}

/* FAQ Top 3 (Chat Style Refined) */
/* FAQ Top 3 (Chat Style Refined) */
.faq-chat-container {
  max-width: 100%;
  margin: 60px auto;
  padding: 0 5%;
}

.page .main h2.faq-title {
  margin-bottom: 48px;
  text-align: center;
  letter-spacing: 0.05em;
  text-decoration-thickness: 2px;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.faq-chat-item {
  margin-bottom: 72px;
}

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

/* Common Flex Rows */
.faq-q-row,
.faq-a-row {
  display: flex;
  align-items: flex-start;
  /* Align top for chat look */
  gap: 16px;
  margin-bottom: 24px;
}

.faq-q-row {
  justify-content: flex-start;
  padding-right: 40px;
}

.faq-a-row {
  justify-content: flex-end;
  padding-left: 40px;
}

/* Icon Wrapper & Image */
.faq-icon-wrapper {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin-top: 0;
  /* Align with top of bubble */
}

.faq-icon-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Bubbles */
.faq-bubble {
  padding: 16px 24px;
  line-height: 1.6;
  font-size: 1.1rem;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Guest (Q) - Gray Bar Style (Now Beige) */
.bubble-guest {
  background-color: #edddcc;
  color: #333;
  font-weight: bold;
  border-radius: 0 16px 16px 16px;
  /* Top-left sharp for tail connection */
  margin-left: 10px;
  /* Space for tail */
}

/* Guest Tail */
.bubble-guest::after {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  width: 0;
  height: 0;
  border-right: 12px solid #edddcc;
  border-top: 0 solid transparent;
  border-bottom: 12px solid transparent;
}

/* Staff (A) - Colored Bubble */
.bubble-staff {
  background-color: rgba(57, 36, 20, 0.8);
  color: #fff;
  text-align: left;
  border-radius: 16px 0 16px 16px;
  /* Top-right sharp for tail connection */
  max-width: 600px;
  margin-right: 10px;
  /* Space for tail */
}

/* Staff Tail */
.bubble-staff::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  width: 0;
  height: 0;
  border-left: 12px solid rgba(57, 36, 20, 0.8);
  border-top: 0 solid transparent;
  border-bottom: 12px solid transparent;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {

  .faq-q-row,
  .faq-a-row {
    padding-left: 0;
    padding-right: 0;
    gap: 10px;
  }

  .faq-icon-wrapper {
    width: 48px;
    height: 48px;
  }

  .faq-bubble {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

/* Space Info Section */
.space-info-container {
  background: #f9f0e8;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 1040px;
  box-sizing: border-box;
  border-radius: 18px;
}



.space-info-body {
  padding: 24px 40px;
  margin: 0 auto;
}

/* Definition List */
.space-info-list {
  margin-bottom: 32px;
}

.space-info-list .info-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 0px solid #eee;
}

.space-info-list dt {
  width: 120px;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.space-info-list dd {
  margin: 0;
  font-size: 16px;
  flex-grow: 1;
}

/* Button */
.space-cta {
  text-align: center;
}

.space-cta .reserve-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #68820e;
  /* Green color from image */
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 0;
  border-radius: 30px;
  transition: opacity 0.3s;
}

.space-cta .reserve-btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Mobile Responsive */
@media screen and (max-width: 767px) {
  .space-info-tabs {
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding-left: 16px;
    padding-right: 16px;
  }

  .space-info-list .info-row {
    flex-direction: row;
  }

  .space-info-list dt {
    width: 100px;
  }

  .space-stats-block {
    flex-direction: row;
    padding: 16px;
  }

  .space-stats-block .stat-divider {
    margin: 0 16px;
  }

  .space-info-body {
    padding: 24px 16px;
  }
}

/* FAQ Section */
.faq-list {
  margin-top: 20px;
  width: 90%;
  margin: 20px auto 0;
}

.faq-item {
  background: rgba(235, 214, 198, 0.7);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.07);
}

.faq-q,
.faq-a {
  display: flex;
  align-items: flex-start;
}

.faq-q {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(57, 36, 20, 0.3);
}

.faq-icon-q,
.faq-icon-a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
  margin-right: 16px;
  color: #fff;
}

.faq-icon-q {
  background-color: #381e0d;
  /* Dark Brown */
}

.faq-icon-a {
  background-color: #68820e;
  /* Green */
}

.faq-text {
  flex: 1;
  font-weight: bold;
  line-height: 1.6;
  font-size: 1.25em;
  padding-top: 8px;
  /* Align text with icon center visually */
  color: #381e0d;
}

.faq-a .faq-text {
  font-weight: normal;
}

/* Equipment Section */
.equipment-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 24px 40px;
}

@media screen and (min-width: 768px) {
  .equipment-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 24px 40px 40px 48px;
  }
}

.equipment-item {
  display: flex;
  align-items: center;
  border-radius: 8px;
}

.equipment-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #554433;
}

.equipment-details {
  display: flex;
  flex-direction: column;
}

.equipment-name {
  font-weight: bold;
  font-size: 1.1em;
  color: #381e0d;
  line-height: 1.4;
}

.equipment-count {
  font-size: 0.9em;
}

.common-section-cta {
  text-align: center;
  margin-bottom: 60px;
}

a.common-btn-more {
  display: inline-block;
  padding: 12px 40px;
  border: none;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  background: #68820e;
}

a.common-btn-more:visited {
  color: #fff;
}

a.common-btn-more:hover {
  background: #82a211;
  color: #fff;
  text-decoration: none;
}

/* Notes Section Grid Layout */
.notes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 24px 40px;
}

@media screen and (min-width: 768px) {
  .notes-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for better readability */
    gap: 24px;
    margin: 24px 40px 40px 48px;
  }
}

.note-item {
  display: flex;
  align-items: flex-start;
  /* Align top */
  background: rgba(235, 214, 198, 0.7);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.note-alert {
  background: #fde8e8;
  /* Light red background for alerts */
  border: 1px solid #fbd5d5;
}

.note-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: #554433;
  flex-shrink: 0;
  /* Prevent shrinking */
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.note-alert .note-icon {
  color: #c53030;
  background: rgba(255, 255, 255, 0.6);
}

.note-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.note-text {
  font-size: 1.05em;
  line-height: 1.5;
  color: #381e0d;
}

.note-alert .note-text {
  font-weight: bold;
  color: #9b2c2c;
}

/* -------------------------------------
   Google Reviews
-------------------------------------- */
.tanemaki-reviews-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.tanemaki-review-card {
  background: #fffdfb;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media screen and (max-width: 767px) {
  .tanemaki-review-card {
    margin-left: 5%;
    margin-right: 5%;
  }
}

.tanemaki-review-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 30px;
  width: 40px;
  height: 4px;
  background: #68820e;
  border-radius: 0 0 4px 4px;
}

.tanemaki-review-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.tanemaki-review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #f0e6cc;
  color: #5d4d44;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3em;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
}

.tanemaki-review-meta {
  display: flex;
  flex-direction: column;
}

.tanemaki-review-author {
  font-weight: bold;
  color: #5d4d44;
  font-size: 1.1em;
  line-height: 1.3;
  margin-bottom: 4px;
}

.tanemaki-review-rating {
  color: #e09f3e;
  font-size: 1.1em;
  letter-spacing: 2px;
  line-height: 1;
}

.tanemaki-review-text {
  color: #333;
  font-size: 0.95em;
  line-height: 1.8;
  margin: 0;
  flex-grow: 1;
  background: #faf8f5;
  padding: 16px;
  border-radius: 6px;
}

/* =========================================================================
   page-dropin.php から移行したスタイル
   ========================================================================= */

/* ギャラリー画像ロード時のCLS（レイアウトシフト）対策 */
@media screen and (max-width: 768px) {
  .photo-gallery {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    margin-bottom: 2em;
  }

  .main-photo {
    width: 100%;
  }

  .main-photo img {
    border-radius: 0;
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
  }

  .thumbnail-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 4px;
    padding: 0 4px;
  }

  .gallery-thumb-wrapper {
    width: 100%;
  }

  .gallery-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 2px;
  }

  .gallery-thumb-wrapper:nth-child(n+4) {
    display: none;
  }
}

@media screen and (min-width: 769px) {
  .photo-gallery {
    display: flex;
    aspect-ratio: 2.5 / 1;
    gap: 12px;
    margin-bottom: 2em;
    align-items: stretch;
  }

  .main-photo {
    width: 71%;
    height: 100%;
  }

  .main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
  }

  .thumbnail-strip {
    width: 29%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
  }

  .gallery-thumb-wrapper {
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
  }

  .gallery-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
  }

  .gallery-thumb-wrapper:nth-child(n+4) {
    display: none;
  }
}

/* グラフ・カード関連 */
.material-card {
  background: #fffdfb;
  border-radius: 8px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
  padding: 40px 24px;
  margin: 72px 5%;
  text-align: center;
  max-width: 900px;
}

.main .visitor-stats-card h3 {
  margin-top: 0;
  margin-bottom: 32px;
  color: #5d4d44;
  font-size: 1.5rem;
  border-bottom: 2px solid #f0e6cc;
  display: inline-block;
  padding-bottom: 8px;
  position: initial;
  padding-left: 0;
  line-height: 1.5;
}

.main .visitor-stats-card h3::after {
  display: none;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.chart-wrapper {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.chart-wrapper h4 {
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: #68820e;
}

.chart-container {
  position: relative;
  height: 250px;
  width: 100%;
  margin: 0 auto;
}

.main p.chart-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 24px;
  padding: 0;
}

/* プロフィールカード */
.profile-card {
  padding: 32px;
  background: #faf8f5;
  border-radius: 8px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 0 5% 60px;
  text-align: left;
}

.profile-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

.profile-img-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  text-align: center;
}

.profile-img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  background: #ab9582;
}

.profile-details {
  flex: 1;
}

.profile-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.profile-desc {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .profile-grid {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .profile-card {
    padding: 24px 16px;
  }

  .profile-title {
    text-align: center;
  }
}

/* Wi-Fi スピードカード */
.wifi-speed-card {
  padding: 32px;
  background: #faf8f5;
  border-radius: 8px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 0 5% 60px;
  text-align: left;
}

.wifi-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

.wifi-speed-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  text-align: center;
}

.wifi-icon-large {
  position: relative;
}

.wifi-speed-text .speed-label {
  display: block;
  font-size: 0.9rem;
  color: #333;
  font-weight: bold;
  margin-bottom: 8px;
}

.wifi-speed-text .speed-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #586f0a;
  line-height: 1;
}

.wifi-speed-text .unit {
  font-size: 1rem;
  font-weight: bold;
  color: #586f0a;
}

.wifi-description {
  flex: 1;
}

.wifi-desc-main {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #333;
  line-height: 1.5;
}

.wifi-desc-sub {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
}

.wifi-note {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

@media (max-width: 768px) {
  .wifi-grid {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .wifi-speed-card {
    padding: 24px 16px;
  }
}