@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --color-text-main: #333;
  --color-text-sub: #666;
  --color-bg-body: #fff;
  --color-bg-gray: #f5f5f5;
  --color-primary: #004bb1;
  /* Blue */
  --color-accent: #fcdd00;
  /* Yellow */
  --color-black: #000;

  --color-label-green: #8fc31f;
  --color-label-lime: #d1d600;
  --color-label-gold: #cfa972;
  --color-label-gray: #999;

  --font-family-base: "Helvetica Neue", "Helvetica", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

  --width-container: 1300px;
  --header-height-pc: 140px;
  /* Approx */
  --header-height-sp: 60px;
}

html {
  scroll-behavior: smooth;

}

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

body {
  font-family: var(--font-family-base);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-family: "BIZ UDGothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.l-container {
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1200px;
}

.u-pc-only {
  display: block;
}

.u-sp-only {
  display: none;
}

.u-text-center {
  text-align: center;
}

@media (max-width: 767px) {
  .u-pc-only {
    display: none !important;
  }

  .u-sp-only {
    display: block;
  }
}

/* Buttons */
.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

.c-button--header {
  background-color: var(--color-accent);
  color: #333;
  font-size: 14px;
  padding: 8px 15px;
}

.c-button--hero {
  background-color: var(--color-primary);
  color: #fff;
  font-size: 16px;
  padding: 15px 40px;
  border-radius: 50px;
  /* Pill shape */
  margin-top: 20px;
}

.c-button--hero i {
  margin-left: 10px;
}

.c-button--more {
  background-color: #333;
  color: #fff;
  padding: 15px 60px;
  font-size: 14px;
  margin-top: 40px;
}

.c-button--more i {
  margin-left: 10px;
}

.c-button--product {
  font-size: 14px;
  background-color: #333;
  color: #fff;
  width: 100%;
  padding: 15px;
  margin-top: auto;
}

.c-button--product i {
  margin-left: auto;
}

/* Social Buttons */
.c-button--insta {
  background-color: #E4405F;
  color: #fff;
  width: 100%;
  margin-bottom: 10px;
}

.c-button--fb {
  background-color: #3b5998;
  color: #fff;
  width: 100%;
  margin-bottom: 10px;
}

.c-button--tw {
  background-color: #55acee;
  color: #fff;
  width: 100%;
  margin-bottom: 10px;
}

.c-button--feedly {
  background-color: #6cc655;
  color: #fff;
  width: 100%;
}

/* Headings */
.c-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Centered based on design */
  margin-bottom: 40px;
  gap: 15px;
}

.c-heading__icon {
  font-size: 2rem;
  color: #333;
  /* Or specific color if needed */
}

.c-heading__text {
  font-size: 1.8rem;
  font-weight: normal;
}

/* ==========================================================================
   Header
   ========================================================================== */
.l-header {
  background-color: #fff;
  width: 100%;
  position: relative;
}

