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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background: #f4f7fa;
    padding-top: 60px; /* ヘッダーの高さ分 */
}

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

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

a:hover {
    opacity: 0.8;
}

.l-container {
    width: 100%;
    overflow: hidden;
}


.inline_bl{
    display: inline-block;
}

/* =============================
  テキストの大きさ
  適宜修正しておく
  txt-で統一
============================= */
.txt_verysmall{
  font-size: .6em;

}

.txt_small
{
  font-size: .8em;
}

.txt_middle
{
  font-weight: bold;  font-size: 1.2em;
}

.txt_large
{
  font-weight: bold;  font-size: 1.5em;
}

.txt_bold
{
  font-weight: bold;
}

.txt_small_very{
  font-size: .6em;

}


.gray_area
{
  margin: 1em 0;  padding: 1em 1em 1em 1em;  border-radius: 1em;
  background: #aaa;

}

.text_annotation{
  font-size: .8em;
  color: #888;

}

.annotation{
  margin: 1em 0 0; 
  padding: 1em 1em 0;
  font-size: .6em;
  color: #aaa;
  /* ↑↑↑その内変更↑↑↑ */

}

/* ライン_本文と同一 */
.txt_line
{
  text-decoration: underline;
}

/* =============================
  配置
  txt_で統一
============================= */
.txt_right
{
  text-align: right;
}

.txt_center
{
  text-align: center;
}

.txt_left
{
  text-align: left;
}
/* ========================================
   Header
======================================== */
.l-header {
    width: 100%;
    height: 60px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    /* position: fixed; */
    position: absolute;

    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.l-header__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    /* justify-content: space-between; */
}

.l-header__logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #0055a5;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;       /* 画像とのズレを防ぐ */
}

.l-header__logo .material-icons {
    color: #0055a5;
}


.l-header__logo .header_icons{
    height: 1em;          /* テキストと同じ高さにする */
    width: auto;          /* 比率維持 */
    vertical-align: middle;
    margin-right: 0.4em;  /* 文字との余白（任意） */
}

#pr_icon{
    font-size: 14px;
    border: 1px solid #000;
    padding: 0 7px;
    margin-left: 10px;
}

.l-footer {
    background: #1e293b;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.l-footer__logo {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.l-footer__copy {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ========================================
   Common Components
======================================== */
.u-device-sp { display: inline-block; }
.u-device-pc { display: none; }

@media screen and (min-width: 768px) {
    .u-device-sp { display: none; }
    .u-device-pc { display: inline-block; }
}

.text-red { color: #ef4444; font-weight: bold; }
.text-green { color: #22c55e; font-weight: bold; }

/* Section Title */
.c-section-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    /* color: #1e293b; */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.p-choice__inner .c-section-title {
    color: #1e293b;

}

/* Buttons */
.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    line-height: 1.4;
}


.c-btn--primary {
    background: #0055a5;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 85, 165, 0.2);
}

.c-btn--primary:hover {
    background: #004488;
    transform: translateY(-2px);
}

.c-btn--gradient {
    background: linear-gradient(0deg, #FF8C00 0%, #FF4500 70%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 69, 0, 0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.c-btn--gradient::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg) translateX(-100%);
    /* animation: shimmer 3s infinite; */
    
}

.c-btn--gradient::before {
content: '';
display: block;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: -100%;
background-image: linear-gradient( 130deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 55%);
animation: shine 3s infinite;
}

@keyframes shimmer {
    100% { transform: rotate(30deg) translateX(100%); }
}

.c-btn--gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 69, 0, 0.4);
}

.c-btn--small {
    padding: 6px 16px;
    font-size: 0.8rem;
    background: #fff;
    color: #0055a5;
    border: 1px solid #0055a5;
    border-radius: 4px;
}
.c-btn--small:hover {
    background: #f0f7ff;
}


/* ========================================
   Main Visual (Hero)
======================================== */
.p-mv {
    position: relative;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    /* スマホ: パディングを減らし、青い背景の高さを抑える */
    padding: 30px 20px 30px;
    text-align: center;
    overflow: visible; /* 検索ボックスがはみ出るのを許可 */
}

.p-mv__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0055a5;
    background: linear-gradient(160deg, #0055a5 0%, #003366 100%);
    z-index: 0;
    /* border-bottom-left-radius: 30px; */
    border-bottom-right-radius: 0;/* スマホ: 角丸なし（好みで調整可） */
    border-bottom-left-radius: 0; /* スマホ: 角丸なし（好みで調整可） */
}

.p-mv__content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    color: #fff;
    display: flex;
    flex-direction: column-reverse; /* SPは画像を下に */
    align-items: center;
    gap: 20px;
}