.l-header__top {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.l-header__inner {
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 20px;
  size: legal;
  align-items: end;
  justify-content: space-between;
}

.l-header__logo-img {
  height: 40px;
}

.l-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.l-header__social {
  display: flex;
  gap: 10px;
}

.l-header__social-icon {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
}

.l-header__search {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.l-header__search-input {
  border: none;
  padding: 5px 10px;
  outline: none;
}

.l-header__search-btn {
  background: white;
  border: none;
  border-left: 1px solid #ddd;
  padding: 5px 10px;
  cursor: pointer;
  color: #999;
}

.l-header__nav {
  padding: 15px 0;
}

.l-header__nav-list {
  display: flex;
  flex-wrap: wrap;
  /* Default: Allow wrapping (SP etc) */
  gap: 10px;
  width: 100%;
  justify-content: center;
}

/* Tablet/PC: Horizontal Scroll Navigation */
@media (min-width: 768px) {



  .l-header__nav-list {
    flex-wrap: nowrap;
    /* Disable wrapping */
    overflow-x: auto;
    /* Enable horizontal scroll */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    padding-bottom: 5px;
    /* Visual breathing room */
    scrollbar-width: none;
    /* Hide scrollbar FF */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
  }


  .l-header__nav-list::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
  }

  .l-header__nav-item {
    flex-shrink: 0;
    border-left: 1px solid #eee;
    padding-left: 20px;
    margin-left: 10px;
    /* Prevent items from shrinking */
  }

  .l-header__nav-item:first-child {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
}

.l-header__nav-link {
  font-size: 14px;
  font-weight: bold;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.l-header__nav-link:hover {
  border-bottom-color: var(--color-accent);
  opacity: 1;
  /* No opacity fade on border hover usually */
}

/* Mega Menu / Dropdown */
.l-header__nav-item--dropdown {
  border-left: 1px solid #eee;
  /* Light divider */
  padding-left: 20px;
  margin-left: 10px;
}

.l-header__nav-link--dropdown {
  /*   display: flex; */
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.l-header__nav-link--dropdown i {
  font-size: 10px;
}

.p-mega-menu {
  position: absolute;
  top: 100%;
  /* Below header nav */
  left: 0;
  width: 100%;
  background-color: #333;
  color: #fff;
  padding: 30px 0;
  z-index: 1000;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);

  /* Animation */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.p-mega-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.p-mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.grid-9 .p-mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;

}

.grid-9 .p-mega-menu__col {
  text-align: center;
  border: solid #666 1px;
  padding: 10px;
  border-radius: 15px;
}

.grid-9 .fa-solid,
.grid-9 .p-mega-menu__place-icon {
  margin-bottom: 10px;
  font-weight: 900;
  font-size: 66px;
}

.p-mega-menu__col {
  /* Style for each product column */
}

.p-mega-menu__img-wrapper {
  background: #fff;
  padding: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  /* Fixed height for consistency */
}

.p-mega-menu__img-wrapper img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

.p-mega-menu__list {
  font-size: 14px;
}

.p-mega-menu__list li {
  margin-bottom: 15px;
}

.p-mega-menu__list a {
  display: flex;
  align-items: center;
  color: #fff;
  transition: color 0.3s;
}

.p-mega-menu__list a:hover {
  color: var(--color-accent);
  /* Yellow on hover */
  opacity: 1;
}

.p-mega-menu__list i {
  color: var(--color-accent);
  margin-right: 10px;
  font-size: 10px;
}

.p-mega-menu__list .fa-external-link-alt {
  margin-left: 5px;
  margin-right: 0;
  font-size: 12px;
  color: #fff;
  /* White external link icon */
}


/* SP Header */
@media (max-width: 767px) {
  .c-heading {
    display: block;
    margin-bottom: 10px;
    text-align: center;

  }

  .c-heading__text {
    font-size: 1rem;
    font-weight: normal;
  }

  .c-button--more {
    padding: 15px 30px;
    font-size: 0.8rem;
  }

  .grid-9 .p-mega-menu__grid {
    display: block;


  }

  .c-button--more {

    font-size: 0.8rem;

  }

  .grid-9 .p-mega-menu__col a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    text-align: left;
  }

  .grid-9 .p-mega-menu__place-icon i {
    font-size: 30px;
  }

  .p-mega-menu__place-name br {
    display: none;
  }

  .l-container {
    padding: 0;

  }

  .p-mega-menu__place-icon {
    margin-bottom: 10px;
    font-weight: 900;
    font-size: 20px !important;
    margin-left: 7px;
    margin-top: 5px;
    width: 25px;
  }

  .grid-9 .p-mega-menu__col {
    text-align: center;
    border: solid #fff 1px;
    padding: 1%;
    background: #EBF6F9;
  }

  fo .p-mega-menu__place-name {
    font-size: 12px;
  }

  .l-header__top {
    padding: 10px 0;
    border: none;
  }

  .l-header__nav {
    display: none;
  }

  /* Hide nav on SP initially */
  .l-header__menu-trigger {
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    /* Must be above the overlay */
  }

  .l-header__menu-trigger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s;
  }

  .l-header__menu-trigger span:nth-child(1) {
    top: 0;
  }

  .l-header__menu-trigger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .l-header__menu-trigger span:nth-child(3) {
    bottom: 0;
  }

  /* Hamburger Close Icon (X) */
  .l-header__menu-trigger.is-active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .l-header__menu-trigger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .l-header__menu-trigger.is-active span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }

  /* Hamburger Menu Overlay State */
  body.is-locked {
    overflow: hidden;
  }

  .l-header.is-open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .l-header.is-open .l-header__top {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
  }

  .l-header.is-open .l-header__nav {
    display: block;
    padding: 0 20px 40px;
  }

  .l-header.is-open .l-header__nav-list {
    flex-direction: column;
    gap: 0;
  }

  .l-header.is-open .l-header__nav-item {
    border-bottom: 1px solid #eee;
  }

  .l-header.is-open .l-header__nav-link {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
  }

  .l-header.is-open .p-mega-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background-color: #f9f9f9;
    color: #333;
    padding: 10px;
    display: none;
    /* Controlled by JS or CSS toggle. But currently JS toggles .is-open */
  }

  .l-header.is-open .p-mega-menu.is-open {
    display: block;
    /* Show mega menu when it is toggled open inside hamburger */
  }

  .l-header.is-open .p-mega-menu__col-title {
    color: #333;
  }

  .l-header.is-open .p-mega-menu__list a {
    color: #333;
  }

  .l-header.is-open .l-header__actions.u-pc-only {
    display: flex;
    /* override u-pc-only */
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid #eee;
  }

  .l-header.is-open .l-header__actions .c-button--header {
    width: 100%;
    text-align: center;
  }

  /* SP Mega Menu adjustments */
  .l-header__nav-item--dropdown {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }

  .p-mega-menu {
    position: static;
    padding: 20px;
  }

  .p-mega-menu__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   Sections Grid / Cards
   ========================================================================== */
.p-section {
  padding: 40px 0;
}

.c-card {
  display: flex;
  flex-direction: column;
}

/* Hover Animation Addition */
.c-card:hover {
  opacity: 1;
  /* Reset opacity fade if desired, otherwise card fades while image zooms */
}

.c-card__img {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  /* ←高さを固定 */
  /* Added for zoom containment */
}

.c-card__img img {
  width: 100%;
  display: block;
  height: 100%;
  /* ←追加 */
  object-fit: cover;
  /* ←追加（画像トリミング） */
  transition: transform 0.3s ease;
  /* Added transition */
}




.c-card:hover .c-card__img img {
  transform: scale(1.1);
  /* Added zoom on hover */
}

.c-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #333;
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  z-index: 2;
  /* Ensure on top of zoomed image */
}

.c-card__label--green {
  background-color: var(--color-label-green);
}

.c-card__label--lime {
  background-color: var(--color-label-lime);
}

.c-card__label--gold {
  background-color: var(--color-label-gold);
}

.c-card__label--gray {
  background-color: var(--color-label-gray);
}

.c-card__title {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.c-card__date {
  font-size: 12px;
  color: #999;
  margin-top: auto;
}

/* ==========================================================================
   Ranking / Sidebar
   ========================================================================== */
.l-grid-2col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.c-card--ranking {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Triangle Badge using Gradient for cleaner text placement */
.c-card__rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 50px;
  /* Adjust size */
  height: 50px;
  background: linear-gradient(135deg, var(--color-accent) 50%, transparent 50%);
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  padding-left: 10px;
  /* Position the number */
  padding-top: 5px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

/* Removed old large/small ranking card styles */

@media (max-width: 767px) {
  .l-grid-2col {
    display: block;
    padding: 0 3%;
  }

  .p-breadcrumb {

    font-size: 12px;

    padding: 0 4%;
  }

  .c-card--ranking-large {
    flex-direction: column;
  }

  .c-card--ranking-large .c-card__img {
    width: 100%;
  }

  .p-section {
    padding: 20px 20px;
  }

}

/* ==========================================================================
   Footer
   ========================================================================== */
.l-footer {
  margin-top: 50px;
}

.l-footer__inner {
  text-align: center;
}

.l-footer__logo {
  margin-bottom: 20px;
}

.l-footer__links {
  font-size: 12px;
  margin-bottom: 40px;
}

.l-footer__links a {
  margin: 0 10px;
}

.l-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* ←これ重要（折り返し） */

  /* 縦 横 */
  font-size: 14px;
}

.l-footer__links a {
  color: #333;
  text-decoration: none;
  position: relative;
  padding: 0 8px;
}

/* 区切り線（|）をCSSで再現 */
.l-footer__links a:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -10px;
  color: #999;
}

@media screen and (max-width: 767px) {
  .l-footer__links {
    flex-direction: column;
    /* 縦並び */
    align-items: center;
    gap: 8px;
  }

  .l-footer__links a::after {
    display: none;
    /* 縦の時は | 消す */
  }
}


.l-footer__categories {
  background-color: #333;
  padding: 40px 20px;
  color: #fff;
}

.l-footer__cat-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 1px solid #555;
  display: inline-block;
  padding-bottom: 5px;
}

.l-footer__cat-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.l-footer__cat-list a {
  background: #444;
  padding: 5px 15px;
  font-size: 12px;
  border-radius: 3px;
}

.l-footer__copyright {
  background-color: #222;
  color: #999;
  font-size: 10px;
  padding: 20px;
}

.p-news {
  padding-top: 0;
}