.p-mv__sub {
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    /* display: inline-block; */
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.p-mv__title {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 10px;
}

.p-mv__img {
    /* スマホ: 親のpadding(左右20px)をネガティブマージンで打ち消す */
    /* 親要素のpaddinのせいで、表示枠が狭くなっているので、親要素のpaddingを無視する */
    margin-left: -20px;
    margin-right: -20px;
    /* 幅を親のpadding分広げる */
    width: calc(100% + 40px);
    max-width: none;
}

.p-mv__img img {
    width: 100%;
    height: auto;
    /* スマホ: 画面端まで広げるため角丸はリセット */
    border-radius: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ========================================
   Search Box (Compact & Floating)
======================================== */
.p-search-box {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    margin: 20px auto 0;
}

.p-search-box__inner {
    background: #fff;
    border-radius: 12px;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* シャドウを少し柔らかく */
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.p-search-box__title {
    font-size: 1rem;
    font-weight: bold;
    color: #0055a5;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}
.p-search-box__title .material-icons { font-size: 1.2rem; }

.p-search-box__row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* スマホは2列 */
    gap: 10px;
}

.p-search-box__select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    font-size: 0.9rem;
    cursor: pointer;
    height: 44px;
}

.p-search-box__btn-wrap {
    grid-column: 1 / -1; /* ボタンは全幅 */
}

.p-search-box__btn {
    width: 100%;
    height: 44px;
}

/* ========================================
   Countdown
======================================== */
.p-countdown {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
}
.p-countdown__inner {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    color: #92400e;
    width: 100%;
}

.p-countdown__label { font-weight: bold; font-size: 0.9rem; margin-bottom: 5px; }
.p-countdown__timer { display: flex; justify-content: center; gap: 5px; font-weight: bold; font-size: 1.2rem; color: #dc2626; }
.p-countdown__number { font-size: 1.5rem; font-family: monospace; }
.p-countdown__note { font-size: 0.7rem; margin-top: 5px; opacity: 0.8; }

/* ========================================
   Ranking Section
======================================== */
.p-ranking {
    background-color: deepskyblue;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.p-ranking__item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 40px;
    position: relative;
    border: 1px solid #f1f5f9;
    overflow: visible;
    padding-top: 30px; /* バッジのスペース確保 */
}

/* Rank Badge */
.p-ranking__badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #ffd700;
    color: #fff;
    padding: 5px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
}
.p-ranking__badge--1 { background: linear-gradient(45deg, #DAA520, #FFD700); font-size: 1.2rem; padding: 8px 20px; top: -20px;}
.p-ranking__badge--2 { background: #a0aec0; }
.p-ranking__badge--3 { background: #b45309; }
.p-ranking__badge--4 { background: #3b82f6; }


.p-ranking__pr_name{
    position: absolute;
    top: -5px;
    /* left: 20px; */
    right: -5px;

    background: deepskyblue;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    font-size: 0.6rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;

}

.p-ranking__content {
    padding: 20px;
}

.p-ranking__header {
    /* margin-bottom: 15px; */
    border-bottom: 2px solid #f1f5f9;
    /* padding-bottom: 10px; */
}

.p-ranking__name {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 5px;
}

.p-ranking__catch {
    font-size: 0.8rem;
    color: #0055a5;
    font-weight: bold;
}

.p-ranking__body {
    margin-bottom: 20px;
}

.p-ranking__logo {
    text-align: center;
    margin-bottom: 15px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
}
.p-ranking__logo img { 
    /* max-height: 60px;  */
    width: auto; 
}

.p-ranking__features-list {
    list-style: none;
    margin-bottom: 20px;
}
.p-ranking__features-list li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 1.5em;
    position: relative;
    color: #475569;
}
.p-ranking__features-list li .material-icons {
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.1rem;
    color: #22c55e;
}

.p-ranking__spec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
}
.p-ranking__spec-item { text-align: center; }
.p-ranking__spec-item dt { font-size: 0.7rem; color: #64748b; }
.p-ranking__spec-item dd { font-weight: bold; font-size: 1rem; color: #0f172a; }



.p-ranking__btn{
    animation: poyoyon 3s ease 0s infinite normal;
}




/* ========================================
   Comparison Table 2
======================================== */
.p-comparison {
    padding: 40px 20px;
    background: #fff;
}
.p-comparison__inner { max-width: 1000px; margin: 0 auto; }
.p-comparison__note { text-align: right; font-size: 0.75rem; color: #64748b; margin-bottom: 5px; }
.p-comparison__inner .c-section-title { color: #1e293b; }

/* ▼ 新しいコンテナ（位置基準用） */
.p-comparison__container {
    position: relative; /* ここを基準にボタンを配置 */
    width: 100%;
}

/* ▼ スクロールボタンのスタイル修正 */
.scroll-btn {
    position: absolute; /* コンテナに対して絶対配置 */
    top: 50%;           /* 縦方向の中央 */
    transform: translateY(-50%); /* 中央揃えの補正 */
    z-index: 20;        /* テーブルより手前に表示 */
    
    /* デザイン */
    background: rgba(59, 130, 246, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: rgba(37, 99, 235, 0.95);
    transform: translateY(-50%) scale(1.1); /* ホバー時も中央維持 */
}

.scroll-btn:disabled {
    background: rgba(148, 163, 184, 0.6);
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
    opacity: 0;
}

/* 左右の位置指定（テーブル内に埋め込む配置） */
#scrollLeft {
    left: 10px;
}

#scrollRight {
    right: 10px;
}

/* テーブル周り */
.p-comparison__table-wrap {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scroll-behavior: smooth;
    /* ボタンと被らないように少し余白を持たせることも可能ですが、
       今回は「埋め込み」なのでそのままにします */
}

.p-comparison__table {
    width: 100%; /* 横幅いっぱいに */
    border-collapse: collapse;
    table-layout: auto;
}

.p-comparison__table th {
    background: #f1f5f9;
    color: #333;
    padding: 15px;
    font-size: 0.9rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
    text-align: center;
}

/* 1列目の固定 */
.p-comparison__table th:first-child {
    position: sticky;
    left: 0;
    background: #f1f5f9;
    z-index: 10;
}

.p-comparison__table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 130px;
}

/* 1列目の固定 */
.p-comparison__table td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 9;
    border-right: 2px solid #e2e8f0;
    white-space: nowrap;
}

.p-comparison__logo { display: flex; align-items: center; justify-content: center; }
.p-comparison__logo img { max-width: 80px; max-height: 40px; }
.txt_small { font-size: 0.75rem; color: #64748b; }

.p-comparison__table .c-btn {
    background: #F63E3B;
    color: white;
    border: none;
}

/* .c-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.3s;
}
.c-btn:hover { background: #2563eb; }
.c-btn--small { padding: 6px 12px; font-size: 0.8rem; } */

@media screen and (max-width: 767px) {
    .scroll-btn { width: 35px; height: 35px; font-size: 1rem; }
    .p-comparison__table th, .p-comparison__table td { padding: 5px; font-size: 0.85rem; }
    .p-comparison__table .c-btn--small { padding: 6px 10px; }

}



/* ========================================
   Choice Columns
======================================== */
.p-choice { padding: 60px 20px; background: #eff6ff; }
.p-choice__inner { max-width: 1000px; margin: 0 auto; }
.p-choice__lead { text-align: center; margin-bottom: 40px; font-size: 0.9rem; color: #475569; }

.p-choice__items {
    display: grid;
    gap: 20px;
}
.p-choice__item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.p-choice__item-number {
    font-size: 1.5rem;
    font-weight: 900;
    /* color: #e2e8f0; */
    color: #1e293b;
    line-height: 1;
    margin-bottom: 5px;
    text-align: center;
}
.p-choice__item-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0055a5;
}
.p-choice__item-content p { font-size: 0.9rem; color: #475569; }

@media screen and (max-width: 767px) {

    .sp-vertical-table{
        writing-mode: vertical-lr;
    }

    .sp-vertical-table th, .sp-vertical-table td{
        padding:4px;
        writing-mode: horizontal-tb;	/* 追加 */
        height:25px;			/* 追加 */
    }

    /* .sp-vertical-table tr{
        width: 100px;

    } */

}

/* ========================================
   animation button
======================================== */
@keyframes shine {
33% {
  left: 100%;
}
100% {
  left: 100%;
}
}

/*右からフェードイン*/
@keyframes right-to-left {
  0% {
      transform: translateX(10px);
  }
  100% {
      transform: translateX(0);
  }
}

@keyframes poyoyon {
  0%, 40% {
    transform: skew(0deg, 0deg) translate(0px, 0px);
    
  }
  5% {
    transform: skew(2deg, 2deg);
  }
  10% {
    transform: skew(-2deg, -2deg);
  }
  15% {
    transform: skew(1deg, 1deg);
  }
  20% {
    transform: skew(-1deg, -1deg) translate(10px, 0px);
  }
  25% {
    transform: skew(0.6deg, 0.6deg);
  }
  30% {
    transform: skew(-0.6deg, -0.6deg);
  }
  35% {
    transform: skew(0.3deg, 0.3deg);
  }
}


/* #####ふわふわアニメーション##### */
@keyframes fuwafuwa {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}


/* ========================================
   Responsive PC (Tablet+)
======================================== */
@media screen and (min-width: 768px) {
    /* MV */
    .p-mv { padding: 60px 20px 100px; }
    .p-mv__bg {
        height: 85%; /* 背景を少し短くする */
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }
    .p-mv__content { flex-direction: row; justify-content: space-between; text-align: left; }
    .p-mv__text-area { flex: 1; padding-right: 40px; }
    .p-mv__title { font-size: 3rem; }
    .p-mv__img {
        margin: 0;
        width: auto;
        max-width: 100%;
        text-align: center;
    }
    .p-mv__img img {
        max-width: 80%;
        border-radius: 10px; /* PCでは角丸に戻す */
        /* box-shadow: 0 10px 30px rgba(0,0,0,0.2); */
    }

    /* Search Box */

    /* Search Box: PCではネガティブマージンで上に重ねる→不要かも */
    /* .p-search-box { 
        margin-top: -40px; 
    } */

    .p-search-box__row { display: flex; align-items: center; gap: 15px; }
    .p-search-box__btn-wrap { width: auto; flex: 1; }
    .p-search-box__select { width: 160px; }
    .p-search-box__title { justify-content: flex-start; border: none; margin: 0 20px 0 0; padding: 0; }
    .p-search-box__inner { align-items: center; padding: 15px 30px; }
    .p-search-box__form { flex: 1; }

    /* Ranking */
    .p-ranking__body { display: flex; gap: 30px; }
    .p-ranking__left { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: 15px; }
    .p-ranking__right { flex: 1; }
    .p-ranking__spec { grid-template-columns: repeat(4, 1fr); }

    
    .p-ranking__pr_name{
        font-size: 1rem;
    }
    
    /* Choice */
    .p-choice__items { grid-template-columns: 1fr 1fr; }

    /* カウントダウン */
    .p-countdown__inner {
        width: 75%;
    }
}



/* ========================================
   others(conpany privacy)
======================================== */

#company-contents{
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}